Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
client
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
74f679c7
authored
Sep 15, 2025
by
lijinqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成获取appid和secret的接口调用
parent
75064bba
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
1 deletions
+37
-1
src/api/console.js
+9
-0
src/views/console/overview.vue
+28
-1
No files found.
src/api/console.js
View file @
74f679c7
...
@@ -18,3 +18,12 @@ export function auditInfo(query) {
...
@@ -18,3 +18,12 @@ export function auditInfo(query) {
data
:
query
data
:
query
})
})
}
}
// 根据用户查询AppId和AppSecret
export
function
appInfo
()
{
return
request
({
url
:
'/apihub/app-credential/get'
,
method
:
'get'
,
})
}
src/views/console/overview.vue
View file @
74f679c7
...
@@ -102,6 +102,22 @@
...
@@ -102,6 +102,22 @@
<el-card
shadow=
"never"
>
<el-card
shadow=
"never"
>
<
template
#
header
>
<
template
#
header
>
<div
class=
"card-header"
>
<div
class=
"card-header"
>
<span>
AppId和AppSecret
</span>
</div>
</
template
>
<el-form-item
label=
"AppId:"
>
<div>
{{ appData.appId }}
</div>
</el-form-item>
<el-form-item
label=
"AppSecret:"
>
<div>
{{ appData.appSecret }}
</div>
</el-form-item>
</el-card>
</el-col>
<el-col
:span=
"12"
>
<el-card
shadow=
"never"
>
<
template
#
header
>
<div
class=
"card-header"
>
<span>
常见Q
&
A
</span>
<span>
常见Q
&
A
</span>
</div>
</div>
</
template
>
</
template
>
...
@@ -121,17 +137,20 @@
...
@@ -121,17 +137,20 @@
</template>
</template>
<
script
setup
name=
"Overview"
>
<
script
setup
name=
"Overview"
>
import
{
auditInfo
}
from
'@/api/console.js'
import
{
auditInfo
,
appInfo
}
from
'@/api/console.js'
import
{
ref
}
from
'vue'
import
{
ref
}
from
'vue'
import
{
ElMessageBox
}
from
'element-plus'
import
{
ElMessageBox
}
from
'element-plus'
import
{
parseTime
}
from
"../../utils/ruoyi.js"
;
import
{
parseTime
}
from
"../../utils/ruoyi.js"
;
import
{
useDict
}
from
"@/utils/dict.js"
;
import
{
useDict
}
from
"@/utils/dict.js"
;
import
{
listData
}
from
"@/api/system/dict/data.js"
;
import
{
listData
}
from
"@/api/system/dict/data.js"
;
import
{
get
}
from
"@vueuse/core"
;
// const {proxy} = getCurrentInstance();
// const {proxy} = getCurrentInstance();
// const {check_status} = proxy.useDict("check_status");
// const {check_status} = proxy.useDict("check_status");
const
infoData
=
ref
({})
const
infoData
=
ref
({})
const
appData
=
ref
({})
function
getAuditInfo
()
{
function
getAuditInfo
()
{
auditInfo
().
then
(
res
=>
{
auditInfo
().
then
(
res
=>
{
...
@@ -139,6 +158,13 @@ function getAuditInfo() {
...
@@ -139,6 +158,13 @@ function getAuditInfo() {
})
})
}
}
function
getAppInfo
()
{
appInfo
().
then
(
res
=>
{
appData
.
value
=
res
.
data
})
}
/** 查看驳回理由按钮操作 */
/** 查看驳回理由按钮操作 */
function
handleViewReason
()
{
function
handleViewReason
()
{
ElMessageBox
.
alert
(
infoData
.
value
.
remark
,
'驳回理由'
,
{
ElMessageBox
.
alert
(
infoData
.
value
.
remark
,
'驳回理由'
,
{
...
@@ -149,6 +175,7 @@ function handleViewReason() {
...
@@ -149,6 +175,7 @@ function handleViewReason() {
}
}
getAuditInfo
()
getAuditInfo
()
getAppInfo
()
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.remind
{
.remind
{
...
...
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