mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-23 21:36:37 +08:00
优化 添加物业功能
This commit is contained in:
parent
ba855bca97
commit
d61392524d
4
app.js
4
app.js
@ -36,8 +36,8 @@ let opts = {
|
||||
// app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts));
|
||||
|
||||
|
||||
app.use('/callComponent', proxy('http://proxy.homecommunity.cn:9011', opts));
|
||||
app.use('/app', proxy('http://proxy.homecommunity.cn:9011', opts));
|
||||
app.use('/callComponent', proxy('http://proxy.homecommunity.cn:9034', opts));
|
||||
app.use('/app', proxy('http://proxy.homecommunity.cn:9034', opts));
|
||||
|
||||
// app.use('/callComponent', proxy('http://127.0.0.1:8008', opts));
|
||||
// app.use('/app', proxy('http://127.0.0.1:8008', opts));
|
||||
|
||||
@ -68,7 +68,7 @@
|
||||
</div>
|
||||
|
||||
<div class="ibox-content">
|
||||
<span>温馨提示:账号为手机号;密码为手机号</span>
|
||||
<span>温馨提示:默认账号为手机号;密码为手机号</span>
|
||||
<button class="btn btn-primary float-right" type="button" v-on:click="savePropertyCompanyInfo()"><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>
|
||||
|
||||
@ -82,6 +82,9 @@
|
||||
<div class="btn-group">
|
||||
<button class="btn-white btn btn-xs" v-on:click="_openDeletePropertyCompanyModel(propertyCompany)">删除</button>
|
||||
</div>
|
||||
<div class="btn-group">
|
||||
<button class="btn-white btn btn-xs" v-on:click="_openManageCommunity(propertyCompany)">管理小区</button>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
@ -95,7 +98,16 @@
|
||||
</tfoot>
|
||||
</table>
|
||||
<!-- 分页 -->
|
||||
<vc:create path="frame/pagination"></vc:create>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<span>温馨提示:默认管理员账号为手机号;密码为手机号</span>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<vc:create path="frame/pagination"></vc:create>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -78,6 +78,9 @@
|
||||
vc.component.propertyCompanyManageInfo.moreCondition = true;
|
||||
}
|
||||
},
|
||||
_openManageCommunity: function(_propertyCompany) {
|
||||
vc.jumpToPage('/#/pages/common/propertyCommunity?storeId=' + _propertyCompany.storeId);
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
@ -5,9 +5,9 @@
|
||||
<div class="ibox-title">
|
||||
<h5>我的小区</h5>
|
||||
<div class="ibox-tools" style="top:10px;">
|
||||
<button type="button" class="btn btn-primary btn-sm" v-on:click="_openEnterCommunityModal()">
|
||||
<!-- <button type="button" class="btn btn-primary btn-sm" v-on:click="_openEnterCommunityModal()">
|
||||
<i class="fa fa-plus"></i>入驻小区
|
||||
</button>
|
||||
</button> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
@ -91,10 +91,10 @@
|
||||
</div>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<div class="btn-group" v-if="community.auditStatusCd == '1100' && community.communityId != '7020181217000001'">
|
||||
<!-- <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>
|
||||
</button>
|
||||
</div>-->
|
||||
<div class="btn-group" v-if="community.auditStatusCd == '1100' ">
|
||||
<button class="btn-white btn btn-xs" v-on:click="_openUpdateCommunityModel(community)">修改
|
||||
</button>
|
||||
@ -114,7 +114,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<vc:create path="common/storeEnterCommunity"></vc:create>
|
||||
<vc:create path="common/storeExitCommunity"></vc:create>
|
||||
<!-- <vc:create path="common/storeEnterCommunity"></vc:create>
|
||||
<vc:create path="common/storeExitCommunity"></vc:create> -->
|
||||
<vc:create path="common/editCommunityArea"></vc:create>
|
||||
</div>
|
||||
96
public/pages/common/propertyCommunity/propertyCommunity.html
Normal file
96
public/pages/common/propertyCommunity/propertyCommunity.html
Normal file
@ -0,0 +1,96 @@
|
||||
<div>
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="ibox ">
|
||||
<div class="ibox-title">
|
||||
<h5>查询条件</h5>
|
||||
<div class="ibox-tools" style="top:10px;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="请输入小区编号" v-model="propertyCommunityInfo.conditions.communityId" class=" form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="请输入小区名称" v-model="propertyCommunityInfo.conditions.name" class=" form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-1">
|
||||
<button type="button" class="btn btn-primary btn-sm" v-on:click="_queryCommunityMethod()">
|
||||
<i class="fa fa-search"></i> 查询
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="ibox">
|
||||
<div class="ibox-title">
|
||||
<h5>小区信息</h5>
|
||||
<div class="ibox-tools" style="top:10px;">
|
||||
<button type="button" class="btn btn-primary btn-sm" v-on:click="_openAddCommunityModal()">
|
||||
<i class="fa fa-plus"></i>加入小区
|
||||
</button>
|
||||
<button type="button" class="btn btn-white btn-sm" v-on:click="vc.goBack()">
|
||||
返回
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">小区ID</th>
|
||||
<th class="text-center">小区名称</th>
|
||||
<!--<th>小区地址</th>-->
|
||||
<th width="25%" class="text-center">附近地标</th>
|
||||
<th class="text-center">城市编码</th>
|
||||
<th class="text-center">状态</th>
|
||||
<th class="text-center">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="community in propertyCommunityInfo.communitys">
|
||||
<td class="text-center">{{community.communityId}}</td>
|
||||
<td class="text-center">{{community.name}}</td>
|
||||
<!--<td>{{community.address}}</td>-->
|
||||
<td class="text-center">{{community.nearbyLandmarks}}</td>
|
||||
<td class="text-center">{{community.cityName}}</td>
|
||||
<td class="text-center">{{community.stateName}}</td>
|
||||
<td class="text-center">
|
||||
<div class="btn-group">
|
||||
<button class="btn-white btn btn-xs" v-on:click="_openDeleteCommunityModel(community)">删除
|
||||
</button>
|
||||
</div>
|
||||
<div class="btn-group">
|
||||
<button class="btn-white btn btn-xs" v-on:click="_openEditCommunityModel(community)">修改
|
||||
</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="7">
|
||||
<ul class="pagination float-right"></ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<!-- 分页 -->
|
||||
<vc:create path="frame/pagination"></vc:create>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<vc:create path="common/addCommunity"></vc:create>
|
||||
<vc:create path="common/editCommunity"></vc:create>
|
||||
<vc:create path="common/deleteCommunity"></vc:create>
|
||||
</div>
|
||||
83
public/pages/common/propertyCommunity/propertyCommunity.js
Normal file
83
public/pages/common/propertyCommunity/propertyCommunity.js
Normal file
@ -0,0 +1,83 @@
|
||||
/**
|
||||
入驻小区
|
||||
**/
|
||||
(function(vc) {
|
||||
var DEFAULT_PAGE = 1;
|
||||
var DEFAULT_ROWS = 10;
|
||||
vc.extends({
|
||||
data: {
|
||||
propertyCommunityInfo: {
|
||||
communitys: [],
|
||||
total: 0,
|
||||
records: 1,
|
||||
storeTypeCd: vc.getData('/nav/getUserInfo').storeTypeCd,
|
||||
conditions: {
|
||||
name: '',
|
||||
memberId: '',
|
||||
communityId: ''
|
||||
}
|
||||
}
|
||||
},
|
||||
_initMethod: function() {
|
||||
$that.propertyCommunityInfo.conditions.memberId = vc.getParam('storeId');
|
||||
vc.component._listCommunitys(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
|
||||
},
|
||||
_initEvent: function() {
|
||||
vc.on('propertyCommunity', 'listCommunity', function(_param) {
|
||||
vc.component._listCommunitys(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
});
|
||||
vc.on("propertyCommunity", "propertyCommunity", "notifyArea", function(_param) {
|
||||
vc.component.propertyCommunityInfo.conditions.cityCode = _param.selectArea;
|
||||
});
|
||||
vc.on('pagination', 'page_event', function(_currentPage) {
|
||||
vc.component._listCommunitys(_currentPage, DEFAULT_ROWS);
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
_listCommunitys: function(_page, _rows) {
|
||||
vc.component.propertyCommunityInfo.conditions.page = _page;
|
||||
vc.component.propertyCommunityInfo.conditions.row = _rows;
|
||||
var _param = {
|
||||
params: vc.component.propertyCommunityInfo.conditions
|
||||
}
|
||||
//发送get请求
|
||||
vc.http.apiGet('/community.listCommunitys',
|
||||
_param,
|
||||
function(json, res) {
|
||||
var _propertyCommunityInfo = JSON.parse(json);
|
||||
vc.component.propertyCommunityInfo.total = _propertyCommunityInfo.total;
|
||||
vc.component.propertyCommunityInfo.records = _propertyCommunityInfo.records;
|
||||
vc.component.propertyCommunityInfo.communitys = _propertyCommunityInfo.communitys;
|
||||
vc.emit('pagination', 'init', {
|
||||
total: vc.component.propertyCommunityInfo.records,
|
||||
dataCount: vc.component.propertyCommunityInfo.total,
|
||||
currentPage: _page
|
||||
});
|
||||
},
|
||||
function(errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
_openAddCommunityModal: function() {
|
||||
vc.emit('addCommunity', 'openAddCommunityModal', {});
|
||||
},
|
||||
_openEditCommunityModel: function(_community) {
|
||||
vc.emit('editCommunity', 'openEditCommunityModal', _community);
|
||||
},
|
||||
_openDeleteCommunityModel: function(_community) {
|
||||
vc.emit('deleteCommunity', 'openDeleteCommunityModal', _community);
|
||||
},
|
||||
_openRecallCommunityModel: function(_community) {
|
||||
vc.emit('recallAuditFinishCommunity', 'openRecallAuditFinishCommunityModal', _community);
|
||||
},
|
||||
_queryCommunityMethod: function() {
|
||||
vc.component._listCommunitys(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
_openDeleteCommunityModel(_community) {
|
||||
vc.emit('deleteCommunity', 'openDeleteCommunityModal', _community);
|
||||
},
|
||||
}
|
||||
});
|
||||
})(window.vc);
|
||||
Loading…
Reference in New Issue
Block a user