|
|
|
@ -75,8 +75,8 @@
|
|
|
|
|
>
|
|
|
|
|
<el-table-column type="expand">
|
|
|
|
|
<template slot-scope="props">
|
|
|
|
|
<div v-for="i in 5">
|
|
|
|
|
<div style="display: inline-block;width: 50%;text-align: center">{{ '名称' }}</div>
|
|
|
|
|
<div v-for="i in drawingList">
|
|
|
|
|
<div style="display: inline-block;width: 50%;text-align: center;color:#000">{{ i.attachName }}</div>
|
|
|
|
|
<div style="display: inline-block;width: 50%;text-align: center">
|
|
|
|
|
<el-button type="text">开始</el-button>
|
|
|
|
|
</div>
|
|
|
|
@ -256,9 +256,17 @@ export default {
|
|
|
|
|
form: {},
|
|
|
|
|
vw: (document.documentElement.clientWidth || document.body.clientWidth) / 100,
|
|
|
|
|
tableData: [],
|
|
|
|
|
drawingList: []
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
async mounted() {
|
|
|
|
|
setInterval(()=>{
|
|
|
|
|
this.$notify.info({
|
|
|
|
|
title: '通知',
|
|
|
|
|
message: '通知公告',
|
|
|
|
|
duration: 0
|
|
|
|
|
});
|
|
|
|
|
},60*1000)
|
|
|
|
|
const data = await getProductPlans({pageNum: 1, pageSize: 5}).then(e => {
|
|
|
|
|
this.tableData = e.rows
|
|
|
|
|
this.totalNum1 = Math.ceil(e.total / 5)
|
|
|
|
@ -459,13 +467,23 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
async expandChange(e, rows) {
|
|
|
|
|
console.log('rows',rows)
|
|
|
|
|
if (rows.length === 0) return
|
|
|
|
|
console.log(e)
|
|
|
|
|
if (rows.length > 1) {
|
|
|
|
|
this.$refs.table1.toggleRowExpansion(rows[0], false)
|
|
|
|
|
}
|
|
|
|
|
const data = await getPlanDrawings({planId: e.planId, attachId: e.attachId})
|
|
|
|
|
console.log(data)
|
|
|
|
|
this.tableData = this.tableData.map(v=>{
|
|
|
|
|
if(v.planId === e.planId){
|
|
|
|
|
return {
|
|
|
|
|
...v,
|
|
|
|
|
children:data?.data || []
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
return v
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// 设置图表信息
|
|
|
|
|
getInfo(e) {
|
|
|
|
|