Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
f7f3d217
提交
f7f3d217
authored
9月 04, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor(permission.js): 新增:勤策移动端内网页如果没有菜单,则给出提示
上级
c211ce90
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
20 行增加
和
10 行删除
+20
-10
app.js
src/store/modules/app.js
+2
-2
permission.js
src/store/modules/permission.js
+10
-1
index.vue
...y/sales_point_inspection/examine/inspectionTask/index.vue
+8
-7
categoryInformation.vue
...ction/examine/inspectionTask/tabs/categoryInformation.vue
+0
-0
没有找到文件。
src/store/modules/app.js
浏览文件 @
f7f3d217
import
Cookies
from
'js-cookie'
import
{
set
}
from
'nprogress'
;
const
useAppStore
=
defineStore
(
'app'
,
...
...
@@ -12,7 +11,7 @@ const useAppStore = defineStore(
},
device
:
'desktop'
,
size
:
Cookies
.
get
(
'size'
)
||
'default'
,
belongSys
:
Cookies
.
get
(
'belongSys'
)
||
'链路中心'
,
belongSys
:
Cookies
.
get
(
'belongSys'
)
||
0
,
}),
actions
:
{
toggleSideBar
(
withoutAnimation
)
{
...
...
@@ -28,6 +27,7 @@ const useAppStore = defineStore(
}
},
closeSideBar
({
withoutAnimation
})
{
// 屏幕宽度小于 992px,或者在移动端,默认侧边栏导航是关闭的
Cookies
.
set
(
'sidebarStatus'
,
0
)
this
.
sidebar
.
opened
=
false
this
.
sidebar
.
withoutAnimation
=
withoutAnimation
...
...
src/store/modules/permission.js
浏览文件 @
f7f3d217
...
...
@@ -44,7 +44,16 @@ const usePermissionStore = defineStore(
// 链路中心
res
.
data
=
res
.
data
.
filter
(
item
=>
item
.
belongSys
==
0
)
}
else
{
// 勤策
// 勤策移动端
const
result
=
res
.
data
.
filter
(
item
=>
item
.
belongSys
==
1
)
if
(
result
.
length
==
0
)
{
showNotify
({
message
:
'您没有《勤策移动端》菜单,联系"李秋林"开通!'
,
type
:
'danger'
,
duration
:
5000
})
return
}
res
.
data
=
res
.
data
.
filter
(
item
=>
item
.
belongSys
==
1
)[
0
].
children
}
const
sdata
=
JSON
.
parse
(
JSON
.
stringify
(
res
.
data
))
...
...
src/views/mobile/pages/audit_activity/sales_point_inspection/examine/inspectionTask/index.vue
浏览文件 @
f7f3d217
...
...
@@ -74,7 +74,8 @@
<van-tabs
v-model:active=
"active"
class=
"tabs"
swipeable
sticky
>
sticky
:lazy-render=
"false"
>
<van-tab
title=
"常规陈列"
>
<convention
:isInitializing=
"isInitializing"
:form=
"form"
...
...
@@ -91,9 +92,9 @@
ref=
"scheduleAdjustmentRef"
/>
</van-tab>
<van-tab
title=
"品类信息"
>
<categoryInfomation
:isInitializing=
"isInitializing"
<categoryInfo
r
mation
:isInitializing=
"isInitializing"
:form=
"form"
ref=
"categoryInfomationRef"
/>
ref=
"categoryInfo
r
mationRef"
/>
</van-tab>
</van-tabs>
<!-- 任务总结 -->
...
...
@@ -159,7 +160,7 @@ import { typeOptions as typeOption } from '@/views/mobile/constant'
import
convention
from
'./tabs/conventionalDisplay.vue'
import
scheduleDisplay
from
'./tabs/scheduleDisplay.vue'
import
scheduleAdjustment
from
'./tabs/scheduleAdjustment.vue'
import
categoryInfo
mation
from
'./tabs/categoryInfo
mation.vue'
import
categoryInfo
rmation
from
'./tabs/categoryInfor
mation.vue'
import
{
showImagePreview
}
from
'vant'
;
import
useUserStore
from
'@/store/modules/user'
import
{
v4
as
uuidv4
}
from
'uuid'
;
...
...
@@ -170,7 +171,7 @@ const route = useRoute()
const
conventionRef
=
ref
(
null
)
const
scheduleDisplayRef
=
ref
(
null
)
const
scheduleAdjustmentRef
=
ref
(
null
)
const
categoryInfomationRef
=
ref
(
null
)
const
categoryInfo
r
mationRef
=
ref
(
null
)
/*************** 稽查任务总体 ***************/
const
isInitializing
=
ref
(
true
)
...
...
@@ -231,7 +232,7 @@ const getInspectionTaskDetailFn = async () => {
conventionRef
.
value
.
init
()
scheduleDisplayRef
.
value
.
init
()
scheduleAdjustmentRef
.
value
.
init
()
categoryInfomationRef
.
value
.
init
()
categoryInfo
r
mationRef
.
value
.
init
()
})
// 一定在这里获取地理位置(保证稽查任务 id 创建完毕)
...
...
@@ -352,7 +353,7 @@ const handleTypeConfirm = async ({ selectedValues }) => {
}
/*************** tabs 组 ***************/
const
active
=
ref
(
3
)
const
active
=
ref
(
0
)
/*************** 其他信息填写 ***************/
// 礼盒礼袋在售
...
...
src/views/mobile/pages/audit_activity/sales_point_inspection/examine/inspectionTask/tabs/categoryInfomation.vue
→
src/views/mobile/pages/audit_activity/sales_point_inspection/examine/inspectionTask/tabs/categoryInfo
r
mation.vue
浏览文件 @
f7f3d217
File moved
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论