diff --git a/source/vue/xzs-admin/src/views/task/edit.vue b/source/vue/xzs-admin/src/views/task/edit.vue index 4658652..e1b3669 100644 --- a/source/vue/xzs-admin/src/views/task/edit.vue +++ b/source/vue/xzs-admin/src/views/task/edit.vue @@ -175,6 +175,7 @@ export default { }) }, resetForm () { + let lastId = this.form.id this.$refs['form'].resetFields() this.form = { id: null, @@ -182,6 +183,7 @@ export default { title: '', paperItems: [] } + this.form.id = lastId }, subjectFormatter (row, column, cellValue, index) { return this.subjectEnumFormat(cellValue) diff --git a/source/xzs/src/main/resources/static/admin/index.html b/source/xzs/src/main/resources/static/admin/index.html index b6e85ff..565248d 100644 --- a/source/xzs/src/main/resources/static/admin/index.html +++ b/source/xzs/src/main/resources/static/admin/index.html @@ -13,4 +13,4 @@ hm.src = 'https://hm.baidu.com/hm.js?cd8218cd51f800ed2b73e5751cb3f4f9' var s = document.getElementsByTagName('script')[0] s.parentNode.insertBefore(hm, s) - })()