zhuhao 2 年之前
父节点
当前提交
0fa321d9c7
共有 1 个文件被更改,包括 21 次插入4 次删除
  1. 21 4
      RMS-FrontEnd/src/views/task/MyHandle.vue

+ 21 - 4
RMS-FrontEnd/src/views/task/MyHandle.vue

@@ -228,7 +228,7 @@
 	// 	'0':'未完成',
 	// 	'1':'完成'
 	//   },
-      coordination:true,
+      coordination: true,
 	  };
 	},
 	watch:{
@@ -291,7 +291,8 @@
 									}
 								}
 								
-							})
+              })
+              
 						// }else{
 						// 	setTimeout(() => {
 						// 		if(item.taskStatus == 1){
@@ -301,7 +302,7 @@
 						// 		}
 						// 	}, 500)
 						// }
-						})
+            })
 					}else{
 						this.tableData = data.data.records
 						this.total = data.data.total
@@ -319,7 +320,20 @@
 					
 				// }
 			// })
-		},
+    },
+    // 超时提醒
+    // remind({ row, column, rowIndex, columnIndex }) {
+    //   if (this.tableData[rowIndex].endTime==undefined) {
+       
+    //   }
+    //   let b = Date.parse(new Date)
+    //   let a = Date.parse(this.tableData[rowIndex].endTime)
+    //   console.log(a,b,this.tableData[rowIndex].endTime);
+    //   if ((a - b) < 8.64e7) {
+    //       console.log("超时",a,b);
+    //       return 'red'
+    //   } 
+    // },
 	  
 	  //切换按钮
 	  onChangeFamily(key) {
@@ -469,4 +483,7 @@
   </script>
   
 <style lang="scss" scoped>
+.el-table .red{
+    background: #df543e;
+  }
   </style>