田源
2024-11-15 b77c70bb4fd39f3a08d2a3bc5e16155652452990
Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/index.vue
@@ -209,10 +209,6 @@
import basicOption from "@/util/basic-option";
import func from "@/util/func";
import {
  getBtmDatasByPage,
  getPortalVIDatasByPage,
  getQTInfoDatasByPage,
  getLinkDatasByPage,
  getPLPageDefinations,
  getTabButtons,
  addTapButton,
@@ -221,9 +217,10 @@
  deleteTabButton,
  delPageDefination,
  joinBtn,
  exitBtn
  exitBtn,
  updatePageDefination
} from "@/api/UI/uiDefine";
import actionDialog from '@/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/components/action';
import actionDialog from '@/views/modelingMenu/ui/Aciton/components/dialog';
import cloneDialog from "@/views/modelingMenu/ui/uiDefine/rightRegion/cloneDialog";
export default {
@@ -253,7 +250,7 @@
      eventOption: {
        ...basicOption,
        addBtn: false,
        editBtn: false,
        // editBtn: false,
        delBtn: false,
        refreshBtn: false,
        highlightCurrentRow: true,
@@ -444,9 +441,10 @@
            },
            change: (val) => {
              const list = ['showType', 'linkType', 'templateId', 'SubUILayout', 'searchObjType', 'queryTemplateName', 'controlPath', 'expandCols', 'rootContent', 'showAbs', 'showLinkAbs', 'separator']
              list.forEach(item => {
                this.form[item] = "";
              })
              // list.forEach(item => {
              //   this.form[item] = "";
              // })
              this.form.searchTarger = '1'
              const searchTarger = this.option.column.find(item => item.prop === 'searchTarger');  // 获取搜索类型配置项
              searchTarger.display = true; // 切换默认展示搜索类型
              // 模板类型为表格
@@ -513,9 +511,9 @@
              }
              // 切换清空模板类型
              const list = ['showType', 'linkType', 'templateId', 'SubUILayout', 'queryTemplateName', 'searchObjType'];
              list.forEach(item => {
                this.form[item] = '';
              })
              // list.forEach(item => {
              //   this.form[item] = '';
              // })
            }
          },
          {
@@ -591,9 +589,8 @@
                filterable: true,
                display: false,
                props: {
                  label: 'qtName',
                  value: 'qtName',
                  desc: 'btmName'
                  label: 'plName',
                  value: 'plCode',
                },
                dicUrl: '/api/uiManagerController/getUILayoutDatasByPage?page=1&limit=-1&conditionMap[selectBtmType]={{key}}',
              },
@@ -794,15 +791,11 @@
    // 编辑打开表单前
    beforeOpen(done, type) {
      if (type === 'edit') {
        this.form.showType = 'Ludc';
        this.$set(this.form, 'showType', 'Ludc');
        // this.$set(this.option.group[0].column[0],'value','Ludc');
        // this.option.group[0].column[0].value = 'Ludc';
        done();
      } else {
        done();
      }
      // if (type === 'edit') {
      //   console.log('edit');
      //   this.form.showType = 'Ludc';
      // }
      done();
    },
    // 增加关闭对话框 清空event数组
@@ -879,6 +872,28 @@
      })
    },
    rowUpdateHandler(row,index,done,loading){
      if (row.templateType === '6') {
        row.SubUIObjType = row.showType;
        row.showType = "";
      }
      console.log(this.sourceData);
      const params = {
        ...row,
        tabPageOId: this.sourceData.plOId
      }
      updatePageDefination(params).then(res => {
        console.log(res);
        if (res.data.code === 200) {
          this.$message.success(res.data.obj);
          this.getTableList();
          done();
        }
      }).catch(err => {
        loading();
      })
    },
    // 对话框表格行点击
    formDataRowClick(row) {
      this.formDataRow = row;
@@ -944,7 +959,7 @@
    // 模板类型为树表
    templateTypeTreeTable(val) {
      if (!val) return;
      this.updateDisplay(val, ['showType', 'templateId', 'queryTemplateName', 'expandCols', 'zkfs']);
      this.updateDisplay(val, ['showType', 'templateId', 'queryTemplateName', 'expandCols', 'expandMode']);
    },
    // 模板类型为表单
@@ -1000,6 +1015,7 @@
        this.$message.error('请选择一条数据');
        return;
      }
      console.log(this.selectList);
      this.btnDesignVisible = true;
      this.formBtnOid = this.selectList[0].id;
      this.getTabBtnTree();
@@ -1125,7 +1141,8 @@
      const params = this.saveType === 'add' ? {
        ...this.basicForm,
        parentId: this.nodeTreeRow.oId === 'parentNode' ? '' : this.nodeTreeRow.parentId,
        buttonParams: bottomParams
        buttonParams: bottomParams,
        tableOId: this.selectList[0].id
      } : {
        ...this.basicForm,
        buttonParams: bottomParams
@@ -1195,7 +1212,7 @@
    // 选择action
    actionFoucus() {
      this.$refs.actionDialog.btnActionVisible = true;
      this.$refs.actionDialog.openDialog();
    },
    // 保存action