|
|
@ -81,9 +81,9 @@ const queryParams = reactive({ |
|
|
|
date: formatDate(new Date() , 'YYYY-MM-DD'), |
|
|
|
flag: 1 |
|
|
|
}) |
|
|
|
let aa = flagList.value.find(map=>map.code==queryParams.flag); |
|
|
|
name.value = aa?.label |
|
|
|
const handleQuery = async () => { |
|
|
|
let aa = flagList.value.find(map=>map.value==queryParams.flag); |
|
|
|
name.value = aa?.label |
|
|
|
dataList.dList = [] |
|
|
|
getList() |
|
|
|
} |
|
|
@ -95,8 +95,6 @@ const resetQuery = async () => { |
|
|
|
} |
|
|
|
|
|
|
|
const getList = async () => { |
|
|
|
let aa = flagList.value.find(map=>map.code==queryParams.flag); |
|
|
|
name.value = aa?.label |
|
|
|
const res = await TjanalysisApi.queryNatgasdatatotal(queryParams) |
|
|
|
if (res != null && res.trList != null) { |
|
|
|
dataList.dList = res.trList |
|
|
@ -111,7 +109,7 @@ onMounted(async () => { |
|
|
|
if (res != null && res.length>0) { |
|
|
|
flagList.value = res |
|
|
|
queryParams.flag= flagList.value[0].value; |
|
|
|
cosnt ll = flagList.value.find(map=>map.value == queryParams.flag); |
|
|
|
const ll = flagList.value.find(map=>map.value == queryParams.flag); |
|
|
|
name.value = ll?.label |
|
|
|
} |
|
|
|
getList() |
|
|
|