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
0ebf25b5
Commit
0ebf25b5
authored
Jun 22, 2020
by
kangzhenfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dnc
parent
d6605f92
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
29 deletions
+47
-29
datalist.vue
pages/dncmnc/dnc/datalist.vue
+47
-29
No files found.
pages/dncmnc/dnc/datalist.vue
View file @
0ebf25b5
...
...
@@ -9,7 +9,7 @@
<p
class=
"dispatch_part_top"
>
<b
class=
"mr10"
>
设备列表
</b>
共
{{
listSheBei
.
length
}}
台
<
!--
{{
ids
}}
--
>
<
span
style=
"display:none"
>
{{
ids
}}
</span
>
</p>
<div
class=
"dispatch_part_body"
:style=
"
{height:byheight}">
<h4
class=
"tc"
v-if=
"this.listSheBei.length==0"
>
暂无数据
</h4>
...
...
@@ -38,7 +38,8 @@
</Tooltip>
</a>
</p>
<div
class=
"h60"
v-if=
"!btnModal"
>
<div
class=
"h60"
v-if=
"item.btnShow"
>
<span
style=
"display:none"
>
{{
liOrderIds
}}
</span>
<Row
class=
"card_body02"
v-for=
"(li,index) in item.row"
:key=
"index"
>
<Col
span=
"8"
class=
"dispatch_li"
>
<Checkbox
v-model=
"li.checked"
>
程序名:
{{
li
.
mdcNmae
}}
</Checkbox>
...
...
@@ -46,7 +47,7 @@
<Col
span=
"8"
class=
"dispatch_li"
>
大小:
{{
li
.
size
}}
</Col>
<Col
span=
"8"
class=
"dispatch_li"
>
下载时间:
{{
li
.
downTime
}}
</Col>
</Row>
<!--
{{
liOrderIds
}}
-->
<!--
!btnModal&&
-->
</div>
</div>
</div>
...
...
@@ -100,7 +101,7 @@
</Modal>
<!-- 底部 -->
<FooterToolbar
style=
"height:65px"
v-show=
"showOperate&&footerToolbar"
>
<!--
<span>
已选程序:
{{
chengXuIds
.
length
}}
</span>
-->
<!--
<span
v-if=
"beyong"
>
已选程序:
{{
chengXuIds
.
length
}}
</span>
-->
<Button
class=
"span ml20"
type=
"primary"
v-if=
"xiaZai"
@
click=
"downFile"
>
下载
</Button>
<Button
class=
"span ml20"
type=
"primary"
v-if=
"beyong"
@
click=
"fileBeyong"
>
文本对比
</Button>
<Button
@
click=
"footerToolbar=false"
>
取消
</Button>
...
...
@@ -230,21 +231,21 @@ export default {
id
:
2
,
row
:
[
{
mdcNmae
:
"00123_28
1
"
,
mdcNmae
:
"00123_28
4
"
,
id
:
201
,
size
:
"128Mb"
,
downTime
:
"2020-05-26 10:30:26"
,
checked
:
false
},
{
mdcNmae
:
"00123_28
2
"
,
mdcNmae
:
"00123_28
5
"
,
id
:
202
,
size
:
"128Mb"
,
downTime
:
"2020-05-26 10:30:26"
,
checked
:
false
},
{
mdcNmae
:
"00123_28
3
"
,
mdcNmae
:
"00123_28
6
"
,
id
:
203
,
size
:
"128Mb"
,
downTime
:
"2020-05-26 10:30:26"
,
...
...
@@ -386,14 +387,14 @@ export default {
this
.
footerToolbar
=
true
;
},
// 切换箭头
showRow
(
id
,
btn
){
// console.log(id)
// let ss=!btnModal
// this.listSheBei.map(u=>{
//
})
showRow
(
row
id
,
btn
){
this
.
listSheBei
.
map
(
u
=>
{
if
(
u
.
id
==
rowid
){
u
.
btnShow
=
!
u
.
btnShow
}
})
// console.log(btnModal = ss)
this
.
btnModal
=
!
this
.
btnModal
//
this.btnModal = !this.btnModal
},
// 获取查询人员
getselectuser
(
id
)
{
...
...
@@ -609,8 +610,13 @@ export default {
}
});
if
(
ids
.
length
>
0
)
{
this
.
footerToolbar
=
true
;
this
.
xiaZai
=
true
;
// if(this.liOrderIds.length>0){
// this.$Message.info("设备和所属程序不能同时选择!")
// }else{
this
.
footerToolbar
=
true
;
this
.
xiaZai
=
true
;
this
.
beyong
=
false
;
// }
}
return
ids
;
},
...
...
@@ -633,23 +639,35 @@ export default {
return
orders
;
},
liOrderIds
()
{
let
liOrderIds
=
[];
let
rowList
;
this
.
listSheBei
.
map
(
u
=>
{
rowList
=
u
.
row
});
// rowList.map(item=>{ rowData.push(item) })
// rowList.map(tm=>{
// if(tm.checked){
// liOrderIds.push(tm.id)
// }
// })
let
rowList
=
[]
;
let
liOrderIds
=
[]
;
let
cardData
=
this
.
listSheBei
;
for
(
let
i
=
0
;
i
<
cardData
.
length
;
i
++
){
cardData
[
i
].
row
.
map
(
u
=>
{
rowList
.
push
(
u
)
})
}
rowList
.
map
(
tem
=>
{
if
(
tem
.
checked
)
{
liOrderIds
.
push
(
tem
.
id
);
}
});
if
(
liOrderIds
.
length
>
0
){
if
(
this
.
ids
.
length
>
0
){
this
.
$Message
.
info
(
"设备和所属程序不能同时选择!"
)
this
.
footerToolbar
=
false
;
}
else
{
this
.
footerToolbar
=
true
;
this
.
xiaZai
=
false
;
this
.
beyong
=
true
;
}
}
return
liOrderIds
;
// this.footerToolbar = true;
return
rowList
;
},
showOperate
()
{
return
(
this
.
ids
.
length
>
0
&&
(
this
.
chengXuIds
.
length
>
0
)
// || this.liOrderIds.length > 0
(
this
.
ids
.
length
>
0
||
this
.
liOrderIds
.
length
>
0
)
&&
(
this
.
chengXuIds
.
length
>
0
)
);
}
},
...
...
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