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
6737751d
Commit
6737751d
authored
Jun 22, 2020
by
kangzhenfei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'product-kk' into product
parents
106c7aee
89532f14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
91 additions
and
45 deletions
+91
-45
datalist.vue
pages/dncmnc/dnc/datalist.vue
+91
-45
No files found.
pages/dncmnc/dnc/datalist.vue
View file @
6737751d
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<p
class=
"dispatch_part_top"
>
<p
class=
"dispatch_part_top"
>
<b
class=
"mr10"
>
设备列表
</b>
<b
class=
"mr10"
>
设备列表
</b>
共
{{
listSheBei
.
length
}}
台
共
{{
listSheBei
.
length
}}
台
<
!--
{{
ids
}}
--
>
<
span
style=
"display:none"
>
{{
ids
}}
</span
>
</p>
</p>
<div
class=
"dispatch_part_body"
:style=
"
{height:byheight}">
<div
class=
"dispatch_part_body"
:style=
"
{height:byheight}">
<h4
class=
"tc"
v-if=
"this.listSheBei.length==0"
>
暂无数据
</h4>
<h4
class=
"tc"
v-if=
"this.listSheBei.length==0"
>
暂无数据
</h4>
...
@@ -33,12 +33,13 @@
...
@@ -33,12 +33,13 @@
<p
class=
"show_btn"
>
<p
class=
"show_btn"
>
<a
@
click=
"showRow(item.id,item.btnShow)"
>
<a
@
click=
"showRow(item.id,item.btnShow)"
>
<Tooltip
content=
"所属程序列表"
>
<Tooltip
content=
"所属程序列表"
>
<Icon
v-if=
"
btnModal
"
type=
"ios-arrow-down"
/>
<Icon
v-if=
"
item.btnShow
"
type=
"ios-arrow-down"
/>
<Icon
v-else
type=
"ios-arrow-up"
/>
<Icon
v-else
type=
"ios-arrow-up"
/>
</Tooltip>
</Tooltip>
</a>
</a>
</p>
</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"
>
<Row
class=
"card_body02"
v-for=
"(li,index) in item.row"
:key=
"index"
>
<Col
span=
"8"
class=
"dispatch_li"
>
<Col
span=
"8"
class=
"dispatch_li"
>
<Checkbox
v-model=
"li.checked"
>
程序名:
{{
li
.
mdcNmae
}}
</Checkbox>
<Checkbox
v-model=
"li.checked"
>
程序名:
{{
li
.
mdcNmae
}}
</Checkbox>
...
@@ -46,7 +47,6 @@
...
@@ -46,7 +47,6 @@
<Col
span=
"8"
class=
"dispatch_li"
>
大小:
{{
li
.
size
}}
</Col>
<Col
span=
"8"
class=
"dispatch_li"
>
大小:
{{
li
.
size
}}
</Col>
<Col
span=
"8"
class=
"dispatch_li"
>
下载时间:
{{
li
.
downTime
}}
</Col>
<Col
span=
"8"
class=
"dispatch_li"
>
下载时间:
{{
li
.
downTime
}}
</Col>
</Row>
</Row>
<!--
{{
liOrderIds
}}
-->
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -100,7 +100,7 @@
...
@@ -100,7 +100,7 @@
</Modal>
</Modal>
<!-- 底部 -->
<!-- 底部 -->
<FooterToolbar
style=
"height:65px"
v-show=
"showOperate&&footerToolbar"
>
<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=
"xiaZai"
@
click=
"downFile"
>
下载
</Button>
<Button
class=
"span ml20"
type=
"primary"
v-if=
"beyong"
@
click=
"fileBeyong"
>
文本对比
</Button>
<Button
class=
"span ml20"
type=
"primary"
v-if=
"beyong"
@
click=
"fileBeyong"
>
文本对比
</Button>
<Button
@
click=
"footerToolbar=false"
>
取消
</Button>
<Button
@
click=
"footerToolbar=false"
>
取消
</Button>
...
@@ -200,21 +200,19 @@ export default {
...
@@ -200,21 +200,19 @@ export default {
{
{
mdcNmae
:
"00123_281"
,
mdcNmae
:
"00123_281"
,
id
:
101
,
id
:
101
,
size
:
"12
8
Mb"
,
size
:
"12
0
Mb"
,
downTime
:
"2020-05-26 10:30:26"
,
downTime
:
"2020-05-26 10:30:26"
,
checked
:
false
checked
:
false
},
},{
{
mdcNmae
:
"00123_282"
,
mdcNmae
:
"00123_282"
,
id
:
102
,
id
:
102
,
size
:
"1
28
Mb"
,
size
:
"1
33
Mb"
,
downTime
:
"2020-05-26 10:30:26"
,
downTime
:
"2020-05-26 10:30:26"
,
checked
:
false
checked
:
false
},
},{
{
mdcNmae
:
"00123_283"
,
mdcNmae
:
"00123_283"
,
id
:
103
,
id
:
103
,
size
:
"1
28
Mb"
,
size
:
"1
00
Mb"
,
downTime
:
"2020-05-26 10:30:26"
,
downTime
:
"2020-05-26 10:30:26"
,
checked
:
false
checked
:
false
}
}
...
@@ -230,25 +228,59 @@ export default {
...
@@ -230,25 +228,59 @@ export default {
id
:
2
,
id
:
2
,
row
:
[
row
:
[
{
{
mdcNmae
:
"00123_28
1
"
,
mdcNmae
:
"00123_28
4
"
,
id
:
201
,
id
:
201
,
size
:
"128Mb"
,
size
:
"128Mb"
,
downTime
:
"2020-05-26 10:30:26"
,
downTime
:
"2020-05-26 10:30:26"
,
checked
:
false
checked
:
false
},
},{
{
mdcNmae
:
"00123_285"
,
mdcNmae
:
"00123_282"
,
id
:
202
,
id
:
202
,
size
:
"1
2
8Mb"
,
size
:
"1
1
8Mb"
,
downTime
:
"2020-05-26 10:30:26"
,
downTime
:
"2020-05-26 10:30:26"
,
checked
:
false
checked
:
false
},
},{
{
mdcNmae
:
"00123_286"
,
mdcNmae
:
"00123_283"
,
id
:
203
,
id
:
203
,
size
:
"100Mb"
,
downTime
:
"2020-05-26 10:30:26"
,
checked
:
false
}
]
},{
dncCode
:
"19212_0665003"
,
dncName
:
"数控机床03"
,
dncUser
:
"刘蕾"
,
dncArea
:
"区域03"
,
dncStatue
:
"空闲"
,
checked
:
false
,
btnShow
:
false
,
id
:
3
,
row
:
[
{
mdcNmae
:
"00123_287"
,
id
:
201
,
size
:
"128Mb"
,
size
:
"128Mb"
,
downTime
:
"2020-05-26 10:30:26"
,
downTime
:
"2020-05-26 10:30:26"
,
checked
:
false
checked
:
false
},{
mdcNmae
:
"00123_288"
,
id
:
202
,
size
:
"110Mb"
,
downTime
:
"2020-05-26 10:30:26"
,
checked
:
false
},{
mdcNmae
:
"00123_289"
,
id
:
203
,
size
:
"130Mb"
,
downTime
:
"2020-05-26 10:30:26"
,
checked
:
false
},{
mdcNmae
:
"00123_290"
,
id
:
203
,
size
:
"135Mb"
,
downTime
:
"2020-05-26 10:30:26"
,
checked
:
false
}
}
]
]
}
}
...
@@ -292,7 +324,6 @@ export default {
...
@@ -292,7 +324,6 @@ export default {
endTime
:
"2020/05/26 "
endTime
:
"2020/05/26 "
}
}
],
],
btnModal
:
true
,
//箭头
listTitle
:
[],
//订单号列表
listTitle
:
[],
//订单号列表
newList
:
[],
//选中数据
newList
:
[],
//选中数据
chaiModal
:
false
,
//拆分弹框
chaiModal
:
false
,
//拆分弹框
...
@@ -386,14 +417,12 @@ export default {
...
@@ -386,14 +417,12 @@ export default {
this
.
footerToolbar
=
true
;
this
.
footerToolbar
=
true
;
},
},
// 切换箭头
// 切换箭头
showRow
(
id
,
btn
){
showRow
(
rowid
,
btn
){
// console.log(id)
this
.
listSheBei
.
map
(
u
=>
{
// let ss=!btnModal
if
(
u
.
id
==
rowid
){
// this.listSheBei.map(u=>{
u
.
btnShow
=
!
u
.
btnShow
}
// })
})
// console.log(btnModal = ss)
this
.
btnModal
=
!
this
.
btnModal
},
},
// 获取查询人员
// 获取查询人员
getselectuser
(
id
)
{
getselectuser
(
id
)
{
...
@@ -472,7 +501,7 @@ export default {
...
@@ -472,7 +501,7 @@ export default {
this
.
getUserInfoFn
();
this
.
getUserInfoFn
();
},
},
downFile
(){
downFile
(){
this
.
$Message
.
success
(
"下载文件"
)
this
.
$Message
.
success
(
"下载文件
中...
"
)
},
},
fileBeyong
(){
fileBeyong
(){
this
.
$Message
.
success
(
"对比文件"
)
this
.
$Message
.
success
(
"对比文件"
)
...
@@ -609,8 +638,13 @@ export default {
...
@@ -609,8 +638,13 @@ export default {
}
}
});
});
if
(
ids
.
length
>
0
)
{
if
(
ids
.
length
>
0
)
{
this
.
footerToolbar
=
true
;
// if(this.liOrderIds.length>0){
this
.
xiaZai
=
true
;
// this.$Message.info("设备和所属程序不能同时选择!")
// }else{
this
.
footerToolbar
=
true
;
this
.
xiaZai
=
true
;
this
.
beyong
=
false
;
// }
}
}
return
ids
;
return
ids
;
},
},
...
@@ -633,23 +667,35 @@ export default {
...
@@ -633,23 +667,35 @@ export default {
return
orders
;
return
orders
;
},
},
liOrderIds
()
{
liOrderIds
()
{
let
liOrderIds
=
[];
let
rowList
=
[]
;
let
rowList
;
let
liOrderIds
=
[]
;
this
.
listSheBei
.
map
(
u
=>
{
rowList
=
u
.
row
});
let
cardData
=
this
.
listSheBei
;
// rowList.map(item=>{ rowData.push(item) })
for
(
let
i
=
0
;
i
<
cardData
.
length
;
i
++
){
// rowList.map(tm=>{
cardData
[
i
].
row
.
map
(
u
=>
{
// if(tm.checked){
rowList
.
push
(
u
)
// liOrderIds.push(tm.id)
})
// }
}
// })
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;
// this.footerToolbar = true;
return
rowList
;
},
},
showOperate
()
{
showOperate
()
{
return
(
return
(
this
.
ids
.
length
>
0
&&
(
this
.
chengXuIds
.
length
>
0
)
(
this
.
ids
.
length
>
0
||
this
.
liOrderIds
.
length
>
0
)
&&
(
this
.
chengXuIds
.
length
>
0
)
// || this.liOrderIds.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