diff --git a/src/views/trials/trials-panel/reading/read-order/index.vue b/src/views/trials/trials-panel/reading/read-order/index.vue index 6f47ccc1..4bc3dfd2 100644 --- a/src/views/trials/trials-panel/reading/read-order/index.vue +++ b/src/views/trials/trials-panel/reading/read-order/index.vue @@ -188,8 +188,9 @@ sortable="custom" show-overflow-tooltip> @@ -278,6 +279,7 @@ export default { async handleChange(row, value, old) { try { if (!this.searchData.DoctorUserId || !this.searchData.TrialReadingCriterionId) return false + if (!value) throw this.$t('trials:readOrder:message:min1') let data = { TrialId: this.$route.query.trialId, TrialReadingCriterionId: this.searchData.TrialReadingCriterionId, @@ -298,6 +300,8 @@ export default { } catch (err) { row.RandomOrder = old console.log(err) + this.$message.warning(err) + this.getList() this.loading = false } }, @@ -364,8 +368,11 @@ export default { getReadingTaskList(this.searchData) .then((res) => { this.loading = false - this.list = res.Result.CurrentPageData - this.total = res.Result.TotalCount + this.list = [] + this.$nextTick(() => { + this.list = res.Result.CurrentPageData + this.total = res.Result.TotalCount + }) }) .catch(() => { this.loading = false