|
@@ -137,20 +137,20 @@
|
|
</vxe-select>
|
|
</vxe-select>
|
|
</template>
|
|
</template>
|
|
</vxe-table-column>
|
|
</vxe-table-column>
|
|
- <vxe-table-column min-width="50px" field="fileUrl" align="center" title="文件" :edit-render="{}">
|
|
|
|
|
|
+ <vxe-table-column min-width="50px" field="fileLsUrl" align="center" title="文件" :edit-render="{}">
|
|
<template v-slot="{row}">
|
|
<template v-slot="{row}">
|
|
- <img style="height: 43px" class="img" :src="row.fileUrl"/>
|
|
|
|
|
|
+ <img style="height: 43px" class="img" :src="row.fileLsUrl"/>
|
|
</template>
|
|
</template>
|
|
<template v-slot:edit="scope" >
|
|
<template v-slot:edit="scope" >
|
|
<el-upload slot="reference"
|
|
<el-upload slot="reference"
|
|
class="avatar"
|
|
class="avatar"
|
|
style="height: 43px;line-height: 43px"
|
|
style="height: 43px;line-height: 43px"
|
|
- :action="`${$http.BASE_URL}/sys/file/webupload/upload?uploadPath=fileUrl`"
|
|
|
|
|
|
+ :action="`${$http.BASE_URL}/oss/file/webUpload/fileUpload?dir=sys_cert`"
|
|
:on-success="(res,file)=> handleAvatarSuccess(res,file,scope)"
|
|
:on-success="(res,file)=> handleAvatarSuccess(res,file,scope)"
|
|
:before-upload="beforeAvatarUpload"
|
|
:before-upload="beforeAvatarUpload"
|
|
:show-file-list="false">
|
|
:show-file-list="false">
|
|
<el-button type="info" slot="trigger" size="mini" style="margin-right: 10px" class="avatar-uploader-table">上传</el-button>
|
|
<el-button type="info" slot="trigger" size="mini" style="margin-right: 10px" class="avatar-uploader-table">上传</el-button>
|
|
- <img style="max-height: 43px;max-width: 56px" slot="tip" :readonly="true" @click="showPhoto(scope.row.fileUrl)" v-if="scope.row.fileUrl" :src="scope.row.fileUrl" class="el-upload-list__item-thumbnail">
|
|
|
|
|
|
+ <img style="max-height: 43px;max-width: 56px" slot="tip" :readonly="true" @click="showPhoto(scope.row.fileLsUrl)" v-if="scope.row.fileLsUrl" :src="scope.row.fileLsUrl" class="el-upload-list__item-thumbnail">
|
|
</el-upload>
|
|
</el-upload>
|
|
</template>
|
|
</template>
|
|
</vxe-table-column>
|
|
</vxe-table-column>
|
|
@@ -363,6 +363,7 @@ export default {
|
|
},
|
|
},
|
|
handleAvatarSuccess (res, file, scope) {
|
|
handleAvatarSuccess (res, file, scope) {
|
|
this.inputForm.certDTOList[scope.$rowIndex].fileUrl = res.url
|
|
this.inputForm.certDTOList[scope.$rowIndex].fileUrl = res.url
|
|
|
|
+ this.inputForm.certDTOList[scope.$rowIndex].fileLsUrl = res.lsUrl
|
|
this.$forceUpdate()
|
|
this.$forceUpdate()
|
|
},
|
|
},
|
|
showPhoto (fileUrl) {
|
|
showPhoto (fileUrl) {
|