refactor(系统设置): 扫码登陆页面权限设置
This commit is contained in:
parent
672b9fe599
commit
f1f48388c0
|
@ -169,7 +169,7 @@
|
|||
"license": true
|
||||
},
|
||||
{
|
||||
"id": "SYSTEM_PARAMETER_SETTING_QRCODE:READ",
|
||||
"id": "SYSTEM_PARAMETER_SETTING_QRCODE:READ+UPDATE",
|
||||
"name": "permission.system_parameter_setting_qrcode.update",
|
||||
"license": true
|
||||
}
|
||||
|
|
|
@ -99,7 +99,7 @@
|
|||
|
||||
<style lang="less" scoped>
|
||||
.tabPlatform {
|
||||
width: 400px;
|
||||
min-width: 480px;
|
||||
height: 40px;
|
||||
}
|
||||
.login-qrcode {
|
||||
|
@ -135,7 +135,7 @@
|
|||
}
|
||||
}
|
||||
.radioOneButton {
|
||||
width: 200px;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: nowrap;
|
||||
|
|
|
@ -43,7 +43,6 @@
|
|||
state: 'fit2cloud-wecom-qr',
|
||||
redirect_type: WWLoginRedirectType.callback,
|
||||
panel_size: WWLoginPanelSizeType.small,
|
||||
scope: 'snsapi_privateinfo',
|
||||
},
|
||||
onCheckWeComLogin: obj.value,
|
||||
async onLoginSuccess({ code }: any) {
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
type="outline"
|
||||
class="arco-btn-outline--secondary"
|
||||
size="mini"
|
||||
:disabled="!item.valid || !hasAnyPermission(['SYSTEM_SERVICE_INTEGRATION:READ+UPDATE'])"
|
||||
:disabled="!item.valid || !hasAnyPermission(['SYSTEM_PARAMETER_SETTING_QRCODE:READ+UPDATE'])"
|
||||
@click="getValidateHandler(item.key)"
|
||||
>{{ t('organization.service.testLink') }}</a-button
|
||||
></span
|
||||
|
@ -51,7 +51,7 @@
|
|||
</a-tooltip>
|
||||
<a-button
|
||||
v-else
|
||||
:disabled="!item.valid || !hasAnyPermission(['SYSTEM_SERVICE_INTEGRATION:READ+UPDATE'])"
|
||||
:disabled="!item.valid || !hasAnyPermission(['SYSTEM_PARAMETER_SETTING_QRCODE:READ+UPDATE'])"
|
||||
type="outline"
|
||||
class="arco-btn-outline--secondary"
|
||||
size="mini"
|
||||
|
@ -60,7 +60,7 @@
|
|||
</a-button>
|
||||
<a-button
|
||||
v-if="item.edit"
|
||||
v-permission="['SYSTEM_SERVICE_INTEGRATION:READ+UPDATE']"
|
||||
v-permission="['SYSTEM_PARAMETER_SETTING_QRCODE:READ+UPDATE']"
|
||||
type="outline"
|
||||
class="arco-btn-outline--secondary"
|
||||
size="mini"
|
||||
|
@ -69,7 +69,7 @@
|
|||
</a-button>
|
||||
<a-button
|
||||
v-else
|
||||
v-permission="['SYSTEM_SERVICE_INTEGRATION:READ+ADD']"
|
||||
v-permission="['SYSTEM_PARAMETER_SETTING_QRCODE:READ+UPDATE']"
|
||||
type="outline"
|
||||
class="arco-btn-outline--secondary"
|
||||
size="mini"
|
||||
|
@ -91,7 +91,7 @@
|
|||
v-else
|
||||
v-model="item.enable"
|
||||
size="small"
|
||||
:disabled="!hasAnyPermission(['SYSTEM_SERVICE_INTEGRATION:READ+UPDATE'])"
|
||||
:disabled="!hasAnyPermission(['SYSTEM_PARAMETER_SETTING_QRCODE:READ+UPDATE'])"
|
||||
@change="(v) => changeStatus(v, item.key)"
|
||||
/>
|
||||
</span>
|
||||
|
|
Loading…
Reference in New Issue