diff --git a/src/views/tjanalysis/electricdata/index.vue b/src/views/tjanalysis/electricdata/index.vue index 3887314..239b596 100644 --- a/src/views/tjanalysis/electricdata/index.vue +++ b/src/views/tjanalysis/electricdata/index.vue @@ -101,7 +101,7 @@ const getDbTypes = async () => { const getList = async () => { const ll = dbTypes.typeList.find(map=>map.mcode == queryParams.mcode); - + queryParams.iname = ll?.mname const res = await TjanalysisApi.queryElectricdataTj(queryParams) if (res != null && res.trList != null) { dataList.days = res.days diff --git a/src/views/tjanalysis/hrelongatordata/index.vue b/src/views/tjanalysis/hrelongatordata/index.vue index 662557f..7dddc6f 100644 --- a/src/views/tjanalysis/hrelongatordata/index.vue +++ b/src/views/tjanalysis/hrelongatordata/index.vue @@ -65,7 +65,8 @@ const dataList = ref([]) const names = ref("热轧108延伸"); const queryParams = reactive({ date: formatDate(new Date() , 'YYYY-MM-DD'), - flag: '1' + flag: '1', + iname:'' }) const flagList = ref([]) @@ -83,6 +84,8 @@ const resetQuery = async () => { } const getList = async () => { + const ll = flagList.value.find(map=>map.value == queryParams.flag); + queryParams.iname = ll?.label const res = await TjanalysisApi.queryRzcjinfoDay(queryParams) dataList.value = res.dataList loading.value = false diff --git a/src/views/tjanalysis/hrpuncherdata/index.vue b/src/views/tjanalysis/hrpuncherdata/index.vue index 9f6eb43..65eebd4 100644 --- a/src/views/tjanalysis/hrpuncherdata/index.vue +++ b/src/views/tjanalysis/hrpuncherdata/index.vue @@ -65,7 +65,8 @@ const dataList = ref([]) const names = ref(''); const queryParams = reactive({ date: formatDate(new Date() , 'YYYY-MM-DD'), - flag: '1' + flag: '1', + iname:'' }) const flagList =ref([]) @@ -82,6 +83,8 @@ const resetQuery = async () => { } const getList = async () => { + const ll = flagList.value.find(map=>map.value == queryParams.flag); + queryParams.iname = ll?.label const res = await TjanalysisApi.queryHrpuncherDay(queryParams) dataList.value = res.dataList loading.value = false diff --git a/src/views/tjanalysis/hrsizingmilldata/index.vue b/src/views/tjanalysis/hrsizingmilldata/index.vue index 51522ee..de8a9b5 100644 --- a/src/views/tjanalysis/hrsizingmilldata/index.vue +++ b/src/views/tjanalysis/hrsizingmilldata/index.vue @@ -66,7 +66,8 @@ const dataList = ref([]) const names = ref(''); const queryParams = reactive({ date: formatDate(new Date() , 'YYYY-MM-DD'), - flag: '1' + flag: '1', + iname:'' }) const flagList = ref([]) @@ -84,6 +85,8 @@ const resetQuery = async () => { } const getList = async () => { + const ll = flagList.value.find(map=>map.value == queryParams.flag); + queryParams.iname = ll?.label const res = await TjanalysisApi.querySizingmillDay(queryParams) dataList.value = res.dataList loading.value = false diff --git a/src/views/tjanalysis/natgasdatacd/index.vue b/src/views/tjanalysis/natgasdatacd/index.vue index 1b289d5..4f0680b 100644 --- a/src/views/tjanalysis/natgasdatacd/index.vue +++ b/src/views/tjanalysis/natgasdatacd/index.vue @@ -79,6 +79,7 @@ const dataList = reactive({dList: [] , days: 0}) const queryParams = reactive({ date: formatDate(new Date() , 'YYYY-MM-DD'), flag:'0', + iname:'' }) const handleQuery = async () => { @@ -97,6 +98,10 @@ const resetQuery = async () => { } const getList = async () => { + + const ll = flagList.value.find(map=>map.value == queryParams.flag); + queryParams.iname = ll?.label + const res = await TjanalysisApi.queryNatgasDatacdDay(queryParams) if (res != null && res.dataList != null) { dataList.dList = res.dataList diff --git a/src/views/tjanalysis/natgasdatahr/index.vue b/src/views/tjanalysis/natgasdatahr/index.vue index 1fc1b19..81ba49a 100644 --- a/src/views/tjanalysis/natgasdatahr/index.vue +++ b/src/views/tjanalysis/natgasdatahr/index.vue @@ -78,7 +78,8 @@ const icode = 'Gas_Data_008' const queryParams = reactive({ date: formatDate(new Date() , 'YYYY-MM-DD'), mcode:'', - icode: icode//固定查询 + icode: icode,//固定查询 + iname:'' }) const handleQuery = async () => { @@ -93,6 +94,8 @@ const resetQuery = async () => { } const getList = async () => { + const ll = mcodeList.value.find(map=>map.code == queryParams.mcode); + queryParams.iname = ll?.label const res = await TjanalysisApi.queryNatgasdataDay(queryParams) if (res != null && res.dataList != null) { dataList.dList = res.dataList diff --git a/src/views/tjanalysis/natgasdatatotal/index.vue b/src/views/tjanalysis/natgasdatatotal/index.vue index 984bfe1..da5c9ea 100644 --- a/src/views/tjanalysis/natgasdatatotal/index.vue +++ b/src/views/tjanalysis/natgasdatatotal/index.vue @@ -80,7 +80,8 @@ const name = ref(""); const queryParams = reactive({ date: formatDate(new Date() , 'YYYY-MM-DD'), - flag: 1 + flag: 1, + iname:'' }) const handleQuery = async () => { let aa = flagList.value.find(map=>map.value==queryParams.flag); @@ -96,6 +97,8 @@ const resetQuery = async () => { } const getList = async () => { + const ll = flagList.value.find(map=>map.value == queryParams.flag); + queryParams.iname = ll?.label const res = await TjanalysisApi.queryNatgasdatatotal(queryParams) if (res != null && res.trList != null) { dataList.dList = res.trList diff --git a/src/views/tjanalysis/platscale/index.vue b/src/views/tjanalysis/platscale/index.vue index 7572518..2bf28f9 100644 --- a/src/views/tjanalysis/platscale/index.vue +++ b/src/views/tjanalysis/platscale/index.vue @@ -1,6 +1,6 @@