From 885d8364166b6e952e0af2eb4cf4e44c59544b96 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期二, 31 十月 2023 16:36:25 +0800
Subject: [PATCH] 新增用户界面去掉岗位
---
Source/UBCS-WEB/src/components/Master/MasterTree.vue | 34 +++++++++++++++++++++++++++++-----
1 files changed, 29 insertions(+), 5 deletions(-)
diff --git a/Source/UBCS-WEB/src/components/Master/MasterTree.vue b/Source/UBCS-WEB/src/components/Master/MasterTree.vue
index eb35b74..a14ba8d 100644
--- a/Source/UBCS-WEB/src/components/Master/MasterTree.vue
+++ b/Source/UBCS-WEB/src/components/Master/MasterTree.vue
@@ -1,10 +1,11 @@
<template>
- <div style="overflow: auto; height: calc(100vh - 150px);">
+ <div class="app" style="display: flex;">
<avue-tree ref="tree" v-model="CloneTreeAvueform" v-loading="loading" :data="Treedata" :defaultExpandAll="false" :option="Treeoption" @node-click="nodeClick" style="width: fit-content;">
<template slot-scope="{ node }">
<span style="display: inline-block;">{{ node.label }}</span>
</template>
</avue-tree>
+ <div style="display: inline-block;"><i class="el-icon-refresh refresh-icon" @click="getTreeLists"></i></div>
</div>
</template>
@@ -97,7 +98,7 @@
}
}
}).catch(res => {
- console.log(res)
+ // console.log(res)
this.$message.error(res)
});
},
@@ -149,7 +150,7 @@
List.forEach(item => {
let columnItem = {
label: item.title,
- prop: item.field,
+ prop: item.queryField,
// type: this.columnType[item.type],
sortable: item.sort,
width: item.minWidth
@@ -168,8 +169,9 @@
//鏍戠偣鍑讳簨浠�
async nodeClick(data) {
try {
- console.log(data)
+ // console.log(data)
this.TreeValue=data.label.split(" ")[0].trim();
+ // console.log('TreeValue',this.TreeValue)
this.$emit('TreeValue',this.TreeValue)
this.nodeClickList = data;
this.tableHeadDataFateher = []
@@ -187,6 +189,28 @@
}
</script>
-<style scoped>
+<style lang="scss" scoped>
+.app{
+ overflow: auto;
+ height: calc(100vh - 150px);
+}
+ .app::-webkit-scrollbar {
+ height: 15px ; // 绾靛悜婊氬姩鏉� 蹇呭啓
+ background: white;
+ border: white;
+ width: 10px;
+}
+// 婊氬姩鏉$殑婊戝潡
+ .app::-webkit-scrollbar-thumb {
+ background-color: #ececec;
+ border-radius: 20px;
+ border: #ececec;
+}
+.refresh-icon {
+ color: #409EFF;
+ margin-top: 8px;
+ margin-left: 6px;
+ font-size: 18px;
+}
</style>
--
Gitblit v1.10.0