|
@@ -88,6 +88,10 @@
|
|
|
<el-button type="text" @click="replaceCpFn(scope.row.id)" style="margin-right:20px;">修改</el-button>
|
|
<el-button type="text" @click="replaceCpFn(scope.row.id)" style="margin-right:20px;">修改</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
|
|
+ <template #slot-pleaseAuth="{scope}">
|
|
|
|
|
+ <el-button type="text" @click="authFn(scope.row.id)" style="margin-right:20px;">认证</el-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
</x-crud>
|
|
</x-crud>
|
|
|
|
|
|
|
|
<el-dialog :title="`${currentCpId == 0 ? '添加' : '修改'}产品`" :visible.sync="replaceCpPop" :close-on-click-modal="false" width="500px" >
|
|
<el-dialog :title="`${currentCpId == 0 ? '添加' : '修改'}产品`" :visible.sync="replaceCpPop" :close-on-click-modal="false" width="500px" >
|
|
@@ -205,6 +209,11 @@ export default {
|
|
|
this.$refs['replaceForm'].resetFields();
|
|
this.$refs['replaceForm'].resetFields();
|
|
|
this.replaceCpPop = false;
|
|
this.replaceCpPop = false;
|
|
|
},
|
|
},
|
|
|
|
|
+ authFn(id){
|
|
|
|
|
+ this.$service.ptCp.pleaseAuth({id:id}).then(res=>{
|
|
|
|
|
+ this.$message.success('操作成功')
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
replaceCpFn(id){
|
|
replaceCpFn(id){
|
|
|
this.replaceCpPop = true
|
|
this.replaceCpPop = true
|
|
|
this.currentCpId = id
|
|
this.currentCpId = id
|
|
@@ -312,12 +321,12 @@ export default {
|
|
|
op: {
|
|
op: {
|
|
|
visible: true,
|
|
visible: true,
|
|
|
props: {
|
|
props: {
|
|
|
- width: 200,
|
|
|
|
|
|
|
+ width: 250,
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
fixed: 'right',
|
|
fixed: 'right',
|
|
|
label: '操作',
|
|
label: '操作',
|
|
|
},
|
|
},
|
|
|
- layout: ['slot-modify','slot-column-option'],
|
|
|
|
|
|
|
+ layout: ['slot-modify','slot-pleaseAuth','slot-column-option'],
|
|
|
},
|
|
},
|
|
|
})
|
|
})
|
|
|
.set('pagination', {
|
|
.set('pagination', {
|