diff --git a/src/components/Pagination/index.vue b/src/components/Pagination/index.vue index 08ac487..5c07b68 100644 --- a/src/components/Pagination/index.vue +++ b/src/components/Pagination/index.vue @@ -31,12 +31,12 @@ export default { }, limit: { type: Number, - default: 20 + default: 5 }, pageSizes: { type: Array, default() { - return [10, 20, 30, 50] + return [5,10, 20, 30, 50] } }, // 移动端页码按钮的数量端默认值5 diff --git a/src/views/business/resource/mjy/comps/mjy/Xq.vue b/src/views/business/resource/mjy/comps/mjy/Xq.vue index c3cba16..a8fdcb1 100644 --- a/src/views/business/resource/mjy/comps/mjy/Xq.vue +++ b/src/views/business/resource/mjy/comps/mjy/Xq.vue @@ -136,7 +136,7 @@ - @@ -168,7 +168,7 @@ export default { queryJcgjParams: { pageNum: 1, mjyId: null, - pageSize: 10, + pageSize: 5, } } }, diff --git a/src/views/business/study/comp/jhbd/Bj.vue b/src/views/business/study/comp/jhbd/Bj.vue index 5ee53f6..7e7ed82 100644 --- a/src/views/business/study/comp/jhbd/Bj.vue +++ b/src/views/business/study/comp/jhbd/Bj.vue @@ -41,8 +41,8 @@ - + @@ -70,12 +70,12 @@ - + - + @@ -174,7 +174,7 @@ export default { }, computed: { ...mapGetters([ - 'nickName','name' + 'nickName', 'name' ]), }, created() { @@ -251,39 +251,37 @@ export default { }, async saveNext() { let content = await this.$refs.templateTable.getFormData() - this.form.bdnr = JSON.stringify(content) - this.$modal.loading() - studyFormPlan_bc(this.form).then(response => { - this.$emit('close') - this.$modal.closeLoading() - }).finally(() => { - this.$modal.closeLoading() - }) + if (content) { + this.form.bdnr = JSON.stringify(content) + this.$modal.loading() + studyFormPlan_bc(this.form).then(response => { + this.$emit('close') + this.$modal.closeLoading() + }).finally(() => { + this.$modal.closeLoading() + }) + } }, tj() { this.$refs["formSubmit"].validate(valid => { if (valid) { - this.dotj() + this.$modal.loading() + studyFormPlan_tj(this.form).then(response => { + this.$emit('close') + this.openSubmit = false + this.$modal.closeLoading() + }).finally(() => { + this.$modal.closeLoading() + }) } }) }, - async showtijiao() { + async showtijiao() { let content = await this.$refs.templateTable.getFormData() if (content) { - this.openSubmit = true + this.form.bdnr = JSON.stringify(content) + this.openSubmit = true } - }, - async dotj() { - let content = await this.$refs.templateTable.getFormData() - this.form.bdnr = JSON.stringify(content) - this.$modal.loading() - studyFormPlan_tj(this.form).then(response => { - this.$emit('close') - this.openSubmit = false - this.$modal.closeLoading() - }).finally(() => { - this.$modal.closeLoading() - }) } } } diff --git a/src/views/business/study/comp/jhbd/Fh.vue b/src/views/business/study/comp/jhbd/Fh.vue index dec1ec7..6ba8d9d 100644 --- a/src/views/business/study/comp/jhbd/Fh.vue +++ b/src/views/business/study/comp/jhbd/Fh.vue @@ -18,7 +18,7 @@ - + {{ $t('page.business.study.studyFormPlan.qmxx') }} @@ -109,7 +109,7 @@