Commit e960c075 by 张杰

修复bug

1 parent 45e38670
......@@ -102,12 +102,49 @@ export default {
preText: "orderNo",
tableData: [],
columnList: [
{ label: "工单号", prop: "workOrderNo", align: "center" },
{ label: "姓名", prop: "ownerName" },
{ label: "设备号", prop: "sn" },
{ label: "车架号", prop: "vin" },
{ label: "总行驶次数", prop: "tripCount" },
{ label: "总里程km", prop: "distance" },
{
label: "工单号",
prop: "workOrderNo",
align: "center",
formatter: (row) => {
return `${row.workOrderNo || "--"}`;
},
},
{
label: "姓名",
prop: "ownerName",
formatter: (row) => {
return `${row.ownerName || "--"}`;
},
},
{
label: "设备号",
prop: "sn",
formatter: (row) => {
return `${row.sn || "--"}`;
},
},
{
label: "车架号",
prop: "vin",
formatter: (row) => {
return `${row.vin || "--"}`;
},
},
{
label: "总行驶次数",
prop: "tripCount",
formatter: (row) => {
return `${row.tripCount || "--"}`;
},
},
{
label: "总里程km",
prop: "distance",
formatter: (row) => {
return `${row.distance || "--"}`;
},
},
],
pageTotal: 0,
filterVisible: false,
......@@ -131,8 +168,8 @@ export default {
} else {
this.isTimeOut = false;
}
this.eTime = '';
this.sTime = ''
this.eTime = "";
this.sTime = "";
}
},
},
......@@ -156,7 +193,9 @@ export default {
// 获取列表
getList(options) {
let oParams = this.getParams();
oParams.pageSize = options?options.pageSize:this.$refs.glsxTable.pageSizeNum;
oParams.pageSize = options
? options.pageSize
: this.$refs.glsxTable.pageSizeNum;
oParams.pageNumber = options ? options.pageNumber || 1 : 1;
this.loading = true;
GET_JOURNEYS_SEARCH(oParams)
......@@ -199,13 +238,13 @@ export default {
let oParams = this.getParams();
_this.dloading = true;
GET_JOURNEYS_EXPORT(oParams).then(res => {
GET_JOURNEYS_EXPORT(oParams).then((res) => {
_this.dloading = false;
if (res.code != 200) {
return false;
}
window.open(res.data);
})
});
// _this.$Common.exportExcel({
// url: `${store.state.baseURL}${MILEAGESTATISTICSEXPORT}`,
......@@ -239,13 +278,13 @@ export default {
oParams.journeyEndTime = o[1];
_this.cloading = true;
GET_JOURNEYS_DAILYEXPORT(oParams).then(res => {
GET_JOURNEYS_DAILYEXPORT(oParams).then((res) => {
_this.cloading = false;
if (res.code != 200) {
return false;
}
window.open(res.data);
})
});
},
// 重置
......@@ -253,10 +292,9 @@ export default {
this.searchForm = {};
this.searchText = "";
this.preText = "orderNo";
this.mileageDate = []
this.mileageDate = [];
this.$refs.glsxTable.rest();
this.getList();
},
},
};
......@@ -297,9 +335,9 @@ export default {
margin: 10px 0 0 0;
}
}
.search_box{
.a_input{
width:320px;
.search_box {
.a_input {
width: 320px;
}
}
</style>>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!