联调电网一张图

This commit is contained in:
GGJ
2024-04-26 09:15:20 +08:00
parent 650c42846a
commit ec21d8430f
30 changed files with 2709 additions and 11 deletions

View File

@@ -589,7 +589,7 @@ const processSave = async () => {
// return result.value || ' '
// }
onBeforeMount(() => {
console.log(props, 'propspropspropsprops')
})
onMounted(() => {
initBpmnModeler()

View File

@@ -9,7 +9,7 @@ defineOptions({
name: 'Area'
})
import { useDictData } from '@/stores/dictData'
const emit = defineEmits(['changeName'])
const cascaderProps = {
label: 'name',
value: 'id',
@@ -20,21 +20,18 @@ const cascader = ref()
const dictData = useDictData()
const options = dictData.state.area
const areaName = ref(dictData.state.area[0].name)
const jbName = ref(dictData.state.area[0].name)
const change = (e: any) => {
if (cascader.value.getCheckedNodes()[0]?.pathLabels.length == 1) {
areaName.value = cascader.value.getCheckedNodes()[0].pathLabels[0]
} else if (cascader.value.getCheckedNodes()[0]?.pathLabels.length >= 2) {
areaName.value = cascader.value.getCheckedNodes()[0].pathLabels[1]
}
emit('changeName', cascader.value.getCheckedNodes()[0].label)
}
const changeName = () => {
return jbName.value
}
// watch(
// () => $attrs,
// (newVal, oldVal) => {
// console.log(123)
// // GetEchar('中国')
// }
// )
defineExpose({ areaName, change })
</script>

View File

@@ -1,5 +1,6 @@
<template>
<el-select v-model="interval" style="min-width: 90px; width: 90px; margin-right: 10px" @change="timeChange">
<div>
<el-select v-model="interval" style="min-width: 90px; width: 90px; margin-right: 10px" @change="timeChange">
<el-option v-for="item in timeOptions" :key="item.value" :label="item.label" :value="item.value" />
</el-select>
<el-date-picker
@@ -18,6 +19,7 @@
<el-button :disabled="backDisabled" type="primary" :icon="DArrowLeft" @click="preClick"></el-button>
<el-button type="primary" :icon="VideoPause" @click="nowTime">当前</el-button>
<el-button :disabled="preDisabled" type="primary" :icon="DArrowRight" @click="next"></el-button>
</div>
</template>
<script lang="ts" setup>