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) {