Skip to content

Commit

Permalink
Merge pull request SonicCloudOrg#260 from caofengbin/feature/auto_gra…
Browse files Browse the repository at this point in the history
…nt_permission

feat:Android端添加“自动授权应用”指令,前端UI
  • Loading branch information
ZhouYixun committed Jul 13, 2023
2 parents 342cfa1 + b8204f3 commit 6f7c8c3
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/StepShow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,10 @@ const getNotes = (text, type) => {
<el-tag size="small" style="margin-right: 10px">清空应用缓存内存</el-tag>
清空应用 {{ step.text }} 缓存内存
</span>
<span v-if="step.stepType === 'appAutoGrantPermissions'">
<el-tag size="small" style="margin-right: 10px">自动授权应用权限</el-tag>
授权应用 {{ step.text }} 所声明的权限
</span>
<span v-if="step.stepType === 'toWebView'">
<el-tag size="small" style="margin-right: 10px">切换WebView</el-tag>
WebView名称:{{ step.content }}
Expand Down
28 changes: 28 additions & 0 deletions src/components/StepUpdate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,10 @@ const androidOptions = ref([
value: 'appReset',
label: '清空App内存缓存',
},
{
value: 'appAutoGrantPermissions',
label: '自动授权应用权限',
},
],
},
{
Expand Down Expand Up @@ -1720,6 +1724,30 @@ onMounted(() => {
</el-form-item>
</div>

<div v-if="step.stepType === 'appAutoGrantPermissions'">
<el-alert
show-icon
style="margin-bottom: 10px"
close-text="Get!"
type="info"
title="TIPS: 传递Android应用的App包名,该步骤可实现自动授权目标App所需要的所有权限"
/>
<el-form-item
prop="text"
label="授权应用"
:rules="{
required: true,
message: '包名不能为空',
trigger: 'blur',
}"
>
<el-input
v-model="step.text"
placeholder="请输入自动授权应用权限的App包名"
></el-input>
</el-form-item>
</div>

<div v-if="step.stepType === 'swipeByDefinedDirection'">
<el-form-item
label="方向"
Expand Down

0 comments on commit 6f7c8c3

Please sign in to comment.