c617ba60 by lxs

分类分级任务bug修改

1 parent 1ecb2aea
......@@ -361,6 +361,11 @@
color: #BDBDBD;
cursor: not-allowed;
}
&.is-regular {
color: var(--el-color-regular);
cursor: auto;
}
}
// 表格样式
......
......@@ -321,7 +321,7 @@ onMounted(() => {
<!-- {{ scope.row[item.field] }} -->
</template>
<template #default="scope" v-else-if="item.type == 'text_btn'">
<span v-if="scope.row[item.field] != null" :class="item.class + ' text_btn'"
<span class="text_btn" v-if="scope.row[item.field] != null" :class="[item.class, scope.row.cellClass]"
@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 })"
v-preReClick>{{ item.getName ? item.getName(scope) : scope.row[item.field]
}}</span>
......
......@@ -34,14 +34,8 @@ const tableInfo = ref({
{ label: "序号", type: "index", width: 56, align: "center", fixed: "left" },
{ label: "任务名称", field: "taskName", width: 96 },
{
label: "目录名称", field: "cgDirName", width: 120, type: "text_btn", columClass: 'text_btn', click: (scope) => {
if(scope.row.confirmCnt > 0){
ElMessage.warning('请先进行任务确认');
return
}
router.push({
name: "classifyGradeCatalogue",
});
label: "目录名称", field: "cgDirName", width: 120, type: "text_btn", click: (scope) => {
scope.row.confirmCnt > 0 && router.push({ name: "classifyGradeCatalogue", });
}
},
{
......@@ -102,7 +96,18 @@ const getTableData = () => {
})
).then((res: any) => {
loading.value = false;
tableInfo.value.data = res.data.records || [];
if (res.code == proxy.$passCode) {
let data = res.data.records || [];
data.map(item => {
item.cellClass = item.confirmCnt>0?'':'is-regular'
})
tableInfo.value.data = data;
} else {
ElMessage({
type: "error",
message: res.msg,
});
}
})
.catch((res) => {
loading.value = false;
......
......@@ -878,7 +878,7 @@ onMounted(() => {
<div class="desc_group">
<div class="desc_item">
<span class="desc_label">目录名称:</span>
<span class="desc_value text_btn" @click="btnClick({ value: 'path' })">{{ taskDetail.cgDirName || '--'
<span class="desc_value">{{ taskDetail.cgDirName || '--'
}}</span>
</div>
<div class="desc_item">
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!