qinzhipeng_v пре 5 година
родитељ
комит
f76c950d9a
1 измењених фајлова са 13 додато и 0 уклоњено
  1. 13 0
      src/views/workbench/team/components/taskList.vue

+ 13 - 0
src/views/workbench/team/components/taskList.vue

@@ -141,6 +141,7 @@ export default {
   data() {
     return {
       imgUrl: imgUrl,
+      tableList: [], // 排期bable验证
       showTaskDialog: false, // 状态弹窗
       all_task: [], // 任务列表
       allStatus: [], // 任务所有状态
@@ -263,6 +264,8 @@ export default {
       }
     },
     handleSelectionChange(val) { // 任务列表删选操作
+      this.tableList = []
+      this.tableList = val
       val.length > 0 ? this.showHeader = false : this.showHeader = true
       this.curcentChecked = val.length
       this.curcentList = val
@@ -288,6 +291,16 @@ export default {
       }
     },
     addSechedule() { // 添加排期
+      const taskA = []
+      this.tableList.map(item => {
+        if (item.isScheduleLocked === 1) {
+          taskA.push(item.taskIdSting)
+        }
+      })
+      if (taskA.length !== 0) {
+        this.$message({ message: '任务 ' + taskA + ' 的排期已锁定,请先解锁排期后再添加排期', type: 'warning', offset: 150 })
+        return
+      }
       this.visibleSchedule = true
       this.selectTaskList = this.curcentList
     },