feat(areaRegionConfig): getconfig after get awards
This commit is contained in:
parent
cff42baffb
commit
7e8badfa8f
|
@ -6,6 +6,9 @@
|
|||
:moren="moren"
|
||||
/>
|
||||
<div class="main">
|
||||
<el-alert type="warning" :closable="false">
|
||||
5%比例维护为0.05,10%比例维护为0.1,以此类推。
|
||||
</el-alert>
|
||||
<div class="maintable">
|
||||
<el-table
|
||||
:data="tableData"
|
||||
|
@ -18,7 +21,7 @@
|
|||
{{ getAreaTextByType(scope.row.areaType) }}
|
||||
</template>
|
||||
</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">
|
||||
<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" />
|
||||
|
@ -63,8 +66,9 @@ export default {
|
|||
}
|
||||
},
|
||||
created() {
|
||||
this.getAreaRegionConfig()
|
||||
this.getAwardsListChiose()
|
||||
this.getAwardsListChiose().then(() => {
|
||||
this.getAreaRegionConfig()
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
getAreaRegionConfig() {
|
||||
|
@ -77,8 +81,11 @@ export default {
|
|||
return areaList[type - 1]
|
||||
},
|
||||
getAwardsListChiose() {
|
||||
getAwardsListChiose().then((res) => {
|
||||
this.awardsList = res.rows
|
||||
return new Promise((resolve, reject) => {
|
||||
getAwardsListChiose().then((res) => {
|
||||
this.awardsList = res.rows
|
||||
resolve()
|
||||
})
|
||||
})
|
||||
},
|
||||
// 保存
|
||||
|
|
Loading…
Reference in New Issue