Commit c36219c8 authored by 786817560's avatar 786817560

'上传图片样式'

parent 2c90628c
...@@ -459,7 +459,7 @@ export default { ...@@ -459,7 +459,7 @@ export default {
// name: 'CreateEnclosureInfo', // name: 'CreateEnclosureInfo',
// }) // })
}) })
} } else {
if (vm.isComputed) { if (vm.isComputed) {
let url = process.env.basePath + 'prj_product_info_save' let url = process.env.basePath + 'prj_product_info_save'
let param = { let param = {
...@@ -480,23 +480,6 @@ export default { ...@@ -480,23 +480,6 @@ export default {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
}) })
} else {
if (vm.isComputed) {
let url = process.env.basePath + 'prj_product_info_save'
let param = {
master: vm.productInfo,
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.$router.push({
name: 'CreateEnclosureInfo',
})
} else {
hlsPopup.showLongCenter(res.message)
}
})
} else { } else {
hlsPopup.showLongCenter('请先进行计算') hlsPopup.showLongCenter('请先进行计算')
} }
......
...@@ -185,7 +185,16 @@ export default { ...@@ -185,7 +185,16 @@ export default {
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
res.lists.forEach(item => {
item['url'] =
process.env.filePath +
'attachment_id=' +
item.attachment_id +
'&access_token=' +
window.localStorage.access_token
})
vm.dowload_list = res.lists vm.dowload_list = res.lists
console.log('下载图片', vm.dowload_list)
} }
}) })
}, },
...@@ -685,11 +694,11 @@ export default { ...@@ -685,11 +694,11 @@ export default {
} }
} }
} }
.house:nth-of-type(2) {
margin-top: 0
}
.house:last-child { .house:last-child {
margin-top: 0 margin-top: 0;
div {
float: left;
}
} }
.upload-box { .upload-box {
......
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