mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-23 21:36:37 +08:00
优化代码
This commit is contained in:
parent
75398b3e8e
commit
4614662eb8
@ -20,14 +20,22 @@
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<input type="text" :placeholder="vc.i18n('请选择支付厂家','paymentPool')"
|
||||
v-model="paymentPoolInfo.conditions.paymentType" class=" form-control">
|
||||
<select class="custom-select" v-model="paymentPoolInfo.conditions.paymentType">
|
||||
<option selected value="">{{vc.i18n('请选择支付厂家','addPaymentPool')}}</option>
|
||||
<option :value="item.statusCd"
|
||||
v-for="(item,index) in paymentPoolInfo.paymentTypes" :key="index">
|
||||
{{item.name}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="form-group">
|
||||
<input type="text" :placeholder="vc.i18n('请选择状态','paymentPool')"
|
||||
v-model="paymentPoolInfo.conditions.state" class=" form-control">
|
||||
<select class="custom-select" v-model="paymentPoolInfo.conditions.state">
|
||||
<option selected value="">{{vc.i18n('请选择状态' ,'paymentPool')}}
|
||||
</option>
|
||||
<option value="Y">{{vc.i18n('启用' ,'paymentPool')}} </option>
|
||||
<option value="N">{{vc.i18n('停用' ,'paymentPool')}} </option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-1">
|
||||
|
||||
@ -8,6 +8,7 @@
|
||||
data: {
|
||||
paymentPoolInfo: {
|
||||
paymentPools: [],
|
||||
paymentTypes:[],
|
||||
total: 0,
|
||||
records: 1,
|
||||
moreCondition: false,
|
||||
@ -21,6 +22,9 @@
|
||||
}
|
||||
},
|
||||
_initMethod: function () {
|
||||
vc.getDict('payment_key', 'payment_type', function (_data) {
|
||||
$that.paymentPoolInfo.paymentTypes = _data;
|
||||
});
|
||||
$that._listPaymentPools(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
_initEvent: function () {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user