Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
E
exhibition_backstage
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
龙菲
exhibition_backstage
Commits
fe3273d4
提交
fe3273d4
authored
10月 17, 2023
作者:
龙菲
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复审核按钮显示判断的问题
上级
feefd50a
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
33 行增加
和
4 行删除
+33
-4
approval.js
src/contants/approval.js
+1
-0
index.js
src/contants/index.js
+17
-0
index.vue
src/views/displayApproval/index.vue
+15
-4
没有找到文件。
src/contants/approval.js
浏览文件 @
fe3273d4
...
@@ -33,3 +33,4 @@ export const checkStatus = [
...
@@ -33,3 +33,4 @@ export const checkStatus = [
}
}
]
]
src/contants/index.js
浏览文件 @
fe3273d4
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
// 本文件提供前端定义的字典值的翻译功能
// 本文件提供前端定义的字典值的翻译功能
// 增加时先引入,后在allList中添加
// 增加时先引入,后在allList中添加
// 本文件已经导出为全局变量,直接this.$constantsTool.getLabelByValue即可使用
import
{
checkStatus
}
from
"./approval"
import
{
checkStatus
}
from
"./approval"
import
{
themeType
}
from
"./display"
import
{
themeType
}
from
"./display"
...
@@ -22,6 +23,22 @@ const constantsTool = {
...
@@ -22,6 +23,22 @@ const constantsTool = {
}
}
return
item
.
label
return
item
.
label
},
},
// 获取value
getValueByLabel
(
dictName
,
label
)
{
const
list
=
constantsTool
.
allList
[
dictName
]
if
(
!
list
)
{
return
''
}
const
item
=
list
.
find
((
item
)
=>
{
return
item
.
label
==
label
})
if
(
!
item
)
{
return
''
}
return
item
.
value
},
// 获取字典列表
// 获取字典列表
getList
(
dictName
)
{
getList
(
dictName
)
{
return
constantsTool
.
allList
[
dictName
]
return
constantsTool
.
allList
[
dictName
]
...
...
src/views/displayApproval/index.vue
浏览文件 @
fe3273d4
...
@@ -190,11 +190,22 @@ export default {
...
@@ -190,11 +190,22 @@ export default {
...
mapGetters
([
"dicts"
,
"userInfo"
]),
...
mapGetters
([
"dicts"
,
"userInfo"
]),
getOperation
(
row
)
{
getOperation
(
row
)
{
return
(
row
)
=>
{
return
(
row
)
=>
{
return
[
viewButton
,
approvalButton
,
reSubmitButtton
];
const
label
=
this
.
$constantsTool
.
getLabelByValue
(
"checkStatus"
,
row
.
checkStatus
);
// const isAdmin = roles.find(item=>{
switch
(
label
)
{
// return
case
"已驳回"
:
// })
return
[
viewButton
,
approvalButton
,
reSubmitButtton
];
break
;
case
"审核中"
:
return
[
viewButton
,
approvalButton
];
break
;
case
"已通过"
:
return
[
viewButton
];
break
;
}
// 管理员2种
// 管理员2种
// 1 查看详情和审批
// 1 查看详情和审批
// 2 查看详情 管理员操作——已审核、被驳回的条目能够操作的
// 2 查看详情 管理员操作——已审核、被驳回的条目能够操作的
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论