调整显示逻辑

This commit is contained in:
ywyonui 2025-07-24 20:55:38 +08:00
parent 04040c14d2
commit e9e2827046

View File

@ -46,7 +46,7 @@
<view v-for="(item, index) in dkList" :key="index"> <view v-for="(item, index) in dkList" :key="index">
<view class="dk-card"> <view class="dk-card">
<view class="card-header"> <view class="card-header">
<text class="applicant-name">{{ item.dktime }}{{ item.jcmc }}</text> <text class="applicant-name">{{ item.dktime }}{{ wdNameList[item.xq - 1] }}{{ item.jcmc }}</text>
</view> </view>
<view class="card-body"> <view class="card-body">
<view class="info-row"> <view class="info-row">
@ -89,6 +89,8 @@ const props = withDefaults(defineProps<{
}) })
}); });
const wdNameList = ref<string[]>(["周一", "周二", "周三", "周四", "周五", "周六", "周日"]);
// //
const excludeIds = ref<any>([getJs.id]); const excludeIds = ref<any>([getJs.id]);
@ -99,9 +101,9 @@ const dkList = ref<any>([]);
const kmDkList = ref<any>([]); const kmDkList = ref<any>([]);
const tabList = ref([ const tabList = ref([
{ name: "统一代课", id: "tab-ty" }, { name: "统一设置", id: "tab-ty" },
{ name: "按排课", id: "tab-pk" }, { name: "按排课设置", id: "tab-pk" },
{ name: "按节次", id: "tab-jc" }, { name: "按节次设置", id: "tab-jc" },
]); ]);
const curTabIndex = ref(0); const curTabIndex = ref(0);
@ -119,8 +121,8 @@ const jsTypeMc: any = {
const getPkkbList = async () => { const getPkkbList = async () => {
const res = await getPkkbByJsRangeTimeApi({ const res = await getPkkbByJsRangeTimeApi({
jsId: props.data.jsId, jsId: props.data.jsId,
startTime: props.data.qjkstime.split(" ")[0], startTime: props.data.qjkstime,
endTime: props.data.qjjstime.split(" ")[0], endTime: props.data.qjjstime,
}); });
// //
const srcData: any = {}; const srcData: any = {};
@ -153,7 +155,6 @@ const getPkkbList = async () => {
}); });
// kmMapvalue // kmMapvalue
kmDkList.value = Object.values(kmMap); kmDkList.value = Object.values(kmMap);
console.log(kmDkList.value);
} }
const changeJsByTy = (selected: any, item: any) => { const changeJsByTy = (selected: any, item: any) => {