提交 3a3562bb authored 作者: 刘旭's avatar 刘旭

最新代码

上级 df2c631a
...@@ -43,8 +43,7 @@ ...@@ -43,8 +43,7 @@
{ {
"path": "pages/class/evaluate", "path": "pages/class/evaluate",
"style": { "style": {
"navigationBarTitleText": "培训评价", "navigationBarTitleText": "培训评价"
"onReachBottomDistance": 50
} }
}, },
{ {
......
...@@ -56,7 +56,6 @@ onLoad((options: any) => { ...@@ -56,7 +56,6 @@ onLoad((options: any) => {
}) })
const search = (val: any) => { const search = (val: any) => {
addressBookList.value = []
listQuery.Name = val.value listQuery.Name = val.value
init() init()
} }
...@@ -77,9 +76,8 @@ const init = async () => { ...@@ -77,9 +76,8 @@ const init = async () => {
if (res.code == 200) { if (res.code == 200) {
if (res.total > 10) status.value = "loadmore" if (res.total > 10) status.value = "loadmore"
else status.value = "nomore" else status.value = "nomore"
addressBookList.value = res.data addressBookList.value = [...addressBookList.value, ...res.data]
listQuery.total = res.total listQuery.total = res.total
console.log(res.data)
} }
} }
// 上拉加载数据 // 上拉加载数据
...@@ -97,6 +95,7 @@ onReachBottom(() => { ...@@ -97,6 +95,7 @@ onReachBottom(() => {
<style lang="scss" scoped> <style lang="scss" scoped>
.address-book-item-container { .address-book-item-container {
padding: 0 30rpx; padding: 0 30rpx;
box-sizing: border-box;
.uni-searchbar { .uni-searchbar {
padding: 0; padding: 0;
......
...@@ -53,7 +53,7 @@ const props = defineProps({ ...@@ -53,7 +53,7 @@ const props = defineProps({
const show = ref(false) const show = ref(false)
const infoRef = ref() const infoRef = ref()
const arrangeDetail = ["上课中", "未开始", "已下课"] const arrangeDetail = ["未开始", "上课中", "已下课"]
const arrangeStatus = computed(() => { const arrangeStatus = computed(() => {
const statusObj = { const statusObj = {
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
v-model="show" v-model="show"
:classId="classItem.classId" :classId="classItem.classId"
:Url="classItem.Url" :Url="classItem.Url"
@init="emits('init')" @init="emits('init', current)"
/> />
</template> </template>
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { qrCodeUrl } from "@/utils/example"
import { baseUrl } from "@/utils/request" import { baseUrl } from "@/utils/request"
import { toast } from "@/utils/util" import { toast } from "@/utils/util"
...@@ -60,8 +59,8 @@ const updateImage = () => { ...@@ -60,8 +59,8 @@ const updateImage = () => {
success: ({ data }: any) => { success: ({ data }: any) => {
const res = JSON.parse(data) const res = JSON.parse(data)
if (res.code == 200) { if (res.code == 200) {
emits("update:modelValue", false)
emits("init") emits("init")
emits("update:modelValue", false)
toast("更新成功") toast("更新成功")
} }
}, },
......
...@@ -107,8 +107,7 @@ ...@@ -107,8 +107,7 @@
<script setup lang="ts"> <script setup lang="ts">
// import headers from "@/components/header/index.vue" // import headers from "@/components/header/index.vue"
import { remarkOn, remarkDetail } from "@/api/class" import { remarkDetail } from "@/api/class"
import { toast, zconfirm } from "@/utils/util"
const disabled = ref(false) const disabled = ref(false)
const evaluateData = reactive({ const evaluateData = reactive({
......
...@@ -123,11 +123,10 @@ const init = async () => { ...@@ -123,11 +123,10 @@ const init = async () => {
else status.value = "nomore" else status.value = "nomore"
classList.value = [...classList.value, ...res.data] classList.value = [...classList.value, ...res.data]
listQuery.total = res.total listQuery.total = res.total
console.log(classList.value)
} }
} }
init() tabsChange(tabsState.current)
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
......
...@@ -105,8 +105,8 @@ const tagList = [ ...@@ -105,8 +105,8 @@ const tagList = [
// 未签退:QD + '' // 未签退:QD + ''
// 签到请假:QDQJ + '' // 签到请假:QDQJ + ''
// 签退请假: QD + QTQJ // 签退请假: QD + QTQJ
// 已补签:QDBJ + '' // 已补签:QDBQ + ''
// 签退补签: '' + QDBJ // 签退补签: QD + QTBQ
const state: any = computed(() => { const state: any = computed(() => {
let data = tagList[1] // 默认值 let data = tagList[1] // 默认值
...@@ -115,18 +115,18 @@ const state: any = computed(() => { ...@@ -115,18 +115,18 @@ const state: any = computed(() => {
const conditions = { const conditions = {
"QD-QT": tagList[0], "QD-QT": tagList[0],
QD: tagList[2], "QD-": tagList[2],
QDQJ: tagList[3], "QDQJ-": tagList[3],
"QD-QTQJ": tagList[4], "QD-QTQJ": tagList[4],
QDBQ: tagList[5], "QDBQ-": tagList[5],
"QD-QDBJ": tagList[6], "QD-QTBQ": tagList[6],
} as any } as any
const key = `${SingIn || ""}-${SingOut || ""}` const key = `${SingIn || ""}-${SingOut || ""}`
if (conditions.hasOwnProperty(key)) { if (conditions.hasOwnProperty(key)) {
data = conditions[key] data = conditions[key]
} }
data = { ...data, SingInText, SingOutText } data = { ...data, SingInText, SingOutText }
return data return data
}) })
...@@ -150,7 +150,7 @@ const signOutStatus = (status: string) => { ...@@ -150,7 +150,7 @@ const signOutStatus = (status: string) => {
return "已补签" return "已补签"
} else if (status) { } else if (status) {
return status === "QTBQ" return status === "QTBQ"
? "补签" ? "签退补签"
: status === "QT" : status === "QT"
? "已签退" ? "已签退"
: status === "QTQJ" : status === "QTQJ"
...@@ -186,7 +186,7 @@ const submit = async (reason: string) => { ...@@ -186,7 +186,7 @@ const submit = async (reason: string) => {
FStudentId: { FStudentId: {
FNUMBER: props.detailItem.studentNum, FNUMBER: props.detailItem.studentNum,
}, },
FDate: dayjs().format("YYYY-MM-DD"), FDate: dayjs().format("YYYY-MM-DD HH:mm:ss"),
FLocation: "", FLocation: "",
FLocationDetails: "", FLocationDetails: "",
FCockinType: "", FCockinType: "",
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
width="100rpx" width="100rpx"
height="100rpx" height="100rpx"
border-radius="10" border-radius="10"
:src="src" :src="baseUrl + '/' + item.Url"
/> />
<view class="info-text"> <view class="info-text">
<text>{{ item.teachName }}</text> <text>{{ item.teachName }}</text>
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
<script setup lang="ts"> <script setup lang="ts">
import { useCourseStore } from "@/store/modules/courseStore" import { useCourseStore } from "@/store/modules/courseStore"
import { src } from "@/utils/example" import { baseUrl } from "@/utils/request"
const courseStore = useCourseStore() const courseStore = useCourseStore()
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
border-radius="30" border-radius="30"
/> />
<text class="name">{{ globalStore.infoData.Name }}</text> <text class="name">{{ globalStore.infoData.Name }}</text>
<view class="info"> <view v-if="globalStore.Phone" class="info">
<text>{{ <text>{{
globalStore.infoData.Type == "BZR" ? "班主任" : "讲师" globalStore.infoData.Type == "BZR" ? "班主任" : "讲师"
}}</text> }}</text>
......
...@@ -19,12 +19,12 @@ ...@@ -19,12 +19,12 @@
<text <text
>应用范围:{{ >应用范围:{{
positionItem.type positionItem.type
? positionItem.type ? positionItem.type == "1"
? "同步班级所有课程的考勤定位" ? "同步班级所有课程的考勤定位"
: "仅当前课程考勤定位" : "仅当前课程考勤定位"
: "未设置" : "未设置"
}}</text }}
> </text>
</view> </view>
</template> </template>
<template #foot> <template #foot>
......
...@@ -5,6 +5,7 @@ export const baseUrl = "/k3cloud" ...@@ -5,6 +5,7 @@ export const baseUrl = "/k3cloud"
// 部署到iis上用的 // 部署到iis上用的
// export const baseUrl = "https://weixin3.lingqingkeji.com/k3cloud" // export const baseUrl = "https://weixin3.lingqingkeji.com/k3cloud"
// export const baseUrl = "/XiBU" // export const baseUrl = "/XiBU"
const globalStore = useGlobalStore() const globalStore = useGlobalStore()
// 封装公共申请办法 // 封装公共申请办法
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论