细节修改

master
kang luyu 2024-11-11 15:25:54 +08:00
parent 583a69ca64
commit f9223df2b5
2 changed files with 35 additions and 9 deletions

View File

@ -55,8 +55,8 @@ let handleClose = (data: tagInfo) => {
} }
}; };
let three_D_IP = ref<string>('10.85.224.143:80') // ip // let three_D_IP = ref<string>('10.85.224.143:80') // ip
// let three_D_IP = ref<string>('10.86.224.3:80') /// ip线 let three_D_IP = ref<string>('10.86.224.3:80') /// ip线
// let three_D_IP = ref<string>("10.120.75.248:80"); // // let three_D_IP = ref<string>("10.120.75.248:80"); //
// ip // ip

View File

@ -61,7 +61,10 @@
<!-- 右收缩箭头 --> <!-- 右收缩箭头 -->
<div class="title_bg title"> <div class="title_bg title">
<div class="title_box"> <div class="title_box">
<img src="@/assets/images/v2-1/source_logo.png" alt="" />光伏实时信息 <img
src="@/assets/images/v2-1/source_logo.png"
alt=""
/>
</div> </div>
</div> </div>
<div class="pv_box content_bg"> <div class="pv_box content_bg">
@ -147,7 +150,19 @@
:key="refreshkey" :key="refreshkey"
></powerLine> ></powerLine>
</div> </div>
<div class="infotitle"><span>实时功率曲线</span></div> <div class="infotitle">
<span>实时功率曲线</span>
<div class="timeBox">
<el-date-picker
v-model="value1"
type="date"
placeholder="Pick a date"
:default-value="new Date(2010, 9, 1)"
/>
</div>
</div>
<div class="info3"> <div class="info3">
<!-- <div class="btnList"> <!-- <div class="btnList">
<div <div
@ -158,7 +173,11 @@
{{ item.bname }} {{ item.bname }}
</div> </div>
</div> --> </div> -->
<rateLine :pvArr="pvArr" v-if="pvArrFlag" :key="refreshkey"></rateLine> <rateLine
:pvArr="pvArr"
v-if="pvArrFlag"
:key="refreshkey"
></rateLine>
</div> </div>
</div> </div>
</div> </div>
@ -227,7 +246,7 @@ import { pvApi } from "@/api/Osp/svgApi";
onMounted(() => { onMounted(() => {
let Objinput = { orgID: "8af8470a47aad8e20147aad92e400335" }; // let Objinput = { orgID: "8af8470a47aad8e20147aad92e400335" }; //
getCurves(Objinput); //{orgID} getCurves(Objinput); //{orgID}
let inputdata={ mrid: "03DKX-24289" } let inputdata = { mrid: "03DKX-24289" };
getpv(inputdata); //线 getpv(inputdata); //线
}); });
@ -238,7 +257,7 @@ const getTreeNode = (treeNode: any) => {
}; // }; //
getCurves(Objinput); // getCurves(Objinput); //
let inputdata={ mrid: treeNode.key } let inputdata = { mrid: treeNode.key };
getpv(inputdata); getpv(inputdata);
}; };
// //
@ -282,12 +301,12 @@ let pvArr = reactive([]); //光伏
let pvArrFlag = ref<boolean>(false); let pvArrFlag = ref<boolean>(false);
// 线 // 线
// let refreshkey=ref(1) // let refreshkey=ref(1)
const getpv = (inputdata:any) => { const getpv = (inputdata: any) => {
pvApi(inputdata).then((res) => { pvApi(inputdata).then((res) => {
console.log(res, "respv"); console.log(res, "respv");
pvArr = res.data; pvArr = res.data;
console.log(pvArr, "pvArr"); console.log(pvArr, "pvArr");
refreshkey.value+=1 refreshkey.value += 1;
if (pvArr.length > 0) { if (pvArr.length > 0) {
pvArrFlag.value = true; pvArrFlag.value = true;
} }
@ -686,6 +705,8 @@ const styleVar = computed(() => {
padding-top: 2%; padding-top: 2%;
box-sizing: border-box; box-sizing: border-box;
.infotitle { .infotitle {
position: relative;
width: 90%; width: 90%;
height: changeHeight(50); height: changeHeight(50);
line-height: changeHeight(50); line-height: changeHeight(50);
@ -698,6 +719,11 @@ const styleVar = computed(() => {
span { span {
margin-left: 7%; margin-left: 7%;
} }
.timeBox{
position: absolute;
right: 2%;
}
} }
.info1 { .info1 {
height: changeHeight(359); height: changeHeight(359);