联调检测脚本修改功能

This commit is contained in:
GGJ
2025-02-20 16:39:15 +08:00
parent 629fd174e4
commit 14583d919d
9 changed files with 498 additions and 296 deletions

View File

@@ -9,16 +9,36 @@
<!-- 右侧编辑区域内容 -->
<el-form :inline="true" label-width="auto" :model="form" class="form-two">
<el-form-item label="电压有效值(V)">
<el-input type="number" v-model="form[0].famp" :disabled="!form[0].channelFlag"/>
<el-input
type="number"
@mousewheel.native.prevent
v-model="form[0].famp"
:disabled="!form[0].channelFlag"
/>
</el-form-item>
<el-form-item label="电流有效值(A)">
<el-input type="number"v-model="form[0].fphase" :disabled="!form[1].channelFlag"/>
<el-input
type="number"
@mousewheel.native.prevent
v-model="form[1].famp"
:disabled="!form[1].channelFlag"
/>
</el-form-item>
<el-form-item label="电压相角(°)">
<el-input type="number"v-model="form[1].famp" :disabled="!form[0].channelFlag"/>
<el-input
type="number"
@mousewheel.native.prevent
v-model="form[0].fphase"
:disabled="!form[0].channelFlag"
/>
</el-form-item>
<el-form-item label="电流相角(°)">
<el-input type="number"v-model="form[1].fphase" :disabled="!form[1].channelFlag"/>
<el-input
type="number"
@mousewheel.native.prevent
v-model="form[1].fphase"
:disabled="!form[1].channelFlag"
/>
</el-form-item>
</el-form>
</div>
@@ -26,7 +46,7 @@
</template>
<script setup lang="ts">
import { onMounted, ref ,watch} from 'vue'
import { onMounted, ref, watch } from 'vue'
import Line from '@/components/echarts/line/index.vue'
// const emit = defineEmits(['update'])
const props = defineProps({
@@ -39,20 +59,17 @@ const props = defineProps({
const lineRef: any = ref()
const chartsData = ref({})
// 解构并创建响应式变量
const form:any = computed({
const form: any = computed({
get() {
return props.childForm
},
set(value) {
}
set(value) {}
})
onMounted(() => {
drawSineWave()
})
function drawSineWave() {
chartsData.value = {
tooltip: {