wangting
2024-10-24 949b3dfe9912f46c79ce7754e5faf61135ec4d6a
调整action弹窗
已修改2个文件
已删除1个文件
已重命名1个文件
498 ■■■■■ 文件已修改
Source/plt-web/plt-web-ui/src/views/authority/ui/typeAction/index.vue 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/Aciton/components/dialog.vue 42 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/components/action.vue 433 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/index.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/views/authority/ui/typeAction/index.vue
@@ -33,7 +33,7 @@
            <el-button icon="el-icon-delete" plain size="small" type="danger" @click="delHandler">移除</el-button>
          </template>
        </avue-crud>
        <action-dialog ref="actionDialog"></action-dialog>
        <action-dialog ref="actionDialog" :is-muti="true" @updataAction="actionSaveHandler"></action-dialog>
      </basic-container>
    </el-main>
@@ -44,7 +44,7 @@
import basicOption from "@/util/basic-option";
import { delUIContextData, getBizTree, gridUIContextData} from "@/api/UI/uiDefine";
import func from "@/util/func";
import actionDialog from "@/views/modelingMenu/ui/Aciton/dialog"
import actionDialog from "@/views/modelingMenu/ui/Aciton/components/dialog"
export default {
  name: "index",
@@ -183,11 +183,20 @@
    //创建
    addHandler() {
      if (this.nodeRow && this.nodeRow.oid && this.nodeRow.oid!='') {
        this.$refs.actionDialog.openDialog(this.nodeRow);
        this.$refs.actionDialog.openDialog();
      } else {
        this.$message.error('请选择业务类型');
      }
    },
    // ä¿å­˜action
    actionSaveHandler(val) {
      addAction(val).then(res => {
        if(res.data.code == 200){
          this.$message.success(res.data.obj);
        }
      })
    },
    delHandler() {
      if (this.selectList.length <= 0) {
        this.$message.error('请至少选择一条数据');
Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/Aciton/components/dialog.vue
ÎļþÃû´Ó Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/Aciton/dialog.vue ÐÞ¸Ä
@@ -62,27 +62,13 @@
</template>
<script>
import {
  getActionTree,
  getActionTableData,
  saveAction,
  updateAction,
  exportAction,
  deleteAction,
  getPLActionParam,
  savePLActionParam,
  updatePLActionParam,
  deletePLActionParam,
  saveActionCls,
  updateActionCls,
  deleteActionCls
} from '@/api/UI/Action/api'
import { getActionTree, getActionTableData} from '@/api/UI/Action/api'
import func from "@/util/func";
import basicOption from "@/util/basic-option";
import {clonePageDef, cloneTabButton, clonetabPage} from "@/api/UI/uiDefine";
export default {
  name: "index",
  props:['isMuti'],
  data() {
    return {
      dialog: {
@@ -168,7 +154,7 @@
  created() {
  },
  methods: {
    openDialog(data) {
    openDialog() {
      this.dialog.showDialog = true;
      this.getTreeList()
      this.data = [];
@@ -176,21 +162,25 @@
    cancelDialog() {
      this.dialog.loading = false;
      this.dialog.showDialog = false;
      this.$refs.tree.setCurrentKey(null);
    },
    submitDialog() {
      if (this.selectList.length==0) {
        this.$message.error('请选择Action');
        return;
      }
      const saveFunction = {
        'pageDef': ''
      };
      saveFunction[this.type](params).then(res => {
        if(res.data.code == 200){
          this.$message.success(res.data.obj);
          this.cancelDialog();
      if(this.isMuti){
        this.$emit('updataAction', this.selectList);
      }else {
        if(this.selectList.length>1){
          this.$message.error('请选择一条Action');
          return;
        }
      })
        this.$emit('updataAction', this.selectList[0]);
      }
      this.cancelDialog();
    },
    // å·¦ä¾§æ ‘请求
    getTreeList(status) {
@@ -207,7 +197,6 @@
    nodeClick(row) {
      this.treeNodeRow = row;
      this.getRightTableList(row);
      this.bottomData = [];
    },
    // å¤´éƒ¨åˆ·æ–°æŒ‰é’®
@@ -228,6 +217,7 @@
        const data = res.data.data;
        this.data = data;
        this.tableLoading = false;
      })
    },
Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/components/action.vue
ÎļþÒÑɾ³ý
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,
@@ -223,7 +219,7 @@
  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 {
@@ -1195,7 +1191,7 @@
    // é€‰æ‹©action
    actionFoucus() {
      this.$refs.actionDialog.btnActionVisible = true;
      this.$refs.actionDialog.openDialog();
    },
    // ä¿å­˜action