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

bug fixes

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