diff --git a/.gitignore b/.gitignore index 3df607e..60883be 100644 --- a/.gitignore +++ b/.gitignore @@ -14,5 +14,5 @@ tests/**/coverage/ *.ntvs* *.njsproj *.sln -# .eslintignore -# /.eslintignore \ No newline at end of file +.eslintignore +/.eslintignore \ No newline at end of file diff --git a/src/views/dictionary/template/components/ClinicalQuestionConfig.vue b/src/views/dictionary/template/components/ClinicalQuestionConfig.vue index 0049f63..5aa089b 100644 --- a/src/views/dictionary/template/components/ClinicalQuestionConfig.vue +++ b/src/views/dictionary/template/components/ClinicalQuestionConfig.vue @@ -242,7 +242,9 @@ export default { watch: { list() { this.$nextTick(() => { - this.$refs.criterionQSList.doLayout() + if(this.$refs.criterionQSList){ + this.$refs.criterionQSList.doLayout() + } }) } }, diff --git a/src/views/dictionary/template/components/CriterionsConfig.vue b/src/views/dictionary/template/components/CriterionsConfig.vue index b2b50bd..e6dd01d 100644 --- a/src/views/dictionary/template/components/CriterionsConfig.vue +++ b/src/views/dictionary/template/components/CriterionsConfig.vue @@ -295,7 +295,9 @@ export default { watch: { list() { this.$nextTick(() => { - this.$refs.criterionQSList.doLayout() + if(this.$refs.criterionQSList){ + this.$refs.criterionQSList.doLayout() + } }) } }, diff --git a/src/views/dictionary/template/components/EfficacyAssessment.vue b/src/views/dictionary/template/components/EfficacyAssessment.vue index b2e290f..e3c46d1 100644 --- a/src/views/dictionary/template/components/EfficacyAssessment.vue +++ b/src/views/dictionary/template/components/EfficacyAssessment.vue @@ -83,7 +83,8 @@ { - this.$refs.organList.doLayout() + if(this.$refs.organList){ + this.$refs.organList.doLayout() + } }) } }, diff --git a/src/views/dictionary/template/components/OrgansTbl.vue b/src/views/dictionary/template/components/OrgansTbl.vue index 04eed43..a356717 100644 --- a/src/views/dictionary/template/components/OrgansTbl.vue +++ b/src/views/dictionary/template/components/OrgansTbl.vue @@ -357,7 +357,9 @@ export default { watch: { list() { this.$nextTick(() => { - this.$refs.organList.doLayout() + if(this.$refs.organList){ + this.$refs.organList.doLayout() + } }) } }, diff --git a/src/views/financials/revenues/index.vue b/src/views/financials/revenues/index.vue index 760da37..73ac287 100644 --- a/src/views/financials/revenues/index.vue +++ b/src/views/financials/revenues/index.vue @@ -259,10 +259,14 @@ export default { this.listQuery.PageIndex = 1 this.listQuery.Asc = true this.listQuery.SortField = '' - this.$refs.revenusList.doLayout() + if(this.$refs.revenusList){ + this.$refs.revenusList.doLayout() + } this.arrID = [] this.getList() - this.$refs.revenusList.doLayout() + if(this.$refs.revenusList){ + this.$refs.revenusList.doLayout() + } }, handleVerify() { this.dialogLoading = true diff --git a/src/views/statistics/components/EnrollmentsStatsByReviewer.vue b/src/views/statistics/components/EnrollmentsStatsByReviewer.vue index ba94365..e93e10f 100644 --- a/src/views/statistics/components/EnrollmentsStatsByReviewer.vue +++ b/src/views/statistics/components/EnrollmentsStatsByReviewer.vue @@ -252,7 +252,9 @@ export default { // 合计行 getSummaries(param) { this.$nextTick(() => { - this.$refs.enrollmentStats.doLayout() + if(this.$refs.enrollmentStats){ + this.$refs.enrollmentStats.doLayout() + } }) const { columns, data } = param const sums = [] diff --git a/src/views/statistics/components/TrialEnrollmentsStats.vue b/src/views/statistics/components/TrialEnrollmentsStats.vue index 922759b..5725833 100644 --- a/src/views/statistics/components/TrialEnrollmentsStats.vue +++ b/src/views/statistics/components/TrialEnrollmentsStats.vue @@ -248,7 +248,9 @@ export default { // 合计行 getSummaries(param) { this.$nextTick(() => { - this.$refs.trialStats.doLayout() + if(this.$refs.trialStats){ + this.$refs.trialStats.doLayout() + } }) const { columns, data } = param const sums = [] diff --git a/src/views/statistics/components/WorkloadStats.vue b/src/views/statistics/components/WorkloadStats.vue index e270215..ef73839 100644 --- a/src/views/statistics/components/WorkloadStats.vue +++ b/src/views/statistics/components/WorkloadStats.vue @@ -254,7 +254,9 @@ export default { // 统计 getSummaries(param) { this.$nextTick(() => { - this.$refs.workloadStats.doLayout() + if(this.$refs.workloadStats){ + this.$refs.workloadStats.doLayout() + } }) const { columns, data } = param const sums = [] diff --git a/src/views/trials/trials-inspection/components/confirm-visit-list.vue b/src/views/trials/trials-inspection/components/confirm-visit-list.vue index ea8931d..4b70f36 100644 --- a/src/views/trials/trials-inspection/components/confirm-visit-list.vue +++ b/src/views/trials/trials-inspection/components/confirm-visit-list.vue @@ -319,6 +319,7 @@ export default { } } } catch (err) { + this.loading = false; console.log(err); } }, diff --git a/src/views/trials/trials-panel/enrolled-reviewers/list/index.vue b/src/views/trials/trials-panel/enrolled-reviewers/list/index.vue index cd4f7bf..2624e90 100644 --- a/src/views/trials/trials-panel/enrolled-reviewers/list/index.vue +++ b/src/views/trials/trials-panel/enrolled-reviewers/list/index.vue @@ -90,7 +90,8 @@