标签管理模块接口对接
This commit is contained in:
@@ -153,7 +153,7 @@
|
||||
</el-tree>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<labelModalVue ref="labelModalVue"></labelModalVue>
|
||||
<labelModalVue ref="labelModalVue" @updateList="updateList"></labelModalVue>
|
||||
<!--报告上传-->
|
||||
<el-dialog :title="mode === 'modify' ? '报告编辑' : '报告上传'" :visible.sync="dialogReport" width="750px"
|
||||
:close-on-click-modal="false" :close-on-press-escape="false" modal-append-to-body append-to-body>
|
||||
@@ -457,11 +457,7 @@ export default {
|
||||
this.$refs.tree.filter(val);
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.$bus.$on('updateList',()=>{
|
||||
this.getTreeLabel()
|
||||
})
|
||||
},
|
||||
|
||||
methods: {
|
||||
init() {
|
||||
this.getTreeLabel()
|
||||
@@ -470,9 +466,14 @@ export default {
|
||||
this.reportDateList();
|
||||
this.sysUserList();
|
||||
},
|
||||
updateList(){
|
||||
this.$api.report.labelList().then(res => {
|
||||
this.treeData=res.data
|
||||
})
|
||||
this.$forceUpdate()
|
||||
},
|
||||
getTreeLabel(){
|
||||
this.$api.report.labelList().then(res => {
|
||||
console.log('5555',res);
|
||||
this.treeData=res.data
|
||||
})
|
||||
},
|
||||
@@ -494,6 +495,16 @@ export default {
|
||||
type: 'warning'
|
||||
})
|
||||
.then(_ => {
|
||||
this.$api.report.labelDeleteId(data).then(res=>{
|
||||
if(res.ok){
|
||||
this.$message({
|
||||
type:'success',
|
||||
message:'删除成功'
|
||||
})
|
||||
this.getTreeLabel()
|
||||
}
|
||||
})
|
||||
|
||||
done();
|
||||
})
|
||||
.catch(_ => { });
|
||||
|
||||
Reference in New Issue
Block a user