地区回显需要统一处理一下

dev
Tuzki 2 years ago
parent 1f8d34c5a4
commit 7429a282f5
  1. 20
      ruoyi-ui/src/views/system/management/estate/tourist-source/index.vue
  2. 4
      ruoyi-ui/src/views/system/management/ticket-data/ticket-check-flow/tickt.js

@ -223,7 +223,7 @@
prop="cityCode"
width="180">
<template slot-scope="scope">
<el-select v-model="scope.row.cityCode" placeholder="请选择" @change="getCity($event)">
<el-select v-model="scope.row.cityCode" placeholder="请选择">
<el-option
v-for="dict in cityOptions"
:key="dict.regionId"
@ -285,7 +285,7 @@
</el-select>
</el-form-item>
<el-form-item label="客源省" prop="provinceSource">
<el-select v-model="form.provinceSource" placeholder="请选择" @change="getCity($event)">
<el-select disabled="" v-model="form.provinceSource" placeholder="请选择" @change="getCity($event)">
<el-option
v-for="dict in provinceOptions"
:key="dict.regionId"
@ -295,7 +295,7 @@
</el-select>
</el-form-item>
<el-form-item label="客源市" prop="citySource">
<el-select v-model="form.citySource" placeholder="请选择">
<el-select disabled="" v-model="form.citySource" placeholder="请选择">
<el-option
v-for="dict in cityOptions"
:key="dict.regionId"
@ -396,6 +396,9 @@ export default {
endTime:[
{required: true, message: "统计结束时间不能为空", trigger: "change"}
],
statisticalNum:[
{required: true, message: "统计数量不能为空", trigger: "blur"}
]
}
};
},
@ -409,10 +412,7 @@ export default {
} else if (val == true) {
this.change = true
if (this.isEdit == true) {
this.getCity(this.form.provinceSource)
this.getCountry(this.form.citySource)
}
}
}
}
@ -486,8 +486,10 @@ export default {
this.reset();
const id = row.id || this.ids
getTouristSource(id).then(response => {
this.form = response.data;
this.getCountry(this.form.citySource)
this.getCity(response.data.provinceSource)
this.$nextTick(()=>{
this.form = response.data;
})
this.open = true;
this.title = "修改游客客源地数据 ";
});

@ -534,8 +534,8 @@ export default {
}else{
this.cityOptionsTwo = value.rows
}
this.form.citySource = value.rows[0].regionId
this.form.city = value.rows[0].regionId
// this.form.citySource = value.rows[0].regionId
// this.form.city = value.rows[0].regionId
})
},
getCountry(el,type) {

Loading…
Cancel
Save