田源
2024-11-21 3ec1a0e65e19534cce55964c7ddaace87bf70e1f
增加操作类型按钮&&整合系统模块代码配置图标
已修改4个文件
55 ■■■■■ 文件已修改
Source/plt-web/plt-web-ui/src/views/modelingMenu/queryTemplate/linkTypeQuery/formDialog.vue 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/views/systemModel/businessModel/index.vue 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/views/systemModel/mangeModel/index.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/views/systemModel/operateType/index.vue 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/views/modelingMenu/queryTemplate/linkTypeQuery/formDialog.vue
Source/plt-web/plt-web-ui/src/views/systemModel/businessModel/index.vue
@@ -3,7 +3,8 @@
    <el-aside>
      <basic-container>
        <div style="max-height: calc(100vh - 150px);overflow: auto">
          <avue-tree :key="refresh" node-key="id" ref="tree" :data="treeData" :option="treeOption" @node-click="nodeClick">
          <avue-tree :key="refresh" ref="tree" :data="treeData" :option="treeOption" node-key="id"
                     @node-click="nodeClick">
          <span slot-scope="{ node, data }" class="el-tree-node__label">
           <span style="font-size: 15px">
              <i :class="data.icon"></i>
@@ -17,8 +18,10 @@
    <el-main>
      <basic-container>
        <div v-if="(form.childType || form.childType === 0) && !addStatus && !editStatus && form.category !== 1" class="btnBox">
          <el-button :disabled="(mangeShowBtn || form.childType === 0) ? false : !childTypeBtn" icon="el-icon-plus" plain
        <div v-if="(form.childType || form.childType === 0) && !addStatus && !editStatus && form.category !== 1"
             class="btnBox">
          <el-button :disabled="(mangeShowBtn || form.childType === 0) ? false : !childTypeBtn" icon="el-icon-plus"
                     plain
                     size="small"
                     type="primary" @click="addClickHandler">增加
          </el-button>
@@ -250,7 +253,7 @@
                id: item.id,
                name: item.name,
                leaf: !item.hasChildren,
                icon: item.source || 'iconfont iconicon_work'
                icon: item.source || 'el-icon-s-home'
              }
            }))
          })
@@ -294,7 +297,7 @@
      this.defalutName.forEach(key => {
        this.form[key] = null;
      })
      this.form.isValid = false;
      this.form.isValid = true;
      this.addStatus = true;
      this.editStatus = false;
    },
@@ -531,6 +534,7 @@
    upLoadClickHandler() {
      this.$refs.upload.visible = true;
    },
    handleRefreshTree(type) {
      //type:add\edit\del
      if(type=="del"){
Source/plt-web/plt-web-ui/src/views/systemModel/mangeModel/index.vue
@@ -253,7 +253,7 @@
                id: item.id,
                name: item.name,
                leaf: !item.hasChildren,
                icon: item.source || 'iconfont iconicon_work'
                icon: item.source || 'el-icon-s-home'
              }
            }))
          })
@@ -524,6 +524,7 @@
    upLoadClickHandler() {
      this.$refs.upload.visible = true;
    },
    handleRefreshTree(type) {
      //type:add\edit\del
      if (type == "del") {
Source/plt-web/plt-web-ui/src/views/systemModel/operateType/index.vue
@@ -3,7 +3,8 @@
    <el-aside>
      <basic-container>
        <div style="max-height: calc(100vh - 150px);overflow: auto">
          <avue-tree :key="refresh" node-key="id" ref="tree" :data="treeData" :option="treeOption" @node-click="nodeClick">
          <avue-tree :key="refresh" ref="tree" :data="treeData" :option="treeOption" node-key="id"
                     @node-click="nodeClick">
          <span slot-scope="{ node, data }" class="el-tree-node__label">
           <span style="font-size: 15px">
              <i class="el-icon-s-promotion"></i>
@@ -25,7 +26,8 @@
          <el-button v-if="addStatus" icon="el-icon-check" plain size="small"
                     type="success" @click="addSaveClickHandler">保存
          </el-button>
          <el-button v-if="!addStatus && !editStatus" :disabled="nodeRow.childType === -1" icon="el-icon-edit" plain size="small" type="primary"
          <el-button v-if="!addStatus && !editStatus" :disabled="nodeRow.childType === -1" icon="el-icon-edit" plain
                     size="small" type="primary"
                     @click="editClickHandler">修改
          </el-button>
          <el-button v-if="editStatus" icon="el-icon-check" plain size="small"
@@ -34,10 +36,12 @@
          <el-button  v-if="addStatus || editStatus" icon="el-icon-close" plain size="small"
                      type="danger" @click="addStatus=false;editStatus=false;">取消
          </el-button>
          <el-button v-if="!addStatus && !editStatus" :disabled="nodeRow.childType === -1" icon="el-icon-close" plain size="small" type="danger"
          <el-button v-if="!addStatus && !editStatus" :disabled="nodeRow.childType === -1" icon="el-icon-close" plain
                     size="small" type="danger"
                     @click="delClickHandler">删除
          </el-button>
          <el-button v-if="!addStatus && !editStatus" icon="el-icon-upload2" plain size="small" type="primary" @click="sqlClickExportClick">导出sql
          <el-button v-if="!addStatus && !editStatus" icon="el-icon-upload2" plain size="small" type="primary"
                     @click="sqlClickExportClick">导出sql
          </el-button>
        </div>
        <el-form ref="form" :model="form" label-width="85px" style="max-height: calc(100vh - 180px);overflow: auto;">
@@ -51,7 +55,8 @@
            <el-input v-model="form.alias" :disabled="!editStatus && !addStatus" placeholder="请输入别名"></el-input>
          </el-form-item>
          <el-form-item label="顺序:">
            <el-input-number v-model="form.sort" :disabled="!editStatus && !addStatus" :min="0" :max="9999" label="顺序"></el-input-number>
            <el-input-number v-model="form.sort" :disabled="!editStatus && !addStatus" :max="9999" :min="0"
                             label="顺序"></el-input-number>
          </el-form-item>
          <el-form-item label="描述:">
            <el-input v-model="form.remark" :disabled="!editStatus && !addStatus" placeholder="请输入描述"></el-input>
@@ -76,7 +81,7 @@
      editStatus:false,
      addStatus: false,
      nodeRow: {},
      currentClickNode:null,
      currentClickNode: {},
      form: {},
      treeData: [],
      treeOption: {
@@ -111,12 +116,10 @@
  },
  created() {
  },
  computed: {
  },
  computed: {},
  methods: {
    // 树行点击
    nodeClick(row,node) {
      console.log(row);
      this.form = {...row};
      this.nodeRow = {...row};
      this.currentClickNode=node;
@@ -178,7 +181,7 @@
      addOperationType(params).then(res => {
        if(res.data.code === 200){
          this.$message.success(res.data.msg);
          this.handleRefreshTree('add')
          this.handleRefreshTree('add');
          this.addStatus = false;
        }
      })
@@ -205,9 +208,9 @@
        this.$message.error('别名不能为空');
        return
      }
      if (!this.form.sort) {
      if (this.form.sort == null || this.form.sort === '' || this.form.sort === undefined) {
        this.$message.error('顺序不能为空');
        return
        return;
      }
      if (this.form.name.length > 128) {
        this.$message.error('名称长度不能超过128!');
@@ -220,7 +223,8 @@
      if (this.form.alias && this.form.alias.length > 255) {
        this.$message.error('别名长度不能超过255!');
        return
      };
      }
      ;
      const params = {
        id:this.form.id,
        name:this.form.name,
@@ -232,7 +236,7 @@
      updateOperationType(params).then(res => {
        if(res.data.code === 200){
          this.$message.success(res.data.msg);
          this.handleRefreshTree('edit')
          this.handleRefreshTree('edit');
          this.editStatus = false;
        }
      })
@@ -280,7 +284,11 @@
          let node = this.currentClickNode.parent;
          node.loaded = false;
          node.expand();
          this.$refs.tree.setCurrentNode(this.currentClickNode);
          if (type === 'edit') {
            this.$refs.tree.setCurrentKey(null);
          } else {
            this.$refs.tree.setCurrentNode(this.nodeRow);
          }
        }else {
          this.refresh = Math.random(); // 刷新左侧树
        }