提交 9ec04e56 authored 作者: 刘旭's avatar 刘旭

更新代码

上级 1e024da7
......@@ -100,18 +100,17 @@ const tagList = [
{ color: "#19be6b", status: "已补签" },
{ color: "#19be6b", status: "签退补签" },
] as any
// 正常出勤: QD + QT
// 缺勤:'' + ''
// 未签退:QD + ''
// 签到请假:QDQJ + ''
// 签退请假: QD + QTQJ
// 已补签:QDBQ + ''
// 签退补签: QD + QTBQ
const state: any = computed(() => {
let data = tagList[1] // 默认值
const { SingIn, SingOut, SingInText, SingOutText } =
props.detailItem.State[0].Value[0]
let State
if (props.detailItem.State.length) State = props.detailItem.State[0].Value[0]
else
State = [
{ SingIn: null, SingOut: null, SingInText: null, SingOutText: null },
]
const { SingIn, SingOut, SingInText, SingOutText } = State
const conditions = {
"QD-QT": tagList[0],
......
......@@ -11,7 +11,7 @@ const globalStore = useGlobalStore()
// 封装公共申请办法
function request(
url: string,
method: "GET" | "POST" | "PUT" | "DELETE",
method: "GET" | "POST" | "PUT" | "DELETE",
data?: object | any,
responseType?: string
) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论