|
@@ -0,0 +1,108 @@
|
|
|
+<script setup lang='ts'>
|
|
|
+const fieldValue = ref()
|
|
|
+const WeekMap = '一二三四五六日'
|
|
|
+
|
|
|
+const team_id = await request({ url: '/jcxx/team/index', data: { team_current: '1' } }).then((res) => {
|
|
|
+ const { team_id, team_name } = res.data.page_data[0]
|
|
|
+ fieldValue.value = team_name
|
|
|
+ return team_id
|
|
|
+})
|
|
|
+
|
|
|
+const form_team_id = ref(team_id)
|
|
|
+
|
|
|
+const columns = await request({ url: '/jcxx/team/index', data: { limit: 100 } }).then((res) => {
|
|
|
+ const d = res.data.page_data
|
|
|
+ return d.map((el: any) => ({ text: el.team_name, value: el.team_id }))
|
|
|
+})
|
|
|
+
|
|
|
+const showPicker = ref(false)
|
|
|
+
|
|
|
+function onConfirm({ selectedOptions }) {
|
|
|
+ showPicker.value = false
|
|
|
+ fieldValue.value = selectedOptions[0].text
|
|
|
+ form_team_id.value = selectedOptions[0].value
|
|
|
+
|
|
|
+ // queryApi2()
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<template>
|
|
|
+ <div class="px-2px">
|
|
|
+ <van-field v-model="fieldValue" is-link readonly label="学期" placeholder="选择学期" @click="showPicker = true" />
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <van-popup v-model:show="showPicker" round position="bottom">
|
|
|
+ <van-picker :columns="columns" @cancel="showPicker = false" @confirm="onConfirm" />
|
|
|
+ </van-popup>
|
|
|
+ <!-- <div class="flex_center py-4">
|
|
|
+ <van-loading />
|
|
|
+ </div> -->
|
|
|
+
|
|
|
+ <remote-list
|
|
|
+ url="/xdjx/tdkgl_wdtdk/index" :d="{
|
|
|
+ team_id: form_team_id,
|
|
|
+ }" class="text-16px space-x-2 p-4px"
|
|
|
+ k="team_id"
|
|
|
+ >
|
|
|
+ <template
|
|
|
+ #default="{ row: { xtw_tklx, xtw_shzt, xtw_tklx_option_k, xtw_jsxm, xtw_tkzc, xtw_zcsj, xtw_tkjc, xtw_tkxq, xtw_tkmc, xtw_hdkjsxm, xtw_hdkzc, xtw_hdkzcsj, xtw_hdkjc, xtw_hdkxq, xtw_hdkmc } }"
|
|
|
+ >
|
|
|
+ <div class="px-18px py-12px bg-white rounded text-12px mb-8px">
|
|
|
+ <div class="flex justify-between mb-10px">
|
|
|
+ <div class="text-14px font-bold">
|
|
|
+ {{ xtw_tklx }}申请
|
|
|
+ </div>
|
|
|
+ <van-tag type="primary">
|
|
|
+ {{ xtw_shzt === '3' ? '待审核' : xtw_shzt }}
|
|
|
+ </van-tag>
|
|
|
+ </div>
|
|
|
+ <div class="flex justify-between px-4px">
|
|
|
+ <div class="w-4/9">
|
|
|
+ <div class="mb-4px font-bold">
|
|
|
+ 调课前:
|
|
|
+ </div>
|
|
|
+ <template v-if="xtw_tklx_option_k === '1'">
|
|
|
+ <div>{{ xtw_jsxm }}/第{{ xtw_tkzc }}周 周{{ WeekMap[xtw_tkxq] }} 第{{ xtw_tkjc }}节/{{ xtw_tkmc }}</div>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <div class="mb-2px">
|
|
|
+ {{ xtw_jsxm }}/第{{ xtw_tkzc }}周 周{{ WeekMap[xtw_tkxq ] }} 第{{ xtw_tkjc }}节/{{ xtw_tkmc }}
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ {{ xtw_hdkjsxm }}/第{{ xtw_hdkzc }}周 周{{ WeekMap[xtw_hdkxq] }} 第{{ xtw_hdkjc }}节/{{
|
|
|
+ xtw_hdkmc
|
|
|
+ }}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
+ <div class="w-4/9">
|
|
|
+ <div class="mb-4px font-bold">
|
|
|
+ 调课后:
|
|
|
+ </div>
|
|
|
+ <template v-if="xtw_tklx_option_k === '1'">
|
|
|
+ <div>{{ xtw_hdkjsxm }}/第{{ xtw_tkzc }}周 周{{ WeekMap[xtw_tkxq] }} 第{{ xtw_tkjc }}节/{{ xtw_tkmc }}</div>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <div class="mb-2px">
|
|
|
+ {{ xtw_hdkjsxm }}/第{{ xtw_tkzc }}周 周{{ WeekMap[xtw_tkxq] }} 第{{ xtw_tkjc }}节/{{ xtw_hdkmc }}
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ {{ xtw_jsxm }}/第{{ xtw_hdkzc }}周 周{{ WeekMap[xtw_hdkxq] }} 第{{ xtw_hdkjc }}节/{{
|
|
|
+ xtw_tkmc
|
|
|
+ }}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </remote-list>
|
|
|
+</template>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+.flex_center {
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+}
|
|
|
+</style>
|