保安服务单位许可和备案申请系统
liuyg
2021-11-05 111689135f165ecb2ea5ce0881784dfc89b58d87
src/components/attach/attach.vue
@@ -143,7 +143,7 @@
            propsHttp: {
              res: "data",
            },
            tip: "只能上传jpg/png文件,且不超过500kb",
            tip: "支持上传jpg/png/doc/docx/xls/xlsx文件,图片不超过500Kb,文档不超过3Mb",
            action:
              // "/api/blade-resource/oss/endpoint/put-file-attach",
              "/api/blade-resource/oss/endpoint/put-file-attach?deptid=&type=" +
@@ -342,16 +342,16 @@
    onLoad(page, params = {}) {
      var that = this;
      var data = [];
      console.log(this.$store.getters.userInfo.Id);
      // console.log(this.$store.getters.userInfo.Id);
      // this.data = this.enclosure;
      params["ptype"] = this.ptype;
      getTemplate(params, 1, 50).then((res) => {
        data = res.data.data.records;
        console.log(data, "::template");
        // console.log(data, "::template");
        params["userid"] = this.$store.getters.userInfo.Id;
        getUseInfor(params).then((res) => {
          var userInfo = res.data.data.records;
          console.log(userInfo, "::userInfo");
          // console.log(userInfo, "::userInfo");
          if (userInfo.length == 0) {
            for (var k in data) {
              data[k]["type"] = 1;
@@ -380,7 +380,7 @@
    seeImages(row) {
      this.imgUrl = "";
      this.imgUrl = "url(" + row.link + ") center center / contain no-repeat";
      console.log(this.imgUrl);
      // console.log(this.imgUrl);
      // this.imgUrl = row.link;
      this.imgSee = true;