modified: src/views/plan/productionschedul/index.vue
| | |
| | | <basic-container> |
| | | <el-row> |
| | | <el-col :span="14" style="height:100vh"> |
| | | <el-row style="height:50%;padding:0px 10px;"> |
| | | <el-row style="height:70%;padding:0px 10px;"> |
| | | <el-col :span="24"> |
| | | <div> |
| | | <span style="position: relative;top:40px;color:#E84738">未完成</span> |
| | |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row style="height:50%;padding:0px 10px;"> |
| | | <el-row style="height:30%;padding:0px 10px;"> |
| | | <el-col :span="24"> |
| | | <div> |
| | | <span style="position: relative;top:0px;color:#34BD66">已完成</span> |
| | |
| | | <el-timeline> |
| | | <el-timeline-item |
| | | placement="top" |
| | | :color="(item.planTime||item.actualTime) ? '#34BD66' :null" |
| | | :icon="(item.planTime||item.actualTime) ? 'el-icon-circle-check' :null" |
| | | v-for="(item, index) in scheduleList" |
| | | :key="index" |
| | | :timestamp="item.title"> |
| | |
| | | prop:'id', |
| | | order:'descending' |
| | | }, |
| | | height: 230, |
| | | height: 360, |
| | | selection: true, |
| | | columnBtn: false, |
| | | index: true, |
| | |
| | | prop:'id', |
| | | order:'descending' |
| | | }, |
| | | height: 250, |
| | | height: 150, |
| | | selection: true, |
| | | columnBtn: false, |
| | | index: true, |
| | |
| | | } |
| | | }, |
| | | selectionRow(val){ |
| | | // if (val.length > 1) { |
| | | // const preVal = val.shift(); |
| | | // this.$refs.crud.toggleRowSelection(preVal, false); |
| | | // } |
| | | // else{ |
| | | // this.scheduleList=[] |
| | | // } |
| | | if (val.length > 1) { |
| | | const preVal = val.shift(); |
| | | this.$refs.crud.toggleRowSelection(preVal, false); |
| | | } |
| | | else{ |
| | | this.scheduleList=[] |
| | | } |
| | | this.multipleSelection = val |
| | | // this.getScheduleById(val[0].id) |
| | | this.getScheduleById(val[0].mid) |
| | | }, |
| | | selectionFinishedRow(val){ |
| | | console.log(val); |
| | | if (val.length > 1) { |
| | | const preVal = val.shift(); |
| | | this.$refs.finished.toggleRowSelection(preVal, false); |