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