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