Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
xiaofang li
MeterSphere
Commits
7fe6ca8d
Commit
7fe6ca8d
authored
4 years ago
by
shiziyuan9527
Committed by
刘瑞斌
4 years ago
Browse files
Options
Download
Email Patches
Plain Diff
fix(测试用例): 操作权限问题#1003873
parent
2accb03d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
frontend/src/business/components/track/case/TestCase.vue
+2
-0
frontend/src/business/components/track/case/TestCase.vue
frontend/src/business/components/track/case/components/TestCaseEdit.vue
+4
-0
...usiness/components/track/case/components/TestCaseEdit.vue
frontend/src/business/components/track/case/components/TestCaseList.vue
+1
-1
...usiness/components/track/case/components/TestCaseList.vue
with
7 additions
and
1 deletion
+7
-1
frontend/src/business/components/track/case/TestCase.vue
+
2
-
0
View file @
7fe6ca8d
...
...
@@ -331,6 +331,8 @@ export default {
return
;
}
}
let
hasEditPermission
=
hasPermission
(
'
PROJECT_TRACK_CASE:READ+EDIT
'
);
this
.
$set
(
testCase
,
'
rowClickHasPermission
'
,
hasEditPermission
);
this
.
addTab
({
name
:
'
edit
'
,
testCaseInfo
:
testCase
});
},
handleCaseCreateOrEdit
(
data
,
type
)
{
...
...
This diff is collapsed.
Click to expand it.
frontend/src/business/components/track/case/components/TestCaseEdit.vue
+
4
-
0
View file @
7fe6ca8d
...
...
@@ -282,6 +282,10 @@
return
SYSTEM_FIELD_NAME_MAP
;
},
readOnly
()
{
const
{
rowClickHasPermission
}
=
this
.
currentTestCaseInfo
;
if
(
rowClickHasPermission
!==
undefined
)
{
return
!
rowClickHasPermission
;
}
return
!
hasPermission
(
'
PROJECT_TRACK_CASE:READ+CREATE
'
)
&&
!
hasPermission
(
'
PROJECT_TRACK_CASE:READ+EDIT
'
);
}
...
...
This diff is collapsed.
Click to expand it.
frontend/src/business/components/track/case/components/TestCaseList.vue
+
1
-
1
View file @
7fe6ca8d
...
...
@@ -310,7 +310,7 @@ export default {
{
tip
:
this
.
$t
(
'
commons.copy
'
),
icon
:
"
el-icon-copy-document
"
,
type
:
"
success
"
,
exec
:
this
.
handleCopy
,
permissions
:
[
'
PROJECT_TRACK_CASE:READ+
EDIT
'
]
permissions
:
[
'
PROJECT_TRACK_CASE:READ+
COPY
'
]
},
{
tip
:
this
.
$t
(
'
commons.delete
'
),
icon
:
"
el-icon-delete
"
,
type
:
"
danger
"
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help