|
@@ -9,10 +9,10 @@
|
|
clearable
|
|
clearable
|
|
>
|
|
>
|
|
</el-input>
|
|
</el-input>
|
|
-<!--
|
|
|
|
|
|
+
|
|
<el-date-picker v-model="startTime" type="datetime" placeholder="选择日期"></el-date-picker>
|
|
<el-date-picker v-model="startTime" type="datetime" placeholder="选择日期"></el-date-picker>
|
|
<span>至</span>
|
|
<span>至</span>
|
|
- <el-date-picker v-model="endTime" type="datetime" placeholder="选择日期"></el-date-picker> -->
|
|
|
|
|
|
+ <el-date-picker v-model="endTime" type="datetime" placeholder="选择日期"></el-date-picker>
|
|
|
|
|
|
<el-button type="primary" class="btn" @click="onclick">
|
|
<el-button type="primary" class="btn" @click="onclick">
|
|
<i class="el-icon-search"></i>查询
|
|
<i class="el-icon-search"></i>查询
|
|
@@ -48,16 +48,25 @@ export default {
|
|
startTime: null,
|
|
startTime: null,
|
|
endTime: null,
|
|
endTime: null,
|
|
input: "",
|
|
input: "",
|
|
- startTime: null,
|
|
|
|
- endTime: null,
|
|
|
|
option: {
|
|
option: {
|
|
// 表格请求数据的地址
|
|
// 表格请求数据的地址
|
|
- requestUrl: "/api/v1/tms/getLoadShipList?apiId=63",
|
|
|
|
|
|
+ requestUrl: "/api/v1/tms/getLoadShipList?apiId=512",
|
|
},
|
|
},
|
|
};
|
|
};
|
|
},
|
|
},
|
|
- mounted() {},
|
|
|
|
|
|
+ mounted() {
|
|
|
|
+ this.initDate();
|
|
|
|
+ this.onclick();
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
|
|
+ initDate(){
|
|
|
|
+ this.startTime=new Date();
|
|
|
|
+ this.endTime=new Date();
|
|
|
|
+ this.startTime.setDate(1);
|
|
|
|
+ this.startTime.setHours(0);
|
|
|
|
+ this.startTime.setMinutes(0);
|
|
|
|
+ this.startTime.setSeconds(0);
|
|
|
|
+ },
|
|
onclick() {
|
|
onclick() {
|
|
let startTime = null;
|
|
let startTime = null;
|
|
let endTime = null;
|
|
let endTime = null;
|
|
@@ -68,13 +77,13 @@ export default {
|
|
endTime = sjTime(this.endTime);
|
|
endTime = sjTime(this.endTime);
|
|
}
|
|
}
|
|
if(startTime && endTime && startTime < endTime){
|
|
if(startTime && endTime && startTime < endTime){
|
|
- this.option.requestUrl = "/api/v1/tms/getLoadShipList?apiId=63&con=" + this.input+
|
|
|
|
|
|
+ this.option.requestUrl = "/api/v1/tms/getLoadShipList?apiId=512&con=" + this.input+
|
|
"&startTime=" +
|
|
"&startTime=" +
|
|
startTime +
|
|
startTime +
|
|
"&endTime=" +
|
|
"&endTime=" +
|
|
endTime;
|
|
endTime;
|
|
}else{
|
|
}else{
|
|
- this.option.requestUrl = "/api/v1/tms/getLoadShipList?apiId=63&con=" + this.input;
|
|
|
|
|
|
+ this.option.requestUrl = "/api/v1/tms/getLoadShipList?apiId=512&con=" + this.input;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
click(resultId) {
|
|
click(resultId) {
|
|
@@ -99,7 +108,7 @@ export default {
|
|
message: "删除成功!",
|
|
message: "删除成功!",
|
|
});
|
|
});
|
|
this.option.requestUrl =
|
|
this.option.requestUrl =
|
|
- "/api/v1/tms/getLoadShipList?apiId=63&i=" + new Date();
|
|
|
|
|
|
+ "/api/v1/tms/getLoadShipList?apiId=512&i=" + new Date();
|
|
});
|
|
});
|
|
})
|
|
})
|
|
.catch(() => {
|
|
.catch(() => {
|