解决修改岗位的一个问题
parent
b41df1de52
commit
1a5df10545
|
@ -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("岗位不能重复");
|
||||
|
|
|
@ -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
|
||||
},
|
||||
// 选择一页显示多少条数据
|
||||
|
|
Loading…
Reference in New Issue