“yu” 2024-07-14 22:36:30 +08:00
parent 90f745f6e0
commit 8c5366c9c8
2 changed files with 12 additions and 9 deletions

View File

@ -6,7 +6,7 @@ interface idInfo {
// 发电量信息接口 // 发电量信息接口
export function curpower_api(data: idInfo) { export function curpower_api(data: idInfo) {
return request({ return request({
url: "/wwpm/biz/v1/device_all", url: "/api/wwpm/biz/v1/photo_voltaic/capacity",
method: "POST", method: "POST",
data, data,
}); });

View File

@ -156,7 +156,6 @@
<rateLine></rateLine> <rateLine></rateLine>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
@ -217,19 +216,23 @@ import rateLine from "./rateLine.vue";
import timePvLine from "./timePvLine.vue"; import timePvLine from "./timePvLine.vue";
import { useNow, useDateFormat } from "@vueuse/core"; import { useNow, useDateFormat } from "@vueuse/core";
import { id } from "element-plus/es/locale/index.mjs"; import { id } from "element-plus/es/locale/index.mjs";
import { getCurves } from "crypto"; import { curpower_api } from "@/api/pvPage/pvApi";
onMounted(() => { onMounted(() => {
//
getCurves()
let Objinput={orgID: "8af8470a47aad8e20147aad92e400335"} //
getCurves(Objinput); //{orgID}
}); });
//
const getCurves = (datares: any) => {
curpower_api(datares).then((res) => {
console.log("res", res);
});
};
const HMS = useDateFormat(useNow(), "HH:mm:ss"); // const HMS = useDateFormat(useNow(), "HH:mm:ss"); //
const YMD = useDateFormat(useNow(), "YYYY-MM-DD"); // const YMD = useDateFormat(useNow(), "YYYY-MM-DD"); //
// ------------------------------------------------ // ------------------------------------------------
// //