调整排课对应的名称,增加别称
This commit is contained in:
parent
301bab459a
commit
1f84898ba2
@ -25,8 +25,8 @@
|
||||
<view class="course-container">
|
||||
<template v-if="sj.pkkbList && sj.pkkbList.length > 0">
|
||||
<view v-for="(pkkb, pkkbIndex) in sj.pkkbList" :key="pkkbIndex"
|
||||
:class="['course-card', getCourseColorClass(pkkb.pkName)]">
|
||||
<text class="course-subject">{{ pkkb.pkName }}</text>
|
||||
:class="['course-card', getCourseColorClass(pkkb.pkMc)]">
|
||||
<text class="course-subject">{{ pkkb.pkMc }}</text>
|
||||
<text class="course-class">{{ pkkb.jsName }}</text>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@ -23,8 +23,8 @@
|
||||
<view class="course-container">
|
||||
<template v-if="sj.pkkbList && sj.pkkbList.length > 0">
|
||||
<view v-for="(pkkb, pkkbIndex) in sj.pkkbList" :key="pkkbIndex"
|
||||
:class="['course-card', getCourseColorClass(pkkb.pkName)]">
|
||||
<text class="course-subject">{{ pkkb.pkName }}</text>
|
||||
:class="['course-card', getCourseColorClass(pkkb.pkMc)]">
|
||||
<text class="course-subject">{{ pkkb.pkMc }}</text>
|
||||
<text class="course-class">{{ (pkkb.njmc || "无年级") + " " + (pkkb.bjmc || "无班级") }}</text>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@ -64,7 +64,7 @@
|
||||
<view class="card-body">
|
||||
<view class="info-row">
|
||||
<text class="label">排课名称:</text>
|
||||
<text class="value">{{ item.pkName }}</text>
|
||||
<text class="value">{{ item.pkMc }}</text>
|
||||
</view>
|
||||
<view class="info-row">
|
||||
<text class="label">上课时间:</text>
|
||||
|
||||
@ -40,7 +40,7 @@
|
||||
<view class="card-body">
|
||||
<view class="info-row">
|
||||
<text class="label">排课名称:</text>
|
||||
<text class="value">{{ item.pkName }}</text>
|
||||
<text class="value">{{ item.pkMc }}</text>
|
||||
</view>
|
||||
<view class="info-row">
|
||||
<text class="label">代课老师:</text>
|
||||
@ -72,7 +72,7 @@
|
||||
<view class="card-body">
|
||||
<view class="info-row">
|
||||
<text class="label">排课名称:</text>
|
||||
<text class="value">{{ item.pkName }}</text>
|
||||
<text class="value">{{ item.pkMc }}</text>
|
||||
</view>
|
||||
<view class="info-row">
|
||||
<text class="label">上课时间:</text>
|
||||
@ -194,7 +194,7 @@ const getPkkbList = async () => {
|
||||
item.dkJsName = "";
|
||||
}
|
||||
kmMap[item.pkId] = kmMap[item.pkId] || {
|
||||
pkName: item.pkName,
|
||||
pkMc: item.pkMc,
|
||||
pkId: item.pkId,
|
||||
};
|
||||
return item;
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
<view class="card-body">
|
||||
<view class="info-row">
|
||||
<text class="label">排课名称:</text>
|
||||
<text class="value">{{ item.pkName }}</text>
|
||||
<text class="value">{{ item.pkMc }}</text>
|
||||
</view>
|
||||
<view class="info-row">
|
||||
<text class="label">上课时间:</text>
|
||||
|
||||
@ -176,6 +176,9 @@ export const useUserStore = defineStore({
|
||||
if (value[AUTH_KEY]) {
|
||||
this.setToken(value[AUTH_KEY]);
|
||||
}
|
||||
// 为了避免数据加载异常。这里清理一下缓存
|
||||
useDicStore().setData({});
|
||||
useCommonStore().setData({});
|
||||
|
||||
// 检查用户数据中是否已经包含权限信息
|
||||
if (value.auth && Array.isArray(value.auth) && value.auth.length > 0) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user