From 6b62e1861e528f74a076b3698b0bfb5408871e24 Mon Sep 17 00:00:00 2001 From: Apcallover <1503963513@qq.com> Date: Wed, 8 May 2024 20:45:31 +0800 Subject: [PATCH] =?UTF-8?q?flat:=20=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/tenant/main/talents/certain/index.vue | 10 +++++++++- src/views/tenant/main/talents/latent/index.vue | 10 +++++++++- vue.config.js | 2 +- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/src/views/tenant/main/talents/certain/index.vue b/src/views/tenant/main/talents/certain/index.vue index 6a402fd..5cb1426 100644 --- a/src/views/tenant/main/talents/certain/index.vue +++ b/src/views/tenant/main/talents/certain/index.vue @@ -265,7 +265,7 @@ export default { column: [ { label: "所属机构", - prop: "deptId", + prop: "createDept", type: "tree", multiple: false, dicData: this.depTree, @@ -792,7 +792,14 @@ export default { }, /*新增人才*/ rowSave(row, done) { + let obj = {} + for (const rowKey in row) { + if (row[rowKey]) { + obj[rowKey] = row[rowKey] + } + } add({ + ...obj, groupId: row.groupId, name: row.name, idNumber: row.idNumber, @@ -818,6 +825,7 @@ export default { /*编辑人才*/ rowUpdate(row, index, done) { update({ + ...row, id: row.id, groupId: row.groupId, name: row.name, diff --git a/src/views/tenant/main/talents/latent/index.vue b/src/views/tenant/main/talents/latent/index.vue index 6e85225..8d4fd83 100644 --- a/src/views/tenant/main/talents/latent/index.vue +++ b/src/views/tenant/main/talents/latent/index.vue @@ -267,7 +267,7 @@ export default { column: [ { label: "所属机构", - prop: "deptId", + prop: "createDept", type: "tree", multiple: false, dicData: this.depTree, @@ -795,7 +795,14 @@ export default { }, /*新增人才*/ rowSave(row, done) { + let obj = {} + for (const rowKey in row) { + if (row[rowKey]) { + obj[rowKey] = row[rowKey] + } + } add({ + ...obj, groupId: row.groupId, name: row.name, idNumber: row.idNumber, @@ -821,6 +828,7 @@ export default { /*编辑人才*/ rowUpdate(row, index, done) { update({ + ...row, id: row.id, groupId: row.groupId, name: row.name, diff --git a/vue.config.js b/vue.config.js index 30536d1..59fcc13 100644 --- a/vue.config.js +++ b/vue.config.js @@ -23,7 +23,7 @@ module.exports = { port: 1888, proxy: { "/api": { - target: 'http://10.165.0.173:8000', + target: 'http://192.168.1.105:8000', ws: true, changeOrigin: true, pathRewrite: {