Commit a7d315a6 by yangzhi

Merge branch 'dev'

parents 8c0ce198 738e26fb
......@@ -6,5 +6,5 @@ export function uploadImg(file, params = {}) {
for (const key in otherParams) {
from.append(key, otherParams[key])
}
return axios.post(url || 'platform/upload/fileUpload/images', from)
return axios.post(url || 'upload/oss', from)
}
\ No newline at end of file
......@@ -98,10 +98,13 @@ export default {
// JS 语法
// res 即服务端的返回结果
const res = await uploadImg(files)
const res = await uploadImg(files, {
url: 'upload/oss',
businessType: 'other',
})
console.log(res)
const { imagePath } = res
const url = _this.setimgUrl(imagePath, {
const { filePath } = res
const url = _this.setimgUrl(filePath, {
w: 640,
})
// 从 res 中找到 url alt href ,然后插入图片
......
......@@ -169,7 +169,7 @@
title="详情"
:close-on-click-modal="false"
:visible.sync="detailVisible"
width="900px"
width="1100px"
@close="getlist()"
>
<!-- <div class="step-bar">
......@@ -256,7 +256,7 @@
>
<span class="label">工单内容</span>
<span
style="flex: 1; display: inline-block"
style="flex: 1; display: inline-block;padding:0 3%"
class="value"
v-html="detail.content"
></span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment