田源
2024-11-21 3ec1a0e65e19534cce55964c7ddaace87bf70e1f
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"){