Commit e520cd15 authored by 沈翠玲's avatar 沈翠玲

修改城市json

parent 07b04030
This diff is collapsed.
...@@ -215,7 +215,7 @@ ...@@ -215,7 +215,7 @@
title: '所属区域', title: '所属区域',
showOverflow: 'tooltip', showOverflow: 'tooltip',
width: 160, width: 160,
fieldNames: { label: 'label', value: 'value' }, fieldNames: { label: 'name', value: 'name' },
search: { search: {
el: 'cascader', el: 'cascader',
props: { clearable: true, checkStrictly: true }, props: { clearable: true, checkStrictly: true },
......
...@@ -215,7 +215,7 @@ ...@@ -215,7 +215,7 @@
title: '所属区域', title: '所属区域',
showOverflow: 'tooltip', showOverflow: 'tooltip',
width: 160, width: 160,
fieldNames: { label: 'label', value: 'value' }, fieldNames: { label: 'name', value: 'name' },
search: { search: {
el: 'cascader', el: 'cascader',
props: { clearable: true, checkStrictly: true }, props: { clearable: true, checkStrictly: true },
......
...@@ -321,7 +321,7 @@ ...@@ -321,7 +321,7 @@
title: '所属区域', title: '所属区域',
showOverflow: 'tooltip', showOverflow: 'tooltip',
width: 100, width: 100,
fieldNames: { label: 'label', value: 'value' }, fieldNames: { label: 'name', value: 'name' },
search: { search: {
el: 'cascader', el: 'cascader',
props: { clearable: true, checkStrictly: true }, props: { clearable: true, checkStrictly: true },
......
...@@ -323,7 +323,7 @@ ...@@ -323,7 +323,7 @@
title: '所属区域', title: '所属区域',
showOverflow: 'tooltip', showOverflow: 'tooltip',
width: 100, width: 100,
fieldNames: { label: 'label', value: 'value' }, fieldNames: { label: 'name', value: 'name' },
search: { search: {
el: 'cascader', el: 'cascader',
props: { clearable: true, checkStrictly: true }, props: { clearable: true, checkStrictly: true },
......
...@@ -320,7 +320,7 @@ ...@@ -320,7 +320,7 @@
title: '所属区域', title: '所属区域',
showOverflow: 'tooltip', showOverflow: 'tooltip',
width: 160, width: 160,
fieldNames: { label: 'label', value: 'value' }, fieldNames: { label: 'name', value: 'name' },
search: { search: {
el: 'cascader', el: 'cascader',
props: { clearable: true, checkStrictly: true, multiple: true, 'collapse-tags': true }, props: { clearable: true, checkStrictly: true, multiple: true, 'collapse-tags': true },
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
<el-form-item class="w-full" label="所属区域" prop="orgName"> <el-form-item class="w-full" label="所属区域" prop="orgName">
<el-cascader <el-cascader
v-model="form.arealist" v-model="form.arealist"
:props="{ label: 'name', value: 'name' }"
class="w-full" class="w-full"
:checkStrictly="true" :checkStrictly="true"
:options="citydata" :options="citydata"
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
showOverflow: 'tooltip', showOverflow: 'tooltip',
title: '所属区域', title: '所属区域',
fieldNames: { label: 'label', value: 'value' }, fieldNames: { label: 'name', value: 'name' },
showOverflow: 'tooltip', showOverflow: 'tooltip',
search: { el: 'cascader', props: { clearable: true, checkStrictly: true } }, search: { el: 'cascader', props: { clearable: true, checkStrictly: true } },
slots: { slots: {
......
...@@ -26,9 +26,9 @@ ...@@ -26,9 +26,9 @@
<el-select v-model="form.province" placeholder="请选择" clearable> <el-select v-model="form.province" placeholder="请选择" clearable>
<el-option <el-option
v-for="item in citydata" v-for="item in citydata"
:key="item.value" :key="item.name"
:label="item.label" :label="item.name"
:value="item.value" :value="item.name"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
enum: citydata, enum: citydata,
showOverflow: 'tooltip', showOverflow: 'tooltip',
title: '省份', title: '省份',
fieldNames: { label: 'label', value: 'value' }, fieldNames: { label: 'name', value: 'name' },
showOverflow: 'tooltip', showOverflow: 'tooltip',
// search: { el: 'select', props: { clearable: true } }, // search: { el: 'select', props: { clearable: true } },
}, },
......
...@@ -26,9 +26,9 @@ ...@@ -26,9 +26,9 @@
<el-select v-model="form.province" placeholder="请选择" clearable> <el-select v-model="form.province" placeholder="请选择" clearable>
<el-option <el-option
v-for="item in citydata" v-for="item in citydata"
:key="item.value" :key="item.name"
:label="item.label" :label="item.name"
:value="item.value" :value="item.name"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
enum: citydata, enum: citydata,
showOverflow: 'tooltip', showOverflow: 'tooltip',
title: '省份', title: '省份',
fieldNames: { label: 'label', value: 'value' }, fieldNames: { label: 'name', value: 'name' },
showOverflow: 'tooltip', showOverflow: 'tooltip',
// search: { el: 'select', props: { clearable: true } }, // search: { el: 'select', props: { clearable: 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