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