Commit e960c075 by 张杰

修复bug

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