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 authored and fit2-zhao committed Jun 25, 2023
1 parent c8e14fd commit bf1cb77
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
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
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
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
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 bf1cb77

Please sign in to comment.