BUG 28289

This commit is contained in:
aixianling
2022-03-16 18:04:45 +08:00
parent 3b1134d044
commit 6c3aa6e592

View File

@@ -408,11 +408,9 @@ export default {
})
this.formData[items.fieldDbName] = list?.toString()
}
if (items.type == 'upload' && this.formData[items.fieldDbName]?.length) { //附件 只传id
let files = []
[this.formData[items.fieldDbName]]?.flat()?.map((item) => {
files.push(item.url)
})
if (items.type == 'upload') { //附件 只传id
let files = [];
[this.formData[items.fieldDbName]]?.flat()?.map(item => files.push(item.url))
this.formData[items.fieldDbName] = files?.toString()
}
// if (items.type == 'onOff') { //开关
@@ -427,7 +425,6 @@ export default {
})
}
})
this.formDataList.map((item) => {
item.map((items) => {
if (items.mustFill == 1 && !this.formData[items.fieldDbName]) {
@@ -442,10 +439,9 @@ export default {
this.$http.post(`/app/appapplicationinfo/addOrUpdate?appId=${this.appId}`, {
...this.formData,
id: this.id || ''
}).then((res) => {
if (res.code == 0) {
}).then(res => {
if (res?.code == 0) {
this.$u.toast('提交成功')
uni.$emit('specialPeopleList')
setTimeout(() => {
uni.navigateBack({
success: () => {