工程管理
This commit is contained in:
parent
6f05db2107
commit
207746253b
|
|
@ -577,7 +577,7 @@ export default {
|
||||||
// 关键转换:将 areaCode → value,name → label
|
// 关键转换:将 areaCode → value,name → label
|
||||||
this.provinceOptions = res.data.map(item => ({
|
this.provinceOptions = res.data.map(item => ({
|
||||||
value: item.areaCode, // 下拉框的选项值(存储用)
|
value: item.areaCode, // 下拉框的选项值(存储用)
|
||||||
label: item.name // 下拉框的显示文本(用户看)
|
label: item.short_name // 下拉框的显示文本(用户看)
|
||||||
}))
|
}))
|
||||||
} else {
|
} else {
|
||||||
Message.error('加载省份失败:' + (res.message || '未知错误'))
|
Message.error('加载省份失败:' + (res.message || '未知错误'))
|
||||||
|
|
@ -610,7 +610,7 @@ export default {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
this.cityOptions = res.data.map(item => ({
|
this.cityOptions = res.data.map(item => ({
|
||||||
value: item.areaCode,
|
value: item.areaCode,
|
||||||
label: item.name
|
label: item.short_name
|
||||||
}))
|
}))
|
||||||
} else {
|
} else {
|
||||||
Message.error('加载城市失败')
|
Message.error('加载城市失败')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue