diff --git a/frontend/src/views/aiAlarmSetting/index.vue b/frontend/src/views/aiAlarmSetting/index.vue index d3d9a9f..88766a7 100644 --- a/frontend/src/views/aiAlarmSetting/index.vue +++ b/frontend/src/views/aiAlarmSetting/index.vue @@ -30,7 +30,7 @@ const channelList = ref([ { channel_no: 11, singal_type: '4~20mA', output_node: '', limit_low: 0, limit_high: 8, delay: 8, enabled: false }, { channel_no: 12, singal_type: '1~5V', output_node: '', limit_low: 0, limit_high: 8, delay: 8, enabled: false }, ]) - +const signalTypeOptions = ref(['1~5V', '4~20mA']) const nodeOptions = ref(['开出一', '开出二', '开出三', '开出四', '开出五', '开出六', '开出七', '开出八', '开出九', '开出十', '开出十一', '开出十二']) const isswitch = ref(false) const dialogVisible = ref(false) @@ -111,11 +111,14 @@ onMounted(() => {
{{ item.channel_no }}
- + /> --> + + +
{ currentInputType.value = type @@ -83,7 +84,7 @@ const handlePasswordConfirm = () => { isswitch.value = false } else { ElMessage.error('保存失败') - isswitch.value = false + isswitch.value = false } }).catch(err => { isswitch.value = false @@ -126,7 +127,9 @@ onMounted(() => {
{{ item.ch }}
- + + +
@@ -276,30 +279,31 @@ onMounted(() => { } } - :deep(.el-select__wrapper), - :deep(.el-input__wrapper) { - border: none !important; - box-shadow: none !important; - background: transparent !important; - text-align: center !important; - } +:deep(.el-select__wrapper), +:deep(.el-input__wrapper) { + border: none !important; + box-shadow: none !important; + background: transparent !important; + text-align: center !important; +} - :deep(.el-select__wrapper.is-hover), - :deep(.el-input__wrapper.is-hover), - :deep(.el-select__wrapper.is-focused), - :deep(.el-input__wrapper.is-focused) { - box-shadow: none !important; - border: none !important; - } +:deep(.el-select__wrapper.is-hover), +:deep(.el-input__wrapper.is-hover), +:deep(.el-select__wrapper.is-focused), +:deep(.el-input__wrapper.is-focused) { + box-shadow: none !important; + border: none !important; +} - :deep(.el-input__inner) { - text-align: center !important; - font-size: 14px !important; - } +:deep(.el-input__inner) { + text-align: center !important; + font-size: 14px !important; +} + +:deep(.el-input.is-disabled .el-input__inner) { + color: #606266; + -webkit-text-fill-color: #606266; +} - :deep(.el-input.is-disabled .el-input__inner) { - color: #606266; - -webkit-text-fill-color: #606266; - } // 去掉所有边框 + 阴影 \ No newline at end of file diff --git a/frontend/src/views/aoChannelSetting/index.vue b/frontend/src/views/aoChannelSetting/index.vue index 9ffc102..d6ecc95 100644 --- a/frontend/src/views/aoChannelSetting/index.vue +++ b/frontend/src/views/aoChannelSetting/index.vue @@ -42,7 +42,7 @@ const openKeyboard = (index: number, value: number, type: string) => { currentInputValue.value = value keyboardVisible.value = true } - +const signalTypeOptions = ref(['1~5V', '4~20mA']) const handleKeyboardConfirm = (value: string) => { if (currentInputIndex.value >= 0) { const channel = channelList.value[currentInputIndex.value] @@ -124,7 +124,9 @@ onMounted(() => {
{{ item.ch }}
- + + +