diff --git a/src/components/DialogForm/index.vue b/src/components/DialogForm/index.vue index 4449dab1..53655af5 100644 --- a/src/components/DialogForm/index.vue +++ b/src/components/DialogForm/index.vue @@ -65,6 +65,7 @@ v-if="col.subcomponent" :key="col.key" :disabled="disabled" + :read-only="disabled" :is="col.subcomponent" v-model="form[col.prop]" :inlineStyle="col.style" diff --git a/src/components/Editor/index.vue b/src/components/Editor/index.vue index bc14fc3a..7cb684f3 100644 --- a/src/components/Editor/index.vue +++ b/src/components/Editor/index.vue @@ -1,279 +1,293 @@ diff --git a/src/views/equipment/base/config/AlarmGroup/components/BasicDrawer.vue b/src/views/equipment/base/config/AlarmGroup/components/BasicDrawer.vue index 8731cd6f..26bac412 100644 --- a/src/views/equipment/base/config/AlarmGroup/components/BasicDrawer.vue +++ b/src/views/equipment/base/config/AlarmGroup/components/BasicDrawer.vue @@ -29,7 +29,10 @@
{{ section.name }} -
+
+
添加报警 @@ -102,9 +104,9 @@
@@ -123,9 +125,9 @@ + @@ -191,29 +193,12 @@ export default { url: '/base/equipment-group-alarm/getCode', rules: [{ required: true, message: '不能为空', trigger: 'blur' }], }, - { - select: true, - label: '报警类型', // 固定选项 - prop: 'type', - options: [ - { label: '布尔型', value: 2 }, - { label: '字符型', value: 1 }, - ], - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], - }, - ], - [ { select: true, label: '报警级别', // 字典 prop: 'grade', options: this.getDictDatas(this.DICT_TYPE.EQU_ALARM_LEVEL), }, - { - input: true, - label: '设备报警编码', // 对应到设备实际的报警编码 - prop: 'alarmCode', - }, ], [ { @@ -229,6 +214,23 @@ export default { rules: [{ required: true, message: '不能为空', trigger: 'blur' }], }, ], + [ + { + select: true, + label: '报警类型', // 固定选项 + prop: 'type', + options: [ + { label: '布尔型', value: 2 }, + { label: '字符型', value: 1 }, + ], + rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + }, + { + input: true, + label: '设备报警编码', // 对应到设备实际的报警编码 + prop: 'alarmCode', + }, + ], ], attrQuery: { params: { diff --git a/src/views/equipment/base/config/AlarmGroup/components/dialogForm.vue b/src/views/equipment/base/config/AlarmGroup/components/dialogForm.vue index ec7a67a0..ca8afb7b 100644 --- a/src/views/equipment/base/config/AlarmGroup/components/dialogForm.vue +++ b/src/views/equipment/base/config/AlarmGroup/components/dialogForm.vue @@ -23,6 +23,7 @@ @change="$emit('update', dataForm)" placeholder="请输入报警编码" /> + - - - - - - - - - - - - - - - - @@ -122,6 +86,42 @@ + + + + + + + + + + + + + + + diff --git a/src/views/equipment/base/config/BindGroup/components/BasicDrawer.vue b/src/views/equipment/base/config/BindGroup/components/BasicDrawer.vue index bd599044..ea1eab95 100644 --- a/src/views/equipment/base/config/BindGroup/components/BasicDrawer.vue +++ b/src/views/equipment/base/config/BindGroup/components/BasicDrawer.vue @@ -29,7 +29,10 @@
{{ section.name }} -
+
+
添加属性 @@ -102,9 +104,9 @@
@@ -120,10 +122,10 @@ @close="closeAttrForm" @cancel="closeAttrForm" @confirm="submitAttrForm"> + diff --git a/src/views/equipment/base/config/BindGroup/components/dialogForm.vue b/src/views/equipment/base/config/BindGroup/components/dialogForm.vue index fe7b848b..db6a5ee4 100644 --- a/src/views/equipment/base/config/BindGroup/components/dialogForm.vue +++ b/src/views/equipment/base/config/BindGroup/components/dialogForm.vue @@ -41,29 +41,6 @@ --> - - - - - - - - - - - - - - - @@ -122,6 +86,42 @@ + + + + + + + + + + + + + + + diff --git a/src/views/equipment/base/config/DataCollection/components/BasicDrawer.vue b/src/views/equipment/base/config/DataCollection/components/BasicDrawer.vue index 8fe9f1b1..a22fcedf 100644 --- a/src/views/equipment/base/config/DataCollection/components/BasicDrawer.vue +++ b/src/views/equipment/base/config/DataCollection/components/BasicDrawer.vue @@ -29,7 +29,10 @@
{{ section.name }} -
+
+
添加属性 @@ -104,9 +106,9 @@
@@ -122,10 +124,10 @@ @close="closeAttrForm" @cancel="closeAttrForm" @confirm="submitAttrForm"> + diff --git a/src/views/equipment/base/maintain/Record/index.vue b/src/views/equipment/base/maintain/Record/index.vue index a2d91f5b..f6fd273d 100644 --- a/src/views/equipment/base/maintain/Record/index.vue +++ b/src/views/equipment/base/maintain/Record/index.vue @@ -269,7 +269,6 @@ export default { prop: 'files', }, ], - // TODO: 富文本 [ { label: '保养描述',