wangting
2024-09-27 7e45169698349fa0b0b37b151edce5bb28eab74f
修改UI定义
已修改4个文件
已重命名1个文件
122 ■■■■■ 文件已修改
Source/plt-web/plt-web-ui/src/api/UI/uiDefine.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/router/page/index.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/index.vue 103 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/plShow.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/api/UI/uiDefine.js
@@ -103,6 +103,14 @@
    params
  })
}
//下方表格数据
export function getPLPageDefinations(params){
  return request({
    url: "/api/uiManagerController/getPLPageDefinations",
    method: "get",
    params
  });
}
// ä¸šåŠ¡ç±»åž‹ä¸‹æ‹‰æŸ¥è¯¢
export function getBtmDatasByPage(page, limit, params) {
Source/plt-web/plt-web-ui/src/router/page/index.js
@@ -120,7 +120,7 @@
    children: [
      {
        path: '', // ç©ºè·¯å¾„表示访问 '/referIndex' æ—¶åŠ è½½ Layout ç»„ä»¶
        component: () => import('@/views/modelingMenu/ui/uiDefine/plShow'),
        component: () => import('@/views/modelingMenu/ui/uiDefine/rightRegion/plShow'),
        props: true
      }
    ],
Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/index.vue
@@ -146,7 +146,7 @@
import {getBizTree,gridUIContextData,saveUIContextData,updateUIContextData,delUIContextData, cloneUIContextData ,getExpContextTree,expUIContextData} from "@/api/UI/uiDefine";
import basicOption from "@/util/basic-option";
import func from "@/util/func";
import plShow from "@/views/modelingMenu/ui/uiDefine/plShow";
import plShow from "@/views/modelingMenu/ui/uiDefine/rightRegion/plShow";
export default {
  name: "index",
  components:{plShow},
Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/index.vue
@@ -1,5 +1,5 @@
<template>
  <basic-container>
  <div>
    <avue-crud
      ref="crud"
      v-model="form"
@@ -190,71 +190,27 @@
        </el-container>
      </el-container>
    </el-dialog>
  </basic-container>
  </div>
</template>
<script>
import basicOption from "@/util/basic-option";
import func from "@/util/func";
import {
  getPLPageDefinations,
  getBtmDatasByPage,
  getPortalVIDatasByPage,
  getQTInfoDatasByPage,
  getTabButtons,
  addTapButton,
  updateTapButton
  updateTapButton, getTabByContextIdAndType
} from "@/api/UI/uiDefine";
export default {
  props: {
    sourceData: {
      type: Array,
      default: () => [
        {
          "controlPath": "",
          "description": "",
          "eventKey": "",
          "eventMap": null,
          "eventValue": "",
          "expandCols": "",
          "expandMode": "",
          "extAttr": "",
          "id": "ABAE25CE-867E-9C73-AC1A-B316FD91C65B",
          "isShowImage": "",
          "linkType": "parttodocument",
          "name": "技术文件",
          "navigatorType": "",
          "orderField": "",
          "orderMode": "",
          "orientation": "",
          "qryType": null,
          "queryTemplateName": "QueryPartEngineeringTechnology",
          "refTreeSet": "",
          "returnRows": "",
          "rootContent": "",
          "searchTarger": "2",
          "separator": "",
          "seq": "1",
          "showAbs": "",
          "showContent": "",
          "showContentRelation": "",
          "showContentTable": "",
          "showContentType": "",
          "showExpression": "",
          "showExpressionRoot": "",
          "showLinkAbs": "",
          "showType": "document",
          "subUILayout": "",
          "subUIObjType": "",
          "tabPageOId": "98F9082F-BAF4-FB81-3230-32590B34A329",
          "templateId": "PartEngineeringTechnology_list",
          "templateType": "1",
          "type": 3,
          "uiLayout": null,
          "uiParser": "",
          "validity": ""
        }
      ]
      type: Object,
      default: () => {}
    },
    height: {
      type: String,
@@ -299,13 +255,7 @@
      basicForm: {
        seq: 1
      },
      treeData: [
        {
          label: this.sourceData[0].name,
          oId: 'parentNode',
          children: []
        }
      ],
      treeData: [],
      treeOption: {
        menu: false,
        addBtn: false,
@@ -320,7 +270,7 @@
      btnDesignVisible: false,
      FormData: [],
      form: {},
      data: this.sourceData,
      data: [],
      option: {
        ...basicOption,
        height: this.height,
@@ -816,8 +766,31 @@
      formDataRow: {},
    }
  },
  watch: {
    sourceData:{
      handler(val) {
        if(val && val.plOId) {
          this.getTableList()
        }
      },
      immediate: true,
      deep:true
    }
  },
  computed: {},
  methods: {
    //获取列表数据
    getTableList(){
      const params = {
        pageContextOId:this.sourceData.plOId
      }
      getPLPageDefinations( params).then(res => {
        this.data = res.data.data;
        this.selectList=[];
        this.$refs.crud.clearSelection();
        this.tableLoading = false;
      })
    },
    // æ ¹æ®ä¸åŒå€¼åŒºåˆ†ç±»åž‹
    templateTypeValueHandler(val) {
      const componentMap = {
@@ -983,12 +956,8 @@
    // æŒ‰é’®è®¾è®¡
    btnDesignClickHandler() {
      if (this.selectList.length <= 0) {
        this.$message.error('请至少选择一条数据');
        return;
      }
      if (this.selectList.length > 1) {
        this.$message.error('最多选择一条数据');
      if (this.selectList.length !=1) {
        this.$message.error('请选择一条数据');
        return;
      }
      this.btnDesignVisible = true;
@@ -1004,7 +973,11 @@
      getTabButtons(params).then(res => {
        if (res.data.code === 200) {
          const data = res.data.data;
          this.treeData[0].children = data;
          this.treeData=[{
              label: this.selectList[0].name,
              oId: 'parentNode',
              children:data
            }];
          this.treeLoading = false;
        } else {
          this.$message.error('请检查控制台错误');
Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/plShow.vue
ÎļþÃû´Ó Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/plShow.vue ÐÞ¸Ä
@@ -28,6 +28,7 @@
        <el-tag v-else type="danger">未启用</el-tag>
      </template>
    </avue-crud>
    <bottom-table :sourceData="selectList[0]" :height="'280px'" style="margin-top: 15px;"></bottom-table>
    <!-- åˆ›å»ºç¼–辑自定义对话框    -->
    <el-dialog
      v-dialogDrag
@@ -110,7 +111,7 @@
  deleteTabData,
} from "@/api/UI/uiDefine";
import func from "@/util/func";
import {uiDefineVOData} from "@/views/base/uiDefineVO";
import bottomTable from "./bottomTable/index";
export default {
name: "plShow",
@@ -120,6 +121,7 @@
      default: {}
    },
  },
  components:{bottomTable},
  data() {
    return {
      uiDefineOid:'',
@@ -128,7 +130,7 @@
      selectList: [],
      option: {
        ...basicOption,
        height:'50%',
        height:'300px',
        addBtn: false,
        editBtn: false,
        delBtn: false,
@@ -234,6 +236,7 @@
      }
      getTabByContextIdAndType( params).then(res => {
        this.data = res.data.data;
        this.selectList=[];
        this.$refs.crud.clearSelection();
        this.tableLoading = false;
      })