Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周远喜
mes-ui
Commits
835f8f58
Commit
835f8f58
authored
Oct 15, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ok
parent
41da0337
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
124 deletions
+22
-124
dataGrid.vue
components/page/dataGrid.vue
+10
-0
index.vue
pages/test/example/table/index.vue
+12
-124
No files found.
components/page/dataGrid.vue
View file @
835f8f58
...
...
@@ -61,6 +61,7 @@
@
on-selection-change=
"selectionChange"
@
on-select=
"onSelect"
@
on-select-all=
"allChange"
@
on-sort-change=
"sortChange"
:row-key=
"rowKey"
stripe
></Table>
...
...
@@ -153,6 +154,8 @@ export default {
search
:
{
pageIndex
:
1
,
pageSize
:
20
,
sortBy
:
"id"
,
isDesc
:
true
,
conditions
:
[],
},
searchConditions
:
this
.
search
,
...
...
@@ -417,6 +420,12 @@ export default {
}
});
},
sortChange
(
column
,
key
,
order
)
{
this
.
search
.
sortBy
=
key
;
this
.
search
.
isDesc
=
order
==
"desc"
;
this
.
search
.
pageIndex
=
1
;
this
.
load
();
},
saveUserconfig
()
{
let
url
=
`
${
window
.
systemUrl
}
/config/update`
;
var
content
=
[];
...
...
@@ -572,6 +581,7 @@ export default {
});
return
name
;
},
//批量取消
cancelBatch
()
{
this
.
footerToolbar
=
false
;
...
...
pages/test/example/table/index.vue
View file @
835f8f58
...
...
@@ -30,7 +30,7 @@ export default {
name
:
""
,
data
()
{
return
{
action
:
`
${
technologyUrl
}
routinghead
er/paged`
,
action
:
`
${
systemUrl
}
/us
er/paged`
,
easySearch
:
{
keys
:
{
op
:
"unicode,name,code"
,
...
...
@@ -38,8 +38,8 @@ export default {
},
},
columns
:
[{
key
:
"
code
"
,
title
:
this
.
l
(
"code"
)
,
key
:
"
id
"
,
title
:
"姓名"
,
align
:
"left"
,
width
:
200
,
sortable
:
true
,
...
...
@@ -47,136 +47,24 @@ export default {
high
:
true
},
{
key
:
"
n
ame"
,
title
:
this
.
l
(
"name"
)
,
key
:
"
userN
ame"
,
title
:
"姓名"
,
align
:
"left"
,
easy
:
true
,
high
:
true
,
tooltip
:
true
,
d
},
{
key
:
"phase"
,
title
:
this
.
l
(
"phase"
),
align
:
"center"
,
high
:
true
,
width
:
100
,
code
:
"Process.Routing.phase"
},
{
key
:
"versionid"
,
title
:
this
.
l
(
"version"
),
align
:
"center"
,
high
:
true
,
width
:
100
,
code
:
"Process.Routing.version"
},
{
title
:
this
.
l
(
"approvalStatus"
),
key
:
"approvalStatus"
,
align
:
"center"
,
width
:
"120"
,
code
:
"process.RoutingStatus"
},
{
key
:
"routingType"
,
title
:
this
.
l
(
"routingType"
),
align
:
"center"
,
width
:
100
,
high
:
true
,
code
:
"Process.Routing.routingType"
},
{
key
:
"drawingNo"
,
title
:
this
.
l
(
"drawingNo"
),
align
:
"left"
,
high
:
true
},
{
key
:
"productName"
,
title
:
this
.
l
(
"productName"
),
align
:
"left"
,
high
:
true
,
tooltip
:
true
,
sortable
:
true
,
},
{
key
:
"productId"
,
title
:
this
.
l
(
"productId"
),
align
:
"left"
,
import
:
true
,
hide
:
true
,
},
{
key
:
"productBomId"
,
title
:
this
.
l
(
"productBomId"
),
align
:
"left"
,
import
:
true
,
hide
:
true
,
},
{
key
:
"departmentName"
,
title
:
this
.
l
(
"departmentName"
),
width
:
100
,
{
key
:
"cardNo"
,
title
:
"姓名"
,
align
:
"left"
,
easy
:
true
,
sortable
:
true
,
high
:
true
,
tooltip
:
true
,
},
{
key
:
"departmentId"
,
title
:
this
.
l
(
"departmentId"
),
align
:
"left"
,
import
:
true
,
hide
:
true
,
},
{
key
:
"isEffect"
,
title
:
this
.
l
(
"isEffect"
),
align
:
"center"
,
width
:
80
,
high
:
true
,
code
:
"Process.Status"
},
//{ key: "id", title: this.$t("id"), hide: true, align: "left" },
// { key:"upId",title:this.l("upId") ,align:"left" ,high:true },
// { key:"upDetailId",title:this.l("upDetailId") ,hide:true ,align:"left" ,high:true },
//{ key: "classId", title: this.l("classId"), align: "left", hide: true },
//{ key: "unicode", title: this.l("unicode"),align: "left",easy: false,hide: true},
// { key:"approvalStatus",title:this.l("approvalStatus") ,align:"left" ,high:true ,code:'process.RoutingStatus' },
// { key:"approvalStatusRemark",title:this.l("approvalStatusRemark") ,align:"left" ,high:true },
// { key:"auditUserId1",title:this.l("auditUserId1") ,align:"left" ,high:true },
// { key:"auditUserId2",title:this.l("auditUserId2") ,align:"left" ,high:true },
// { key:"platesnum",title:this.l("platesnum") ,align:"left" ,high:true },
// { key: "isMain", title: this.l("isMain"),align: "center",width: 80,high: true,code: "Process.state"},
//{key: "creatorUserId",title: this.l("author"),align: "left", high: true,type: "user",hide: true},
//{key: "versionnotes",title: this.l("versionnotes"),align: "left", high: true,hide: true},
//{key: "versionid", title: this.l("versionid"), align: "left", hide: true, code: "Process.Routing.version"},
{
key
:
"creationTime"
,
title
:
this
.
$t
(
"creationTime"
),
align
:
"left"
,
hide
:
true
},
{
key
:
"creatorUserId"
,
title
:
this
.
$t
(
"creatorUserId"
),
align
:
"left"
,
hide
:
true
,
type
:
"user"
},
{
key
:
"lastModificationTime"
,
title
:
this
.
$t
(
"lastModificationTime"
),
align
:
"left"
,
hide
:
true
},
{
key
:
"lastModifierUserId"
,
title
:
this
.
$t
(
"lastModifierUserId"
),
align
:
"left"
,
hide
:
true
,
type
:
"user"
}],
],
};
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment