This commit is contained in:
caozehui
2025-08-01 08:42:26 +08:00
parent bf8b8c9f0f
commit bbc08679b9

View File

@@ -159,14 +159,12 @@
</template> </template>
<script setup lang='ts'> <script setup lang='ts'>
import IPAddress from '@/components/IpAddress/index.vue'
import {dialogBig} from '@/utils/elementBind' import {dialogBig} from '@/utils/elementBind'
import {type Device} from '@/api/device/interface/device' import {type Device} from '@/api/device/interface/device'
import {ElMessage, type FormItemRule} from 'element-plus' import {ElMessage, type FormItemRule} from 'element-plus'
import {addPqDev, updatePqDev} from '@/api/device/device' import {addPqDev, updatePqDev} from '@/api/device/device'
import {computed, reactive, type Ref, ref} from 'vue' import {computed, ref} from 'vue'
import {useDictStore} from '@/stores/modules/dict' import {useDictStore} from '@/stores/modules/dict'
import {CirclePlus, Delete, EditPen} from '@element-plus/icons-vue'
// 使用 dayjs 库格式化 // 使用 dayjs 库格式化
import dayjs from 'dayjs' import dayjs from 'dayjs'
import MonitorTable from '@/views/machine/device/components/monitorTab.vue'; import MonitorTable from '@/views/machine/device/components/monitorTab.vue';
@@ -450,9 +448,11 @@ const handleDevTypeChange = (value: string) => {
formContent.value.encryptionFlag = 1 formContent.value.encryptionFlag = 1
formContent.value.series = 'Pqs&cn870299' formContent.value.series = 'Pqs&cn870299'
formContent.value.devKey = '!qaz@wsx3edc4rfv' formContent.value.devKey = '!qaz@wsx3edc4rfv'
} else {
formContent.value.encryptionFlag = 0
formContent.value.series = null
formContent.value.devKey = null
} }
} else { } else {
formContent.value.devChns = 1; // 默认值为1 formContent.value.devChns = 1; // 默认值为1
formContent.value.devCurr = 1; // 默认值为1 formContent.value.devCurr = 1; // 默认值为1