田源
2024-04-15 52e123212f37e214ee4599649adbd743e0d86c2b
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 {