From 48633a1ed4ef62d85bcbb218756c1fffb7ea45a0 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Mon, 16 Jun 2025 17:24:14 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=85=E7=89=87=E9=A1=BA=E5=BA=8F=E6=89=8B?= =?UTF-8?q?=E5=8A=A8=E4=BF=AE=E6=94=B9=E6=B7=BB=E5=8A=A0=E9=99=90=E5=88=B6?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trials-panel/reading/read-order/index.vue | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) 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