|
|
@ -14,10 +14,10 @@ |
|
|
|
<el-form-item label="位置" prop="mcode"> |
|
|
|
<el-select v-model="queryParams.mcode" placeholder="请选择"> |
|
|
|
<el-option |
|
|
|
v-for="item in types.flagList" |
|
|
|
:key="item.value" |
|
|
|
:label="item.name" |
|
|
|
:value="item.value" /> |
|
|
|
v-for="item in mcodeList" |
|
|
|
:key="item.code" |
|
|
|
:label="item.label" |
|
|
|
:value="item.code" /> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
@ -60,6 +60,7 @@ |
|
|
|
import * as TjanalysisApi from '@/api/tjanalysis' |
|
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
|
import { get } from 'http' |
|
|
|
import * as PszcCommonApi from '@/api/pszc/pszccommon' |
|
|
|
|
|
|
|
defineOptions({ name: 'Natgasdatahr' }) |
|
|
|
|
|
|
@ -70,17 +71,13 @@ const route = useRoute() // 路由信息 |
|
|
|
const routeName = ref() |
|
|
|
routeName.value = route.name |
|
|
|
const loading = ref(true) |
|
|
|
const types = reactive({flagList: [ |
|
|
|
{name: '步进炉' , value: 'Gas_hr_001'}, |
|
|
|
{name: '固熔炉' , value: '2'}, |
|
|
|
{name: '缝式炉' , value: '3'} |
|
|
|
]}) |
|
|
|
const mcodeList = ref([]); |
|
|
|
const dataList = reactive({dList: [] , days: 0}) |
|
|
|
|
|
|
|
const icode = 'Gas_Data_008' |
|
|
|
const queryParams = reactive({ |
|
|
|
date: formatDate(new Date() , 'YYYY-MM-DD'), |
|
|
|
mcode: 'Gas_hr_001', |
|
|
|
flag: '2' |
|
|
|
mcode:'', |
|
|
|
icode: icode//固定查询待确认 |
|
|
|
}) |
|
|
|
|
|
|
|
const handleQuery = async () => { |
|
|
@ -95,7 +92,7 @@ const resetQuery = async () => { |
|
|
|
} |
|
|
|
|
|
|
|
const getList = async () => { |
|
|
|
const res = await TjanalysisApi.queryNatgasdataDay(queryParams) |
|
|
|
const res = await TjanalysisApi.queryNatgasDatacdDay(queryParams) |
|
|
|
if (res != null && res.dataList != null) { |
|
|
|
dataList.dList = res.dataList |
|
|
|
} |
|
|
@ -105,6 +102,11 @@ const getList = async () => { |
|
|
|
|
|
|
|
/** 初始化 **/ |
|
|
|
onMounted(async () => { |
|
|
|
const res =await PszcCommonApi.selectMcodeListByIcode({flag:2,icode:icode}); |
|
|
|
if (res != null && res.length>0) { |
|
|
|
mcodeList.value = res |
|
|
|
queryParams.mcode= mcodeList.value[0].code; |
|
|
|
} |
|
|
|
getList() |
|
|
|
}) |
|
|
|
|
|
|
|