feat(areaRegionConfig): getconfig after get awards
This commit is contained in:
parent
cff42baffb
commit
7e8badfa8f
|
@ -6,6 +6,9 @@
|
||||||
:moren="moren"
|
:moren="moren"
|
||||||
/>
|
/>
|
||||||
<div class="main">
|
<div class="main">
|
||||||
|
<el-alert type="warning" :closable="false">
|
||||||
|
5%比例维护为0.05,10%比例维护为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()
|
||||||
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 保存
|
// 保存
|
||||||
|
|
Loading…
Reference in New Issue