zhongrj
2024-03-27 cc1c0a396698648256c350f6f0fe2cb2f0b02c7e
src/views/resource/attachOnce.vue
@@ -176,7 +176,7 @@
      i = 0,
      ind = null;
    this.$store.state.tags.tagList.forEach((item, index) => {
      if (item.label == "附件上传") {
      if (item.label == "附件查阅") {
        if (flag == false) {
          ind = index;
          flag = true;
@@ -302,12 +302,12 @@
      getTemplate(params, 1, 50).then((res) => {
        //获取模板
        const mobel = res.data.data.records;
        console.log(mobel);
        // console.log(mobel);
        params["userid"] = this.$route.query.deptid;
        getUseInfor(params).then((res) => {
          //处理对应数据
          const data = res.data.data.records[0];
          console.log(data);
          // console.log(data);
          if (data == [] || data == undefined) {
            this.data = [];
            this.loading = false;
@@ -318,10 +318,10 @@
          for (let k in links) {
            this.data.push({
              link: links[k],
              id: +id[k] + 1,
              id: +id[k],
            });
          }
          console.log(this.data);
          // console.log(this.data);
          for (let n in this.data) {
            //处理模板
            for (let m in mobel) {