|
@@ -1020,11 +1020,11 @@ export default {
|
|
|
|
|
|
treeSelectId:'',//选中的划分树
|
|
treeSelectId:'',//选中的划分树
|
|
menusData:[
|
|
menusData:[
|
|
- {icon: 'el-icon-s-promotion', label: '新增', key: "add"},
|
|
|
|
|
|
+ {icon: 'el-icon-plus', label: '新增', key: "add"},
|
|
{icon: 'el-icon-s-promotion', label: '编辑', key: "edit"},
|
|
{icon: 'el-icon-s-promotion', label: '编辑', key: "edit"},
|
|
{icon: 'el-icon-sort', label: '排序', key: "sort"},
|
|
{icon: 'el-icon-sort', label: '排序', key: "sort"},
|
|
|
|
|
|
- {icon: 'el-icon-s-promotion', label: '删除', key: "del"},
|
|
|
|
|
|
+ {icon: 'el-icon-delete', label: '删除', key: "del"},
|
|
|
|
|
|
],//树组件操作菜单
|
|
],//树组件操作菜单
|
|
menuvisible:false,
|
|
menuvisible:false,
|
|
@@ -1304,7 +1304,8 @@ export default {
|
|
cancelButtonText: '取消'
|
|
cancelButtonText: '取消'
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|
|
- this.remove(node.data.id).then(()=>{
|
|
|
|
|
|
+ console.log(1111111);
|
|
|
|
+ this.remove(node.id).then(()=>{
|
|
_that.$refs.trees1.remove(node) //删除界面上的节点
|
|
_that.$refs.trees1.remove(node) //删除界面上的节点
|
|
}).catch(()=>{
|
|
}).catch(()=>{
|
|
|
|
|
|
@@ -1316,6 +1317,7 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
async remove (id) {//删除接口
|
|
async remove (id) {//删除接口
|
|
|
|
+ console.log('删除');
|
|
const { data: res } = await remove({ id })
|
|
const { data: res } = await remove({ id })
|
|
console.log(res);
|
|
console.log(res);
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|