提交代码

This commit is contained in:
jiang 2024-11-28 13:25:11 +08:00
parent 049a415936
commit 5dd9d8b251
1 changed files with 7 additions and 0 deletions

View File

@ -160,6 +160,7 @@ export default {
releaseOpen: false, releaseOpen: false,
// //
queryParams: { queryParams: {
time:[],
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
datasetName: null, datasetName: null,
@ -184,6 +185,12 @@ export default {
/**获取数据 **/ /**获取数据 **/
getList(){ getList(){
this.loading =true this.loading =true
if ( this.queryParams.time.length>0){
this.queryParams.startTime = parseTime(this.queryParams.time[0])
this.queryParams.endTime = parseTime(this.queryParams.time[1])
}
console.log(this.queryParams)
list(this.queryParams).then(response => { list(this.queryParams).then(response => {
console.log(response); console.log(response);
this.list = response.rows; this.list = response.rows;