浏览代码

查看委托详情双击限制

wyh 1 年之前
父节点
当前提交
4547ad29fd
共有 1 个文件被更改,包括 14 次插入10 次删除
  1. 14 10
      itdmWeb/src/views/module-iTDM/itdmGongdanMaster/uGantt.vue

+ 14 - 10
itdmWeb/src/views/module-iTDM/itdmGongdanMaster/uGantt.vue

@@ -543,16 +543,20 @@ export default {
       })
     },
     // 双击事件
-    rowDblclick(current){
-      console.log(current)
-      this.openRl = 1
-      this.currentDbEdit = current
-      this.title = this.currentDbEdit.sampleName + '-' + this.currentDbEdit.testItems + '-' + this.currentDbEdit.pm
-      // 根据开始时间结束时间计算持续时间
-      this.currentDbEdit.lastTime = (new Date(this.currentDbEdit.end_date).getTime() - new Date(this.currentDbEdit.start_date).getTime()) / (1000 * 60 * 60 * 24)+1
-      // this.currentIndex = this.taskLists.findIndex(res=>res.id === current.id)
-      // this.currentDbEdit = this.taskLists[this.currentIndex]
-      this.dialogVisible = true
+    rowDblclick(current, column){
+      console.log(current, column)
+      if (column.label == '委托编号') {
+        return
+      } else {
+        this.openRl = 1
+        this.currentDbEdit = current
+        this.title = this.currentDbEdit.sampleName + '-' + this.currentDbEdit.testItems + '-' + this.currentDbEdit.pm
+        // 根据开始时间结束时间计算持续时间
+        this.currentDbEdit.lastTime = (new Date(this.currentDbEdit.end_date).getTime() - new Date(this.currentDbEdit.start_date).getTime()) / (1000 * 60 * 60 * 24)+1
+        // this.currentIndex = this.taskLists.findIndex(res=>res.id === current.id)
+        // this.currentDbEdit = this.taskLists[this.currentIndex]
+        this.dialogVisible = true
+      }
     },
     // 监听开始时间得到结束时间
     dataChange(value){