mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-11 14:17:24 +08:00
优化diamante
This commit is contained in:
parent
cea22d63e9
commit
51adc3b40c
@ -45,7 +45,9 @@
|
||||
<tr v-for="carIn in parkingAreaControlInCarInfo.carIns">
|
||||
<td class="text-center">{{carIn.inoutId}}</td>
|
||||
<td class="text-center">{{carIn.stateName}}</td>
|
||||
<td class="text-center">{{carIn.carNum}}</td>
|
||||
<td class="text-center" @click="editCarInfoCarNum(carIn)">{{carIn.carNum}}
|
||||
<span class="fa fa-edit"></span>
|
||||
</td>
|
||||
<td class="text-center">{{carIn.areaNum}}</td>
|
||||
<td class="text-center" @click="_viewTempFeeConfigInCar(carIn.configId)">{{carIn.feeName}}
|
||||
<span class="fa fa-info-circle"></span>
|
||||
@ -73,4 +75,32 @@
|
||||
<!-- 分页 -->
|
||||
<vc:create path="frame/paginationPlus" namespace="parkingAreaControlInCar"></vc:create>
|
||||
</div>
|
||||
|
||||
<div id="editCarInfoCarNumModel" class="modal fade" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-body">
|
||||
<h3 class="m-t-none m-b ">
|
||||
<vc:i18n name="修改车牌号" namespace="parkingAreaControlInCar"></vc:i18n>
|
||||
</h3>
|
||||
<div class="ibox-content">
|
||||
<div>
|
||||
<div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label"><span><vc:i18n name="车牌号" namespace="parkingAreaControlInCar"></vc:i18n></span></label>
|
||||
<div class="col-sm-10">
|
||||
<input v-model="parkingAreaControlInCarInfo.updateCarNum" type="text" :placeholder="vc.i18n('必填,请填写车牌号','parkingAreaControlInCar')" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<button class="btn btn-primary float-right" type="button" v-on:click="_doUpdateCarInfoCarNum()"><span><vc:i18n name="提交" namespace="parkingAreaControlInCar"></vc:i18n></span></button>
|
||||
<button type="button" class="btn btn-warning float-right" style="margin-right:20px;" data-dismiss="modal"><span><vc:i18n name="取消" namespace="parkingAreaControlInCar"></vc:i18n></span></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -13,6 +13,8 @@
|
||||
carNum: '',
|
||||
startTime: '',
|
||||
endTime: '',
|
||||
updateCarNum: '',
|
||||
updateInoutId: '',
|
||||
}
|
||||
},
|
||||
_initMethod: function() {
|
||||
@ -102,6 +104,43 @@
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
editCarInfoCarNum: function(_inout) {
|
||||
$that.parkingAreaControlInCarInfo.updateCarNum = _inout.carNum;
|
||||
$that.parkingAreaControlInCarInfo.updateInoutId = _inout.inoutId;
|
||||
$('#editCarInfoCarNumModel').modal('show');
|
||||
},
|
||||
_doUpdateCarInfoCarNum: function() {
|
||||
if (!$that.parkingAreaControlInCarInfo.updateCarNum) {
|
||||
vc.toast('未包含车牌号');
|
||||
return;
|
||||
}
|
||||
let _data = {
|
||||
carNum: $that.parkingAreaControlInCarInfo.updateCarNum,
|
||||
inoutId: $that.parkingAreaControlInCarInfo.updateInoutId,
|
||||
communityId: vc.getCurrentCommunity().communityId
|
||||
}
|
||||
vc.http.apiPost(
|
||||
'/carInout.updateCarInoutNum',
|
||||
JSON.stringify(_data), {
|
||||
emulateJSON: true
|
||||
},
|
||||
function(json, res) {
|
||||
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
|
||||
let _data = JSON.parse(json);
|
||||
if (_data.code != 0) {
|
||||
vc.toast(_data.msg);
|
||||
} else {
|
||||
$('#editCarInfoCarNumModel').modal('hide');
|
||||
vc.toast(_data.msg);
|
||||
$that._loadParkingAreaControlInCarData(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
}
|
||||
},
|
||||
function(errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
|
||||
vc.toast(errInfo);
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user