|
@@ -1005,11 +1005,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"},
|
|
{icon: 'el-icon-refresh', label: '同步', key: "sync"},
|
|
{icon: 'el-icon-refresh', label: '同步', key: "sync"},
|
|
|
|
|
|
],//树组件操作菜单
|
|
],//树组件操作菜单
|
|
@@ -1273,7 +1273,6 @@ export default {
|
|
this.treeTap = true
|
|
this.treeTap = true
|
|
},
|
|
},
|
|
deletetree (node) {//删除树
|
|
deletetree (node) {//删除树
|
|
- console.log(node);
|
|
|
|
let _that = this
|
|
let _that = this
|
|
this.$confirm('是否删除此数据', '提示', {
|
|
this.$confirm('是否删除此数据', '提示', {
|
|
distinguishCancelAndClose: true,
|
|
distinguishCancelAndClose: true,
|
|
@@ -1281,7 +1280,7 @@ export default {
|
|
cancelButtonText: '取消'
|
|
cancelButtonText: '取消'
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|
|
- this.remove(node.data.id).then(()=>{
|
|
|
|
|
|
+ this.remove(node.id).then(()=>{
|
|
_that.$refs.trees1.remove(node) //删除界面上的节点
|
|
_that.$refs.trees1.remove(node) //删除界面上的节点
|
|
}).catch(()=>{
|
|
}).catch(()=>{
|
|
|
|
|