LAPTOP-16IUEB3P\Lenovo hace 2 años
padre
commit
e2221c90de
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      src/views/workOrder/index.vue

+ 5 - 1
src/views/workOrder/index.vue

@@ -183,12 +183,16 @@
       },
       // 下达
       toRelease(row) {
+		this.loading = true
         releaseWorkOrder(row.id).then((res) => {
 			if(res){
 				this.$message.success('成功');
 				this.reload();
 			}
-        });
+			this.loading = false
+        }).catch(()=>{
+			 this.loading = false
+		})
       },
       /* 刷新表格 */
       reload(where) {