mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 13:56:05 +08:00
加入 去除空格处理
This commit is contained in:
parent
27779e3379
commit
cd62da04ff
@ -37,6 +37,18 @@
|
||||
class="form-control addAppointmentTime">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">小区</label>
|
||||
<div class="col-sm-10">
|
||||
<select class="custom-select" v-model="addRentingAppointmentInfo.communityId">
|
||||
<option selected disabled value="">必填,请选择小区</option>
|
||||
<option v-for="(item,index) in addRentingAppointmentInfo.communitys" :value="item.communityId">
|
||||
{{item.name}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">预约房屋</label>
|
||||
<div class="col-sm-10">
|
||||
|
||||
@ -14,11 +14,20 @@
|
||||
appointmentTime: '',
|
||||
appointmentRoomId: '',
|
||||
remark: '',
|
||||
communitys: [],
|
||||
communityId: '',
|
||||
floorId: '',
|
||||
floorNum: '',
|
||||
unitId: '',
|
||||
unitNum: '',
|
||||
roomId: '',
|
||||
roomNum: ''
|
||||
|
||||
}
|
||||
},
|
||||
_initMethod: function () {
|
||||
$that._initAddAppointmentTime();
|
||||
$that._loadAddCommunitys();
|
||||
},
|
||||
_initEvent: function () {
|
||||
vc.on('addRentingAppointment', 'openAddRentingAppointmentModal', function () {
|
||||
@ -110,10 +119,6 @@
|
||||
errInfo: "备注不能超过500字"
|
||||
},
|
||||
],
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
},
|
||||
saveRentingAppointmentInfo: function () {
|
||||
@ -158,7 +163,30 @@
|
||||
|
||||
});
|
||||
},
|
||||
_loadAddCommunitys: function () {
|
||||
var param = {
|
||||
params: {
|
||||
_uId: 'ccdd00opikookjuhyyttvhnnjuuu',
|
||||
page: 1,
|
||||
row: 50
|
||||
}
|
||||
};
|
||||
vc.http.get('initData',
|
||||
'getCommunitys',
|
||||
param,
|
||||
function (json, res) {
|
||||
if (res.status == 200) {
|
||||
let _communityInfos = JSON.parse(json).communitys;
|
||||
$that.addRentingAppointmentInfo.communitys = _communityInfos;
|
||||
}
|
||||
}, function () {
|
||||
console.log('请求失败处理');
|
||||
vc.jumpToPage(_param.url);
|
||||
}
|
||||
);
|
||||
},
|
||||
clearAddRentingAppointmentInfo: function () {
|
||||
let _communitys = $that.addRentingAppointmentInfo.communitys;
|
||||
vc.component.addRentingAppointmentInfo = {
|
||||
tenantName: '',
|
||||
tenantSex: '',
|
||||
@ -166,7 +194,14 @@
|
||||
appointmentTime: '',
|
||||
appointmentRoomId: '',
|
||||
remark: '',
|
||||
|
||||
communityId: '',
|
||||
floorId: '',
|
||||
floorNum: '',
|
||||
unitId: '',
|
||||
unitNum: '',
|
||||
roomId: '',
|
||||
roomNum: '',
|
||||
communitys: _communitys
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@ -51,7 +51,7 @@
|
||||
<button type="button" class="btn btn-primary btn-sm"
|
||||
v-on:click="_openAddRentingAppointmentModal()">
|
||||
<i class="glyphicon glyphicon-plus"></i>
|
||||
预约
|
||||
电话预约
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@ -66,9 +66,7 @@
|
||||
<th class="text-center">预约时间</th>
|
||||
<th class="text-center">预约房屋</th>
|
||||
<th class="text-center">备注</th>
|
||||
<th class="text-center">操作</th>
|
||||
|
||||
|
||||
<th class="text-right">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -79,7 +77,7 @@
|
||||
<td class="text-center">{{rentingAppointment.appointmentTime}}</td>
|
||||
<td class="text-center">{{rentingAppointment.appointmentRoomId}}</td>
|
||||
<td class="text-center">{{rentingAppointment.remark}}</td>
|
||||
<td class="text-center">
|
||||
<td class="text-right">
|
||||
<div class="btn-group">
|
||||
<button class="btn-white btn btn-xs"
|
||||
v-on:click="_openEditRentingAppointmentModel(rentingAppointment)">修改</button>
|
||||
|
||||
@ -61,9 +61,9 @@
|
||||
|
||||
if (_allNum.split('-').length == 3) {
|
||||
let _allNums = _allNum.split('-')
|
||||
param.params.floorNum = _allNums[0];
|
||||
param.params.unitNum = _allNums[1];
|
||||
param.params.roomNum = _allNums[2];
|
||||
param.params.floorNum = _allNums[0].trim();
|
||||
param.params.unitNum = _allNums[1].trim();
|
||||
param.params.roomNum = _allNums[2].trim();
|
||||
}
|
||||
|
||||
//发送get请求
|
||||
|
||||
Loading…
Reference in New Issue
Block a user