mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-25 14:17:54 +08:00
修改面积
This commit is contained in:
parent
1108cd7a79
commit
728c34247e
10
app.js
10
app.js
@ -32,15 +32,15 @@ let opts = {
|
||||
|
||||
|
||||
//app.use('/callComponent',proxy('https://app.demo.winqi.cn/',opts));
|
||||
//app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012/',opts));
|
||||
//app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts));
|
||||
//app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts));
|
||||
|
||||
|
||||
// app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts));
|
||||
// app.use('/app',proxy('http://api.demo.winqi.cn:8012',opts));
|
||||
app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts));
|
||||
app.use('/app',proxy('http://api.demo.winqi.cn:8012',opts));
|
||||
|
||||
app.use('/callComponent',proxy('http://127.0.0.1:8012',opts));
|
||||
app.use('/app',proxy('http://127.0.0.1:8012',opts));
|
||||
//app.use('/callComponent',proxy('http://127.0.0.1:8012',opts));
|
||||
//app.use('/app',proxy('http://127.0.0.1:8012',opts));
|
||||
|
||||
//app.use('/callComponent',proxy('http://192.168.1.16:8012',opts));
|
||||
//app.use('/app',proxy('http://192.168.1.16:8012',opts));
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
<div id = "editCommunityModel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true" >
|
||||
<div id="editCommunityModel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-body">
|
||||
@ -7,27 +8,32 @@
|
||||
<div>
|
||||
<div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">小区名称</label>
|
||||
<div class="col-sm-10">
|
||||
<input v-model="editCommunityInfo.name" type="text" placeholder="必填,请填写小区名称" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">小区地址</label>
|
||||
<div class="col-sm-10">
|
||||
<input v-model="editCommunityInfo.address" type="text" placeholder="必填,请填写小区地址" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">附近地标</label>
|
||||
<div class="col-sm-10">
|
||||
<input v-model="editCommunityInfo.nearbyLandmarks" type="text" placeholder="必填,请填写附近地标" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<label class="col-sm-2 col-form-label">小区名称</label>
|
||||
<div class="col-sm-10">
|
||||
<input v-model="editCommunityInfo.name" type="text" placeholder="必填,请填写小区名称"
|
||||
class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">小区地址</label>
|
||||
<div class="col-sm-10">
|
||||
<input v-model="editCommunityInfo.address" type="text" placeholder="必填,请填写小区地址"
|
||||
class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">附近地标</label>
|
||||
<div class="col-sm-10">
|
||||
<input v-model="editCommunityInfo.nearbyLandmarks" type="text"
|
||||
placeholder="必填,请填写附近地标" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ibox-content">
|
||||
<button class="btn btn-primary float-right" type="button" v-on:click="editCommunity()" ><i class="fa fa-check"></i> 保存</button>
|
||||
<button type="button" class="btn btn-warning float-right" style="margin-right:20px;" data-dismiss="modal">取消</button>
|
||||
<button class="btn btn-primary float-right" type="button"
|
||||
v-on:click="editCommunity()"><i class="fa fa-check"></i> 保存</button>
|
||||
<button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
|
||||
data-dismiss="modal">取消</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -35,4 +41,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -10,6 +10,7 @@
|
||||
cityCode: '',
|
||||
mapX: '101.33',
|
||||
mapY: '101.33',
|
||||
communityArea:''
|
||||
|
||||
}
|
||||
},
|
||||
@ -124,6 +125,7 @@
|
||||
cityCode: '',
|
||||
mapX: '101.33',
|
||||
mapY: '101.33',
|
||||
communityArea:''
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,31 @@
|
||||
<div id="editCommunityAreaModel" class="modal fade" tabindex="-1" 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 ">修改面积</h3>
|
||||
<div class="ibox-content">
|
||||
<div>
|
||||
<div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">小区面积</label>
|
||||
<div class="col-sm-10">
|
||||
<input v-model="editCommunityAreaInfo.communityArea" type="text"
|
||||
placeholder="必填,请填写小区面积" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ibox-content">
|
||||
<button class="btn btn-primary float-right" type="button"
|
||||
v-on:click="editCommunityArea()"><i class="fa fa-check"></i> 保存</button>
|
||||
<button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
|
||||
data-dismiss="modal">取消</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -0,0 +1,96 @@
|
||||
(function (vc, vm) {
|
||||
|
||||
vc.extends({
|
||||
data: {
|
||||
editCommunityAreaInfo: {
|
||||
communityId: '',
|
||||
name: '',
|
||||
address: '',
|
||||
nearbyLandmarks: '',
|
||||
cityCode: '',
|
||||
mapX: '101.33',
|
||||
mapY: '101.33',
|
||||
communityArea: ''
|
||||
|
||||
}
|
||||
},
|
||||
_initMethod: function () {
|
||||
|
||||
},
|
||||
_initEvent: function () {
|
||||
vc.on('editCommunityArea', 'openEditCommunityModal',
|
||||
function (_params) {
|
||||
vc.component.refreshEditCommunityInfo();
|
||||
$('#editCommunityAreaModel').modal('show');
|
||||
vc.copyObject(_params, vc.component.editCommunityAreaInfo);
|
||||
//vc.component.editCommunityAreaInfo.communityId = vc.getCurrentCommunity().communityId;
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
editCommunityAreaValidate: function () {
|
||||
return vc.validate.validate({
|
||||
editCommunityAreaInfo: vc.component.editCommunityAreaInfo
|
||||
},
|
||||
{
|
||||
|
||||
'editCommunityAreaInfo.communityArea': [{
|
||||
limit: "required",
|
||||
param: "",
|
||||
errInfo: "小区面积不能为空"
|
||||
},
|
||||
{
|
||||
limit: "money",
|
||||
param: "",
|
||||
errInfo: "小区面积必须是3.00 格式"
|
||||
},
|
||||
],
|
||||
'editCommunityAreaInfo.communityId': [{
|
||||
limit: "required",
|
||||
param: "",
|
||||
errInfo: "小区ID不能为空"
|
||||
}]
|
||||
|
||||
});
|
||||
},
|
||||
editCommunityArea: function () {
|
||||
if (!vc.component.editCommunityAreaValidate()) {
|
||||
vc.toast(vc.validate.errInfo);
|
||||
return;
|
||||
}
|
||||
|
||||
vc.http.post('editCommunity', 'update', JSON.stringify(vc.component.editCommunityAreaInfo), {
|
||||
emulateJSON: true
|
||||
},
|
||||
function (json, res) {
|
||||
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
|
||||
if (res.status == 200) {
|
||||
//关闭model
|
||||
$('#editCommunityAreaModel').modal('hide');
|
||||
vc.emit('enterCommunity','listMyCommunity', {});
|
||||
return;
|
||||
}
|
||||
vc.toast(json);
|
||||
},
|
||||
function (errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
|
||||
vc.toast(errInfo);
|
||||
});
|
||||
},
|
||||
refreshEditCommunityInfo: function () {
|
||||
vc.component.editCommunityAreaInfo = {
|
||||
communityId: '',
|
||||
name: '',
|
||||
address: '',
|
||||
nearbyLandmarks: '',
|
||||
cityCode: '',
|
||||
mapX: '101.33',
|
||||
mapY: '101.33',
|
||||
communityArea: ''
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
})(window.vc, window.vc.component);
|
||||
@ -32,6 +32,7 @@
|
||||
<label class="col-sm-2 col-form-label">说明</label>
|
||||
<div class="col-sm-10">
|
||||
<div>T 代表总量,如电费总使用量</div>
|
||||
<div>C 代表房屋对应小区面积</div>
|
||||
<div>F 代表房屋对应楼栋面积</div>
|
||||
<div>U 代表房屋对应单元面积</div>
|
||||
<div>R 代表房屋面积</div>
|
||||
|
||||
@ -32,6 +32,7 @@
|
||||
<label class="col-sm-2 col-form-label">说明</label>
|
||||
<div class="col-sm-10">
|
||||
<div>T 代表总量,如电费总使用量</div>
|
||||
<div>C 代表房屋对应小区面积</div>
|
||||
<div>F 代表房屋对应楼栋面积</div>
|
||||
<div>U 代表房屋对应单元面积</div>
|
||||
<div>R 代表房屋面积</div>
|
||||
|
||||
@ -18,11 +18,12 @@
|
||||
<tr>
|
||||
<th data-hide="phone">省份</th>
|
||||
<th data-hide="phone">市/州</th>
|
||||
<th data-hide="phone">县/区</th>
|
||||
<th data-hide="phone">小区名称</th>
|
||||
<th data-hide="phone" width="150px">县/区</th>
|
||||
<th data-hide="phone" width="200px">小区名称</th>
|
||||
<!-- <th data-hide="phone">小区地址</th> -->
|
||||
<th>小区编码</th>
|
||||
<th data-hide="phone">联系方式</th>
|
||||
<th data-hide="phone">面积</th>
|
||||
<!-- <th data-hide="phone">地标</th> -->
|
||||
<!-- <th data-hide="phone,tablet" >城市编码</th> -->
|
||||
<th data-hide="phone">状态</th>
|
||||
@ -53,6 +54,9 @@
|
||||
<td>
|
||||
{{community.tel}}
|
||||
</td>
|
||||
<td>
|
||||
{{community.communityArea}}
|
||||
</td>
|
||||
<!-- <td>
|
||||
{{community.nearbyLandmarks}}
|
||||
</td> -->
|
||||
@ -66,6 +70,10 @@
|
||||
<div class="btn-group" v-if="community.auditStatusCd == '1100' && community.communityId != '7020181217000001'">
|
||||
<button class="btn-white btn btn-xs" v-on:click="_openExitCommunityModel(community)">申请退出</button>
|
||||
</div>
|
||||
|
||||
<div class="btn-group" v-if="community.auditStatusCd == '1100' ">
|
||||
<button class="btn-white btn btn-xs" v-on:click="_openUpdateCommunityModel(community)">修改面积</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -84,5 +92,7 @@
|
||||
</div>
|
||||
<vc:create path="common/storeEnterCommunity"></vc:create>
|
||||
<vc:create path="common/storeExitCommunity"></vc:create>
|
||||
<vc:create path="common/editCommunityArea"></vc:create>
|
||||
|
||||
|
||||
</div>
|
||||
@ -42,6 +42,9 @@
|
||||
_openExitCommunityModel:function(_community){
|
||||
vc.emit('storeExitCommunity','openStoreExitCommunityModal',_community);
|
||||
},
|
||||
_openUpdateCommunityModel:function(_community){
|
||||
vc.emit('editCommunityArea', 'openEditCommunityModal',_community);
|
||||
},
|
||||
_showCommunityStatus(_statusCd){
|
||||
if(_statusCd == '1000'){
|
||||
return "入驻审核";
|
||||
|
||||
@ -39,11 +39,11 @@
|
||||
var param = {
|
||||
params:vc.component.feeFormulaManageInfo.conditions
|
||||
};
|
||||
|
||||
//发送get请求
|
||||
vc.http.apiGet('/feeFormula/queryFeeFormula',
|
||||
param,
|
||||
function(json,res){
|
||||
|
||||
var _feeFormulaManageInfo=JSON.parse(json);
|
||||
vc.component.feeFormulaManageInfo.total = _feeFormulaManageInfo.total;
|
||||
vc.component.feeFormulaManageInfo.records = _feeFormulaManageInfo.records;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user