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
a0b117f8
Commit
a0b117f8
authored
Apr 17, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
footerbar
parent
76ea36cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
2 deletions
+30
-2
dataGrid.vue
components/page/dataGrid.vue
+6
-1
index.vue
pages/mesPlan/index.vue
+24
-1
No files found.
components/page/dataGrid.vue
View file @
a0b117f8
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
<slot
name=
"batch"
></slot>
<slot
name=
"batch"
></slot>
</div>
</div>
<Button
@
click=
"
footerToolbar=false
"
>
取消
</Button>
<Button
@
click=
"
cancelFooterToolbar
"
>
取消
</Button>
</FooterToolbar>
</FooterToolbar>
</div>
</div>
</
template
>
</
template
>
...
@@ -476,6 +476,11 @@ export default {
...
@@ -476,6 +476,11 @@ export default {
},
},
selectAll
(
status
)
{
selectAll
(
status
)
{
this
.
$refs
.
table
.
selectAll
(
status
);
this
.
$refs
.
table
.
selectAll
(
status
);
},
cancelFooterToolbar
()
{
this
.
$refs
.
table
.
selectAll
(
false
);
this
.
footerToolbar
=
false
}
}
},
},
computed
:
{
computed
:
{
...
...
pages/mesPlan/index.vue
View file @
a0b117f8
...
@@ -895,11 +895,18 @@ export default {
...
@@ -895,11 +895,18 @@ export default {
},
},
//单条删除
//单条删除
remove
(
row
)
{
remove
(
row
)
{
let
metCodesSingle
=
[];
//没有子订单的订单
let
metCodesFather
=
[];
//有子订单的原始订单
this
.
delMsg
=
""
;
this
.
delNum
=
0
;
this
.
delNum
=
0
;
this
.
actIds
=
[];
this
.
actIds
=
[];
this
.
$refs
.
grid
.
cancelFooterToolbar
();
this
.
actIds
.
push
(
row
.
id
);
this
.
actIds
.
push
(
row
.
id
);
if
(
row
.
id
!=
row
.
rootId
)
{
if
(
row
.
id
!=
row
.
rootId
)
{
this
.
sondeletecheck
(
row
.
rootId
);
this
.
sondeletecheck
(
row
.
rootId
);
metCodesFather
.
push
(
row
.
rootCode
);
}
else
{
metCodesSingle
.
push
(
row
.
mesCode
);
}
}
setTimeout
(()
=>
{
setTimeout
(()
=>
{
if
(
this
.
delNum
>
0
)
{
if
(
this
.
delNum
>
0
)
{
...
@@ -907,6 +914,19 @@ export default {
...
@@ -907,6 +914,19 @@ export default {
this
.
actIds
=
[];
this
.
actIds
=
[];
return
false
;
return
false
;
}
else
{
}
else
{
let
metCodesSingleStr
=
JSON
.
stringify
(
metCodesSingle
)
.
replace
(
"["
,
""
)
.
replace
(
"]"
,
""
)
.
replace
(
/
\"
/g
,
""
);
let
metCodesFatherStr
=
JSON
.
stringify
(
metCodesFather
)
.
replace
(
"["
,
""
)
.
replace
(
"]"
,
""
)
.
replace
(
/
\"
/g
,
""
);
if
(
row
.
id
==
row
.
rootId
)
{
this
.
delMsg
=
metCodesSingleStr
;
}
else
{
this
.
delMsg
=
metCodesFatherStr
+
" 的子订单"
;
}
this
.
deletelModal
=
true
;
this
.
deletelModal
=
true
;
}
}
},
400
);
},
400
);
...
@@ -960,7 +980,10 @@ export default {
...
@@ -960,7 +980,10 @@ export default {
this
.
delMsg
=
metCodesFatherStr
+
" 的子订单"
;
this
.
delMsg
=
metCodesFatherStr
+
" 的子订单"
;
}
else
if
(
metCodesSingle
.
length
>
0
&&
metCodesFather
.
length
>
0
)
{
}
else
if
(
metCodesSingle
.
length
>
0
&&
metCodesFather
.
length
>
0
)
{
this
.
delMsg
=
this
.
delMsg
=
metCodesSingleStr
+
" 以及 订单:"
+
metCodesFatherStr
+
" 的子订单"
;
metCodesSingleStr
+
" 以及 订单:"
+
metCodesFatherStr
+
" 的子订单"
;
}
}
this
.
deletelModal
=
true
;
this
.
deletelModal
=
true
;
}
}
...
...
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