特殊人群
This commit is contained in:
@@ -141,7 +141,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<el-button class="delete-btn footer-btn" @click="onBack">取消</el-button>
|
<el-button class="delete-btn footer-btn" @click="onBack">取消</el-button>
|
||||||
<el-button class="footer-btn" type="primary" @click="submit('formData')">提交</el-button>
|
<el-button class="footer-btn" type="primary" :loading="isLoading" @click="submit('formData')">提交</el-button>
|
||||||
</template>
|
</template>
|
||||||
</ai-detail>
|
</ai-detail>
|
||||||
</template>
|
</template>
|
||||||
@@ -169,6 +169,7 @@ export default {
|
|||||||
return time.getTime() < Date.now() - 8.64e7;
|
return time.getTime() < Date.now() - 8.64e7;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
isLoading: false,
|
||||||
girdName: '',
|
girdName: '',
|
||||||
gridFieldName: '',
|
gridFieldName: '',
|
||||||
showGrid: false,
|
showGrid: false,
|
||||||
@@ -391,7 +392,6 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (item.type === 'upload' && this.formData[item.fieldDbName]) {
|
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 => {
|
this.formData[item.fieldDbName] = this.formData[item.fieldDbName].split(',').map(v => {
|
||||||
return {
|
return {
|
||||||
url: v
|
url: v
|
||||||
@@ -410,6 +410,7 @@ export default {
|
|||||||
submit() {
|
submit() {
|
||||||
this.$refs.formData?.validate((valid) => {
|
this.$refs.formData?.validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
this.isLoading = true
|
||||||
this.formDataList.map((item) => {
|
this.formDataList.map((item) => {
|
||||||
if (item.length) {
|
if (item.length) {
|
||||||
item.map((items) => {
|
item.map((items) => {
|
||||||
@@ -436,12 +437,15 @@ export default {
|
|||||||
...this.formData,
|
...this.formData,
|
||||||
id: this.params.id || ''
|
id: this.params.id || ''
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
|
this.isLoading = false
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.$message.success('提交成功')
|
this.$message.success('提交成功')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.onBack(true)
|
this.onBack(true)
|
||||||
}, 600)
|
}, 600)
|
||||||
}
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
this.isLoading = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<ai-detail v-if="pageShow" isHasSidebar>
|
<ai-detail v-loading="pageShow" isHasSidebar>
|
||||||
<template #title>
|
<template #title>
|
||||||
<ai-title :title="colData.applicationName+'详情'" isShowBottomBorder isShowBack @onBackClick="onBack(true)"></ai-title>
|
<ai-title :title="colData.applicationName+'详情'" isShowBottomBorder isShowBack @onBackClick="onBack(true)"></ai-title>
|
||||||
</template>
|
</template>
|
||||||
@@ -82,6 +82,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
mounted () {
|
mounted () {
|
||||||
|
this.pageShow = true
|
||||||
this.getDetail()
|
this.getDetail()
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -164,13 +165,17 @@
|
|||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
this.formData = res.data
|
this.formData = res.data
|
||||||
this.getFormData()
|
this.getFormData()
|
||||||
|
|
||||||
|
this.pageShow = false
|
||||||
}
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
this.pageShow = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
getDictList (listName) {
|
getDictList (listName) {
|
||||||
this.dict.load(listName.join(',')).then(() => {
|
this.dict.load(listName.join(',')).then(() => {
|
||||||
this.pageShow = true
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user