From a42579b214989b5d6cee776e589096581b889f3d Mon Sep 17 00:00:00 2001 From: unknown <2391580279@qq.com> Date: Sun, 27 Oct 2024 15:56:26 +0800 Subject: [PATCH 1/3] feat: rating modal --- src/assets/locales/en-US/rate.json | 3 +++ src/assets/locales/zh-CN/rate.json | 3 +++ src/views/Rating/modal.js | 20 ++++++++++++++++++++ 3 files changed, 26 insertions(+) diff --git a/src/assets/locales/en-US/rate.json b/src/assets/locales/en-US/rate.json index 14833538..57c77cad 100644 --- a/src/assets/locales/en-US/rate.json +++ b/src/assets/locales/en-US/rate.json @@ -27,6 +27,9 @@ "action": "Actions", "last-submit-time": "Lastest Submission Time", "last-rate-time": "Last Grading Time", + "last-rate": "Last Grading", + "submit-num": "Submitted times", + "num-submit": "{{num}}th submission", "reset": "Reset", "ok": "Confirm", diff --git a/src/assets/locales/zh-CN/rate.json b/src/assets/locales/zh-CN/rate.json index a011bc72..028f9cc0 100644 --- a/src/assets/locales/zh-CN/rate.json +++ b/src/assets/locales/zh-CN/rate.json @@ -27,6 +27,9 @@ "action": "操作", "last-submit-time": "最新提交时间", "last-rate-time": "上次评分时间", + "last-rate": "上次评分", + "submit-num": "提交次数", + "num-submit": "第 {{num}} 次提交", "reset": "重置", "ok": "确认", diff --git a/src/views/Rating/modal.js b/src/views/Rating/modal.js index a0de42e4..73925974 100644 --- a/src/views/Rating/modal.js +++ b/src/views/Rating/modal.js @@ -185,6 +185,18 @@ function RatingModal({ data, isMobile, onFinish }, ref) {
{t("num-submit", {num: selectOpenQs?.submit_count})}
+{t("challenger")}:
+ +{t("challenger")}:
{t("last-rate")}:
+{selectOpenQs?.last_score}
+{t("challenger")}:
- -{t("submit-time")}: