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 { }; - diff --git a/src/views/core/analysis/balanceAnalysis/index.vue b/src/views/core/analysis/balanceAnalysis/index.vue index 8ce3b630..a4877d42 100644 --- a/src/views/core/analysis/balanceAnalysis/index.vue +++ b/src/views/core/analysis/balanceAnalysis/index.vue @@ -1,51 +1,56 @@ + diff --git a/src/views/energy/base/energyQuantityRealtime/index.vue b/src/views/energy/base/energyQuantityRealtime/index.vue index fd101a3e..3c96905d 100644 --- a/src/views/energy/base/energyQuantityRealtime/index.vue +++ b/src/views/energy/base/energyQuantityRealtime/index.vue @@ -63,7 +63,7 @@ const tableProps = [ } ] export default { - name: "EnergyPlc", + name: "EnergyQuantityRealtime", data() { return { formConfig: [ @@ -125,10 +125,34 @@ export default { window.addEventListener('resize', () => { this.tableH = this.tableHeight(260) }) + if (location.href.indexOf('?') > 0) { + let arr = location.href.split('?')[1].split('&') + this.formConfig[1].defaultSelect = [arr[0].split('=')[1], arr[1].split('=')[1]] + } else { + this.formConfig[1].defaultSelect = [Date.now() - 7*24*3600000, Date.now()] + } + this.queryParams.startTime = this.formConfig[1].defaultSelect[0] + this.queryParams.endTime = this.formConfig[1].defaultSelect[1] this.getList(); this.getTypeList() }, + watch: { + $route: 'initData' + }, methods: { + initData(to) { + if (to.name === 'EnergyQuantityRealtime') { + if (location.href.indexOf('?') > 0) { + let arr = location.href.split('?')[1].split('&') + this.formConfig[1].defaultSelect = [arr[0].split('=')[1], arr[1].split('=')[1]] + } else { + this.formConfig[1].defaultSelect = [Date.now() - 7*24*3600000, Date.now()] + } + this.queryParams.startTime = this.formConfig[1].defaultSelect[0] + this.queryParams.endTime = this.formConfig[1].defaultSelect[1] + this.getList() + } + }, buttonClick(val) { this.queryParams.pageNo = 1; this.queryParams.energyTypeId = val.energyTypeId diff --git a/src/views/energy/monitoring/energyReportSearch/index.vue b/src/views/energy/monitoring/energyReportSearch/index.vue index d10f444a..93e2c6cf 100644 --- a/src/views/energy/monitoring/energyReportSearch/index.vue +++ b/src/views/energy/monitoring/energyReportSearch/index.vue @@ -80,8 +80,7 @@ export default { param: 'timeVal', defaultSelect: [], width: 350, - clearable: false, - required:true + clearable: false }, { type: 'button', @@ -122,35 +121,11 @@ export default { this.tableH = this.tableHeight(260) this.isFold = this.searchBarWidth('energyReportSearchBox', 1180) }) - if (location.href.indexOf('?') > 0) { - let arr = location.href.split('?')[1].split('&') - this.formConfig[2].defaultSelect = [arr[0].split('=')[1], arr[1].split('=')[1]] - } else { - this.formConfig[2].defaultSelect = [Date.now() - 7*24*3600000, Date.now()] - } - this.queryParams.startTime = this.formConfig[2].defaultSelect[0] - this.queryParams.endTime = this.formConfig[2].defaultSelect[1] this.getList() this.getTypeList() this.isFold = this.searchBarWidth('energyReportSearchBox', 1180) }, - watch: { - $route: 'initData' - }, methods: { - initData(to) { - if (to.name === 'EnergyReportSearch') { - if (location.href.indexOf('?') > 0) { - let arr = location.href.split('?')[1].split('&') - this.formConfig[2].defaultSelect = [arr[0].split('=')[1], arr[1].split('=')[1]] - } else { - this.formConfig[2].defaultSelect = [Date.now() - 7*24*3600000, Date.now()] - } - this.queryParams.startTime = this.formConfig[2].defaultSelect[0] - this.queryParams.endTime = this.formConfig[2].defaultSelect[1] - this.getList() - } - }, getTypeList() { getEnergyTypeListAll().then((res) => { this.formConfig[1].selectOptions = res.data || [] diff --git a/src/views/equipment/base/config/AlarmGroup/components/BasicDrawer.vue b/src/views/equipment/base/config/AlarmGroup/components/BasicDrawer.vue index 079f999e..84f0d9cf 100644 --- a/src/views/equipment/base/config/AlarmGroup/components/BasicDrawer.vue +++ b/src/views/equipment/base/config/AlarmGroup/components/BasicDrawer.vue @@ -9,7 +9,8 @@ - diff --git a/src/views/equipment/base/config/BindGroup/components/BasicDrawer.vue b/src/views/equipment/base/config/BindGroup/components/BasicDrawer.vue index 036fd885..f5a87fbf 100644 --- a/src/views/equipment/base/config/BindGroup/components/BasicDrawer.vue +++ b/src/views/equipment/base/config/BindGroup/components/BasicDrawer.vue @@ -9,7 +9,8 @@ - diff --git a/src/views/equipment/base/maintain/Monitor/index.vue b/src/views/equipment/base/maintain/Monitor/index.vue index e5b5038c..c2e3f957 100644 --- a/src/views/equipment/base/maintain/Monitor/index.vue +++ b/src/views/equipment/base/maintain/Monitor/index.vue @@ -49,7 +49,7 @@