解决修改岗位的一个问题

main
wuyize 2022-07-12 10:14:27 +08:00
parent b41df1de52
commit 1a5df10545
2 changed files with 8 additions and 4 deletions

View File

@ -12,7 +12,7 @@
v-for="tag in dynamicTags"
closable
:disable-transitions="false"
@close="handleClose2(tag)"
@close="handleRemoveTag(tag)"
size="large"
>
{{ tag }}
@ -67,7 +67,7 @@ export default {
},
},
methods: {
handleClose2(tag) {
handleRemoveTag(tag) {
this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1);
},
@ -88,7 +88,7 @@ export default {
let inputValue = this.inputValue;
if (inputValue) {
const isCF = !!this.dynamicTags.find((item) => {
return item == inputValue;
return item === inputValue;
});
if (isCF) {
this.$message.warning("岗位不能重复");

View File

@ -190,7 +190,11 @@ export default {
onEditClick(row) {
this.editStaffId = row.staffId
this.editStaffPosition= row.projectStaffPosition
this.editStaffPosition = ''
const that = this
this.$nextTick(()=> {
that.editStaffPosition = row.projectStaffPosition
})
this.editJobDialogVisible = true
},
//