mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
optimzie
This commit is contained in:
parent
872a6e8feb
commit
a515963375
@ -5,55 +5,10 @@
|
|||||||
vc.extends({
|
vc.extends({
|
||||||
data: {
|
data: {
|
||||||
dataReportInfo: {
|
dataReportInfo: {
|
||||||
curDay: 'today',
|
curDay: 'thirty',
|
||||||
_currentTab: 'dataReportEarnedStatistics',
|
_currentTab: 'dataReportEarnedStatistics',
|
||||||
fees: [],
|
fees: [],
|
||||||
orders: [{
|
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元',
|
|
||||||
}, ],
|
|
||||||
inouts: [{
|
inouts: [{
|
||||||
name: '进场车辆数',
|
name: '进场车辆数',
|
||||||
value: '1000元',
|
value: '1000元',
|
||||||
@ -157,6 +112,8 @@
|
|||||||
$that._initDate();
|
$that._initDate();
|
||||||
$that.changeTab($that.dataReportInfo._currentTab);
|
$that.changeTab($that.dataReportInfo._currentTab);
|
||||||
$that._loadDataReportFee();
|
$that._loadDataReportFee();
|
||||||
|
$that._loadDataReportOrder();
|
||||||
|
|
||||||
},
|
},
|
||||||
_initEvent: function() {
|
_initEvent: function() {
|
||||||
vc.on('dataReport', 'listOwnerData', function(_info) {
|
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) {
|
changeTab: function(_tab) {
|
||||||
$that.dataReportInfo._currentTab = _tab;
|
$that.dataReportInfo._currentTab = _tab;
|
||||||
vc.emit(_tab, 'switch', {
|
vc.emit(_tab, 'switch', {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user