优化代码

This commit is contained in:
java110 2021-08-06 16:08:07 +08:00
parent 71099c741e
commit 4c13a1604d
3 changed files with 7 additions and 5 deletions

View File

@ -49,7 +49,7 @@
<label class="col-sm-2 col-form-label">返回时间</label>
<div class="col-sm-10">
<input v-model="addReportInfoBackCityInfo.backTime" type="text" placeholder="必填,请填写返回时间"
class="form-control">
class="form-control addBackTime">
</div>
</div>
<div class="form-group row">

View File

@ -18,7 +18,9 @@
}
},
_initMethod: function () {
vc.initDateTime('addBackTime', function (_value) {
$that.addReportInfoBackCityInfo.backTime = _value;
});
},
_initEvent: function () {
vc.on('addReportInfoBackCity', 'openAddReportInfoBackCityModal', function () {

View File

@ -88,10 +88,10 @@
<td class="text-center">{{reportInfoBackCity.sourceCityName}}</td>
<td class="text-center">{{reportInfoBackCity.backTime}}</td>
<td class="text-center">
<div class="btn-group">
<!-- <div class="btn-group">
<button class="btn-white btn btn-xs"
v-on:click="_openEditReportInfoBackCityModel(reportInfoBackCity)">修改</button>
</div>
</div> -->
<div class="btn-group">
<button class="btn-white btn btn-xs"
v-on:click="_openDeleteReportInfoBackCityModel(reportInfoBackCity)">删除</button>
@ -118,7 +118,7 @@
<vc:create path="property/addReportInfoBackCity" callBackListener="" callBackFunction=""></vc:create>
<vc:create path="property/editReportInfoBackCity"></vc:create>
<!-- <vc:create path="property/editReportInfoBackCity"></vc:create> -->
<vc:create path="property/deleteReportInfoBackCity"></vc:create>
</div>