mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 21:59:12 +08:00
优化 道闸廷加bug
This commit is contained in:
parent
5d49bec9ba
commit
596d6867eb
@ -30,11 +30,10 @@
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label"><span><vc:i18n name="类型" namespace="addBarrierGateMachine"></vc:i18n></span></label>
|
||||
<div class="col-sm-10">
|
||||
<select class="custom-select" v-model="addBarrierGateMachineInfo.typeId" @change="setAddMachineTypeCd(addBarrierGateMachineInfo.typeId)">
|
||||
<select class="custom-select" v-model="addBarrierGateMachineInfo.machineTypeCd">
|
||||
<option selected disabled value="">{{vc.i18n('必填,请选择类型','addMaaddBarrierGateMachinehine')}}</option>
|
||||
<option v-for="(item,index) in addBarrierGateMachineInfo.machineTypes" :key="index" :value="item.typeId"
|
||||
v-if="item.machineTypeCd == '9995' || item.machineTypeCd == '9996'">
|
||||
{{item.machineTypeName}}</option>
|
||||
<option value="9996">自有道闸</option>
|
||||
<option value="9995">第三方道闸</option>
|
||||
</select>
|
||||
</select>
|
||||
</div>
|
||||
@ -64,7 +63,7 @@
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label"><span><vc:i18n name="设备IP" namespace="addBarrierGateMachine"></vc:i18n></span></label>
|
||||
<div class="col-sm-10">
|
||||
<input v-model="addBarrierGateMachineInfo.machineIp" type="text" :placeholder="vc.i18n('选填,请填写设备IP,如 192.168.1.10:8090','addBarrierGateMachine')" class="form-control">
|
||||
<input v-model="addBarrierGateMachineInfo.machineIp" type="text" :placeholder="vc.i18n('选填,请填写设备IP,如 192.168.1.10:8131','addBarrierGateMachine')" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
|
||||
@ -9,9 +9,8 @@
|
||||
addBarrierGateMachineInfo: {
|
||||
machineId: '',
|
||||
machineCode: '',
|
||||
machineVersion: 'v1.0',
|
||||
machineVersion: 'v300',
|
||||
machineName: '',
|
||||
machineTypeCd: '',
|
||||
authCode: '未知',
|
||||
machineIp: '',
|
||||
machineMac: '',
|
||||
@ -20,7 +19,7 @@
|
||||
locationType: '',
|
||||
locations: [],
|
||||
machineTypes: [],
|
||||
|
||||
machineTypeCd: '9996',
|
||||
attrs: [],
|
||||
typeId: '',
|
||||
isShow: 'true',
|
||||
@ -160,7 +159,7 @@
|
||||
vc.component.addBarrierGateMachineInfo = {
|
||||
machineId: '',
|
||||
machineCode: '',
|
||||
machineVersion: 'v1.0',
|
||||
machineVersion: 'v300',
|
||||
machineName: '',
|
||||
machineTypeCd: '',
|
||||
authCode: '未知',
|
||||
@ -249,13 +248,6 @@
|
||||
}
|
||||
);
|
||||
},
|
||||
setAddMachineTypeCd: function(_typeId) {
|
||||
vc.component.addBarrierGateMachineInfo.machineTypes.forEach(item => {
|
||||
if (item.typeId == _typeId) {
|
||||
vc.component.addBarrierGateMachineInfo.machineTypeCd = item.machineTypeCd;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@ -30,10 +30,10 @@
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label"><span><vc:i18n name="类型" namespace="editBarrierGateMachine"></vc:i18n></span></label>
|
||||
<div class="col-sm-10">
|
||||
<select class="custom-select" v-model="editBarrierGateMachineInfo.typeId" @change="setEditMachineTypeCd(editBarrierGateMachineInfo.typeId)">
|
||||
<option selected disabled value="">{{vc.i18n('必填,请选择类型','addMaeditBarrierGateMachinehine')}}</option>
|
||||
<option v-for="(item,index) in editBarrierGateMachineInfo.machineTypes" :key="index" :value="item.typeId" v-if="item.machineTypeCd == '9995' || item.machineTypeCd == '9996'">
|
||||
{{item.machineTypeName}}</option>
|
||||
<select class="custom-select" v-model="editBarrierGateMachineInfo.machineTypeCd">
|
||||
<option selected disabled value="">{{vc.i18n('必填,请选择类型','editBarrierGateMachineInfo')}}</option>
|
||||
<option value="9996">自有道闸</option>
|
||||
<option value="9995">第三方道闸</option>
|
||||
</select>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
@ -5,14 +5,14 @@
|
||||
data: {
|
||||
couponRuleInfo: {
|
||||
curCouponRule: {},
|
||||
tabName: 'couponRuleWay'
|
||||
tabName: 'couponRuleCpps'
|
||||
},
|
||||
},
|
||||
_initMethod: function() {},
|
||||
_initEvent: function() {
|
||||
vc.on('couponRule', 'switchCouponRule', function(_param) {
|
||||
$that.couponRuleInfo.curCouponRule = _param;
|
||||
$that._changeCouponRuleTab('couponRuleWay');
|
||||
$that._changeCouponRuleTab('couponRuleCpps');
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user