Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lmp_web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yujian
lmp_web
Commits
ae51aa5c
Commit
ae51aa5c
authored
May 09, 2024
by
mhw
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://192.168.0.35:3000/lmp/lmp_web
parents
b2839d72
2f8a418d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
401 additions
and
378 deletions
+401
-378
ApiManage.js
src/api/GptController/ApiManage.js
+21
-0
gptController.js
src/api/gptController.js
+2
-0
systemRouters.js
src/router/systemRouters.js
+1
-1
editOrAdd.vue
...s/gptTraining/modelService/apiManage/dialog/editOrAdd.vue
+111
-111
index.vue
src/views/gptTraining/modelService/apiManage/index.vue
+266
-266
No files found.
src/api/GptController/
applicationAccess
.js
→
src/api/GptController/
ApiManage
.js
View file @
ae51aa5c
export
default
class
applicationAccess
{
export
default
class
ApiManage
{
static
list
(
sender
,
params
,
axiosOption
,
httpOption
)
{
static
list
(
sender
,
params
,
axiosOption
,
httpOption
)
{
return
sender
.
doUrl
(
'/admin/app/ap
plicationAccess/list'
,
'post'
,
params
,
axiosOption
,
httpOption
);
return
sender
.
doUrl
(
'/admin/app/ap
iManage/list'
,
'post'
,
params
,
axiosOption
,
httpOption
);
}
}
static
view
(
sender
,
params
,
axiosOption
,
httpOption
)
{
static
view
(
sender
,
params
,
axiosOption
,
httpOption
)
{
return
sender
.
doUrl
(
'/admin/app/ap
plicationAccess/view'
,
'get'
,
params
,
axiosOption
,
httpOption
);
return
sender
.
doUrl
(
'/admin/app/ap
iManage/view'
,
'get'
,
params
,
axiosOption
,
httpOption
);
}
}
static
add
(
sender
,
params
,
axiosOption
,
httpOption
)
{
static
add
(
sender
,
params
,
axiosOption
,
httpOption
)
{
return
sender
.
doUrl
(
'/admin/app/ap
plicationAccess/add'
,
'post'
,
params
,
axiosOption
,
httpOption
);
return
sender
.
doUrl
(
'/admin/app/ap
iManage/add'
,
'post'
,
params
,
axiosOption
,
httpOption
);
}
}
static
update
(
sender
,
params
,
axiosOption
,
httpOption
)
{
static
update
(
sender
,
params
,
axiosOption
,
httpOption
)
{
return
sender
.
doUrl
(
'/admin/app/ap
plicationAccess/update'
,
'post'
,
params
,
axiosOption
,
httpOption
);
return
sender
.
doUrl
(
'/admin/app/ap
iManage/update'
,
'post'
,
params
,
axiosOption
,
httpOption
);
}
}
static
delete
(
sender
,
params
,
axiosOption
,
httpOption
)
{
static
delete
(
sender
,
params
,
axiosOption
,
httpOption
)
{
return
sender
.
doUrl
(
'/admin/app/ap
plicationAccess/delete'
,
'post'
,
params
,
axiosOption
,
httpOption
);
return
sender
.
doUrl
(
'/admin/app/ap
iManage/delete'
,
'post'
,
params
,
axiosOption
,
httpOption
);
}
}
}
}
src/api/gptController.js
View file @
ae51aa5c
...
@@ -21,6 +21,7 @@ import KnowledgeGraph from './GptController/KnowledgeGraph.js';
...
@@ -21,6 +21,7 @@ import KnowledgeGraph from './GptController/KnowledgeGraph.js';
import
DataSetCleaning
from
'./GptController/DataSetCleaning.js'
;
import
DataSetCleaning
from
'./GptController/DataSetCleaning.js'
;
import
applicationAccess
from
'./GptController/applicationAccess.js'
import
applicationAccess
from
'./GptController/applicationAccess.js'
import
plugOrchestration
from
'./GptController/plugOrchestration.js'
;
import
plugOrchestration
from
'./GptController/plugOrchestration.js'
;
import
ApiManage
from
'./GptController/ApiManage.js'
;
export
{
export
{
TemplateController
,
TemplateController
,
...
@@ -45,4 +46,5 @@ export {
...
@@ -45,4 +46,5 @@ export {
DataSetCleaning
,
DataSetCleaning
,
applicationAccess
,
applicationAccess
,
plugOrchestration
plugOrchestration
ApiManage
}
}
src/router/systemRouters.js
View file @
ae51aa5c
...
@@ -56,7 +56,7 @@ const routers = [
...
@@ -56,7 +56,7 @@ const routers = [
{
path
:
'modelDeployment'
,
component
:
_import
(
'gptTraining/modelManagement/modelDeployment/index'
),
name
:
'modelDeployment'
,
props
:
getProps
,
meta
:
{
title
:
'模型部署'
}
},
{
path
:
'modelDeployment'
,
component
:
_import
(
'gptTraining/modelManagement/modelDeployment/index'
),
name
:
'modelDeployment'
,
props
:
getProps
,
meta
:
{
title
:
'模型部署'
}
},
// 模型服务
// 模型服务
{
path
:
'serviceManagement'
,
component
:
_import
(
'gptTraining/modelService/serviceManagement/index'
),
name
:
'serviceManagement'
,
props
:
getProps
,
meta
:
{
title
:
'在线服务'
}
},
{
path
:
'serviceManagement'
,
component
:
_import
(
'gptTraining/modelService/serviceManagement/index'
),
name
:
'serviceManagement'
,
props
:
getProps
,
meta
:
{
title
:
'在线服务'
}
},
{
path
:
'ap
plicationAccess'
,
component
:
_import
(
'gptTraining/modelService/applicationAccess/index'
),
name
:
'applicationAccess
'
,
props
:
getProps
,
meta
:
{
title
:
'应用接入'
}
},
{
path
:
'ap
iManage'
,
component
:
_import
(
'gptTraining/modelService/apiManage/index'
),
name
:
'apiManage
'
,
props
:
getProps
,
meta
:
{
title
:
'应用接入'
}
},
{
path
:
'testOnline'
,
component
:
_import
(
'gptTraining/modelService/testOnline/index'
),
name
:
'testOnline'
,
props
:
getProps
,
meta
:
{
title
:
'在线测试'
}
},
{
path
:
'testOnline'
,
component
:
_import
(
'gptTraining/modelService/testOnline/index'
),
name
:
'testOnline'
,
props
:
getProps
,
meta
:
{
title
:
'在线测试'
}
},
{
path
:
'callStatistics'
,
component
:
_import
(
'gptTraining/modelService/callStatistics/index'
),
name
:
'callStatistics'
,
props
:
getProps
,
meta
:
{
title
:
'调用统计'
}
},
{
path
:
'callStatistics'
,
component
:
_import
(
'gptTraining/modelService/callStatistics/index'
),
name
:
'callStatistics'
,
props
:
getProps
,
meta
:
{
title
:
'调用统计'
}
},
{
path
:
'plugOrchestration'
,
component
:
_import
(
'gptTraining/modelService/plugOrchestration/index'
),
name
:
'plugOrchestration'
,
props
:
getProps
,
meta
:
{
title
:
'插件编排'
}
},
{
path
:
'plugOrchestration'
,
component
:
_import
(
'gptTraining/modelService/plugOrchestration/index'
),
name
:
'plugOrchestration'
,
props
:
getProps
,
meta
:
{
title
:
'插件编排'
}
},
...
...
src/views/gptTraining/modelService/ap
plicationAccess
/dialog/editOrAdd.vue
→
src/views/gptTraining/modelService/ap
iManage
/dialog/editOrAdd.vue
View file @
ae51aa5c
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
<el-form
label-position=
"left"
ref=
"form"
label-width=
"100px"
:model=
"form"
:size=
"defaultFormItemSize"
:rules=
"rules"
>
<el-form
label-position=
"left"
ref=
"form"
label-width=
"100px"
:model=
"form"
:size=
"defaultFormItemSize"
:rules=
"rules"
>
<el-row
class=
"title"
>
基本信息
</el-row>
<el-row
class=
"title"
>
基本信息
</el-row>
<el-form-item
label=
"应用名称:"
prop=
"ap
plicationAccessDto.applicationName"
>
<el-form-item
label=
"应用名称:"
prop=
"ap
iManageDto.apiName"
>
<el-input
v-model=
"form.ap
plicationAccessDto.applicationName"
class=
"inputWidth"
:size=
"defaultFormItemSize"
></el-input>
<el-input
v-model=
"form.ap
iManageDto.apiName"
class=
"inputWidth"
:size=
"defaultFormItemSize"
></el-input>
<el-row>
<span
class=
"introduce"
>
支持中英文、数字、下划线(_),2-20个字符,不能以下划线为开头
</span></el-row>
<el-row>
<span
class=
"introduce"
>
支持中英文、数字、下划线(_),2-20个字符,不能以下划线为开头
</span></el-row>
</el-form-item>
</el-form-item>
<el-form-item
label=
"应用描述:"
>
<el-form-item
label=
"应用描述:"
>
<el-input
v-model=
"form.ap
plicationAccessDto.applicationDescribe"
type=
"textarea"
class=
"inputWidth"
:rows=
"5"
:size=
"defaultFormItemSize"
></el-input>
<el-input
v-model=
"form.ap
iManageDto.remark"
type=
"textarea"
class=
"inputWidth"
:rows=
"5"
:size=
"defaultFormItemSize"
></el-input>
</el-form-item>
</el-form-item>
<el-row
type=
"flex"
justify=
"end"
class=
"dialog-btn-layer mt20"
>
<el-row
type=
"flex"
justify=
"end"
class=
"dialog-btn-layer mt20"
>
<el-button
:size=
"defaultFormItemSize"
:plain=
"true"
@
click=
"onCancel(false)"
>
取消
</el-button>
<el-button
:size=
"defaultFormItemSize"
:plain=
"true"
@
click=
"onCancel(false)"
>
取消
</el-button>
...
@@ -17,20 +17,20 @@
...
@@ -17,20 +17,20 @@
</el-form>
</el-form>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
applicationAccess
}
from
'@/api/gptController.js'
import
{
ApiManage
}
from
'@/api/gptController.js'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
taskList
:
[],
taskList
:
[],
runNameList
:
[],
runNameList
:
[],
form
:
{
form
:
{
ap
plicationAccessDto
:
{
ap
iManageDto
:
{
applicationDescribe
:
''
,
remark
:
''
,
ap
plicationName
:
''
ap
iName
:
''
}
}
},
},
rules
:
{
rules
:
{
'ap
plicationAccessDto.applicationName'
:
[{
required
:
true
,
message
:
'请输入应用名称'
,
trigger
:
'blur'
}]
'ap
iManageDto.apiName'
:
[{
required
:
true
,
message
:
'请输入应用名称'
,
trigger
:
'blur'
}]
}
}
}
}
},
},
...
@@ -67,7 +67,7 @@ export default {
...
@@ -67,7 +67,7 @@ export default {
params
=
{
...
this
.
form
}
params
=
{
...
this
.
form
}
if
(
this
.
isEdit
)
{
if
(
this
.
isEdit
)
{
applicationAccess
.
update
(
this
,
params
)
ApiManage
.
update
(
this
,
params
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
resolve
(
res
)
resolve
(
res
)
this
.
$message
.
success
(
'编辑成功'
)
this
.
$message
.
success
(
'编辑成功'
)
...
@@ -77,7 +77,7 @@ export default {
...
@@ -77,7 +77,7 @@ export default {
reject
(
e
)
reject
(
e
)
})
})
}
else
{
}
else
{
applicationAccess
.
add
(
this
,
params
)
ApiManage
.
add
(
this
,
params
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
resolve
(
res
)
resolve
(
res
)
this
.
$message
.
success
(
'添加成功'
)
this
.
$message
.
success
(
'添加成功'
)
...
...
src/views/gptTraining/modelService/ap
plicationAccess
/index.vue
→
src/views/gptTraining/modelService/ap
iManage
/index.vue
View file @
ae51aa5c
...
@@ -32,17 +32,17 @@
...
@@ -32,17 +32,17 @@
<el-button
class=
"add"
type=
"primary"
icon=
"el-icon-plus"
:size=
"defaultFormItemSize"
@
click=
"add"
>
创建应用
</el-button>
<el-button
class=
"add"
type=
"primary"
icon=
"el-icon-plus"
:size=
"defaultFormItemSize"
@
click=
"add"
>
创建应用
</el-button>
</el-form-item>
</el-form-item>
<el-form-item
label=
"应用名称"
prop=
"formFilter.modelName"
label-width=
"120px"
>
<el-form-item
label=
"应用名称"
prop=
"formFilter.modelName"
label-width=
"120px"
>
<el-input
class=
"filter-item"
v-model=
"myDataSetPage.formFilter.ap
plicationName"
:clearable=
"true"
placeholder=
"应用名称"
/>
<el-input
class=
"filter-item"
v-model=
"myDataSetPage.formFilter.ap
iName"
:clearable=
"true"
placeholder=
"应用名称"
/>
</el-form-item>
</el-form-item>
</filter-box>
</filter-box>
</el-form>
</el-form>
<vxe-table
border
show-header-overflow
show-overflow
:row-config=
"{ isHover: true }"
:data=
"myDataSetPage.tableData.impl.dataList"
min-height=
"96"
>
<vxe-table
border
show-header-overflow
show-overflow
:row-config=
"{ isHover: true }"
:data=
"myDataSetPage.tableData.impl.dataList"
min-height=
"96"
>
<vxe-column
field=
"ap
plicationName"
title=
"应用名称"
></vxe-column>
<vxe-column
field=
"ap
iName"
title=
"应用名称"
></vxe-column>
<vxe-column
field=
"appId"
title=
"AppID"
></vxe-column>
<vxe-column
field=
"appId"
title=
"AppID"
></vxe-column>
<vxe-column
field=
"apiKey"
title=
"API Key"
></vxe-column>
<vxe-column
field=
"apiKey"
title=
"API Key"
></vxe-column>
<vxe-column
field=
"secretKey"
title=
"Secret Key"
></vxe-column>
<vxe-column
field=
"secretKey"
title=
"Secret Key"
></vxe-column>
<vxe-column
field=
"
applicationDescribe"
title=
"描述"
></vxe-column>
<vxe-column
field=
"
remark"
title=
"描述"
></vxe-column>
<vxe-column
field=
"createTime"
title=
"创建时间"
></vxe-column>
<vxe-column
field=
"createTime"
title=
"创建时间"
></vxe-column>
<vxe-column
field=
"operation"
title=
"操作"
>
<vxe-column
field=
"operation"
title=
"操作"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
import
{
mapGetters
}
from
'vuex'
import
{
mapGetters
}
from
'vuex'
/* eslint-disable-next-line */
/* eslint-disable-next-line */
import
{
DropdownWidget
,
TableWidget
,
UploadWidget
,
ChartWidget
}
from
'@/utils/widget.js'
import
{
DropdownWidget
,
TableWidget
,
UploadWidget
,
ChartWidget
}
from
'@/utils/widget.js'
import
{
applicationAccess
}
from
'@/api/gptController.js'
import
{
ApiManage
}
from
'@/api/gptController.js'
import
editOrAdd
from
'./dialog/editOrAdd'
import
editOrAdd
from
'./dialog/editOrAdd'
export
default
{
export
default
{
data
()
{
data
()
{
...
@@ -94,7 +94,7 @@ export default {
...
@@ -94,7 +94,7 @@ export default {
],
],
myDataSetPage
:
{
myDataSetPage
:
{
formFilter
:
{
formFilter
:
{
ap
plicationName
:
''
ap
iName
:
''
},
},
tableData
:
{
tableData
:
{
...
@@ -118,11 +118,11 @@ export default {
...
@@ -118,11 +118,11 @@ export default {
if
(
params
==
null
)
params
=
{}
if
(
params
==
null
)
params
=
{}
params
=
{
params
=
{
...
params
,
...
params
,
ap
plicationAccessDtoFilter
:
{
...
this
.
myDataSetPage
.
formFilter
}
ap
iManageDtoFilter
:
{
...
this
.
myDataSetPage
.
formFilter
}
}
}
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
applicationAccess
ApiManage
.
list
(
this
,
params
)
.
list
(
this
,
params
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
resolve
({
resolve
({
...
@@ -160,7 +160,7 @@ export default {
...
@@ -160,7 +160,7 @@ export default {
type
:
'warning'
type
:
'warning'
}).
then
(()
=>
{
}).
then
(()
=>
{
let
params
=
{
kgId
:
item
.
kgId
}
let
params
=
{
kgId
:
item
.
kgId
}
applicationAccess
ApiManage
.
delete
(
this
,
params
)
.
delete
(
this
,
params
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
this
.
$message
.
success
(
'删除成功'
)
this
.
$message
.
success
(
'删除成功'
)
...
...
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