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
22a1e71a
Commit
22a1e71a
authored
Nov 13, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.mes123.com:zhouyx/mes-ui into product-rjt
parents
1fe4d028
30622fe2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
86 additions
and
243 deletions
+86
-243
base.less
assets/css/base.less
+1
-3
iview-reset.less
assets/css/iview-reset.less
+3
-0
EditGrid.vue
components/page/treeGrid/EditGrid.vue
+53
-235
dataGrid.vue
components/page/treeGrid/dataGrid.vue
+1
-1
henq.js
libs/henq.js
+1
-1
api.js
pages/project/plan/api.js
+3
-0
index.vue
pages/project/plan/index.vue
+24
-3
No files found.
assets/css/base.less
View file @
22a1e71a
...
...
@@ -21,9 +21,7 @@ ul,
li {
list-style: none;
}
.ivu-drawer-wrap{
z-index: 12000;
}
div::-webkit-scrollbar {
width: 10px;
height: 10px;
...
...
assets/css/iview-reset.less
View file @
22a1e71a
...
...
@@ -23,6 +23,9 @@
background-color: @primary-color;
border-color: @primary-color;
}
.ivu-drawer-wrap,.tree-drawer{
z-index: 12000;
}
.ivu-btn-group:not(.ivu-btn-group-vertical) .ivu-btn-primary:first-child:not(:last-child) {
border-right-color: @primary-color;
...
...
components/page/treeGrid/EditGrid.vue
View file @
22a1e71a
This diff is collapsed.
Click to expand it.
components/page/treeGrid/dataGrid.vue
View file @
22a1e71a
...
...
@@ -51,7 +51,7 @@
<Button
@
click=
"complexSearch"
type=
"primary"
style=
"margin-left: 10px"
>
查询
</Button>
</div>
</Modal>
<Drawer
title=
"列设置"
v-if=
"set"
v-model=
"config"
:scrollable=
"true"
placement=
"left"
:mask=
"false"
>
<Drawer
title=
"列设置"
v-if=
"set"
v-model=
"config"
:scrollable=
"true"
placement=
"left"
:mask=
"false"
class-name=
"tree-drawer"
>
<div
slot=
"header"
>
列设置
<a
@
click=
"undoConfig"
class=
"ml50"
>
...
...
libs/henq.js
View file @
22a1e71a
...
...
@@ -132,7 +132,7 @@ henq.toTree = (list, rootId, format, parentFiledName) => {
function
toTree
(
data
,
parentId
,
level
)
{
let
parents
=
data
.
filter
(
u
=>
{
if
(
u
[
upId
]
==
''
)
if
(
u
[
upId
]
==
=
''
)
{
u
[
upId
]
=
null
}
...
...
pages/project/plan/api.js
View file @
22a1e71a
...
...
@@ -26,6 +26,9 @@ export default {
}
});
},
batch
(
ids
)
{
return
Api
.
post
(
`
${
material
}
/projectplan/batchdelete`
,
ids
);
},
///projecttemplate/list
templates
(
params
){
return
Api
.
post
(
`
${
material
}
/projecttemplate/list`
,
params
)
...
...
pages/project/plan/index.vue
View file @
22a1e71a
<
template
>
<div>
<Card>
<EditGrid
:columns=
"columns"
ref=
"grid"
:batch=
"true"
:items=
"list"
:level=
"8"
:drag=
"true"
:exportTitle=
"exportTl"
>
<EditGrid
:columns=
"columns"
ref=
"grid"
:batch=
"true"
:items=
"list"
:level=
"8"
:drag=
"true"
:exportTitle=
"exportTl"
@
on-selection-change=
"batchChange"
>
<template
slot=
"easySearch"
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<FormItem
prop=
"keys"
><Input
placeholder=
"请输入关键字标题"
v-model=
"easySearch.keys.value"
/>
...
...
@@ -30,6 +30,9 @@
</DropdownMenu>
</Dropdown>
</
template
>
<
template
slot=
"batch"
>
<Button
type=
"primary"
@
click=
"bacthRemove()"
>
批量删除
</Button>
</
template
>
</EditGrid>
</Card>
<Submenus
:show=
"showStatu"
:data=
"tempItems"
:params=
"params"
></Submenus>
...
...
@@ -70,6 +73,7 @@ export default {
data
()
{
return
{
entity
:
{},
batchItems
:[],
row
:
{},
action
:
Api
.
index
,
easySearch
:
{
...
...
@@ -88,13 +92,15 @@ export default {
key
:
"drag"
,
type
:
"drag"
,
width
:
50
,
align
:
'center'
align
:
'center'
,
title
:
'移动'
,
},
{
key
:
"upId"
,
width
:
50
,
type
:
"selection"
,
align
:
'center'
align
:
'center'
,
title
:
'选择'
,
},
{
key
:
"upTitle"
,
...
...
@@ -466,6 +472,21 @@ export default {
}
];
},
batchChange
(
items
,
list
){
this
.
batchItems
=
items
;
},
bacthRemove
(){
var
ids
=
this
.
batchItems
.
map
(
u
=>
{
return
u
.
id
;
})
if
(
ids
.
length
>
0
){
Api
.
batch
(
ids
).
then
(
r
=>
{
if
(
r
.
success
){
this
.
search
();
}
})
}
},
//批量导入start
//导入功能
openModalIm
()
{
...
...
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