分类分级任务bug修改
Showing
4 changed files
with
22 additions
and
12 deletions
| ... | @@ -361,6 +361,11 @@ | ... | @@ -361,6 +361,11 @@ |
| 361 | color: #BDBDBD; | 361 | color: #BDBDBD; |
| 362 | cursor: not-allowed; | 362 | cursor: not-allowed; |
| 363 | } | 363 | } |
| 364 | |||
| 365 | &.is-regular { | ||
| 366 | color: var(--el-color-regular); | ||
| 367 | cursor: auto; | ||
| 368 | } | ||
| 364 | } | 369 | } |
| 365 | 370 | ||
| 366 | // 表格样式 | 371 | // 表格样式 |
| ... | @@ -1176,4 +1181,4 @@ | ... | @@ -1176,4 +1181,4 @@ |
| 1176 | img { | 1181 | img { |
| 1177 | max-width: 100%; | 1182 | max-width: 100%; |
| 1178 | } | 1183 | } |
| 1179 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1184 | } | ... | ... |
| ... | @@ -321,7 +321,7 @@ onMounted(() => { | ... | @@ -321,7 +321,7 @@ onMounted(() => { |
| 321 | <!-- {{ scope.row[item.field] }} --> | 321 | <!-- {{ scope.row[item.field] }} --> |
| 322 | </template> | 322 | </template> |
| 323 | <template #default="scope" v-else-if="item.type == 'text_btn'"> | 323 | <template #default="scope" v-else-if="item.type == 'text_btn'"> |
| 324 | <span v-if="scope.row[item.field] != null" :class="item.class + ' text_btn'" | 324 | <span class="text_btn" v-if="scope.row[item.field] != null" :class="[item.class, scope.row.cellClass]" |
| 325 | @click="(item.click && !item.disabled && !scope.row.disabled) ? item.click(scope, { label: item.label, value: item.value }) : handleClick(scope, { label: item.label, value: item.value })" | 325 | @click="(item.click && !item.disabled && !scope.row.disabled) ? item.click(scope, { label: item.label, value: item.value }) : handleClick(scope, { label: item.label, value: item.value })" |
| 326 | v-preReClick>{{ item.getName ? item.getName(scope) : scope.row[item.field] | 326 | v-preReClick>{{ item.getName ? item.getName(scope) : scope.row[item.field] |
| 327 | }}</span> | 327 | }}</span> | ... | ... |
| ... | @@ -34,14 +34,8 @@ const tableInfo = ref({ | ... | @@ -34,14 +34,8 @@ const tableInfo = ref({ |
| 34 | { label: "序号", type: "index", width: 56, align: "center", fixed: "left" }, | 34 | { label: "序号", type: "index", width: 56, align: "center", fixed: "left" }, |
| 35 | { label: "任务名称", field: "taskName", width: 96 }, | 35 | { label: "任务名称", field: "taskName", width: 96 }, |
| 36 | { | 36 | { |
| 37 | label: "目录名称", field: "cgDirName", width: 120, type: "text_btn", columClass: 'text_btn', click: (scope) => { | 37 | label: "目录名称", field: "cgDirName", width: 120, type: "text_btn", click: (scope) => { |
| 38 | if(scope.row.confirmCnt > 0){ | 38 | scope.row.confirmCnt > 0 && router.push({ name: "classifyGradeCatalogue", }); |
| 39 | ElMessage.warning('请先进行任务确认'); | ||
| 40 | return | ||
| 41 | } | ||
| 42 | router.push({ | ||
| 43 | name: "classifyGradeCatalogue", | ||
| 44 | }); | ||
| 45 | } | 39 | } |
| 46 | }, | 40 | }, |
| 47 | { | 41 | { |
| ... | @@ -102,7 +96,18 @@ const getTableData = () => { | ... | @@ -102,7 +96,18 @@ const getTableData = () => { |
| 102 | }) | 96 | }) |
| 103 | ).then((res: any) => { | 97 | ).then((res: any) => { |
| 104 | loading.value = false; | 98 | loading.value = false; |
| 105 | tableInfo.value.data = res.data.records || []; | 99 | if (res.code == proxy.$passCode) { |
| 100 | let data = res.data.records || []; | ||
| 101 | data.map(item => { | ||
| 102 | item.cellClass = item.confirmCnt>0?'':'is-regular' | ||
| 103 | }) | ||
| 104 | tableInfo.value.data = data; | ||
| 105 | } else { | ||
| 106 | ElMessage({ | ||
| 107 | type: "error", | ||
| 108 | message: res.msg, | ||
| 109 | }); | ||
| 110 | } | ||
| 106 | }) | 111 | }) |
| 107 | .catch((res) => { | 112 | .catch((res) => { |
| 108 | loading.value = false; | 113 | loading.value = false; | ... | ... |
| ... | @@ -878,7 +878,7 @@ onMounted(() => { | ... | @@ -878,7 +878,7 @@ onMounted(() => { |
| 878 | <div class="desc_group"> | 878 | <div class="desc_group"> |
| 879 | <div class="desc_item"> | 879 | <div class="desc_item"> |
| 880 | <span class="desc_label">目录名称:</span> | 880 | <span class="desc_label">目录名称:</span> |
| 881 | <span class="desc_value text_btn" @click="btnClick({ value: 'path' })">{{ taskDetail.cgDirName || '--' | 881 | <span class="desc_value">{{ taskDetail.cgDirName || '--' |
| 882 | }}</span> | 882 | }}</span> |
| 883 | </div> | 883 | </div> |
| 884 | <div class="desc_item"> | 884 | <div class="desc_item"> | ... | ... |
-
Please register or sign in to post a comment