| | |
| | | <el-col :span="12"> |
| | | <el-form-item label="头像" prop="pic" required> |
| | | <el-upload ref="pic" action="/api/minio/upload" :show-file-list="false" :on-success="handleAvatarSuccess" |
| | | list-type="picture-card" accept="image/*"> |
| | | list-type="picture-card" accept="image/*"> |
| | | <img v-if="picShow" :src="picShow" style="width: 145px;height: 145px"> |
| | | <i v-else class="el-icon-plus"></i> |
| | | </el-upload> |
| | |
| | | <el-col :span="24"> |
| | | <el-form-item label="材料"> |
| | | <div class="metalL"> |
| | | <el-image v-for="(img,index) in reportData" :src="img" style="height: 200px;width: 200px;"></el-image> |
| | | <el-image v-for="(img, index) in reportData" :src="img" style="height: 200px;width: 200px;"></el-image> |
| | | </div> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | <el-col :span="24"> |
| | | <el-form-item label="材料"> |
| | | <div class="metalL"> |
| | | <el-image v-for="(img,index) in reportData" :src="img" style="height: 200px;width: 200px;"></el-image> |
| | | <el-image v-for="(img, index) in reportData" :src="img" style="height: 200px;width: 200px;"></el-image> |
| | | </div> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | this.picShow = res |
| | | }) |
| | | } |
| | | var addressList = res.reportMaterials.split(",") |
| | | for (let item of addressList) { |
| | | if (item === '' || item === null) { |
| | | // this.reportData.push('./logo.jpg'); |
| | | } else { |
| | | getImgUrl(item).then(res => { |
| | | this.reportData.push(res); |
| | | }) |
| | | if (res.reportMaterials) { |
| | | var addressList = res.reportMaterials.split(",") |
| | | for (let item of addressList) { |
| | | if (item === '' || item === null) { |
| | | // this.reportData.push('./logo.jpg'); |
| | | } else { |
| | | getImgUrl(item).then(res => { |
| | | this.reportData.push(res); |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | |
| | | this.checkVisible = true |
| | | }) |
| | | }, |
| | | infoAduitClose() { |
| | | this.checkVisible = false |
| | | this.$refs.infoAduitForm.resetFields() |
| | | this.reportData=[] |
| | | this.picShow="" |
| | | this.reportData = [] |
| | | this.picShow = "" |
| | | }, |
| | | detailsClose() { |
| | | this.infoAduitDialogVisible = false |
| | | this.$refs.infoAduitForm.resetFields() |
| | | this.reportData=[] |
| | | this.picShow="" |
| | | this.reportData = [] |
| | | this.picShow = "" |
| | | }, |
| | | addAduit() { |
| | | this.$refs.addAduitForm.validate(async (vaild) => { |
| | |
| | | this.picShow = res |
| | | }) |
| | | } |
| | | var addressList = res.reportMaterials.split(",") |
| | | for (let item of addressList) { |
| | | if (item === '' || item === null) { |
| | | // this.reportData.push('./logo.jpg'); |
| | | } else { |
| | | getImgUrl(item).then(res => { |
| | | this.reportData.push(res); |
| | | }) |
| | | if (res.reportMaterials) { |
| | | var addressList = res.reportMaterials.split(",") |
| | | for (let item of addressList) { |
| | | if (item === '' || item === null) { |
| | | // this.reportData.push('./logo.jpg'); |
| | | } else { |
| | | getImgUrl(item).then(res => { |
| | | this.reportData.push(res); |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | |
| | | this.infoAduitDialogVisible = true |
| | | }) |
| | | }, |