|
@@ -2,7 +2,7 @@
|
|
|
<div class="left-tree">
|
|
|
<el-button
|
|
|
class="add-btn"
|
|
|
- :style="{ display: status ? 'none' : '' }"
|
|
|
+ :style="{ display: status ? 'none' : '', width: '90px' }"
|
|
|
type="primary"
|
|
|
icon="el-icon-plus"
|
|
|
@click="updateTreeNode('add')"
|
|
@@ -212,11 +212,15 @@ export default {
|
|
|
methods: {
|
|
|
// 获取树的数据
|
|
|
getTreeData() {
|
|
|
- this.nowTree.getTree().then((res) => {
|
|
|
- if (res.code === "1") {
|
|
|
- this.tree.data = res.data.one_info;
|
|
|
- }
|
|
|
- });
|
|
|
+ this.nowTree
|
|
|
+ .getTree({
|
|
|
+ dept_id: this.treeType === "zzjg" ? "1" : "2",
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.code === "1") {
|
|
|
+ this.tree.data = res.data.one_info;
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
// 更新节点
|
|
|
updateTreeNode(action, data) {
|