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