From 5bebb0546da5d2b34bae52a13f302657c7099755 Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期五, 12 四月 2024 12:06:36 +0800 Subject: [PATCH] 按钮action --- Source/ProjectWeb/src/views/base/UIContentViewer.vue | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Source/ProjectWeb/src/views/base/UIContentViewer.vue b/Source/ProjectWeb/src/views/base/UIContentViewer.vue index c987860..330b849 100644 --- a/Source/ProjectWeb/src/views/base/UIContentViewer.vue +++ b/Source/ProjectWeb/src/views/base/UIContentViewer.vue @@ -54,7 +54,7 @@ <script> import {verifyNull} from "@/util/validate"; import UIContentArea from "@/views/base/UIContentArea" -import {getUIContent} from '@/api/base/region' +import {getUIContext} from '@/api/base/region' export default { name: "UIContentViewer", @@ -62,7 +62,7 @@ data() { return { btmType: '',//涓氬姟绫诲瀷锛堟垨閾炬帴绫诲瀷锛� - content: '',//UI涓婁笅鏂囩殑鍚嶇О + context: '',//UI涓婁笅鏂囩殑鍚嶇О checkedData: { //鍚勫尯鍩熼�変腑鏁版嵁 northArea: [{}], @@ -84,8 +84,8 @@ } }, computed: { - typeAContent(){ - return this.btmType+this.content; + typeAndContext(){ + return this.btmType+this.context; } }, created() { @@ -99,16 +99,16 @@ methods: { getTheParameters(){ this.btmType = this.$route.query.type; - this.content = this.$route.query.context || this.$route.query.content; + this.context = this.$route.query.context || this.$route.query.content; this.sourceData = this.$route.query; }, initUI() { - getUIContent({btmType: this.btmType, id: this.content}).then(res => { + getUIContext({btmType: this.btmType, id: this.context}).then(res => { this.uiDefineVO = res.data.obj; - this.initContent(); + this.initContext(); }) }, - initContent() { + initContext() { if (this.uiDefineVO.southAreas && this.uiDefineVO.southAreas.length > 0) { this.centerHeight = '65%'; } else { -- Gitblit v1.9.3