mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 21:59:12 +08:00
optimzie
This commit is contained in:
parent
872a6e8feb
commit
a515963375
@ -5,55 +5,10 @@
|
||||
vc.extends({
|
||||
data: {
|
||||
dataReportInfo: {
|
||||
curDay: 'today',
|
||||
curDay: 'thirty',
|
||||
_currentTab: 'dataReportEarnedStatistics',
|
||||
fees: [],
|
||||
orders: [{
|
||||
name: '投诉单',
|
||||
value: '3元',
|
||||
}, {
|
||||
name: '未完成投诉单',
|
||||
value: '1000元',
|
||||
}, {
|
||||
name: '完成投诉单',
|
||||
value: '3元',
|
||||
}, {
|
||||
name: '报修单',
|
||||
value: '3元',
|
||||
}, {
|
||||
name: '未完成报修单',
|
||||
value: '3元',
|
||||
}, {
|
||||
name: '完成报修单',
|
||||
value: '1000元',
|
||||
}, {
|
||||
name: '巡检',
|
||||
value: '3元',
|
||||
}, {
|
||||
name: '未完成巡检',
|
||||
value: '3元',
|
||||
}, {
|
||||
name: '完成巡检',
|
||||
value: '3元',
|
||||
}, {
|
||||
name: '保养',
|
||||
value: '1000元',
|
||||
}, {
|
||||
name: '未完成保养',
|
||||
value: '3元',
|
||||
}, {
|
||||
name: '完成保养',
|
||||
value: '3元',
|
||||
}, {
|
||||
name: '业主反馈',
|
||||
value: '3元',
|
||||
}, {
|
||||
name: '充电订单',
|
||||
value: '3元',
|
||||
}, {
|
||||
name: '月卡金额',
|
||||
value: '3元',
|
||||
}, ],
|
||||
orders: [],
|
||||
inouts: [{
|
||||
name: '进场车辆数',
|
||||
value: '1000元',
|
||||
@ -157,6 +112,8 @@
|
||||
$that._initDate();
|
||||
$that.changeTab($that.dataReportInfo._currentTab);
|
||||
$that._loadDataReportFee();
|
||||
$that._loadDataReportOrder();
|
||||
|
||||
},
|
||||
_initEvent: function() {
|
||||
vc.on('dataReport', 'listOwnerData', function(_info) {
|
||||
@ -224,6 +181,22 @@
|
||||
}
|
||||
);
|
||||
},
|
||||
_loadDataReportOrder: function() {
|
||||
let param = {
|
||||
params: $that.dataReportInfo.conditions
|
||||
}
|
||||
//发送get请求
|
||||
vc.http.apiGet('/dataReport.queryOrderDataReport',
|
||||
param,
|
||||
function(json, res) {
|
||||
let _json = JSON.parse(json);
|
||||
$that.dataReportInfo.orders = _json.data
|
||||
},
|
||||
function(errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
changeTab: function(_tab) {
|
||||
$that.dataReportInfo._currentTab = _tab;
|
||||
vc.emit(_tab, 'switch', {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user