Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
陆宇天
/
config-center-front
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit fa6d415f
authored
Sep 18, 2023
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
接口联调
1 parent
f23f3042
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
src/views/project/Project.vue
src/views/publicConfig/AddConfig.vue
src/views/publicConfig/index.vue
src/views/project/Project.vue
View file @
fa6d415
...
@@ -247,9 +247,9 @@ export default defineComponent({
...
@@ -247,9 +247,9 @@ export default defineComponent({
}
}
//获取config
//获取config
let
params
=
{
moduleUrl
:
"base"
};
//
let params = { moduleUrl: "base" };
let
result
=
await
getConfig
(
params
);
//
let result = await getConfig(params);
console
.
log
(
"result: "
,
result
);
//
console.log("result: ", result);
};
};
getData
();
getData
();
...
...
src/views/publicConfig/AddConfig.vue
View file @
fa6d415
...
@@ -185,7 +185,7 @@ const isUniqueName = async () => {
...
@@ -185,7 +185,7 @@ const isUniqueName = async () => {
class=
"demo-ruleForm"
class=
"demo-ruleForm"
>
>
<el-form-item
label=
"配置项标识"
prop=
"uniqueName"
>
<el-form-item
label=
"配置项标识"
prop=
"uniqueName"
>
<el-input
v-model=
"ruleForm.uniqueName"
:disabled=
"isEdit"
@
blur=
"isUniqueName"
>
<el-input
v-model=
"ruleForm.uniqueName"
:disabled=
"isEdit"
@
blur=
"isUniqueName"
maxlength=
"20"
>
<template
#
prepend
>
@
</
template
>
<template
#
prepend
>
@
</
template
>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
...
...
src/views/publicConfig/index.vue
View file @
fa6d415
...
@@ -67,10 +67,8 @@ onBeforeMount(() => {
...
@@ -67,10 +67,8 @@ onBeforeMount(() => {
const
getModelData
=
async
()
=>
{
const
getModelData
=
async
()
=>
{
let
{
code
,
data
}
=
await
getmodelList
();
let
{
code
,
data
}
=
await
getmodelList
();
if
(
code
===
200
)
{
if
(
code
===
200
)
{
console
.
log
(
data
);
tabData
[
1
].
children
=
[]
tabData
[
1
].
children
=
[]
tabData
[
1
].
children
.
push
(...
data
)
tabData
[
1
].
children
.
push
(...
data
)
console
.
log
(
tabData
[
1
]);
}
}
};
};
...
@@ -79,9 +77,10 @@ const getModelData = async () => {
...
@@ -79,9 +77,10 @@ const getModelData = async () => {
const
getConfigData
=
async
()
=>
{
const
getConfigData
=
async
()
=>
{
let
{
code
,
data
}
=
await
getconfigList
();
let
{
code
,
data
}
=
await
getconfigList
();
if
(
code
===
200
)
{
if
(
code
===
200
)
{
console
.
log
(
data
);
tabData
[
0
].
children
=
[]
tabData
[
0
].
children
=
[]
tabData
[
0
].
children
.
push
(...
data
)
tabData
[
0
].
children
.
push
(...
data
)
console
.
log
(
tabData
[
0
]);
}
}
};
};
...
@@ -145,7 +144,7 @@ const clickTabShow = (index: number) => {
...
@@ -145,7 +144,7 @@ const clickTabShow = (index: number) => {
:key=
"inx"
:key=
"inx"
@
click=
"clickSubItem(index, itm)"
@
click=
"clickSubItem(index, itm)"
>
>
{{
itm
.
templateName
||
itm
.
n
ame
}}
{{
itm
.
templateName
||
itm
.
uniqueN
ame
}}
</div>
</div>
</
template
>
</
template
>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment