Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
Support
提交反馈
为 GitLab 提交贡献
登录
切换导航
D
dutyManagement
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
刘英杰
dutyManagement
提交
3381a0dd
提交
3381a0dd
编写于
12月 05, 2023
作者:
刘英杰
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加值班角色、添加签到状态的查询、更改消息推送返回路由,增加已签到标识、
上级
63515242
变更
6
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
203 行增加
和
86 行删除
+203
-86
SSO.vue
src/pages/SSO.vue
+2
-2
index.vue
src/pages/messageDetails/index.vue
+1
-1
index.vue
src/pages/myDuty/index.vue
+17
-10
index.vue
src/pages/signList/index.vue
+156
-67
index.vue
src/pages/welcome/index.vue
+26
-4
vite.config.js
vite.config.js
+1
-2
未找到文件。
src/pages/SSO.vue
浏览文件 @
3381a0dd
...
...
@@ -49,10 +49,10 @@ const getTokenActionWx = async (date) => {
}
const
getToken
=
async
()
=>
{
if
(
Number
(
router
.
currentRoute
.
value
.
query
.
type
)
===
2
)
{
Cookies
.
set
(
'
token
'
,
router
.
currentRoute
.
value
.
query
.
token
)
//
Cookies.set('token', router.currentRoute.value.query.token)
// localStorage.setItem('token', router.currentRoute.value.query.token)
let
date
=
{
token
:
Cookies
.
get
(
'
token
'
)
token
:
router
.
currentRoute
.
value
.
query
.
token
}
await
getTokenAction
(
date
)
}
else
if
(
Number
(
router
.
currentRoute
.
value
.
query
.
type
)
===
1
)
{
...
...
src/pages/messageDetails/index.vue
浏览文件 @
3381a0dd
...
...
@@ -71,7 +71,7 @@ onMounted(() => {
getDutyMessage
()
})
const
onClickLeft
=
()
=>
router
.
push
({
name
:
'
welcome
'
name
:
'
signList
'
});
</
script
>
<
style
>
...
...
src/pages/myDuty/index.vue
浏览文件 @
3381a0dd
...
...
@@ -37,7 +37,8 @@
<van-dropdown-menu
:overlay=
"false"
>
<van-dropdown-item
@
close=
"closeMenu"
:key=
"myDuty.menuKey"
@
open=
"openMenu"
title=
"日期"
>
<
template
#default
>
<van-calendar
v-model:show=
"myDuty.show"
type=
"range"
@
confirm=
"dateRange"
/>
<van-calendar
:minDate=
"myDuty.minDate"
:maxDate=
"myDuty.maxDate"
v-model:show=
"myDuty.show"
type=
"range"
@
confirm=
"dateRange"
/>
</
template
>
</van-dropdown-item>
<van-dropdown-item
v-model=
"myDuty[item[2]]"
v-for=
"(item,index) in myDuty.addDutySelectList"
:key=
"index"
...
...
@@ -96,21 +97,21 @@
<van-popup
v-model:show=
"changeShiftsPickerShow"
round
position=
"bottom"
>
<!-- 搜索框 -->
<van-search
v-model=
"changeSftInput"
placeholder=
"请输入姓名或工号"
@
update:model-value=
"searchChange"
/>
v-model=
"changeSftInput"
placeholder=
"请输入姓名或工号"
@
update:model-value=
"searchChange"
/>
<!-- 选择器 -->
<van-picker
:columns=
"userList"
:loading=
"pickerLoading"
@
cancel=
"pickerCancel"
@
confirm=
"pickerConfirm"
:columns=
"userList"
:loading=
"pickerLoading"
@
cancel=
"pickerCancel"
@
confirm=
"pickerConfirm"
/>
</van-popup>
</template>
<
style
scoped
lang=
"less"
>
.container {
//box-sizing: border-box; //background-color: #706c6c; //width: 100%; //height: 100%; //min-height: 896px; //display: flex; //flex-wrap: wrap; //justify-content: center; //align-content: flex-start;
//box-sizing: border-box; //background-color: #706c6c; //width: 100%; //height: 100%; //min-height: 896px; //display: flex; //flex-wrap: wrap; //justify-content: center; //align-content: flex-start;
.cardContainer {
...
...
@@ -141,6 +142,8 @@ import Cookies from 'js-cookie'
const
onClickLeft
=
()
=>
history
.
back
();
let
myDuty
=
reactive
({
minDate
:
new
Date
(
dayjs
().
year
(),
dayjs
().
month
()
-
1
,
1
),
maxDate
:
new
Date
(
dayjs
().
year
(),
dayjs
().
month
()
+
1
,
1
),
addDutySelectList
:
[],
DatePickerKey
:
1
,
showCenter
:
false
,
...
...
@@ -243,6 +246,7 @@ const onLoad = async () => {
"
page_size
"
:
myDuty
.
page_size
,
}
const
res
=
await
api
.
GetWatchList
(
data
)
// showToast('刷新成功!')
list
.
value
=
res
.
response
.
data
myDuty
.
total
=
res
.
response
.
data_count
// 异步更新数据
...
...
@@ -254,7 +258,7 @@ const onLoad = async () => {
// 数据全部加载完成
if
(
list
.
value
.
length
>=
Number
(
myDuty
.
total
))
{
finished
.
value
=
true
;
showToast
(
'
加载完成!
'
)
//
showToast('加载完成!')
}
else
if
(
list
.
value
.
length
<
Number
(
myDuty
.
total
))
{
myDuty
.
page_size
=
myDuty
.
page_size
+
10
...
...
@@ -304,6 +308,7 @@ function pickerChgSftOpen(obj) {
changeShiftsPickerShow
.
value
=
true
attendanceObj
.
value
=
obj
}
// 搜索值改变
function
searchChange
(
val
)
{
pickerLoading
.
value
=
true
...
...
@@ -324,6 +329,7 @@ function searchChange(val) {
pickerLoading
.
value
=
false
})
}
// 换班选择器确认
function
pickerConfirm
(
val
)
{
// console.log('选择器确认', val)
...
...
@@ -352,6 +358,7 @@ function pickerConfirm(val) {
})
}
// 换班选择器取消
function
pickerCancel
()
{
changeShiftsPickerShow
.
value
=
false
...
...
src/pages/signList/index.vue
浏览文件 @
3381a0dd
此差异已折叠。
点击以展开。
src/pages/welcome/index.vue
浏览文件 @
3381a0dd
...
...
@@ -15,7 +15,16 @@
<!--
<router-link
to=
"/messageDetails"
>
-->
<!--
<van-button>
123123
</van-button>
-->
<!--
</router-link>
-->
<van-cell-group
style=
"width: 100%;margin-top: 10px"
>
<!--
<van-swipe
@
change=
"swiperNext"
class=
"my-swipe"
indicator-color=
"white"
>
-->
<!--
<van-swipe-item>
1
</van-swipe-item>
-->
<!--
<van-swipe-item>
2
</van-swipe-item>
-->
<!--
<van-swipe-item>
3
</van-swipe-item>
-->
<!--
<van-swipe-item
style=
"color: red;"
>
-->
<!--
</van-swipe-item>
-->
<!--
</van-swipe>
-->
<div
class=
"dateContainer"
>
<div
class=
"left"
@
click=
"reductionDate"
>
<span
class=
"SlideButton"
><van-icon
name=
"arrow-left"
/></span>
...
...
@@ -38,7 +47,7 @@
<van-cell
icon=
"manager-o"
@
click=
"myDuty"
is-link
class=
"cardTitle"
title=
"我的值班"
value=
"个人值班记录"
/>
<van-cell
icon=
"label-o"
@
click=
"signList"
is-link
class=
"cardTitle"
title=
"签到列表"
value=
"教师签到"
/>
</van-cell-group>
<van-cell-group
v-for=
"(item,index) in GetWatchListObject.GetWatchListInitArray"
:key=
"index"
inset
style=
"width: 100%"
class=
"cardContainer"
>
<van-cell
class=
"cardContent"
:title=
"item.username"
>
...
...
@@ -58,7 +67,6 @@
<
template
#extra
>
<van-tag
type=
"primary"
plain
>
<span>
{{
item
.
watchtypename
+
'
-
'
+
item
.
dept_name
+
'
-
'
+
item
.
campusname
}}
</span></van-tag>
</
template
>
</van-cell>
</van-cell-group>
...
...
@@ -105,6 +113,12 @@ let GetWatchListObject = reactive({
GetWatchListInitArray
:
[],
})
const
swiperPrev
=
()
=>
{
console
.
log
(
"
🚀swiperPrev🚀🚀,
"
,)
}
const
swiperNext
=
(
e
)
=>
{
console
.
log
(
"
🚀🚀swiperNext🚀,
"
,
e
)
}
const
onRefresh
=
async
()
=>
{
dateArray
.
loading
=
true
GetWatchListObject
.
startTime
=
dayjs
().
format
(
'
YYYY-MM-DD
'
)
...
...
@@ -263,6 +277,14 @@ onMounted(() => {
})
</
script
>
<
style
scoped
lang=
"less"
>
.my-swipe .van-swipe-item {
width: 100px;
color: #fff;
font-size: 20px;
line-height: 150px;
text-align: center;
background-color: #39ed81;
}
.container {
.dateContainer {
...
...
@@ -294,7 +316,7 @@ onMounted(() => {
.content {
width: 11.42%;
height: 50px;
//border-radius:150%; //background-color: red;
//border-radius:150%; //background-color: red;
}
...
...
@@ -316,7 +338,7 @@ onMounted(() => {
height: 20%;
.cardContent {
//height: 150px;
//height: 150px;
}
}
...
...
vite.config.js
浏览文件 @
3381a0dd
...
...
@@ -15,9 +15,8 @@ export default defineConfig({
],
base
:
'
./
'
,
server
:
{
// host: "
127.0.0.1
",
// host: "
0.0.0.0
",
// cors: true,
// port: 8991,
// open: true, //自动打开
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录