| | |
| | | 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=" + |
| | |
| | | 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; |
| | |
| | | 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; |