Kaynağa Gözat

控制操作按钮只在待审批出现

hubin 1 yıl önce
ebeveyn
işleme
c770f489de
1 değiştirilmiş dosya ile 15 ekleme ve 13 silme
  1. 15 13
      src/views/flow/test/business.vue

+ 15 - 13
src/views/flow/test/business.vue

@@ -29,24 +29,26 @@
 				<template #statusSlot="scope">
 					<el-tag v-if="scope.row.status === 1" type="warning">审批中</el-tag>
 					<el-tag v-else-if="scope.row.status === 2" type="success">已通过</el-tag>
-					<el-tag v-if="scope.row.status === 3" type="danger">已拒绝</el-tag>
+					<el-tag v-else-if="scope.row.status === 3" type="danger">已拒绝</el-tag>
 					<el-tag v-else type="info">待审批</el-tag>
 				</template>
 
 				<template #actionSlot="scope">
-					<el-tooltip content="提交审批" placement="bottom" effect="light">
-						<el-icon class="ibt0" @click="submitProcessEv(scope.row)">
-							<Promotion />
-						</el-icon>
-					</el-tooltip>
-					<el-divider direction="vertical"></el-divider>
-					<el-popconfirm title="确定删除吗?" @confirm="table_del(scope.row)">
-						<template #reference>
-							<el-icon class="ibt0">
-								<Delete />
+					<div v-if="scope.row.status === 0">
+						<el-tooltip content="提交审批" placement="bottom" effect="light">
+							<el-icon class="ibt0" @click="submitProcessEv(scope.row)">
+								<Promotion />
 							</el-icon>
-						</template>
-					</el-popconfirm>
+						</el-tooltip>
+						<el-divider direction="vertical"></el-divider>
+						<el-popconfirm title="确定删除吗?" @confirm="table_del(scope.row)">
+							<template #reference>
+								<el-icon class="ibt0">
+									<Delete />
+								</el-icon>
+							</template>
+						</el-popconfirm>
+					</div>
 				</template>
 			</LeTable>
 		</div>