田源
2024-11-05 a5a27e231cb2aa2c2a045df11ad90e5eda547ae9
Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/index.vue
@@ -136,7 +136,7 @@
                  </el-form-item>
                  <el-col :span="12">
                    <el-form-item label="是否授权:" prop="resource">
                    <el-form-item label="是否授权:" prop="authorization">
                      <el-radio v-model="basicForm.authorization" :disabled="disabledBtn" label="0">是</el-radio>
                      <el-radio v-model="basicForm.authorization" :disabled="disabledBtn" label="1">否</el-radio>
                    </el-form-item>
@@ -198,8 +198,10 @@
      </el-container>
    </el-dialog>
    <action-dialog ref="actionDialog" @updataAction="actionSaveHandler"></action-dialog>
    <clone-dialog ref="cloneDialog" :fromOid="fromOid" :sourceOId="sourceOId" type="pageDef" paramsType="tab"></clone-dialog>
    <clone-dialog ref="cloneBtnDialog" :fromOid="formBtnOid" :sourceOId="sourceBtnOid" type="tabButton" paramsType="pageDef"></clone-dialog>
    <clone-dialog ref="cloneDialog" :fromOid="fromOid" :sourceOId="sourceOId" paramsType="tab"
                  type="pageDef"></clone-dialog>
    <clone-dialog ref="cloneBtnDialog" :fromOid="formBtnOid" :sourceOId="sourceBtnOid" paramsType="pageDef"
                  type="tabButton"></clone-dialog>
  </div>
</template>
@@ -208,20 +210,16 @@
import func from "@/util/func";
import {
  getPLPageDefinations,
  getBtmDatasByPage,
  getPortalVIDatasByPage,
  getQTInfoDatasByPage,
  getTabButtons,
  addTapButton,
  updateTapButton,
  getLinkDatasByPage,
  addPageDefination,
  deleteTabButton,
  delPageDefination,
  joinBtn,
  exitBtn
} 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 {
@@ -243,15 +241,15 @@
  name: "index",
  data() {
    return {
      formBtnOid:'',
      sourceBtnOid:'',
      sourceOId:'',
      fromOid:'',
      formBtnOid: '',
      sourceBtnOid: '',
      sourceOId: '',
      fromOid: '',
      paramsForm: {},
      eventOption: {
        ...basicOption,
        addBtn: false,
        editBtn: false,
        // editBtn: false,
        delBtn: false,
        refreshBtn: false,
        highlightCurrentRow: true,
@@ -722,7 +720,7 @@
    sourceData: {
      handler(val) {
        if (val && val.plOId) {
          this.getTableList()
          this.getTableList();
        } else {
          this.data = [];
        }
@@ -793,8 +791,9 @@
    // 编辑打开表单前
    beforeOpen(done, type) {
      if (type === 'edit') {
        this.form.showType = 'Ludc';
        this.$set(this.form, 'showType', 'Ludc');
        console.log('edit');
        // this.form.showType = 'Ludc';
        // this.$set(this.form, 'showType', "terminology");
        // this.$set(this.option.group[0].column[0],'value','Ludc');
        // this.option.group[0].column[0].value = 'Ludc';
        done();
@@ -869,7 +868,8 @@
        console.log(res);
        if (res.data.code === 200) {
          this.$message.success(res.data.obj);
          done()
          this.getTableList();
          done();
        }
      }).catch(err => {
        loading();
@@ -941,7 +941,7 @@
    // 模板类型为树表
    templateTypeTreeTable(val) {
      if (!val) return;
      this.updateDisplay(val, ['showType', 'templateId', 'queryTemplateName', 'expandCols', 'zkfs']);
      this.updateDisplay(val, ['showType', 'templateId', 'queryTemplateName', 'expandCols', 'expandMode']);
    },
    // 模板类型为表单
@@ -997,6 +997,7 @@
        this.$message.error('请选择一条数据');
        return;
      }
      console.log(this.selectList);
      this.btnDesignVisible = true;
      this.formBtnOid = this.selectList[0].id;
      this.getTabBtnTree();
@@ -1122,7 +1123,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
@@ -1192,7 +1194,7 @@
    // 选择action
    actionFoucus() {
      this.$refs.actionDialog.btnActionVisible = true;
      this.$refs.actionDialog.openDialog();
    },
    // 保存action