|
@@ -34,6 +34,7 @@
|
|
|
|
|
|
|
|
<template #slot-item-list="{scope}">
|
|
<template #slot-item-list="{scope}">
|
|
|
<el-button type="text" @click.native.stop="getCpList(scope.row)">名下产品</el-button>
|
|
<el-button type="text" @click.native.stop="getCpList(scope.row)">名下产品</el-button>
|
|
|
|
|
+ <el-button type="text" @click.native.stop="del(scope.row)">删除</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</x-crud>
|
|
</x-crud>
|
|
|
</div>
|
|
</div>
|
|
@@ -68,6 +69,13 @@ export default {
|
|
|
handleClick(tab, e) {
|
|
handleClick(tab, e) {
|
|
|
this.app.refresh({ type: this.tabIndex });
|
|
this.app.refresh({ type: this.tabIndex });
|
|
|
},
|
|
},
|
|
|
|
|
+ del(info){
|
|
|
|
|
+ this.$confirm('确认删除?', '提示', {confirmButtonText: '确定',cancelButtonText: '取消',type: 'warning'}).then(() => {
|
|
|
|
|
+ this.$service.ptCpClass.delClass({id:info.id}).then(res=>{
|
|
|
|
|
+ this.app.refresh({ type: 0 })
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
getCpList(info) {
|
|
getCpList(info) {
|
|
|
let query = {classId:info.id,className:info.name}
|
|
let query = {classId:info.id,className:info.name}
|
|
|
this.$router.push({ path: '/cp/pt-list', query })
|
|
this.$router.push({ path: '/cp/pt-list', query })
|