|
|
@@ -0,0 +1,94 @@
|
|
|
+<!--
|
|
|
+ * @Author: your name
|
|
|
+ * @Date: 2025-08-04 16:11:25
|
|
|
+ * @LastEditTime: 2025-08-06 16:27:04
|
|
|
+ * @LastEditors: bogon
|
|
|
+ * @Description: In User Settings Edit
|
|
|
+ * @FilePath: /performance-test/src/views/overview/components/power_scatters/index.vue
|
|
|
+-->
|
|
|
+<template>
|
|
|
+ <div class="type-variable-power-scatters">
|
|
|
+ <!-- <el-button @click="handle2D">{{ is2D ? "查看3D" : "查看2D" }}</el-button> -->
|
|
|
+ <PowerScatter2D
|
|
|
+ v-if="is2D"
|
|
|
+ :initBatchCode="initBatchCode"
|
|
|
+ :analysisTypeCode="'power_scatter_2D'"
|
|
|
+ :batchCodeList="batchCodeList"
|
|
|
+ @setInitBathCode="handleSetInitBathCode"
|
|
|
+ @setIsShow="handleSetIsShow"
|
|
|
+ @handle2D="handle2D"
|
|
|
+ :isShow="isShow"
|
|
|
+ :isShowTinymceEditorCom="true"
|
|
|
+ ></PowerScatter2D>
|
|
|
+ <PowerScatter3D
|
|
|
+ :initBatchCode="initBatchCode"
|
|
|
+ :analysisTypeCode="'power_scatter'"
|
|
|
+ :batchCodeList="batchCodeList"
|
|
|
+ @setInitBathCode="handleSetInitBathCode"
|
|
|
+ @setIsShow="handleSetIsShow"
|
|
|
+ @handle2D="handle2D"
|
|
|
+ :isShow="isShow"
|
|
|
+ :isShowTinymceEditorCom="true"
|
|
|
+ v-else
|
|
|
+ ></PowerScatter3D>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+<script>
|
|
|
+import PowerScatter2D from "../power_scatter_2D/index.vue";
|
|
|
+import PowerScatter3D from "../power_scatter/index.vue";
|
|
|
+export default {
|
|
|
+ name: "PowerScatters",
|
|
|
+ components: {
|
|
|
+ PowerScatter2D,
|
|
|
+ PowerScatter3D,
|
|
|
+ },
|
|
|
+ props: {
|
|
|
+ initBatchCode: {
|
|
|
+ default: "",
|
|
|
+ type: String,
|
|
|
+ },
|
|
|
+ isShowTinymceEditorCom: {
|
|
|
+ default: true,
|
|
|
+ type: Boolean,
|
|
|
+ },
|
|
|
+ isShow: {
|
|
|
+ default: false,
|
|
|
+ type: Boolean,
|
|
|
+ },
|
|
|
+ analysisTypeCode: {
|
|
|
+ default: "",
|
|
|
+ type: String,
|
|
|
+ },
|
|
|
+ batchCodeList: {
|
|
|
+ default: "",
|
|
|
+ type: Array,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ emits: ["setInitBathCode", "setIsShow"], // 👈 告诉 Vue 父组件会向上传递事件
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ windEngineGroupList: [],
|
|
|
+ is2D: true,
|
|
|
+ };
|
|
|
+ },
|
|
|
+ //105=40(剩余贷款)+60(已还贷款)+30(首付)-20(利息)
|
|
|
+ methods: {
|
|
|
+ handleSetInitBathCode(val) {
|
|
|
+ this.$emit("setInitBathCode", val); // 👈 向爷爷组件传递
|
|
|
+ },
|
|
|
+ handleSetIsShow(val) {
|
|
|
+ this.$emit("setIsShow", val); // 👈 向爷爷组件传递
|
|
|
+ },
|
|
|
+ handle2D(val) {
|
|
|
+ this.is2D = val;
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+</script>
|
|
|
+<style scoped lang="scss">
|
|
|
+.type-variable-power-scatters {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ overflow-y: scroll;
|
|
|
+}
|
|
|
+</style>
|