From 66955f9ac76901533bb3852d2261ec90a98a8e0d Mon Sep 17 00:00:00 2001 From: ywyonui Date: Sun, 28 Sep 2025 14:31:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B0=83=E6=95=B4=E4=BB=A3?= =?UTF-8?q?=E8=AF=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/view/hr/jsQj/components/jsQjDkEdit.vue | 6 ++---- src/utils/qjPageUtils.ts | 4 ++++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/pages/view/hr/jsQj/components/jsQjDkEdit.vue b/src/pages/view/hr/jsQj/components/jsQjDkEdit.vue index ca032fb..49d729a 100644 --- a/src/pages/view/hr/jsQj/components/jsQjDkEdit.vue +++ b/src/pages/view/hr/jsQj/components/jsQjDkEdit.vue @@ -47,9 +47,7 @@ - {{ item.dktime }}({{ QjPageUtils.wdNameList[item.xq - 1] }})的{{ - item.jcmc - }} + {{ item.title }} @@ -78,7 +76,7 @@ - {{ item.dktime }}({{ item.xqLabel }})的{{ item.jcmc }} + {{ item.title }} 我的代课 diff --git a/src/utils/qjPageUtils.ts b/src/utils/qjPageUtils.ts index ca86e88..d8417fc 100644 --- a/src/utils/qjPageUtils.ts +++ b/src/utils/qjPageUtils.ts @@ -118,6 +118,8 @@ const rebuildDkList = (list: any, jsId: string) => { const xq: number = item.xq - 1; item.xqLabel = wdNameList[xq]; item.statusLabel = qrStatus[item.qrStatus] || "未知"; + item.title = item.dktime + "(第" + item.zc + "周" + item.xqLabel + ")的" + item.jcmc; + console.log("item", item); return item; }); // 排序,将当前教师作为代课教师的代课数据,排在前面,并且添加一个标记 @@ -137,6 +139,8 @@ const getDkList = async (qjId: string, jsId: string) => { qjId: qjId, page: 1, rows: 1000, + sidx: "dktime", + sord: "asc", }); const rows = (res && (res.rows || res.result || res.data)) || []; if (!rows.length) {