田源
2024-09-20 3c6c92b68a1b113b5450554db750ebe1d8bd26bb
Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/versioning/index.vue
@@ -18,8 +18,8 @@
                       @click="checkViewClickHandler">查看使用范围
            </el-button>
          </div>
          <!-- 左侧树         -->
          <div style="height:  calc(100vh - 300px);">
          <!-- 左侧树 -->
          <div style="height:  calc(100vh - 260px);">
            <avue-tree :data="treeData" :option="treeOption" @node-click="nodeClick">
          <span slot-scope="{ node, data }" class="el-tree-node__label">
           <span style="font-size: 15px">
@@ -104,7 +104,7 @@
      </basic-container>
    </el-main>
    <!-- 新增 修改   -->
    <!-- 新增 修改 -->
    <el-dialog
      v-dialogDrag
      :title="dialogTitle === 'add' ? '创建' : '修改'"
@@ -164,11 +164,11 @@
        </span>
    </el-dialog>
    <!-- 导入    -->
    <!-- 导入 -->
    <upload-file ref="upload" :fileType="upFileType" :fileUrl="fileUrl" :tipList="tipList" title="导入"
                 @updata="getTreeList"></upload-file>
    <!-- 查看使用范围    -->
    <!-- 查看使用范围 -->
    <el-dialog
      v-dialogDrag
      :visible.sync="checkViewVisible"
@@ -302,7 +302,7 @@
    this.getTreeList();
  },
  methods: {
    //左侧树查询
    // 左侧树查询
    getTreeList() {
      getVersionRuleAllList().then(res => {
        const data = res.data.data;
@@ -354,17 +354,22 @@
    // 新增 编辑 保存
    addSaveHandler() {
      const saveFunction = this.dialogTitle === 'add' ? addVersionRule : updateVersionRule;
      saveFunction(this.form).then(res => {
        if (res.data.code === 200) {
          this.$message.success(res.data.obj);
          this.getTreeList();
          this.visible = false;
      this.$refs.form.validate((valid) => {
        if (valid) {
          saveFunction(this.form).then(res => {
            if (res.data.code === 200) {
              this.$message.success(res.data.obj);
              this.getTreeList();
              this.visible = false;
            } else {
              this.$message.error(res.data.obj);
            }
          }).catch(error => {
            this.$message.error(error);
          });
        } else {
          this.$message.error(res.data.obj);
          return false;
        }
      }).catch(error => {
        this.$message.error(error);
      });
    },
@@ -441,7 +446,7 @@
      }
      ;
      this.checkViewData = this.checkViewData.filter(item => {
      this.checkViewData = this.checkViewDataSearch.filter(item => {
        return item.source && item.source.includes(source);
      });
@@ -468,7 +473,6 @@
      width: 82px;
    }
  }
}
.headerCon {