Commit 0ebf25b5 authored by kangzhenfei's avatar kangzhenfei

dnc

parent d6605f92
...@@ -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>
...@@ -38,7 +38,8 @@ ...@@ -38,7 +38,8 @@
</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,7 @@ ...@@ -46,7 +47,7 @@
<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}} --> <!-- !btnModal&&-->
</div> </div>
</div> </div>
</div> </div>
...@@ -100,7 +101,7 @@ ...@@ -100,7 +101,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>
...@@ -230,21 +231,21 @@ export default { ...@@ -230,21 +231,21 @@ export default {
id: 2, id: 2,
row: [ row: [
{ {
mdcNmae: "00123_281", mdcNmae: "00123_284",
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_282", mdcNmae: "00123_285",
id:202, id:202,
size: "128Mb", size: "128Mb",
downTime: "2020-05-26 10:30:26", downTime: "2020-05-26 10:30:26",
checked: false checked: false
}, },
{ {
mdcNmae: "00123_283", mdcNmae: "00123_286",
id:203, id:203,
size: "128Mb", size: "128Mb",
downTime: "2020-05-26 10:30:26", downTime: "2020-05-26 10:30:26",
...@@ -386,14 +387,14 @@ export default { ...@@ -386,14 +387,14 @@ 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) // console.log(btnModal = ss)
this.btnModal = !this.btnModal // this.btnModal = !this.btnModal
}, },
// 获取查询人员 // 获取查询人员
getselectuser(id) { getselectuser(id) {
...@@ -609,8 +610,13 @@ export default { ...@@ -609,8 +610,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 +639,35 @@ export default { ...@@ -633,23 +639,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
); );
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment