| | |
| | | <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", |
| | |
| | | data() { |
| | | return { |
| | | btmType: '',//业务类型(或链接类型) |
| | | content: '',//UI上下文的名称 |
| | | context: '',//UI上下文的名称 |
| | | checkedData: { |
| | | //各区域选中数据 |
| | | northArea: [{}], |
| | |
| | | } |
| | | }, |
| | | computed: { |
| | | typeAContent(){ |
| | | return this.btmType+this.content; |
| | | typeAndContext(){ |
| | | return this.btmType+this.context; |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | 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 { |