commit
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
const optionImg = {
|
const optionImg = {
|
||||||
template: /*language=HTML*/ `
|
template: /*language=HTML*/ `
|
||||||
<el-dialog :visible="visible" title="设置图片" append-to-body width="700px">
|
<el-dialog :visible.sync="visible" title="设置图片" append-to-body width="700px">
|
||||||
<div style="background: #f7f8f9;text-align: center;border: solid 1px #d7d8d9;border-radius: 4px;">
|
<div style="background: #f7f8f9;text-align: center;border: solid 1px #d7d8d9;border-radius: 4px;">
|
||||||
<el-upload
|
<el-upload
|
||||||
action="/file_server/uploadFile"
|
action="/platform/sys/file/uploadDynamicReturnUrl"
|
||||||
:show-file-list="false"
|
:show-file-list="false"
|
||||||
:on-success="handleSuccess"
|
:on-success="handleSuccess"
|
||||||
:before-upload="beforeUpload">
|
:before-upload="beforeUpload">
|
||||||
@@ -38,7 +38,7 @@ const optionImg = {
|
|||||||
console.log(file)
|
console.log(file)
|
||||||
console.log(fileList)
|
console.log(fileList)
|
||||||
if (response.code === 0) {
|
if (response.code === 0) {
|
||||||
this.img = FILE_STREAM_PREVIEW_ADDRESS + "?id=" + response.data.filepath
|
this.img = response.data
|
||||||
// this.img = "/platform/sys/file/download?id=t38dmq4beuhrupqb54prl52t4u"
|
// this.img = "/platform/sys/file/download?id=t38dmq4beuhrupqb54prl52t4u"
|
||||||
this.$message.success("图片上传成功")
|
this.$message.success("图片上传成功")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ const setting = {
|
|||||||
},
|
},
|
||||||
onConfirm(){
|
onConfirm(){
|
||||||
this.$emit('confirm', { option:this.formData,ext:this.ext })
|
this.$emit('confirm', { option:this.formData,ext:this.ext })
|
||||||
|
this.visible = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user