mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-26 16:19:44 +08:00
加入物业公司员工
This commit is contained in:
parent
c214f68b92
commit
e9761cc768
100
public/pages/admin/listPropertyManage/listPropertyManage.html
Normal file
100
public/pages/admin/listPropertyManage/listPropertyManage.html
Normal file
@ -0,0 +1,100 @@
|
||||
<div class="animated fadeInRight ecommerce">
|
||||
<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-link btn-sm" style="margin-right:10px;"
|
||||
v-on:click="_moreCondition()">{{listPropertyManageInfo.moreCondition ==
|
||||
true?'隐藏':'更多'}}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="请输入物业名称"
|
||||
v-model="listPropertyManageInfo.conditions.name" class=" form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" placeholder="请输入管理员" v-model="listPropertyManageInfo.conditions.staffName"
|
||||
class=" form-control">
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="请输入联系电话" v-model="listPropertyManageInfo.conditions.tel"
|
||||
class=" form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-1">
|
||||
<button type="button" class="btn btn-primary btn-sm" v-on:click="_queryListPropertyMethod()">
|
||||
<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;">
|
||||
|
||||
</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">物业名称</th>
|
||||
<th class="text-center">管理员</th>
|
||||
<th class="text-center">管理员电话</th>
|
||||
<th class="text-center">管理员ID</th>
|
||||
<th class="text-center">创建时间</th>
|
||||
<th class="text-right">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="listProperty in listPropertyManageInfo.listPropertys">
|
||||
<td class="text-center">{{listProperty.name}}</td>
|
||||
<td class="text-center">{{listProperty.staffName}}</td>
|
||||
<td class="text-center">{{listProperty.tel}}</td>
|
||||
<td class="text-center">{{listProperty.staffId}}</td>
|
||||
<td class="text-center">{{listProperty.createTime}}</td>
|
||||
<td class="text-right">
|
||||
<div class="btn-group">
|
||||
<button class="btn-white btn btn-xs"
|
||||
v-on:click="_openPropertysCommunityModel(listProperty)">隶属小区
|
||||
</button>
|
||||
<button class="btn-white btn btn-xs"
|
||||
v-on:click="_openPropertysCommunityModel(listProperty)">免密登录
|
||||
</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/storesCommunity"></vc:create>
|
||||
|
||||
</div>
|
||||
77
public/pages/admin/listPropertyManage/listPropertyManage.js
Normal file
77
public/pages/admin/listPropertyManage/listPropertyManage.js
Normal file
@ -0,0 +1,77 @@
|
||||
/**
|
||||
入驻小区
|
||||
**/
|
||||
(function (vc) {
|
||||
var DEFAULT_PAGE = 1;
|
||||
var DEFAULT_ROWS = 10;
|
||||
vc.extends({
|
||||
data: {
|
||||
listPropertyManageInfo: {
|
||||
listPropertys: [],
|
||||
total: 0,
|
||||
records: 1,
|
||||
moreCondition: false,
|
||||
conditions: {
|
||||
name: '',
|
||||
staffName: '',
|
||||
tel: ''
|
||||
}
|
||||
}
|
||||
},
|
||||
_initMethod: function () {
|
||||
vc.component._listListPropertys(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
_initEvent: function () {
|
||||
|
||||
vc.on('listPropertyManage', 'listListProperty', function (_param) {
|
||||
vc.component._listListPropertys(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
});
|
||||
vc.on('pagination', 'page_event', function (_currentPage) {
|
||||
vc.component._listListPropertys(_currentPage, DEFAULT_ROWS);
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
_listListPropertys: function (_page, _rows) {
|
||||
vc.component.listPropertyManageInfo.conditions.page = _page;
|
||||
vc.component.listPropertyManageInfo.conditions.row = _rows;
|
||||
var param = {
|
||||
params: vc.component.listPropertyManageInfo.conditions
|
||||
};
|
||||
|
||||
//发送get请求
|
||||
vc.http.get('listStoreManage',
|
||||
'list',
|
||||
param,
|
||||
function (json, res) {
|
||||
var _listPropertyManageInfo = JSON.parse(json);
|
||||
vc.component.listPropertyManageInfo.total = _listPropertyManageInfo.total;
|
||||
vc.component.listPropertyManageInfo.records = _listPropertyManageInfo.records;
|
||||
vc.component.listPropertyManageInfo.listPropertys = _listPropertyManageInfo.stores;
|
||||
vc.emit('pagination', 'init', {
|
||||
total: vc.component.listPropertyManageInfo.records,
|
||||
currentPage: _page
|
||||
});
|
||||
}, function (errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
_openPropertysCommunityModel: function (_listProperty) {
|
||||
vc.emit('storesCommunity','openStoresCommunity', _listProperty);
|
||||
},
|
||||
_queryListPropertyMethod: function () {
|
||||
vc.component._listListPropertys(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
|
||||
},
|
||||
_moreCondition: function () {
|
||||
if (vc.component.listPropertyManageInfo.moreCondition) {
|
||||
vc.component.listPropertyManageInfo.moreCondition = false;
|
||||
} else {
|
||||
vc.component.listPropertyManageInfo.moreCondition = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
})(window.vc);
|
||||
Loading…
Reference in New Issue
Block a user