|
@@ -326,7 +326,9 @@
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="状态" align="center" prop="isShow" >
|
|
<el-table-column label="状态" align="center" prop="isShow" >
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-tag prop="status" v-for="(item, index) in isShowOptions" v-if="scope.row.isShow==item.dictValue">{{item.dictLabel}}</el-tag>
|
|
|
|
|
|
|
+ <el-tag :type="getStatusType(scope.row)" prop="status">
|
|
|
|
|
+ {{ getStatusText(scope.row) }}
|
|
|
|
|
+ </el-tag>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
@@ -1205,6 +1207,23 @@ export default {
|
|
|
this.getList();
|
|
this.getList();
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ getStatusText(row) {
|
|
|
|
|
+ console.log()
|
|
|
|
|
+ if (row.isAudit == 0) {
|
|
|
|
|
+ return '待审核';
|
|
|
|
|
+ }
|
|
|
|
|
+ const option = this.isShowOptions.find(item => item.dictValue == row.isShow);
|
|
|
|
|
+ return option ? option.dictLabel : '未知状态';
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ getStatusType(row) {
|
|
|
|
|
+ console.log(row)
|
|
|
|
|
+ if (row.isAudit == 0) {
|
|
|
|
|
+ return 'warning';
|
|
|
|
|
+ }
|
|
|
|
|
+ // 根据你的业务逻辑返回不同的类型,如:success, danger, info等
|
|
|
|
|
+ return row.isShow == 1 ? 'success' : 'info';
|
|
|
|
|
+ },
|
|
|
cancel1(){
|
|
cancel1(){
|
|
|
this.open1 = false;
|
|
this.open1 = false;
|
|
|
},
|
|
},
|