Commit 50813e6f2c6f45408be1ed787c0161b517876957

Authored by Dunfa Jiang
1 parent 242ce5e6

fix:修改任务编辑判断逻辑

... ... @@ -117,7 +117,11 @@
117 117 >
118 118 <template #default="scope">
119 119 <el-tooltip content="编辑" placement="top">
120   - <el-button link type="primary" @click="editTask(scope.row)"
  120 + <el-button
  121 + link
  122 + type="primary"
  123 + :disabled="scope.row.status !== 'WAITING'"
  124 + @click="editTask(scope.row)"
121 125 >编辑</el-button
122 126 >
123 127 </el-tooltip>
... ... @@ -136,7 +140,7 @@
136 140 type="primary"
137 141 :disabled="
138 142 (scope.row.status !== 'WAITING' &&
139   - scope.row.status == 'ONGOING' )||
  143 + scope.row.status == 'ONGOING') ||
140 144 scope.row.status == 'PAUSE'
141 145 "
142 146 @click="handlePause(scope.row)"
... ... @@ -413,7 +417,9 @@ const submitFileForm = () => {
413 417 };
414 418
415 419 onMounted(() => {
416   - getList();
  420 + if (route.path === "/task-manage") {
  421 + getList();
  422 + }
417 423 });
418 424 </script>
419 425
... ...
Please register or login to post a comment