src/views/task/task.vue
@@ -102,6 +102,7 @@ refreshBtn:false, columnBtn:false, searchShowBtn:false, menuWidth:300, column: [ { label: "任务名称", @@ -273,6 +274,7 @@ viewBtn: true, selection: true, dialogClickModal: false, emptyBtn:false, column: [ { label: "任务名称", @@ -678,6 +680,14 @@ }); }, rowUpdate(row, index, done, loading) { if(row.stockNum<0){ this.$message({ type: "warning", message: "农资量不能为负数!" }); done(); return } update(row).then(() => { this.onLoad(this.page); this.$message({