Browse Source

智能报表

master
songguoqiang 10 months ago
parent
commit
0280d710a0
  1. 8
      src/views/tjanalysis/natgasdatatotal/index.vue

8
src/views/tjanalysis/natgasdatatotal/index.vue

@ -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()

Loading…
Cancel
Save