From 583a2bf416448204897edb90f44fe26050f1bb99 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期一, 03 三月 2025 03:00:57 +0800
Subject: [PATCH] 工程库调整
---
src/views/system/dept/index.vue | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue
index 4dd044a..e9a2cdb 100644
--- a/src/views/system/dept/index.vue
+++ b/src/views/system/dept/index.vue
@@ -56,7 +56,7 @@
:default-expand-all="isExpandAll"
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
>
- <el-table-column prop="deptName" label="閮ㄩ棬鍚嶇О" width="260"></el-table-column>
+ <el-table-column prop="deptName" label="閮ㄩ棬鍚嶇О" width="500"></el-table-column>
<el-table-column prop="orderNum" label="鎺掑簭" width="200"></el-table-column>
<el-table-column prop="status" label="鐘舵��" width="100">
<template slot-scope="scope">
@@ -226,10 +226,12 @@
/** 鏌ヨ閮ㄩ棬鍒楄〃 */
getList() {
this.loading = true;
+ console.log(this.queryParams, "dddddd")
listDept(this.queryParams).then(response => {
this.deptList = this.handleTree(response.data, "deptId");
this.loading = false;
});
+
},
/** 杞崲閮ㄩ棬鏁版嵁缁撴瀯 */
normalizer(node) {
@@ -303,6 +305,13 @@
const noResultsOptions = { deptId: this.form.parentId, deptName: this.form.parentName, children: [] };
this.deptOptions.push(noResultsOptions);
}
+ if (row.parentId === 0) {
+ this.deptOptions.push({
+ deptId: 0,
+ deptName: '鏃�',
+ children: []
+ });
+ }
});
});
},
--
Gitblit v1.8.0