mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-26 16:19:44 +08:00
58 lines
1.9 KiB
JavaScript
58 lines
1.9 KiB
JavaScript
/**
|
|
入驻小区
|
|
**/
|
|
(function (vc) {
|
|
var DEFAULT_PAGE = 1;
|
|
var DEFAULT_ROWS = 10;
|
|
vc.extends({
|
|
data: {
|
|
staffAppAuthManageInfo: {
|
|
staffName: '',
|
|
appType: '',
|
|
stateName: '',
|
|
auId: '',
|
|
openId: '',
|
|
createTime: '',
|
|
openName: ''
|
|
}
|
|
},
|
|
_initMethod: function () {
|
|
vc.component._listStaffAppAuths(DEFAULT_PAGE, DEFAULT_ROWS);
|
|
},
|
|
_initEvent: function () {
|
|
vc.on('staffAppAuthManage', 'listStaffAppAuth', function (_param) {
|
|
vc.component._listStaffAppAuths(DEFAULT_PAGE, DEFAULT_ROWS);
|
|
});
|
|
},
|
|
methods: {
|
|
_listStaffAppAuths: function (_page, _rows) {
|
|
var param = {
|
|
params: {
|
|
page: 1,
|
|
row: 1
|
|
}
|
|
};
|
|
//发送get请求
|
|
vc.http.apiGet('/staff/queryStaffAppAuth',
|
|
param,
|
|
function (json, res) {
|
|
let _staffAppAuthManageInfo = JSON.parse(json);
|
|
vc.copyObject(_staffAppAuthManageInfo.data, $that.staffAppAuthManageInfo);
|
|
}, function (errInfo, error) {
|
|
console.log('请求失败处理');
|
|
}
|
|
);
|
|
},
|
|
_openAddStaffAppAuthModal: function () {
|
|
vc.emit('addStaffAppAuth', 'openAddStaffAppAuthModal', {});
|
|
},
|
|
_queryStaffAppAuthMethod: function () {
|
|
vc.component._listStaffAppAuths(DEFAULT_PAGE, DEFAULT_ROWS);
|
|
},
|
|
_refreshStaffAppAuth: function () {
|
|
vc.component._listStaffAppAuths(DEFAULT_PAGE, DEFAULT_ROWS);
|
|
}
|
|
}
|
|
});
|
|
})(window.vc);
|