Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a624db04
authored
Oct 26, 2023
by
puhui999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
三方应用新增授权方的网页应用 agentId 属性
parent
88a22d90
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
src/api/system/social/client/index.ts
+1
-0
src/views/system/social/client/SocialClientForm.vue
+10
-2
No files found.
src/api/system/social/client/index.ts
View file @
a624db04
...
@@ -7,6 +7,7 @@ export interface SocialClientVO {
...
@@ -7,6 +7,7 @@ export interface SocialClientVO {
userType
:
number
userType
:
number
clientId
:
string
clientId
:
string
clientSecret
:
string
clientSecret
:
string
agentId
:
string
status
:
number
status
:
number
}
}
...
...
src/views/system/social/client/SocialClientForm.vue
View file @
a624db04
...
@@ -33,10 +33,16 @@
...
@@ -33,10 +33,16 @@
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
<el-form-item
label=
"客户端编号"
prop=
"clientId"
>
<el-form-item
label=
"客户端编号"
prop=
"clientId"
>
<el-input
v-model=
"formData.clientId"
placeholder=
"请输入客户端编号"
/>
<el-input
v-model=
"formData.clientId"
placeholder=
"请输入客户端编号
,对应各平台的appKey
"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"客户端密钥"
prop=
"clientSecret"
>
<el-form-item
label=
"客户端密钥"
prop=
"clientSecret"
>
<el-input
v-model=
"formData.clientSecret"
placeholder=
"请输入客户端密钥"
/>
<el-input
v-model=
"formData.clientSecret"
placeholder=
"请输入客户端密钥,对应各平台的appSecret"
/>
</el-form-item>
<el-form-item
label=
"agentId"
prop=
"agentId"
>
<el-input
v-model=
"formData.agentId"
placeholder=
"授权方的网页应用ID,有则填"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"状态"
prop=
"status"
>
<el-form-item
label=
"状态"
prop=
"status"
>
<el-radio-group
v-model=
"formData.status"
>
<el-radio-group
v-model=
"formData.status"
>
...
@@ -74,6 +80,7 @@ const formData = ref({
...
@@ -74,6 +80,7 @@ const formData = ref({
userType
:
undefined
,
userType
:
undefined
,
clientId
:
undefined
,
clientId
:
undefined
,
clientSecret
:
undefined
,
clientSecret
:
undefined
,
agentId
:
undefined
,
status
:
0
status
:
0
})
})
const
formRules
=
reactive
({
const
formRules
=
reactive
({
...
@@ -139,6 +146,7 @@ const resetForm = () => {
...
@@ -139,6 +146,7 @@ const resetForm = () => {
userType
:
undefined
,
userType
:
undefined
,
clientId
:
undefined
,
clientId
:
undefined
,
clientSecret
:
undefined
,
clientSecret
:
undefined
,
agentId
:
undefined
,
status
:
0
status
:
0
}
}
formRef
.
value
?.
resetFields
()
formRef
.
value
?.
resetFields
()
...
...
Write
Preview
Markdown
is supported
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