bug整改

This commit is contained in:
=
2025-03-31 08:38:39 +08:00
parent 98293bc9d6
commit bdd6db282c
4 changed files with 10 additions and 4 deletions
@@ -118,7 +118,7 @@ public class TheRapyRecuperationLine extends BaseModel {
private Integer estimatedFamilyNumbers; private Integer estimatedFamilyNumbers;
@Column @Column
@ColDefine(type = ColType.VARCHAR, width = 30) @ColDefine(type = ColType.MYSQL_JSON)
@Comment("缩略图") @Comment("缩略图")
private String files; private String files;
@@ -72,7 +72,7 @@ public class TheRapyRecuperationTravelAgency extends BaseModel {
private boolean isDisabled; private boolean isDisabled;
@Column @Column
@ColDefine(type = ColType.VARCHAR, width = 100) @ColDefine(type = ColType.MYSQL_JSON)
@Comment("缩略图") @Comment("缩略图")
private String files; private String files;
@@ -726,6 +726,7 @@ layout("/layouts/platform.html"){
await this.$nextTick() await this.$nextTick()
const data = resp.data const data = resp.data
data.year = data.year.toString() data.year = data.year.toString()
data.files = JSON.parse(data.files)
this.formData = {...data} this.formData = {...data}
this.initLineContentEditor(data.content) this.initLineContentEditor(data.content)
} else { } else {
@@ -743,6 +744,7 @@ layout("/layouts/platform.html"){
background: 'rgba(0, 0, 0, 0.7)' background: 'rgba(0, 0, 0, 0.7)'
}); });
delete this.formData.travelAgency delete this.formData.travelAgency
this.formData.files = JSON.stringify(this.formData.files)
const resp = await $.post(loc() + '/doSubmit', this.formData) const resp = await $.post(loc() + '/doSubmit', this.formData)
loading.close() loading.close()
if (resp.code === 0) { if (resp.code === 0) {
@@ -757,10 +759,12 @@ layout("/layouts/platform.html"){
} else { } else {
sublime.jumpPagePjax('/platform/theRapyRecuperation/lineFghSelect?mode=1') sublime.jumpPagePjax('/platform/theRapyRecuperation/lineFghSelect?mode=1')
} }
}).catch(() => { })/*.catch(() => {
this.$refs.guava.index()
this.pageData()
})*/
this.$refs.guava.index() this.$refs.guava.index()
this.pageData() this.pageData()
})
} else { } else {
this.$message.warning(resp.msg) this.$message.warning(resp.msg)
} }
@@ -357,12 +357,14 @@ layout("/layouts/platform.html"){
async openEdit(row) { async openEdit(row) {
const cloneData = clone(row) const cloneData = clone(row)
cloneData.year = cloneData.year.toString() cloneData.year = cloneData.year.toString()
cloneData.files = JSON.parse(cloneData.files)
this.formData = {...cloneData} this.formData = {...cloneData}
this.editDialogVisible = true this.editDialogVisible = true
}, },
async doSubmit() { async doSubmit() {
const valid = await this.$refs['form'].validate() const valid = await this.$refs['form'].validate()
if (!valid) return if (!valid) return
this.formData.files=JSON.stringify(this.formData.files)
const resp = await $.post(loc() + '/doSubmit', {travelAgency: JSON.stringify(this.formData)}) const resp = await $.post(loc() + '/doSubmit', {travelAgency: JSON.stringify(this.formData)})
if (resp.code === 0) { if (resp.code === 0) {
this.editDialogVisible = false this.editDialogVisible = false