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()