Commit 6492e264 authored by lvshibao's avatar lvshibao

rule页面修改

parent 92ec95ff
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
:value="item.id"> :value="item.id">
</el-option> </el-option>
</el-select> </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 <el-option
v-for="item in countryList" v-for="item in countryList"
:key="item.id" :key="item.id"
......
...@@ -8,6 +8,7 @@ new Vue({ ...@@ -8,6 +8,7 @@ new Vue({
countryList:[], countryList:[],
cityvalue: null, cityvalue: null,
countryvalue: null, countryvalue: null,
country_chow: false,
start_date: '', start_date: '',
isscrollTop: false, isscrollTop: false,
currentPage:1, currentPage:1,
...@@ -74,6 +75,11 @@ new Vue({ ...@@ -74,6 +75,11 @@ new Vue({
that.$message('服务器错误') that.$message('服务器错误')
} else { } else {
that.countryList = data.data.country_list; 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({ ...@@ -93,6 +99,11 @@ new Vue({
} else { } else {
that.cityList = data.data.city_list; that.cityList = data.data.city_list;
that.countryList = data.data.country_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; that.cityvalue = data.data.city_id;
console.log(that.cityvalue); console.log(that.cityvalue);
that.init_simple = true; 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