|
@@ -28,7 +28,7 @@ const nbsubmit = async () => {
|
|
|
console.log("gb", lbval.value);
|
|
|
// console.log('shijan',timedata);
|
|
|
const res = await request.get(
|
|
|
- `/meterinfo/calculating?windId=${value1.value}${lbval.value==='all'?'':'&meterType='+lbval.value}${fenval.value==='all'?'':'&meterClass='+fenval.value}${mingval.value==='all'?'':'&name='+mingval.value}&startTime=${new Date(timedata.value[0]).getTime()}&endTime=${ new Date(timedata.value[1]).getTime()}&page=${currentPage4.value}&perPage=${pageSize4.value}`
|
|
|
+ `/meterinfo/calculating?stationId=${goodval.value}&windId=${value1.value}${lbval.value==='all'?'':'&meterType='+lbval.value}${fenval.value==='all'?'':'&meterClass='+fenval.value}${mingval.value==='all'?'':'&name='+mingval.value}&startTime=${new Date(timedata.value[0]).getTime()}&endTime=${ new Date(timedata.value[1]).getTime()}&page=${currentPage4.value}&perPage=${pageSize4.value}`
|
|
|
);
|
|
|
console.log("66", res);
|
|
|
res.data.calculating.forEach((ele)=>{
|
|
@@ -94,14 +94,27 @@ const handleCurrentChange = (val) => {
|
|
|
nbsubmit();
|
|
|
};
|
|
|
|
|
|
+
|
|
|
+const Change1 = async () => {
|
|
|
+ const res = await request.get(`/meter/infoall?stationId=${goodval.value}`);
|
|
|
+ console.log(res);
|
|
|
+ ChangZhan.value = res.data.fdc;
|
|
|
+ fenval.value='all'
|
|
|
+ mingval.value='all'
|
|
|
+
|
|
|
+};
|
|
|
// 拿场站
|
|
|
+const good = ref([]);
|
|
|
+const goodval = ref();
|
|
|
const nbhh = async () => {
|
|
|
- const res = await request.get("/meter/infoall");
|
|
|
+ const res = await request.get("/meter/allStation");
|
|
|
console.log(res);
|
|
|
- ChangZhan.value = res.data.fdc;
|
|
|
+ good.value = res.data
|
|
|
+ // console.log('0',ChangZhan.good);
|
|
|
// value1.value = ChangZhan.value[0].nemCode;
|
|
|
};
|
|
|
|
|
|
+
|
|
|
/**mounted */
|
|
|
onMounted(() => {
|
|
|
tableHeight.value = window.innerHeight - 260 + "px";
|
|
@@ -121,11 +134,28 @@ onMounted(() => {
|
|
|
<div
|
|
|
class="pl-[20px] flex items-center h-[80px] relative mb-[20px] shadow rounded-[6px] shadow-blue-500"
|
|
|
>
|
|
|
- <el-form-item label="场站" class="!mb-0">
|
|
|
+ <el-form-item label="场站类型" class="!mb-0">
|
|
|
+ <el-select
|
|
|
+ v-model="goodval"
|
|
|
+ class="w-[150px]"
|
|
|
+ @change="Change1(goodval)"
|
|
|
+ placeholder="请选择"
|
|
|
+ popper-class="select"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in good"
|
|
|
+ :key="item.nemCode"
|
|
|
+ :value="item.nemCode"
|
|
|
+ :label="item.name"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="场站" class="!mb-0 ml-3">
|
|
|
<el-select
|
|
|
v-model="value1"
|
|
|
class="w-[150px]"
|
|
|
@change="ChangZhanChange(value1)"
|
|
|
+ clearable
|
|
|
placeholder="请选择"
|
|
|
popper-class="select"
|
|
|
>
|