From 3931e2728f618d0090f129b2665bc1285c4440c3 Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期日, 03 十一月 2024 17:27:32 +0800
Subject: [PATCH] update

---
 src/views/master/person/main/save.vue |   11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/src/views/master/person/main/save.vue b/src/views/master/person/main/save.vue
index f043da6..a8782bf 100644
--- a/src/views/master/person/main/save.vue
+++ b/src/views/master/person/main/save.vue
@@ -68,10 +68,7 @@
 				</el-col>
 				<el-col :span="12">
 					<el-form-item label="鏁版嵁鏉冮檺閰嶇疆">
-						<el-select v-model="addPersonForm.deptId" multiple filterable style="width: 100%"
-							placeholder="鏁版嵁鏉冮檺閰嶇疆" @change="deptIdChange">
-							<el-option v-for="item in deptIdList" :key="item.id" :label="item.title" :value="item.id" />
-						</el-select>
+						<el-tree-select v-model="addPersonForm.deptId" clearable multiple show-checkbox placeholder="鏁版嵁鏉冮檺閰嶇疆" default-expand-all :data="deptIdList" :props="{ label: 'title' ,id: 'id',children: 'children'}" node-key="id" ref="deptIdTree" style="width: 100%" />
 					</el-form-item>
 				</el-col>
 			</el-row>
@@ -168,7 +165,7 @@
 			})
 		},
 		getOrganizationList() {
-			this.$HTTP.get(`/api/blade-cps/organization/tree?groupType=group_organization&groupCategory=1`).then(res => {
+			this.$HTTP.get(`/api/smis/organization/tree?groupType=group_organization&groupCategory=1`).then(res => {
 				if (res.code == 200) {
 					this.departmentList = res.data;
 					this.addPersonForm.organizationId = res.data[0].id;
@@ -216,7 +213,7 @@
 			obj.postId = obj.postId.join(",");
 			this.$refs.dialogForm.validate(async (valid) => {
 				if (valid) {
-					this.$HTTP.post("/api/blade-cps/employee/submit", obj).then(res => {
+					this.$HTTP.post("/api/smis/employee/submit", obj).then(res => {
 						if (res.code == 200) {
 							this.$emit('success', this.addPersonForm, this.mode);
 							this.visible = false;
@@ -232,7 +229,7 @@
 		},
 		//琛ㄥ崟娉ㄥ叆鏁版嵁
 		setData(data) {
-			this.$HTTP.get(`/api/blade-cps/employee/detail/${data.id}`).then(res => {
+			this.$HTTP.get(`/api/smis/employee/detail/${data.id}`).then(res => {
 				if (res.code == 200) {
 					if (res.data.postId) {
 						res.data.postId = res.data.postId.split(",");

--
Gitblit v1.9.3