Skip to content

Commit

Permalink
fix(接口测试): 修复接口创建权限没有保存按钮的需求
Browse files Browse the repository at this point in the history
--bug=1027247 --user=王孝刚 【接口测试】项目管理员开启创建接口权限但创建页面没有保存
https://www.tapd.cn/55049933/s/1384936
  • Loading branch information
wxg0103 committed Jun 21, 2023
1 parent 62f3e0a commit 968652e
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@
:version-data="versionData"
:current-id="basisData.id"
@compare="compare" @checkout="checkout" @create="create" @del="del"/>
<el-button type="primary" size="small" @click="saveApi" title="ctrl + s">{{ $t('commons.save') }}</el-button>
<el-button type="primary" size="small" @click="saveApi" title="ctrl + s"
v-permission="[
'PROJECT_API_DEFINITION:READ+EDIT_API',
'PROJECT_API_DEFINITION:READ+CREATE_API',
'PROJECT_API_DEFINITION:READ+COPY_API'
]">{{ $t('commons.save') }}</el-button>
</div>
</el-col>
</el-row>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@
:current-id="httpForm.id"
@compare="compare" @checkout="checkout" @create="create" @del="del"/>
<el-button type="primary" size="small" @click="saveApi" title="ctrl + s"
v-permission="['PROJECT_API_DEFINITION:READ+EDIT_API']">{{ $t('commons.save') }}
v-permission="[
'PROJECT_API_DEFINITION:READ+EDIT_API',
'PROJECT_API_DEFINITION:READ+CREATE_API',
'PROJECT_API_DEFINITION:READ+COPY_API'
]">{{ $t('commons.save') }}
</el-button>
</div>
<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@
:version-data="versionData"
:current-id="basisData.id"
@compare="compare" @checkout="checkout" @create="create" @del="del"/>
<el-button type="primary" size="small" @click="saveApi" title="ctrl + s">{{ $t('commons.save') }}</el-button>
<el-button type="primary" size="small" @click="saveApi" title="ctrl + s"
v-permission="[
'PROJECT_API_DEFINITION:READ+EDIT_API',
'PROJECT_API_DEFINITION:READ+CREATE_API',
'PROJECT_API_DEFINITION:READ+COPY_API'
]">{{ $t('commons.save') }}</el-button>
</div>
</el-col>
</el-row>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@
:version-data="versionData"
:current-id="basisData.id"
@compare="compare" @checkout="checkout" @create="create" @del="del"/>
<el-button type="primary" size="small" @click="saveApi" title="ctrl + s">{{ $t('commons.save') }}</el-button>
<el-button type="primary" size="small" @click="saveApi" title="ctrl + s"
v-permission="[
'PROJECT_API_DEFINITION:READ+EDIT_API',
'PROJECT_API_DEFINITION:READ+CREATE_API',
'PROJECT_API_DEFINITION:READ+COPY_API'
]">{{ $t('commons.save') }}</el-button>
</div>
</el-col>
</el-row>
Expand Down

0 comments on commit 968652e

Please sign in to comment.