Commit e7d02082 by chenwq

订单管理,新增/编辑众筹

1 parent b0c70e6a
...@@ -453,6 +453,7 @@ export default { ...@@ -453,6 +453,7 @@ export default {
.glsx-combi-form .muti-imgs { .glsx-combi-form .muti-imgs {
display: inline-block; display: inline-block;
position: relative; position: relative;
margin: 10px 8px 0 0;
} }
.activity-img .add { .activity-img .add {
......
...@@ -528,6 +528,11 @@ export default { ...@@ -528,6 +528,11 @@ export default {
} }
}, },
{ {
label: '其他信息',
prop: 'otherInformation',
width: '280'
},
{
label: '微信名称', label: '微信名称',
prop: 'weChatName', prop: 'weChatName',
addHtml: 'weChatName', addHtml: 'weChatName',
...@@ -600,12 +605,6 @@ export default { ...@@ -600,12 +605,6 @@ export default {
} }
}, },
{ {
label: '其他信息',
prop: 'otherInformation',
width: '280',
line: 1
},
{
label: '活动名称', label: '活动名称',
prop: 'activityName', prop: 'activityName',
width: '120' width: '120'
......
...@@ -640,9 +640,15 @@ export default { ...@@ -640,9 +640,15 @@ export default {
handleUpload: (e, file, targetItem, formObj) => { handleUpload: (e, file, targetItem, formObj) => {
const imgFile = e.target.result const imgFile = e.target.result
const base64 = file.name.split('.')[file.name.split('.').length - 1] + '@' + imgFile.split(',')[1] const base64 = file.name.split('.')[file.name.split('.').length - 1] + '@' + imgFile.split(',')[1]
this.$apis.common.uploadImgApi({ file: base64, fileType: 'image' }).then(res => { this.loading = true
this.$apis.common
.uploadImgApi({ file: base64, fileType: 'image' })
.then(res => {
this.editForm.activityExperienceDTOs[formObj.idx][targetItem.name].push(res) this.editForm.activityExperienceDTOs[formObj.idx][targetItem.name].push(res)
}) })
.finally(() => {
this.loading = false
})
} }
} }
], ],
...@@ -826,10 +832,16 @@ export default { ...@@ -826,10 +832,16 @@ export default {
handleUpload: (e, file, targetItem) => { handleUpload: (e, file, targetItem) => {
const imgFile = e.target.result const imgFile = e.target.result
const base64 = file.name.split('.')[file.name.split('.').length - 1] + '@' + imgFile.split(',')[1] const base64 = file.name.split('.')[file.name.split('.').length - 1] + '@' + imgFile.split(',')[1]
this.$apis.common.uploadImgApi({ file: base64, fileType: 'image' }).then(res => { this.loading = true
this.$apis.common
.uploadImgApi({ file: base64, fileType: 'image' })
.then(res => {
this.editForm[targetItem.name] = res this.editForm[targetItem.name] = res
this.$refs.configEditFormRef.$refs[this.editChildRef].validateField(targetItem.name) this.$refs.configEditFormRef.$refs[this.editChildRef].validateField(targetItem.name)
}) })
.finally(() => {
this.loading = false
})
} }
}, },
{ {
...@@ -1815,7 +1827,7 @@ export default { ...@@ -1815,7 +1827,7 @@ export default {
cursor: pointer; cursor: pointer;
} }
.form-open { .form-open {
max-height: 1600px; max-height: 2500px;
transition: max-height 0.5s ease; transition: max-height 0.5s ease;
} }
.form-close { .form-close {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!