标签维护 编辑回显
This commit is contained in:
@@ -42,11 +42,11 @@ export default {
|
||||
})
|
||||
},
|
||||
// 标签列表
|
||||
labelNodeList (data) {
|
||||
labelNodeList (id) {
|
||||
return request({
|
||||
url: `api/tree-label/labelList/${data.id}`,
|
||||
url: `api/tree-label/labelList/${id}`,
|
||||
method: 'GET',
|
||||
params: data
|
||||
params: id
|
||||
})
|
||||
},
|
||||
labelUpdate(data){
|
||||
|
||||
@@ -74,10 +74,11 @@ export default {
|
||||
this.$api.report.labelList().then(res => {
|
||||
console.log('666',res);
|
||||
this.cascaderOptions=res.data
|
||||
})
|
||||
if (node && data) {
|
||||
this.$api.report.labelNodeList(data).then(res=>{
|
||||
let id =data.id
|
||||
this.$api.report.labelNodeList(id).then(res=>{
|
||||
this.form.nodeLabel=res.data
|
||||
this.$forceUpdate()
|
||||
})
|
||||
this.form.label = data.label
|
||||
this.form.orderNum = data.orderNum
|
||||
@@ -90,6 +91,8 @@ export default {
|
||||
this.form = {}
|
||||
this.$forceUpdate()
|
||||
}
|
||||
})
|
||||
|
||||
},
|
||||
cancel() {
|
||||
this.dialogVisible = false
|
||||
|
||||
Reference in New Issue
Block a user