vue2-client 1.8.440 → 1.8.442
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -592,10 +592,14 @@ export default {
|
|
|
592
592
|
this.loading = true
|
|
593
593
|
const requestForm = this.prepareForm()
|
|
594
594
|
await this.appendSilenceAddFields(requestForm)
|
|
595
|
+
const realForm = this.handleFormKeys(requestForm)
|
|
596
|
+
if (this.businessType === '新增') {
|
|
597
|
+
delete realForm.id
|
|
598
|
+
}
|
|
595
599
|
resolve({
|
|
600
|
+
realForm,
|
|
596
601
|
businessType: this.businessType,
|
|
597
602
|
serviceName: this.serviceName,
|
|
598
|
-
realForm: this.handleFormKeys(requestForm),
|
|
599
603
|
currUserName: this.currUser.name,
|
|
600
604
|
currUserId: this.currUser.id,
|
|
601
605
|
orgId: this.currUser.orgid
|
|
@@ -108,10 +108,16 @@ export default {
|
|
|
108
108
|
onSubmit () {
|
|
109
109
|
if (this.$refs.main?.config?.confirmFunction) {
|
|
110
110
|
console.info('执行自定义确认逻辑')
|
|
111
|
-
executeStrFunctionByContext(this, this.$refs.main?.config?.confirmFunction, [])
|
|
111
|
+
const result = executeStrFunctionByContext(this, this.$refs.main?.config?.confirmFunction, [])
|
|
112
|
+
if (result instanceof Promise) {
|
|
113
|
+
result.then(() => {
|
|
114
|
+
this.close()
|
|
115
|
+
})
|
|
116
|
+
} else {
|
|
117
|
+
this.close()
|
|
118
|
+
}
|
|
112
119
|
} else {
|
|
113
120
|
console.warn('未配置modal确认按钮逻辑')
|
|
114
|
-
this.loading = true
|
|
115
121
|
this.close()
|
|
116
122
|
}
|
|
117
123
|
},
|