Commit 6492e264 authored by lvshibao's avatar lvshibao

rule页面修改

parent 92ec95ff
......@@ -95,7 +95,7 @@
:value="item.id">
</el-option>
</el-select>
<el-select v-model="countryvalue" filterable placeholder="请选择县" @change="changeCountry">
<el-select v-model="countryvalue" v-if="country_show == true" filterable placeholder="请选择县" @change="changeCountry">
<el-option
v-for="item in countryList"
:key="item.id"
......
......@@ -8,6 +8,7 @@ new Vue({
countryList:[],
cityvalue: null,
countryvalue: null,
country_chow: false,
start_date: '',
isscrollTop: false,
currentPage:1,
......@@ -74,6 +75,11 @@ new Vue({
that.$message('服务器错误')
} else {
that.countryList = data.data.country_list;
if (that.countryList.length > 0) {
that.country_chow = true;
} else {
that.country_chow = false;
};
}
})
},
......@@ -93,6 +99,11 @@ new Vue({
} else {
that.cityList = data.data.city_list;
that.countryList = data.data.country_list;
if (that.countryList.length > 0) {
that.country_chow = true;
} else {
that.country_chow = false;
};
that.cityvalue = data.data.city_id;
console.log(that.cityvalue);
that.init_simple = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment