|
|
@ -30,7 +30,8 @@ |
|
|
|
type="text" |
|
|
|
clearable |
|
|
|
style="width: 30rem;" @blur="nameInputBlur(index,$event)"> |
|
|
|
</el-input> |
|
|
|
</el-input>  |
|
|
|
<el-button @click="deleteUserMethod(index)">{{"删除"}}</el-button>   |
|
|
|
</el-form-item> |
|
|
|
</el-row> |
|
|
|
</div> |
|
|
@ -82,6 +83,14 @@ export default { |
|
|
|
this.$refs.masterUser.init() |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 删除单个人员 |
|
|
|
deleteUserMethod (index) { |
|
|
|
if (this.formData.length === 1) { |
|
|
|
this.formData = [{ deptName: '', username: '', nickName: '' }] |
|
|
|
return false |
|
|
|
} |
|
|
|
this.formData.splice(index, 1) |
|
|
|
}, |
|
|
|
// dialog回调函数 |
|
|
|
connectResponse (connectResponse) { |
|
|
|
for (var i = 0; i < connectResponse.length; i++) { |
|
|
@ -144,10 +153,12 @@ export default { |
|
|
|
onClose: () => { |
|
|
|
this.isAble = false |
|
|
|
this.$emit('refreshDataList') |
|
|
|
this.$message({ |
|
|
|
message: res.data + '已存在!', |
|
|
|
type: 'warning' |
|
|
|
}) |
|
|
|
if (res.data !== '') { |
|
|
|
this.$message({ |
|
|
|
message: res.data + '已存在!', |
|
|
|
type: 'warning' |
|
|
|
}) |
|
|
|
} |
|
|
|
// 返回主列表 |
|
|
|
this.backToUserRelationList() |
|
|
|
} |
|
|
|