|
|
@@ -29,7 +29,28 @@
|
|
|
|
|
|
<template #table-column-cpName="{ scope }">
|
|
|
<div v-for="(item, index) in scope.row.cpList" :key="index">
|
|
|
- {{item.name}}
|
|
|
+ <i class="el-icon-success" size="medium" v-if="item.auth == 1" style="margin-right:2px;"></i>{{item.name}}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template #table-column-delStatus="{scope}">
|
|
|
+ <div v-if="scope.row.delStatus==0">
|
|
|
+ <div v-if="scope.row.auth == 1" style="color:green;font-weight:bold;"><i class="el-icon-success" size="medium" style="margin-right:2px;"></i>已认证</div>
|
|
|
+ </div>
|
|
|
+ <div v-else style="color:red;font-weight:bold;"><i class="el-icon-delete-solid" size="medium"></i>已删除</div>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template #table-column-name="{scope}">
|
|
|
+ <div v-if="scope.row.delStatus==0">
|
|
|
+ <div v-if="scope.row.auth==1" style="color:green;font-weight:bold;">
|
|
|
+ {{scope.row.name}}
|
|
|
+ </div>
|
|
|
+ <div v-else>
|
|
|
+ {{scope.row.name}}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div v-else style="color:#CCCCCC;">
|
|
|
+ {{scope.row.name}}
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -69,7 +90,7 @@
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
<el-dropdown-item command="toAuth">申请认证</el-dropdown-item>
|
|
|
<el-dropdown-item command="cancelAuth">取消认证</el-dropdown-item>
|
|
|
- <el-dropdown-item command="delCpRelate">删除花材</el-dropdown-item>
|
|
|
+ <el-dropdown-item command="delCpRelate">删除关联</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
|
</template>
|
|
|
@@ -328,11 +349,21 @@ export default {
|
|
|
}
|
|
|
//申请认证
|
|
|
if(cmd == 'toAuth'){
|
|
|
-
|
|
|
+ this.$confirm('确认申请?', '提示', {confirmButtonText: '确定',cancelButtonText: '取消',type: 'warning'}).then(() => {
|
|
|
+ this.$service.ptItem.batchAuth({ids:JSON.stringify(this.selectedIds),auth:1}).then((res) => {
|
|
|
+ that.$message.success('操作成功')
|
|
|
+ that.app.refresh({ classId: this.classId,cpId:this.cpId,cpClassStyle:this.cpClassStyle })
|
|
|
+ })
|
|
|
+ })
|
|
|
}
|
|
|
- //申请认证
|
|
|
+ //取消认证
|
|
|
if(cmd == 'cancelAuth'){
|
|
|
-
|
|
|
+ this.$confirm('确认取消?', '提示', {confirmButtonText: '确定',cancelButtonText: '取消',type: 'warning'}).then(() => {
|
|
|
+ this.$service.ptItem.batchAuth({ids:JSON.stringify(this.selectedIds),auth:0}).then((res) => {
|
|
|
+ that.$message.success('操作成功')
|
|
|
+ that.app.refresh({ classId: this.classId,cpId:this.cpId,cpClassStyle:this.cpClassStyle })
|
|
|
+ })
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
changeCpClassStyle(e){
|
|
|
@@ -539,6 +570,12 @@ export default {
|
|
|
align: 'center',
|
|
|
minWidth: 100,
|
|
|
},
|
|
|
+ {
|
|
|
+ prop: 'delStatus',
|
|
|
+ label: '状态',
|
|
|
+ align: 'center',
|
|
|
+ minWidth: 90,
|
|
|
+ },
|
|
|
{
|
|
|
prop: 'inTurn',
|
|
|
label: '排序',
|