接口对接

This commit is contained in:
yuekuo
2023-04-19 14:44:58 +08:00
parent 6a02884fb4
commit 7856fedaed
3 changed files with 59 additions and 39 deletions
+24 -12
View File
@@ -139,14 +139,14 @@
<el-button type="primary" class="btn" @click="add">新增</el-button>
</div>
<div class="tree">
<el-tree class="filter-tree" :data="data" default-expand-all :filter-node-method="filterNode" ref="tree">
<el-tree class="filter-tree" :data="treeData" default-expand-all :filter-node-method="filterNode" ref="tree">
<span class="custom-tree-node" slot-scope="{ node,data}">
<span>{{ node.label }}</span>
<span>
<!-- <el-button type="text" @click.stop="add">新建</el-button> -->
<el-button type="text" v-if="data.label != '根节点'"
<el-button type="text" v-if="data.parentId != '0'"
@click.stop="update(node, data)">编辑</el-button>
<el-button type="text" v-if="data.label != '根节点'"
<el-button type="text" v-if="data.parentId != '0'"
@click.stop="deleteNode(node, data)">删除</el-button>
</span>
</span>
@@ -279,7 +279,7 @@ export default {
/* =============================================== 标签维护 =============================================== */
dialogTags: false, // 标签维护
filterText: '',
data: [
treeData: [
{
id: 0,
label: '根节点',
@@ -336,6 +336,12 @@ export default {
}
],
options:[
{
value:'1',
label:'1'
}
],
tagsForm: {
tags01: {
name: '',
@@ -452,6 +458,19 @@ export default {
}
},
methods: {
init() {
this.getTreeLabel()
// this.labelList();
this.reset();
this.reportDateList();
this.sysUserList();
},
getTreeLabel(){
this.$api.report.labelList().then(res => {
console.log('5555',res);
this.treeData=res.data
})
},
//标签搜索
filterNode(value, data) {
if (!value) return true;
@@ -475,8 +494,6 @@ export default {
.catch(_ => { });
},
addTag() {
},
/* 权限全选 */
selectAll() {
this.reportF.reportUserIdList = [];
@@ -491,12 +508,7 @@ export default {
this.checked = (val.length || this.reportF.reportUserIdList.length) === this.userList.length;
// this.$emit('update:updateMultipleSelect',this.reportF.reportUserIdList);
},
init() {
this.labelList();
this.reset();
this.reportDateList();
this.sysUserList();
},
/* =============================================== 操作日志 =============================================== */
// 操作日志
openLog() {