diff --git a/packages/2.0.5/AppCodeGeneration/components/Add.vue b/packages/2.0.5/AppCodeGeneration/components/Add.vue
index 1820bbf5..6bb416b8 100644
--- a/packages/2.0.5/AppCodeGeneration/components/Add.vue
+++ b/packages/2.0.5/AppCodeGeneration/components/Add.vue
@@ -141,7 +141,7 @@
-
+
@@ -169,6 +169,7 @@ export default {
return time.getTime() < Date.now() - 8.64e7;
}
},
+ isLoading: false,
girdName: '',
gridFieldName: '',
showGrid: false,
@@ -391,7 +392,6 @@ export default {
}
if (item.type === 'upload' && this.formData[item.fieldDbName]) {
- console.log(this.formData[item.fieldDbName])
this.formData[item.fieldDbName] = this.formData[item.fieldDbName].split(',').map(v => {
return {
url: v
@@ -410,6 +410,7 @@ export default {
submit() {
this.$refs.formData?.validate((valid) => {
if (valid) {
+ this.isLoading = true
this.formDataList.map((item) => {
if (item.length) {
item.map((items) => {
@@ -436,12 +437,15 @@ export default {
...this.formData,
id: this.params.id || ''
}).then((res) => {
+ this.isLoading = false
if (res.code == 0) {
this.$message.success('提交成功')
setTimeout(() => {
this.onBack(true)
}, 600)
}
+ }).catch(() => {
+ this.isLoading = false
})
}
})
diff --git a/packages/2.0.5/AppCodeGeneration/components/Detail.vue b/packages/2.0.5/AppCodeGeneration/components/Detail.vue
index 0a51ff89..97647ee3 100644
--- a/packages/2.0.5/AppCodeGeneration/components/Detail.vue
+++ b/packages/2.0.5/AppCodeGeneration/components/Detail.vue
@@ -1,5 +1,5 @@
-
+
@@ -82,6 +82,7 @@
},
mounted () {
+ this.pageShow = true
this.getDetail()
},
@@ -164,13 +165,17 @@
if (res?.data) {
this.formData = res.data
this.getFormData()
+
+ this.pageShow = false
}
+ }).catch(() => {
+ this.pageShow = false
})
},
getDictList (listName) {
this.dict.load(listName.join(',')).then(() => {
- this.pageShow = true
+
})
},