|
|
@@ -84,9 +84,8 @@
|
|
|
</template>
|
|
|
</template>
|
|
|
<template #slot-modify="{scope}">
|
|
|
+ <el-button type="text" @click="showItemFn(scope.row)" style="">名下花材</el-button>
|
|
|
<el-button type="text" @click="replaceCpFn(scope.row.id)" style="">修改</el-button>
|
|
|
- </template>
|
|
|
- <template #slot-pleaseAuth="{scope}">
|
|
|
<el-button type="text" @click="authFn(scope.row)" style="margin-right:15px;" v-if="scope.row.auth == 0">申请认证</el-button>
|
|
|
<el-button type="text" @click="authFn(scope.row)" style="margin-right:15px;" v-else>取消认证</el-button>
|
|
|
</template>
|
|
|
@@ -217,6 +216,12 @@ export default {
|
|
|
}, 1000)
|
|
|
})
|
|
|
},
|
|
|
+ showItemFn(data){
|
|
|
+ let query = {};
|
|
|
+ query.cpId = data.id
|
|
|
+ query.cpName = data.name
|
|
|
+ this.$router.push({ path: '/item/list', query });
|
|
|
+ },
|
|
|
replaceCpFn(id){
|
|
|
this.replaceCpPop = true
|
|
|
this.currentCpId = id
|
|
|
@@ -334,7 +339,7 @@ export default {
|
|
|
fixed: 'right',
|
|
|
label: '操作',
|
|
|
},
|
|
|
- layout: ['slot-modify','slot-pleaseAuth','slot-column-option'],
|
|
|
+ layout: ['slot-modify','slot-column-option'],
|
|
|
},
|
|
|
})
|
|
|
.set('pagination', {
|