feat(areaRegionConfig): getconfig after get awards

This commit is contained in:
woody 2025-07-25 11:11:04 +08:00
parent cff42baffb
commit 7e8badfa8f
1 changed files with 12 additions and 5 deletions

View File

@ -6,6 +6,9 @@
:moren="moren" :moren="moren"
/> />
<div class="main"> <div class="main">
<el-alert type="warning" :closable="false">
5%比例维护为0.0510%比例维护为0.1以此类推
</el-alert>
<div class="maintable"> <div class="maintable">
<el-table <el-table
:data="tableData" :data="tableData"
@ -18,7 +21,7 @@
{{ getAreaTextByType(scope.row.areaType) }} {{ getAreaTextByType(scope.row.areaType) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column width="200px" align="center" prop="cloudTypeVal" label="奖衔"> <el-table-column width="200px" align="center" prop="awardsValue" label="奖衔">
<template slot-scope="scope"> <template slot-scope="scope">
<el-select v-model="scope.row.awardsValue" clearable :disabled="ifupdate"> <el-select v-model="scope.row.awardsValue" clearable :disabled="ifupdate">
<el-option v-for="item in awardsList" :key="item.awardsValue" :label="item.awardsName" :value="item.awardsValue" /> <el-option v-for="item in awardsList" :key="item.awardsValue" :label="item.awardsName" :value="item.awardsValue" />
@ -63,8 +66,9 @@ export default {
} }
}, },
created() { created() {
this.getAwardsListChiose().then(() => {
this.getAreaRegionConfig() this.getAreaRegionConfig()
this.getAwardsListChiose() })
}, },
methods: { methods: {
getAreaRegionConfig() { getAreaRegionConfig() {
@ -77,8 +81,11 @@ export default {
return areaList[type - 1] return areaList[type - 1]
}, },
getAwardsListChiose() { getAwardsListChiose() {
return new Promise((resolve, reject) => {
getAwardsListChiose().then((res) => { getAwardsListChiose().then((res) => {
this.awardsList = res.rows this.awardsList = res.rows
resolve()
})
}) })
}, },
// //