flat: cityId: -1 为空
This commit is contained in:
@@ -60,6 +60,7 @@
|
|||||||
<!-- 行业类型 -->
|
<!-- 行业类型 -->
|
||||||
<!-- <template slot="tradeId">
|
<!-- <template slot="tradeId">
|
||||||
<div class="tradeId">
|
<div class="tradeId">
|
||||||
|
|
||||||
<el-autocomplete
|
<el-autocomplete
|
||||||
popper-class="my-autocomplete"
|
popper-class="my-autocomplete"
|
||||||
v-model.trim="tradeState"
|
v-model.trim="tradeState"
|
||||||
@@ -1122,7 +1123,9 @@ export default {
|
|||||||
} else if (type === "edit") {
|
} else if (type === "edit") {
|
||||||
this.title = "编辑任务";
|
this.title = "编辑任务";
|
||||||
detail(row.missionNo).then((res) => {
|
detail(row.missionNo).then((res) => {
|
||||||
console.log(res)
|
if(res.cityId === -1) {
|
||||||
|
res.cityId = ''
|
||||||
|
}
|
||||||
this.obj = res;
|
this.obj = res;
|
||||||
this.obj.workSkills = []
|
this.obj.workSkills = []
|
||||||
this.obj.workSkills.push(res.worktypeIds)
|
this.obj.workSkills.push(res.worktypeIds)
|
||||||
|
|||||||
@@ -1316,6 +1316,9 @@ export default {
|
|||||||
} else if (type === "edit") {
|
} else if (type === "edit") {
|
||||||
this.title = "编辑岗位";
|
this.title = "编辑岗位";
|
||||||
detail(row.id).then((res) => {
|
detail(row.id).then((res) => {
|
||||||
|
if(res.cityId === -1) {
|
||||||
|
res.cityId = ''
|
||||||
|
}
|
||||||
this.obj = res;
|
this.obj = res;
|
||||||
// this.obj.workSkills = []
|
// this.obj.workSkills = []
|
||||||
// console.log(res.worktypeIds)
|
// console.log(res.worktypeIds)
|
||||||
|
|||||||
Reference in New Issue
Block a user