|
|
@ -77,14 +77,25 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!--End 添加修改部分--> |
|
|
|
<el-dialog :visible.sync="dialogImgVisible" width="70%" :close-on-click-modal="false"> |
|
|
|
<div class="result-cont"> |
|
|
|
<el-carousel indicator-position="outside" style="height: 500px;"> |
|
|
|
<el-carousel-item v-for="item in srcList" :key="item.sid" style="height: 500px;"> |
|
|
|
<img style="width: 100%; height: 500px;" :src="item.fileUrl"> |
|
|
|
</el-carousel-item> |
|
|
|
</el-carousel> |
|
|
|
<el-dialog title="厂家退款见证材料" :visible.sync="dialogImgVisible" width="70%" :close-on-click-modal="false"> |
|
|
|
<el-form label-position="right" class="formadd"> |
|
|
|
<el-row style="border: 1px solid #e0e3eb;"> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item> |
|
|
|
<div v-for="item in srcList" style="float: left"> |
|
|
|
<div style="display: flex;flex-direction: column;justify-content: center;align-items: center;" > |
|
|
|
<el-image style="cursor:pointer;width: 150px;height: 150px;margin-top: 5px" :src="item.fileUrl" @click="magnify(item.fileUrl)"> |
|
|
|
</el-image> |
|
|
|
<el-button type="danger" size="mini" @click="handleDel(item.fileUrl)">删除</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-form> |
|
|
|
</el-dialog> |
|
|
|
<el-dialog :visible.sync="dialogVisible" :append-to-body="true"> |
|
|
|
<img alt="" :src="dialogUrl" width="100%"> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
</template> |
|
|
@ -103,6 +114,8 @@ export default { |
|
|
|
index: 0, |
|
|
|
tableKey: 0, |
|
|
|
dialogImgVisible: false, |
|
|
|
dialogVisible: false, |
|
|
|
dialogUrl: '', |
|
|
|
srcList: [], |
|
|
|
manApprovalType_list: [ |
|
|
|
{ |
|
|
@ -170,6 +183,23 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
magnify(val) { |
|
|
|
this.dialogVisible = true |
|
|
|
this.dialogUrl = val |
|
|
|
}, |
|
|
|
handleDel(val) { |
|
|
|
console.log(val, 232323) |
|
|
|
req.deleteFilesOss(val).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.$message({ showClose: true, type: 'success', message: '删除成功!' }) |
|
|
|
this.srcList.forEach((e, index) => { |
|
|
|
if (e.fileUrl === val) { |
|
|
|
this.srcList.splice(index, 1) |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
saveOrUpdate() { |
|
|
|
this.$refs['form_obj'].validate((valid) => { |
|
|
|
if (valid) { |
|
|
|