zhangchong 2 år sedan
förälder
incheckning
b70f3b7be0
2 ändrade filer med 8 tillägg och 5 borttagningar
  1. 1 0
      src/theme/element.scss
  2. 7 5
      src/views/knowledge/process/index.vue

+ 1 - 0
src/theme/element.scss

@@ -271,6 +271,7 @@
 }
 .el-table-v2__header-cell{
 	background-color: var(--hotline-bg-main-color) !important;
+	color: var(--hotline-color-text-main);
 }
 /* scrollbar
 ------------------------------- */

+ 7 - 5
src/views/knowledge/process/index.vue

@@ -38,10 +38,12 @@
 				<el-table-column prop="title" label="标题" show-overflow-tooltip></el-table-column>
 				<el-table-column prop="knowledgeTypeName" label="类型" show-overflow-tooltip></el-table-column>
 				<el-table-column prop="creationName" label="创建人" show-overflow-tooltip></el-table-column>
-				<el-table-column prop="createBMName" label="创建部门" show-overflow-tooltip></el-table-column>
+				<el-table-column prop="createBMName" label="创建部门" show-overflow-tooltip width="170"></el-table-column>
 				<el-table-column label="状态" show-overflow-tooltip>
 					<template #default="{ row }">
-						<span>{{ row.eKnowledgeWorkFlowStatus }}</span>
+						<span v-if="row.workFlowApplyStatus === 1" style="color: var(--el-color-primary)">{{ row.workFlowApplyStatusName }}</span>
+						<span v-if="row.workFlowApplyStatus === 2" style="color: var(--el-color-success)">{{ row.workFlowApplyStatusName }}</span>
+						<span v-if="row.workFlowApplyStatus === 3" style="color: var(--el-color-danger)">{{ row.workFlowApplyStatusName }}</span>
 					</template>
 				</el-table-column>
 				<el-table-column prop="toNo" label="创建时间" show-overflow-tooltip width="170">
@@ -61,9 +63,9 @@
 				</el-table-column>
 				<el-table-column label="操作" width="160" fixed="right" align="center">
 					<template #default="{ row }">
-						<el-button link type="primary" @click="onPreview(row)" title="预览" v-if="[1, 2, 3].includes(row.status)"> 预览 </el-button>
-						<el-button link type="primary" @click="onProcess(row)" title="审核" v-if="[1].includes(row.status) && row.canHandle"> 审核 </el-button>
-						<el-button link type="info" @click="onRecord(row)" title="查看审核记录" v-if="[2, 3].includes(row.status)">查看审核记录 </el-button>
+						<el-button link type="primary" @click="onPreview(row)" title="预览" v-if="[1, 2, 3].includes(row.workFlowApplyStatus)"> 预览 </el-button>
+						<el-button link type="primary" @click="onProcess(row)" title="审核" v-if="[1].includes(row.workFlowApplyStatus) && row.canHandle"> 审核 </el-button>
+						<el-button link type="info" @click="onRecord(row)" title="查看审核记录" v-if="[2, 3].includes(row.workFlowApplyStatus)">查看审核记录 </el-button>
 					</template>
 				</el-table-column>
 				<template #empty>