From 40b023cd8d0eff46625d0d5ece8165e30cf1d65d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Wed, 29 Nov 2023 15:06:27 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/quality/monitoring/currentData/index.vue | 4 ++-- .../monitoring/qualityInspectionRecord/dialogForm.vue | 4 ++-- .../quality/monitoring/qualityInspectionRecord/index.vue | 6 +++--- src/views/quality/monitoring/statisticalData/index.vue | 8 ++++---- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/views/quality/monitoring/currentData/index.vue b/src/views/quality/monitoring/currentData/index.vue index b4bab9ab..0125ab85 100644 --- a/src/views/quality/monitoring/currentData/index.vue +++ b/src/views/quality/monitoring/currentData/index.vue @@ -11,7 +11,7 @@
-
工单:{{ list[index].workOrderName }}
+
工单名称:{{ list[index].workOrderName }}
@@ -214,7 +214,7 @@ export default { { // width: 160, prop: 'workOrderName', - label: '工单名', + label: '工单名称', }, ...this.dynamicProps, { diff --git a/src/views/quality/monitoring/qualityInspectionRecord/dialogForm.vue b/src/views/quality/monitoring/qualityInspectionRecord/dialogForm.vue index 4e7a2b67..9199e2fc 100644 --- a/src/views/quality/monitoring/qualityInspectionRecord/dialogForm.vue +++ b/src/views/quality/monitoring/qualityInspectionRecord/dialogForm.vue @@ -9,8 +9,8 @@ - - + + diff --git a/src/views/quality/monitoring/qualityInspectionRecord/index.vue b/src/views/quality/monitoring/qualityInspectionRecord/index.vue index e0374fc6..baac3742 100644 --- a/src/views/quality/monitoring/qualityInspectionRecord/index.vue +++ b/src/views/quality/monitoring/qualityInspectionRecord/index.vue @@ -141,8 +141,8 @@ export default { searchBarFormConfig: [ { type: 'select', - label: '工单号', - placeholder: '请选择工单号', + label: '工单名称', + placeholder: '请选择工单名称', param: 'workOrderId', selectOptions: [], filterable:true @@ -215,7 +215,7 @@ export default { { // width: 128, prop: 'workOrderName', - label: '工单Id', + label: '工单名称', }, { // width: 128, diff --git a/src/views/quality/monitoring/statisticalData/index.vue b/src/views/quality/monitoring/statisticalData/index.vue index c84cedc7..e4db32b7 100644 --- a/src/views/quality/monitoring/statisticalData/index.vue +++ b/src/views/quality/monitoring/statisticalData/index.vue @@ -67,8 +67,8 @@ export default { searchBarFormConfig: [ { type: 'select', - label: '工单号', - placeholder: '请选择工单号', + label: '工单名称', + placeholder: '请选择工单名称', param: 'workOrderIdList', selectOptions: [], multiple: true, @@ -205,8 +205,8 @@ export default { return [ { // width: 128, - prop: 'workOrderId', - label: '工单号', + prop: 'workOrderName', + label: '工单名称', }, { // width: 128, From fa5a303c08c593a6c20ef9e55919963bbd0bf466 Mon Sep 17 00:00:00 2001 From: helloDy <1615073571@qq.com> Date: Wed, 29 Nov 2023 16:53:51 +0800 Subject: [PATCH 2/3] bug ui --- src/components/DialogForm/index.vue | 5 +- src/components/Editor/index.vue | 12 +- .../AlarmGroup/components/BasicDrawer.vue | 10 +- .../BindGroup/components/BasicDrawer.vue | 6 +- .../equipment/base/config/BindGroup/index.vue | 2 +- .../config/DataCollection/TableConfig.vue | 33 +- .../DataCollection/components/BasicDrawer.vue | 8 +- .../base/inspection/Record/addRecord.vue | 4 +- .../base/inspection/Record/index.vue | 3 +- .../equipment/base/maintain/Monitor/index.vue | 31 +- .../equipment/base/maintain/Record/index.vue | 69 ++-- .../base/repair/CustomDialogForm.vue | 357 +++++++++--------- src/views/equipment/base/repair/index.vue | 40 +- 13 files changed, 306 insertions(+), 274 deletions(-) diff --git a/src/components/DialogForm/index.vue b/src/components/DialogForm/index.vue index 0c4fcff1..c780edba 100644 --- a/src/components/DialogForm/index.vue +++ b/src/components/DialogForm/index.vue @@ -142,6 +142,9 @@ function findMaxLabelWidth(rows) { if (!opt.label) return 0; if (opt.label.length > max) { max = opt.label.length; + if (opt.label.includes('(')) { + max = max - 3 + } } }); }); @@ -239,7 +242,7 @@ export default { size: { type: String, default: '', - }, + } }, data() { return { diff --git a/src/components/Editor/index.vue b/src/components/Editor/index.vue index 1b0d68c1..046e334a 100644 --- a/src/components/Editor/index.vue +++ b/src/components/Editor/index.vue @@ -83,7 +83,7 @@ export default { ], }, placeholder: '请输入内容', - readOnly: true, + // readOnly: false, }, }; }, @@ -123,11 +123,13 @@ export default { const editor = this.$refs.editor; this.Quill = new Quill(editor, this.options); // 取消自动聚焦 start + this.Quill?.enable(false); this.$nextTick(() => { + this.Quill?.enable(true); this.Quill?.blur(); - if (!this.readOnly) { - this.Quill?.enable(); - } + // if (!this.readOnly) { + // this.Quill?.enable(); + // } }); // 如果设置了上传地址则自定义图片上传事件 if (this.type === 'url') { @@ -196,7 +198,7 @@ export default { }; -