|
|
|
|
@ -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 = "修改游客客源地数据 "; |
|
|
|
|
}); |
|
|
|
|
|