提交 0b070439 authored 作者: pengxiaohui's avatar pengxiaohui

bug fixes

上级 e20ef47a
...@@ -691,13 +691,9 @@ export default { ...@@ -691,13 +691,9 @@ export default {
} }
this.loading = true this.loading = true
const form = { ...this.addForm } const form = { ...this.addForm }
console.log(form)
const checkedPro = this.checkFormDetailsNull(form.production_detail) const checkedPro = this.checkFormDetailsNull(form.production_detail)
console.log(checkedPro)
const checkedFoud = this.checkFormDetailsNull(form.fund_detail) const checkedFoud = this.checkFormDetailsNull(form.fund_detail)
console.log(checkedFoud)
const checkedInvest = this.checkFormDetailsNull(form.invest_detail) const checkedInvest = this.checkFormDetailsNull(form.invest_detail)
console.log(checkedInvest)
if (checkedPro) delete form.production_detail if (checkedPro) delete form.production_detail
if (checkedFoud) delete form.fund_detail if (checkedFoud) delete form.fund_detail
if (checkedInvest) delete form.invest_detail if (checkedInvest) delete form.invest_detail
......
...@@ -357,7 +357,12 @@ export default { ...@@ -357,7 +357,12 @@ export default {
this.accessoryFiles = [{ url: data.accessory, name: data.accessory }] this.accessoryFiles = [{ url: data.accessory, name: data.accessory }]
} }
if (data.uris) { if (data.uris) {
this.updateForm.uris = data.uris const arr = []
data.uris.forEach(item => {
const it = Object.assign(item, { url: item.uri, name: item.title })
arr.push(it)
})
this.updateForm.uris = arr
} }
} else { } else {
this.$message.error(res.message) this.$message.error(res.message)
......
...@@ -548,14 +548,16 @@ export default { ...@@ -548,14 +548,16 @@ export default {
this.drawer = true this.drawer = true
}, },
handleDraftCreate() { handleDraftCreate() {
console.log(JSON.parse(this.formDraftStr))
const data = JSON.parse(this.formDraftStr) const data = JSON.parse(this.formDraftStr)
this.addForm = data this.addForm = data
this.drawer = true this.drawer = true
}, },
handleFormDraft() { handleFormDraft() {
const data = JSON.stringify(this.addForm) const data = JSON.stringify(this.addForm)
this.formDraftStr = data
window.localStorage.setItem('characFormDraftData', data) window.localStorage.setItem('characFormDraftData', data)
this.$message.success('数据暂存成功')
this.drawer = false
}, },
handleFormEnsure() { handleFormEnsure() {
if (this.loading) { if (this.loading) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论