订单页的支付方式筛选项添加权限并可分配: 避免API权限导致页面出现异常

This commit is contained in:
terrfly 2021-08-18 11:20:12 +08:00
parent 67cc36a050
commit f538736894
2 changed files with 8 additions and 4 deletions

View File

@ -38,7 +38,7 @@
<a-select-option value="1">已发送</a-select-option>
</a-select>
</a-form-item>
<a-form-item label="" class="table-head-layout">
<a-form-item v-if="$access('ENT_PAY_ORDER_SEARCH_PAY_WAY')" label="" class="table-head-layout">
<a-select v-model="searchData.wayCode" placeholder="支付方式" default-value="">
<a-select-option value="">全部</a-select-option>
<a-select-option :key="item.wayCode" v-for="item in payWayList" :value="item.wayCode">
@ -381,7 +381,9 @@ export default {
computed: {
},
mounted () {
this.initPayWay()
if (this.$access('ENT_PAY_ORDER_SEARCH_PAY_WAY')) {
this.initPayWay()
}
},
methods: {
queryFunc () {

View File

@ -30,7 +30,7 @@
</a-select>
</a-form-item>
<a-form-item label="" class="table-head-layout">
<a-form-item v-if="$access('ENT_PAY_ORDER_SEARCH_PAY_WAY')" label="" class="table-head-layout">
<a-select v-model="searchData.wayCode" placeholder="支付方式" default-value="">
<a-select-option value="">全部</a-select-option>
<a-select-option :key="item.wayCode" v-for="item in payWayList" :value="item.wayCode">
@ -330,7 +330,9 @@ export default {
computed: {
},
mounted () {
this.initPayWay()
if (this.$access('ENT_PAY_ORDER_SEARCH_PAY_WAY')) {
this.initPayWay()
}
},
methods: {
queryFunc () {