Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
4ac7dbe9
Commit
4ac7dbe9
authored
Jan 18, 2021
by
刘殿昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upfwzc
parent
550c7e73
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
90 additions
and
34 deletions
+90
-34
src/pages/workbench/fwzc_fwcs.vue
src/pages/workbench/fwzc_fwcs.vue
+54
-34
static/产品介绍文档模版.md
static/产品介绍文档模版.md
+36
-0
No files found.
src/pages/workbench/fwzc_fwcs.vue
View file @
4ac7dbe9
...
...
@@ -425,7 +425,8 @@
<el-form-item>
<p
class=
"formname"
>
产品介绍文档:
</p>
<div
class=
"cp_mb"
>
产品介绍文档模版.md
<span
class=
"filebtn"
>
下载文件
</span>
产品介绍文档模版.md
<a
href=
"static/产品介绍文档模版.md"
download=
"产品介绍文档模版.md"
class=
"filebtn"
>
下载文件
</a>
</div>
<upload-file
:multiple=
"false"
...
...
@@ -450,7 +451,7 @@
</el-radio-group>
</el-form-item>
<el-form-item
class=
"btn_footer"
>
<el-button
class=
"registe"
@
click=
"registeCp"
<el-button
class=
"registe"
@
click=
"registeCp"
:disabled=
"cpR"
>
产品注册
</el-button
>
</el-form-item>
...
...
@@ -861,7 +862,7 @@
<el-button
class=
"previous"
@
click=
"goBack('map')"
>
{{
is_map
==
1
?
"
返回智能制图
"
:
"
返回Web应用程序
"
}}
</el-button>
<el-button
class=
"registe"
@
click=
"registeMap"
>
<el-button
class=
"registe"
:disabled=
"mapR"
@
click=
"registeMap"
>
服务发布
</el-button>
</el-form-item>
...
...
@@ -869,13 +870,19 @@
<el-button
class=
"previous"
@
click=
"goBack('process')"
>
返回流程管理
</el-button>
<el-button
class=
"registe"
@
click=
"registeProcess"
>
<el-button
class=
"registe"
:disabled=
"proR"
@
click=
"registeProcess"
>
服务发布
</el-button>
</el-form-item>
<el-form-item
v-else
class=
"btn_footer"
>
<el-button
class=
"previous"
@
click=
"previous"
>
上一步
</el-button>
<el-button
class=
"registe"
@
click=
"registe"
>
服务注册
</el-button>
<el-button
class=
"registe"
:disabled=
"fwR"
@
click=
"registe"
>
服务注册
</el-button
>
</el-form-item>
</el-form>
</div>
...
...
@@ -1189,6 +1196,10 @@ export default {
whiteAddShow
:
false
,
newIpWhite
:
""
,
wd_cp
:
[],
cpR
:
false
,
fwR
:
false
,
mapR
:
false
,
proR
:
false
,
};
},
computed
:
{},
...
...
@@ -1407,10 +1418,7 @@ export default {
this
.
activeBtn
==
3
||
(
this
.
activeBtn
==
4
&&
(
this
.
zhyyVal
==
22
||
this
.
zhyyVal
==
23
))
)
{
if
(
this
.
activeBtn
==
2
||
this
.
activeBtn
==
3
)
{
if
(
this
.
activeBtn
==
2
||
this
.
activeBtn
==
3
)
{
if
(
this
.
jkwds
.
length
==
0
)
{
this
.
$message
.
error
(
"
请上传接口文档
"
);
}
else
{
...
...
@@ -1557,6 +1565,7 @@ export default {
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
this
.
cover
.
length
!=
0
)
{
this
.
mapR
=
true
;
let
query
=
{};
if
(
this
.
is_map
==
1
)
{
query
=
{
...
...
@@ -1615,6 +1624,7 @@ export default {
};
}
this
.
$api
.
workbench
.
serviceAdd
(
query
).
then
((
response
)
=>
{
this
.
mapR
=
false
;
if
(
response
.
data
.
success
==
1
)
{
this
.
$message
.
success
(
"
服务发布成功
"
);
this
.
$router
.
push
(
"
/fwgl/
"
+
this
.
$store
.
getters
.
level
);
...
...
@@ -1635,6 +1645,7 @@ export default {
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
this
.
cover
.
length
!=
0
)
{
this
.
proR
=
true
;
let
query
=
{
workflows_id
:
Number
(
this
.
process_id
),
// 服务流程id
service_name
:
this
.
form
.
name
,
// 服务名称
...
...
@@ -1646,6 +1657,7 @@ export default {
openness
:
this
.
form
.
resource
,
// 开放程度,1共享/2受限/3敏感
};
this
.
$api
.
workbench
.
releaseProcess
(
query
).
then
((
response
)
=>
{
this
.
proR
=
false
;
if
(
response
.
data
.
success
==
1
)
{
this
.
$message
.
success
(
"
服务发布成功
"
);
this
.
$router
.
push
(
"
/fwgl/
"
+
this
.
$store
.
getters
.
level
);
...
...
@@ -1674,32 +1686,35 @@ export default {
if
(
valid
)
{
if
(
this
.
form_cp
.
bq
.
length
<
1
&&
this
.
form_cp
.
bq
.
length
>
3
)
{
this
.
$message
.
error
(
"
产品标签至少1个,至多3个
"
);
}
else
{
this
.
cpR
=
true
;
let
query
=
{
name
:
this
.
form_cp
.
name
,
sectors
:
this
.
form_cp
.
area
,
organization
:
this
.
form_cp
.
origin
,
cover
:
this
.
cover_cp
[
0
],
openness
:
this
.
form_cp
.
resource
,
descript
:
this
.
form_cp
.
desc
,
data_service_type1
:
this
.
btnList
[
this
.
activeBtn
].
id
,
data_service_type2
:
0
,
portal_id
:
""
,
encode_method
:
"
自动生成
"
,
doc_file
:
this
.
wd_cp
.
length
!=
0
?
this
.
wd_cp
[
0
].
url
:
""
,
version
:
this
.
form_cp
.
bb
,
tags
:
this
.
form_cp
.
bq
,
urls
:
[],
};
this
.
$api
.
workbench
.
serviceAdd
(
query
).
then
((
response
)
=>
{
this
.
cpR
=
false
;
if
(
response
.
data
.
success
==
1
)
{
this
.
$message
.
success
(
"
产品注册成功
"
);
this
.
$router
.
push
(
"
/fwgl/
"
+
this
.
$store
.
getters
.
level
);
}
else
{
console
.
log
(
response
.
data
.
errMsg
);
this
.
$message
.
error
(
response
.
data
.
errMsg
);
}
});
}
let
query
=
{
name
:
this
.
form_cp
.
name
,
sectors
:
this
.
form_cp
.
area
,
organization
:
this
.
form_cp
.
origin
,
cover
:
this
.
cover_cp
[
0
],
openness
:
this
.
form_cp
.
resource
,
descript
:
this
.
form_cp
.
desc
,
data_service_type1
:
this
.
btnList
[
this
.
activeBtn
].
id
,
data_service_type2
:
0
,
portal_id
:
""
,
encode_method
:
"
自动生成
"
,
doc_file
:
this
.
wd_cp
.
length
!=
0
?
this
.
wd_cp
[
0
].
url
:
""
,
version
:
this
.
form_cp
.
bb
,
tags
:
this
.
form_cp
.
bq
,
urls
:
[],
};
this
.
$api
.
workbench
.
serviceAdd
(
query
).
then
((
response
)
=>
{
if
(
response
.
data
.
success
==
1
)
{
this
.
$message
.
success
(
"
产品注册成功
"
);
this
.
$router
.
push
(
"
/fwgl/
"
+
this
.
$store
.
getters
.
level
);
}
else
{
console
.
log
(
response
.
data
.
errMsg
);
this
.
$message
.
error
(
response
.
data
.
errMsg
);
}
});
}
});
},
...
...
@@ -1717,6 +1732,7 @@ export default {
if
(
this
.
activeBtn
==
1
&&
!
this
.
is_portal
)
{
this
.
addPortalItem
();
}
else
{
this
.
fwR
=
true
;
if
(
this
.
activeBtn
==
0
||
this
.
activeBtn
==
2
||
...
...
@@ -1770,6 +1786,7 @@ export default {
],
};
this
.
$api
.
workbench
.
serviceAdd
(
query
).
then
((
response
)
=>
{
this
.
fwR
=
false
;
if
(
response
.
data
.
success
==
1
)
{
this
.
$message
.
success
(
"
服务注册成功
"
);
this
.
$router
.
push
(
"
/fwgl/
"
+
this
.
$store
.
getters
.
level
);
...
...
@@ -1795,6 +1812,7 @@ export default {
if
(
this
.
jkwds
.
length
==
0
)
{
this
.
$message
.
error
(
"
请上传接口文档
"
);
}
else
{
this
.
fwR
=
true
;
let
urls
=
[];
this
.
liucheng_list
.
forEach
((
item
)
=>
{
urls
.
push
({
...
...
@@ -1831,6 +1849,7 @@ export default {
doc_file
:
this
.
jkwds
.
length
!=
0
?
this
.
jkwds
[
0
]
:
""
,
};
this
.
$api
.
workbench
.
serviceAdd
(
query
).
then
((
response
)
=>
{
this
.
fwR
=
false
;
if
(
response
.
data
.
success
==
1
)
{
this
.
$message
.
success
(
"
服务注册成功
"
);
this
.
$router
.
push
(
"
/fwgl/
"
+
this
.
$store
.
getters
.
level
);
...
...
@@ -2638,6 +2657,7 @@ export default {
font-size
:
14px
;
margin-left
:
8px
;
cursor
:
pointer
;
text-decoration
:
none
;
}
.cp_mb
{
padding
:
0
0
16px
8px
;
...
...
static/产品介绍文档模版.md
0 → 100644
View file @
4ac7dbe9
### 产品功能
请输入对产品核心功能的介绍说明,如:
本产品包含常见人工智能及机器学习相关算法:
1.
线性模型
2.
聚类算法
3.
特征选择算法
4.
降维/压缩
5.
树模型
### 产品亮点
请输入对产品核心亮点的介绍,如“模型算法使用多种类型的场景,支持灵活配置,算法高效。”
### 产品应用领域
请输入对产品常用的应用领域,如“算法适合机器学习、人工智能图像识别、视频处理等。”
### 产品文档获取
请输入对产品示例文档、说明文档、开发文档等的获取链接,如:
开发文档:http://www.dev-tech.com/docs
### 产品代码示例
如有示例代码,请输入产品的示例代码:
```
x = fluid.data(name='x', shape=[None, 13], dtype='float32') # 定义输入的形状和数据类型
y = fluid.data(name='y', shape=[None, 1], dtype='float32') # 定义输出的形状和数据类型
y_predict = fluid.layers.fc(input=x, size=1, act=None) # 连接输入和输出的全连接层
main_program = fluid.default_main_program() # 获取默认/全局主函数
startup_program = fluid.default_startup_program() # 获取默认/全局启动程序
cost = fluid.layers.square_error_cost(input=y_predict, label=y) # 利用标签数据和输出的预测数据估计方差
avg_loss = fluid.layers.mean(cost) # 对方差求均值,得到平均损失
```
如有其他信息,可依据产品需要进行补充
\ No newline at end of file
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