|
|
@@ -0,0 +1,84 @@
|
|
|
+<!--
|
|
|
+ * @Author: your name
|
|
|
+ * @Date: 2025-08-07 10:48:08
|
|
|
+ * @LastEditTime: 2025-08-07 14:34:11
|
|
|
+ * @LastEditors: bogon
|
|
|
+ * @Description: In User Settings Edit
|
|
|
+ * @FilePath: /performance-test/src/views/overview/components/speed_torque_power/index.vue
|
|
|
+-->
|
|
|
+<template>
|
|
|
+ <div>
|
|
|
+ <!-- <div>发电机转速-转矩/发电机转速-有功功率</div> -->
|
|
|
+ <el-button type="primary" size="small" @click="handleTabPower(!isPower)">
|
|
|
+ {{ isPower ? "查看转速-转矩" : "查看转速-有功功率" }}
|
|
|
+ </el-button>
|
|
|
+ <SpeedPower
|
|
|
+ v-if="isPower"
|
|
|
+ :initBatchCode="initBatchCode"
|
|
|
+ :analysisTypeCode="'speed_power'"
|
|
|
+ :batchCodeList="batchCodeList"
|
|
|
+ @setInitBathCode="handleSetInitBathCode"
|
|
|
+ @setIsShow="handleSetIsShow"
|
|
|
+ @handle2D="handle2D"
|
|
|
+ :isShow="isShow"
|
|
|
+ :isShowTinymceEditorCom="true"
|
|
|
+ ></SpeedPower>
|
|
|
+ <SpeedTorque
|
|
|
+ v-else
|
|
|
+ :initBatchCode="initBatchCode"
|
|
|
+ :analysisTypeCode="'speed_torque'"
|
|
|
+ :batchCodeList="batchCodeList"
|
|
|
+ @setInitBathCode="handleSetInitBathCode"
|
|
|
+ @setIsShow="handleSetIsShow"
|
|
|
+ @handle2D="handle2D"
|
|
|
+ :isShow="isShow"
|
|
|
+ :isShowTinymceEditorCom="true"
|
|
|
+ ></SpeedTorque>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+<script>
|
|
|
+import SpeedTorque from "../speed_torque/index.vue";
|
|
|
+import SpeedPower from "../speed_power/index.vue";
|
|
|
+export default {
|
|
|
+ name: "SpeedTorquePower",
|
|
|
+ components: {
|
|
|
+ SpeedTorque,
|
|
|
+ SpeedPower,
|
|
|
+ },
|
|
|
+ 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 {
|
|
|
+ isPower: true,
|
|
|
+ windEngineGroupList: [],
|
|
|
+ };
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ handleTabPower(val) {
|
|
|
+ this.isPower = val;
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+</script>
|
|
|
+<style scoped lang="scss"></style>
|