解决修改岗位的一个问题
parent
b41df1de52
commit
1a5df10545
|
@ -12,7 +12,7 @@
|
||||||
v-for="tag in dynamicTags"
|
v-for="tag in dynamicTags"
|
||||||
closable
|
closable
|
||||||
:disable-transitions="false"
|
:disable-transitions="false"
|
||||||
@close="handleClose2(tag)"
|
@close="handleRemoveTag(tag)"
|
||||||
size="large"
|
size="large"
|
||||||
>
|
>
|
||||||
{{ tag }}
|
{{ tag }}
|
||||||
|
@ -67,7 +67,7 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleClose2(tag) {
|
handleRemoveTag(tag) {
|
||||||
this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1);
|
this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ export default {
|
||||||
let inputValue = this.inputValue;
|
let inputValue = this.inputValue;
|
||||||
if (inputValue) {
|
if (inputValue) {
|
||||||
const isCF = !!this.dynamicTags.find((item) => {
|
const isCF = !!this.dynamicTags.find((item) => {
|
||||||
return item == inputValue;
|
return item === inputValue;
|
||||||
});
|
});
|
||||||
if (isCF) {
|
if (isCF) {
|
||||||
this.$message.warning("岗位不能重复");
|
this.$message.warning("岗位不能重复");
|
||||||
|
|
|
@ -190,7 +190,11 @@ export default {
|
||||||
|
|
||||||
onEditClick(row) {
|
onEditClick(row) {
|
||||||
this.editStaffId = row.staffId
|
this.editStaffId = row.staffId
|
||||||
this.editStaffPosition= row.projectStaffPosition
|
this.editStaffPosition = ''
|
||||||
|
const that = this
|
||||||
|
this.$nextTick(()=> {
|
||||||
|
that.editStaffPosition = row.projectStaffPosition
|
||||||
|
})
|
||||||
this.editJobDialogVisible = true
|
this.editJobDialogVisible = true
|
||||||
},
|
},
|
||||||
// 选择一页显示多少条数据
|
// 选择一页显示多少条数据
|
||||||
|
|
Loading…
Reference in New Issue