fjl
fujunling
2023-07-11 ee4f3231149c58ebbaa0ff5881806855df8e2659
fjl
已修改2个文件
20 ■■■■ 文件已修改
Source/UBCS-WEB/src/components/BatchImport/ShowImportData.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/components/Tree/classifyTrees.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/components/BatchImport/ShowImportData.vue
@@ -302,10 +302,7 @@
    },
    async treeNodeClick(data, first) {
      if (this.type === "batchApplyCode") {
        if (
          first === true ||
          this.localCodeClassifyOid === data.codeClassifyOid
        ) {
        if (first === true) {
          this.codeRuleOid = data.codeRuleOid;
          // 第一次打开直接赋值不校验
          this.batchApplyCodeTableData[data.codeRuleOid] = {
@@ -316,6 +313,8 @@
            codeRuleOid: data.codeRuleOid,
          };
          // 不是第一次打开需要优先校验
        } else if (this.localCodeClassifyOid === data.codeClassifyOid) {
          console.log("重复点击");
        } else {
          if (this.$refs.CodeApply) {
            if (!(await this.$refs.CodeApply.validate())) {
@@ -326,7 +325,6 @@
            }
          }
        }
        // 第一次打开直接赋值不校验
        if (!this.batchApplyCodeTableData[data.codeRuleOid]) {
          this.batchApplyCodeTableData[data.codeRuleOid] = {
            name: data.name,
Source/UBCS-WEB/src/components/Tree/classifyTrees.vue
@@ -58,7 +58,7 @@
                   :option="Treeoption"
                   style="height: 80.5vh;padding-top: 5px;padding-bottom: 30px"
                   @node-click=" nodeClick"
                   @check-change="checkChange"
                   class="classifyTree"
        >
        </avue-tree>
        </div>
@@ -628,6 +628,13 @@
  mounted() {
    this.type = this.tabOption.column[0];
    this.getAttr();
    const treeEle = this.$refs.tree.$el
    treeEle.addEventListener('click', (e) => {
      if (e.target.nodeName !== 'SPAN') {
        this.$refs.tree.setCurrentKey(null)
        this.nodeClickList = {}
      }
    }, true)
  },
  computed:{
    crudTreeOption(){
@@ -1145,6 +1152,9 @@
        this.$message.error(error)
      }
    },
    treeClick(e) {
      console.log(e);
    },
    //克隆模板树的点击切换数据
    async ClonenodeClick(data){
      this.ClonenodeClickList=data;