Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
scm_app
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c6014eb6
authored
Jun 01, 2026
by
liangjianmin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
refactor(classify-price): 移除日志状态文本获取方法并优化审批结果展示
parent
77961b7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
10 deletions
pages/classify-price/detail.vue
pages/classify-price/detail.vue
View file @
c6014eb6
...
...
@@ -191,7 +191,7 @@
</view>
<view
class=
"log-footer"
>
<text
class=
"log-label"
>
审批结果
</text>
<text
:class=
"['log-status', getLogStatusClass(log)]"
>
{{
log
.
approve_status_cn
||
getLogStatusText
(
log
)
}}
</text>
<text
:class=
"['log-status', getLogStatusClass(log)]"
>
{{
log
.
approve_status_cn
}}
</text>
</view>
<view
class=
"log-footer"
v-if=
"log.node_name"
>
<text
class=
"log-label"
>
审批节点
</text>
...
...
@@ -779,15 +779,6 @@
if
(
Number
(
log
.
approval_status
)
===
1
)
return
'approved'
;
if
(
Number
(
log
.
approval_status
)
===
-
1
)
return
'rejected'
;
return
'pending'
;
},
/**
* 获取日志状态文本
* @param {Object} log - 审批日志
* @return {string} 状态文本
*/
getLogStatusText
(
log
)
{
var
statusMap
=
{
1
:
'已通过'
,
'-1'
:
'已驳回'
,
0
:
'待审批'
};
return
statusMap
[
Number
(
log
.
approval_status
)]
||
'-'
;
}
}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment