From d39f1d793b7eea13f4b39aa818084585197410c6 Mon Sep 17 00:00:00 2001 From: aixianling Date: Wed, 9 Nov 2022 14:40:36 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=A4=A7=E5=B1=8F=E6=8B=96?= =?UTF-8?q?=E6=8B=BD=E5=8D=A1=E9=A1=BF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bigscreen/designer/components/Layout.vue | 41 ++++++++----------- .../designer/components/form/DataConfig.vue | 11 +++-- 2 files changed, 22 insertions(+), 30 deletions(-) diff --git a/packages/bigscreen/designer/components/Layout.vue b/packages/bigscreen/designer/components/Layout.vue index 310f0fbf..ffc0e2ca 100644 --- a/packages/bigscreen/designer/components/Layout.vue +++ b/packages/bigscreen/designer/components/Layout.vue @@ -48,14 +48,13 @@ v-model="dashboard.presetLine" class="vueRuler" :step-length="50" - :parent="true" - :position="'relative'" - :is-scale-revise="true" + parent + is-scale-revise + position="relative" :visible.sync="dashboard.presetLineVisible"> -
-1) { - // this.$refs[`chart${index}`][0].watchResize() - } + onResizing(x, y, w, h, item) { + item.left = x + item.top = y + item.width = w + item.height = h }, initCanvas() { @@ -1052,6 +1044,7 @@ export default { .draggable { position: absolute; border: none; + transition: none; &::after { position: absolute; diff --git a/packages/bigscreen/designer/components/form/DataConfig.vue b/packages/bigscreen/designer/components/form/DataConfig.vue index 35cf2ae5..31536051 100644 --- a/packages/bigscreen/designer/components/form/DataConfig.vue +++ b/packages/bigscreen/designer/components/form/DataConfig.vue @@ -122,14 +122,13 @@ import 'bin-code-editor/lib/styles/index.css' export default { - name: 'dataCofing', + name: 'dataConfig', props: { options: Object, instance: Function, dict: Object, params: Object, - urlPrefix: String }, data () { @@ -168,7 +167,7 @@ this.getDataList() if ((this.options.dataY && this.options.dataY.length && this.options.dataX) || this.options.type === 'monitor') { - const api = this.options.dataType === 'apiData' ? this.options.api : `${this.urlPrefix}/appdiylargescreen/statisticsByLsid?id=${this.options.sourceDataId}` + const api = this.options.dataType === 'apiData' ? this.options.api : `/app/appdiylargescreen/statisticsByLsid?id=${this.options.sourceDataId}` this.instance.post(api).then(res => { if (res.code == 0) { if (res.data.length && this.options.type !== 'monitor') { @@ -201,7 +200,7 @@ }, onMoniterId (e) { - this.instance.post(`${this.urlPrefix}/appzyvideoequipment/getWebSdkUrl?deviceId=${e}`).then(res => { + this.instance.post(`/app/appzyvideoequipment/getWebSdkUrl?deviceId=${e}`).then(res => { if (res.code == 0) { this.options.src = JSON.parse(res.data).url } @@ -209,7 +208,7 @@ }, getDataList () { - this.instance.post(`${this.urlPrefix}/appdiylargescreen/allDatasourceByPage`, null, { + this.instance.post(`/app/appdiylargescreen/allDatasourceByPage`, null, { params: { current: 1, size: 10000 @@ -286,7 +285,7 @@ onDataChange (e) { this.options.dataX = '' this.options.dataY = [] - this.instance.post(`${this.urlPrefix}/appdiylargescreen/statisticsByLsid?id=${e}`).then(res => { + this.instance.post(`/app/appdiylargescreen/statisticsByLsid?id=${e}`).then(res => { if (res.code == 0) { if (res.data.length) { if (this.options.type === 'table') {