From 2d60281f132d6fbf321ad51a0cae60b21bf126fa Mon Sep 17 00:00:00 2001 From: yinq Date: Fri, 28 Jun 2024 17:27:29 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E5=91=98=E5=B7=A5=E5=85=B3?= =?UTF-8?q?=E8=81=94=E5=A4=9A=E7=8F=AD=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mes/base/baseStaffInfo/index.vue | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/views/mes/base/baseStaffInfo/index.vue b/src/views/mes/base/baseStaffInfo/index.vue index 49a1f9e..7f3ef8a 100644 --- a/src/views/mes/base/baseStaffInfo/index.vue +++ b/src/views/mes/base/baseStaffInfo/index.vue @@ -191,7 +191,7 @@ - + { + if (response.data.teamCode && typeof response.data.teamCode === 'string') { + response.data.teamCode = response.data.teamCode.split(','); + } this.form = response.data this.open = true this.title = '修改员工信息' @@ -413,6 +413,7 @@ export default { submitForm() { this.$refs['form'].validate(valid => { if (valid) { + this.form.teamCode = this.form.teamCode.toString(); if (this.form.objId != null) { updateBaseStaffInfo(this.form).then(response => { this.$modal.msgSuccess('修改成功') @@ -431,8 +432,9 @@ export default { }, /** 删除按钮操作 */ handleDelete(row) { - const objIds = row.objId || this.codes - this.$modal.confirm('是否确认删除员工编号为"' + objIds + '"的数据项?').then(function() { + const objNames = row.objId || this.codes + const objIds = row.objId || this.ids + this.$modal.confirm('是否确认删除员工编号为"' + objNames + '"的数据项?').then(function() { return delBaseStaffInfo(objIds) }).then(() => { this.getList()