Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
Support
提交反馈
为 GitLab 提交贡献
登录
切换导航
D
devicesManagement
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
刘英杰
devicesManagement
提交
92a26740
提交
92a26740
编写于
5月 22, 2025
作者:
刘英杰
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
save
上级
03a1d2f2
流水线
#35186
已通过 ,包含阶段
in 5 minute
变更
1
流水线
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
376 行增加
和
0 行删除
+376
-0
adminHomePage.vue
src/pages/test/layout/admin/adminHomePage.vue
+376
-0
未找到文件。
src/pages/test/layout/admin/adminHomePage.vue
0 → 100644
浏览文件 @
92a26740
<
script
setup
>
import
wx
from
"
weixin-js-sdk
"
;
import
{
defineAsyncComponent
,
getCurrentInstance
,
inject
,
ref
,
watch
,
onMounted
,
computed
,
nextTick
,
reactive
,
onUnmounted
}
from
"
vue
"
import
{
useRouter
}
from
"
vue-router
"
;
import
*
as
hooks
from
"
@/hooks/index.js
"
;
import
*
as
api
from
"
@/api/dist/controller/index.js
"
;
import
{
useUserInfo
}
from
"
@/store/modules/user.js
"
;
import
CommonDataRequest
from
"
@/api/commonDataRequest/index.js
"
;
const
userInfo
=
useUserInfo
()
const
user
=
defineAsyncComponent
(()
=>
import
(
'
@/pages/welcome/userOrAdmin/user.vue
'
))
const
admin
=
defineAsyncComponent
(()
=>
import
(
'
@/pages/welcome/userOrAdmin/admin.vue
'
))
const
adminNoGoodRecord
=
defineAsyncComponent
(()
=>
import
(
'
@/pages/welcome/userOrAdmin/adminNoGoodRecord.vue
'
))
const
asc
=
getCurrentInstance
().
appContext
.
config
.
globalProperties
;
const
router
=
useRouter
()
const
active
=
ref
(
0
);
const
show
=
ref
(
false
)
const
init
=
reactive
({
role
:
userInfo
.
userInfo
.
role
,
channel
:
{},
active
:
0
,
columns
:
[],
placeTypeName
:
[],
flow
:
{
array
:
[]
},
count
:
{}
})
onMounted
(()
=>
{
document
.
title
=
'
主页
'
})
const
onSubmit
=
(
values
)
=>
{
console
.
log
(
'
submit
'
,
values
);
};
const
getImage
=
(
imageKey
)
=>
{
return
asc
.
hooks
.
getImage
(
imageKey
)
}
const
tabChange
=
(
e
)
=>
{
asc
.
tabChange
(
e
)
}
const
backAscHome
=
inject
(
'
backAscHome
'
)
const
gotoPath
=
(
path
)
=>
{
hooks
.
go2Router
(
path
)
}
const
close
=
()
=>
show
.
value
=
false
const
back
=
()
=>
{
//返回asc 主界面
backAscHome
()
}
function
getTabBarIndex
(
index
)
{
//获取地址tabBar的index
init
.
active
=
index
}
function
getCurRole
(
role
)
{
//获取当前权限
init
.
role
=
role
}
//栏目入口
function
handleInterview
(
key
)
{
const
strategy
=
{
'
applyForApplicationDevices
'
:
()
=>
{
//散客预约
router
.
push
({
name
:
key
,
})
},
'
applyForApplicationConsumables
'
:
()
=>
{
//团队未审批
router
.
push
({
name
:
key
,
})
},
'
applicationRecordConsumables
'
:
()
=>
{
//散客预约
router
.
push
({
name
:
key
,
})
},
'
applicationRecordDevices
'
:
()
=>
{
//团队未审批
router
.
push
({
name
:
key
,
})
},
'
borrowingRecordsConsumables
'
:
()
=>
{
//团队已审批
router
.
push
({
name
:
key
,
})
},
'
borrowingRecordsDevices
'
:
()
=>
{
//所有团队预约记录
router
.
push
({
name
:
key
,
})
},
}
strategy
[
key
]()
}
function
aaa
(){
const
copyButton
=
document
.
getElementById
(
'
copyButton
'
);
const
textToCopy
=
'
这是要复制到剪贴板的文本11111
'
;
copyButton
.
addEventListener
(
'
click
'
,
async
()
=>
{
try
{
await
navigator
.
clipboard
.
writeText
(
textToCopy
);
console
.
log
(
'
文本已成功复制到剪贴板
'
);
}
catch
(
error
)
{
console
.
error
(
'
复制失败:
'
,
error
);
}
});
}
</
script
>
<
template
>
<!-- user-->
<div
class=
"container1 flex"
>
<div
class=
"header flex flex-wrap flex-col gap-4 "
>
<!--头部-->
<div
class=
" w-full"
>
<userHeader
@
getCurRole=
"getCurRole"
></userHeader>
</div>
<!--栏目背景-->
<div
class=
"w-full h-[128px] relative"
>
<van-image
width=
"100%"
height=
"100%"
:src=
"hooks.getImage('colBg2')"
></van-image>
<div
class=
"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2"
>
<span
class=
"text-3xl opacity-85 font-bold text-white italic"
style=
"font-family: 'Microsoft YaHei', sans-serif;"
>
设备管理
</span>
</div>
</div>
<!--栏目-->
<div
class=
"w-full h-[calc(100%-258px)] "
>
<div>
<div
class=
"list"
>
<p
class=
"w-full list-item-font"
>
申请申领
</p>
<!-- 面试结果 -->
<div
class=
"list-item "
>
<van-cell
@
click=
"handleInterview('applyForApplicationDevices')"
is-link
>
<template
#title
>
<van-image
class=
"image"
fit=
"contain"
:src=
"hooks.getImage('sblb')"
/>
<span
class=
"custom-title"
>
申请设备
</span>
</
template
>
</van-cell>
</div>
<div
class=
"list-item "
>
<van-cell
@
click=
"handleInterview('applyForApplicationConsumables')"
is-link
>
<
template
#title
>
<van-image
class=
"image"
fit=
"contain"
:src=
"hooks.getImage('hclb')"
/>
<span
class=
"custom-title"
>
申请耗材
</span>
</
template
>
</van-cell>
</div>
</div>
<div
class=
"list"
>
<p
class=
"w-full h-[40] list-item-font"
>
申请记录
</p>
<!-- 待办-->
<div
class=
"mb-3 mt-4 w-full flex flex-nowrap justify-between"
>
<van-cell-group
@
click=
"handleInterview('applicationRecordDevices')"
:style=
"{'margin':'0 !important'}"
class=
"w-[48.5%] p-3 min-h-[75px] flex items-center justify-between van-haptics-feedback"
inset
>
<div
class=
" text-white flex items-center "
>
<van-icon
name=
"records"
color=
"#1989fa"
size=
"20"
/>
<div
v-font:
{
size:16
,
family:
`黑体`,
color:
`
#323233
`}
>
设备申请记录
</div>
</div>
<van-icon
name=
"arrow"
color=
"#999"
size=
"20"
/>
</van-cell-group>
<van-cell-group
@
click=
"handleInterview('borrowingRecordsDevices')"
:style=
"{'margin':'0 !important'}"
class=
"w-[48.5%] p-3 min-h-[75px] flex items-center justify-between van-haptics-feedback"
inset
>
<div
class=
" text-white flex items-center "
>
<van-icon
name=
"records"
color=
"#1989fa"
size=
"20"
/>
<div
v-font:
{
size:16
,
family:
`黑体`,
color:
`
#323233
`}
>
设备借用记录
</div>
</div>
<van-icon
name=
"arrow"
color=
"#999"
size=
"20"
/>
</van-cell-group>
</div>
<div
class=
"mb-3 w-full flex flex-nowrap justify-between"
>
<van-cell-group
@
click=
"handleInterview('applicationRecordConsumables')"
:style=
"{'margin':'0 !important'}"
class=
"w-[48.5%] p-3 min-h-[75px] flex items-center justify-between van-haptics-feedback"
inset
>
<div
class=
" text-white flex items-center "
>
<van-icon
name=
"records"
color=
"#1989fa"
size=
"20"
/>
<div
v-font:
{
size:16
,
family:
`黑体`,
color:
`
#323233
`}
>
耗材申请记录
</div>
</div>
<van-icon
name=
"arrow"
color=
"#999"
size=
"20"
/>
</van-cell-group>
<van-cell-group
@
click=
"handleInterview('borrowingRecordsConsumables')"
:style=
"{'margin':'0 !important'}"
class=
"w-[48.5%] p-3 min-min-h-[75px] flex items-center justify-between van-haptics-feedback"
inset
>
<div
class=
" text-white flex items-center"
>
<van-icon
name=
"records"
color=
"#1989fa"
size=
"20"
/>
<div
v-font:
{
size:16
,
family:
`黑体`,
color:
`
#323233
`}
>
耗材借用记录
</div>
</div>
<van-icon
name=
"arrow"
color=
"#999"
size=
"20"
/>
</van-cell-group>
</div>
</div>
</div>
<!-- version -->
<div
class=
"w-[96%] ccFlex h-10 text-center"
style=
"color: #b0b0b0;font-size: 10px"
>
Build 1.0.0 - 250116 1.0.1
</div>
</div>
<!-- 版本号 -->
</div>
</div>
</template>
<
style
scoped
>
.currentAppointment
{
background-image
:
url("@/static/occupyingASeat/bg.png")
;
background-size
:
cover
;
}
.aaa
{
background-image
:
url("@/static/icon/changlanse.png")
;
background-size
:
cover
;
}
.bbb
{
background-image
:
url("@/static/icon/1.png")
;
background-size
:
cover
;
}
.child
{
width
:
40px
;
height
:
40px
;
background
:
#f2f3f5
;
border-radius
:
12px
;
}
>
>
>
.van-cell-group--inset
{
margin
:
0
;
border-radius
:
var
(
--van-cell-group-inset-radius
);
overflow
:
hidden
;
}
>
>
>
.van-tabbar
{
z-index
:
var
(
--van-tabbar-z-index
);
display
:
flex
;
box-sizing
:
content-box
;
width
:
100%
;
height
:
80px
;
background
:
var
(
--van-tabbar-background
);
}
</
style
>
<
style
lang=
"less"
scoped
>
/deep/ .van-tabs__wrap {
overflow: hidden;
border-radius: 8px;
}
.list {
/deep/ &-item {
margin: 16px 0;
border-radius: 12px;
overflow: hidden;
&-font {
font-size: 20px;
font-family: 黑体;
font-weight: 600;
color: rgba(0, 0, 0, .6);
}
}
/deep/ .van-cell {
line-height: 48px;
display: flex;
align-items: center;
.image {
width: 25px;
height: 25px;
}
.van-cell__title {
display: flex;
align-items: center;
.custom-title {
font-size: 16px;
padding-left: 10px;
}
}
.van-cell__value {
font-size: 16px;
}
&::after {
content: none;
}
}
.van-cell .van-cell__value {
font-size: 18px;
color: #3488ff;
}
}
.wrapper {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
.block {
width: 120px;
height: 120px;
background-color: #fff;
}
</
style
>
\ No newline at end of file
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录