Commit 4ac7dbe9 authored by 刘殿昕's avatar 刘殿昕

upfwzc

parent 550c7e73
...@@ -425,7 +425,8 @@ ...@@ -425,7 +425,8 @@
<el-form-item> <el-form-item>
<p class="formname">产品介绍文档:</p> <p class="formname">产品介绍文档:</p>
<div class="cp_mb"> <div class="cp_mb">
产品介绍文档模版.md<span class="filebtn">下载文件</span> 产品介绍文档模版.md
<a href="static/产品介绍文档模版.md" download="产品介绍文档模版.md" class="filebtn">下载文件</a>
</div> </div>
<upload-file <upload-file
:multiple="false" :multiple="false"
...@@ -450,7 +451,7 @@ ...@@ -450,7 +451,7 @@
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item class="btn_footer"> <el-form-item class="btn_footer">
<el-button class="registe" @click="registeCp" <el-button class="registe" @click="registeCp" :disabled="cpR"
>产品注册</el-button >产品注册</el-button
> >
</el-form-item> </el-form-item>
...@@ -861,7 +862,7 @@ ...@@ -861,7 +862,7 @@
<el-button class="previous" @click="goBack('map')"> <el-button class="previous" @click="goBack('map')">
{{ is_map == 1 ? "返回智能制图" : "返回Web应用程序" }} {{ is_map == 1 ? "返回智能制图" : "返回Web应用程序" }}
</el-button> </el-button>
<el-button class="registe" @click="registeMap"> <el-button class="registe" :disabled="mapR" @click="registeMap">
服务发布 服务发布
</el-button> </el-button>
</el-form-item> </el-form-item>
...@@ -869,13 +870,19 @@ ...@@ -869,13 +870,19 @@
<el-button class="previous" @click="goBack('process')"> <el-button class="previous" @click="goBack('process')">
返回流程管理 返回流程管理
</el-button> </el-button>
<el-button class="registe" @click="registeProcess"> <el-button
class="registe"
:disabled="proR"
@click="registeProcess"
>
服务发布 服务发布
</el-button> </el-button>
</el-form-item> </el-form-item>
<el-form-item v-else class="btn_footer"> <el-form-item v-else class="btn_footer">
<el-button class="previous" @click="previous">上一步</el-button> <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-item>
</el-form> </el-form>
</div> </div>
...@@ -1189,6 +1196,10 @@ export default { ...@@ -1189,6 +1196,10 @@ export default {
whiteAddShow: false, whiteAddShow: false,
newIpWhite: "", newIpWhite: "",
wd_cp: [], wd_cp: [],
cpR: false,
fwR: false,
mapR: false,
proR: false,
}; };
}, },
computed: {}, computed: {},
...@@ -1407,10 +1418,7 @@ export default { ...@@ -1407,10 +1418,7 @@ export default {
this.activeBtn == 3 || this.activeBtn == 3 ||
(this.activeBtn == 4 && (this.zhyyVal == 22 || this.zhyyVal == 23)) (this.activeBtn == 4 && (this.zhyyVal == 22 || this.zhyyVal == 23))
) { ) {
if ( if (this.activeBtn == 2 || this.activeBtn == 3) {
this.activeBtn == 2 ||
this.activeBtn == 3
) {
if (this.jkwds.length == 0) { if (this.jkwds.length == 0) {
this.$message.error("请上传接口文档"); this.$message.error("请上传接口文档");
} else { } else {
...@@ -1557,6 +1565,7 @@ export default { ...@@ -1557,6 +1565,7 @@ export default {
this.$refs.form.validate((valid) => { this.$refs.form.validate((valid) => {
if (valid) { if (valid) {
if (this.cover.length != 0) { if (this.cover.length != 0) {
this.mapR = true;
let query = {}; let query = {};
if (this.is_map == 1) { if (this.is_map == 1) {
query = { query = {
...@@ -1615,6 +1624,7 @@ export default { ...@@ -1615,6 +1624,7 @@ export default {
}; };
} }
this.$api.workbench.serviceAdd(query).then((response) => { this.$api.workbench.serviceAdd(query).then((response) => {
this.mapR = false;
if (response.data.success == 1) { if (response.data.success == 1) {
this.$message.success("服务发布成功"); this.$message.success("服务发布成功");
this.$router.push("/fwgl/" + this.$store.getters.level); this.$router.push("/fwgl/" + this.$store.getters.level);
...@@ -1635,6 +1645,7 @@ export default { ...@@ -1635,6 +1645,7 @@ export default {
this.$refs.form.validate((valid) => { this.$refs.form.validate((valid) => {
if (valid) { if (valid) {
if (this.cover.length != 0) { if (this.cover.length != 0) {
this.proR = true;
let query = { let query = {
workflows_id: Number(this.process_id), // 服务流程id workflows_id: Number(this.process_id), // 服务流程id
service_name: this.form.name, // 服务名称 service_name: this.form.name, // 服务名称
...@@ -1646,6 +1657,7 @@ export default { ...@@ -1646,6 +1657,7 @@ export default {
openness: this.form.resource, // 开放程度,1共享/2受限/3敏感 openness: this.form.resource, // 开放程度,1共享/2受限/3敏感
}; };
this.$api.workbench.releaseProcess(query).then((response) => { this.$api.workbench.releaseProcess(query).then((response) => {
this.proR = false;
if (response.data.success == 1) { if (response.data.success == 1) {
this.$message.success("服务发布成功"); this.$message.success("服务发布成功");
this.$router.push("/fwgl/" + this.$store.getters.level); this.$router.push("/fwgl/" + this.$store.getters.level);
...@@ -1674,7 +1686,8 @@ export default { ...@@ -1674,7 +1686,8 @@ export default {
if (valid) { if (valid) {
if (this.form_cp.bq.length < 1 && this.form_cp.bq.length > 3) { if (this.form_cp.bq.length < 1 && this.form_cp.bq.length > 3) {
this.$message.error("产品标签至少1个,至多3个"); this.$message.error("产品标签至少1个,至多3个");
} } else {
this.cpR = true;
let query = { let query = {
name: this.form_cp.name, name: this.form_cp.name,
sectors: this.form_cp.area, sectors: this.form_cp.area,
...@@ -1692,6 +1705,7 @@ export default { ...@@ -1692,6 +1705,7 @@ export default {
urls: [], urls: [],
}; };
this.$api.workbench.serviceAdd(query).then((response) => { this.$api.workbench.serviceAdd(query).then((response) => {
this.cpR = false;
if (response.data.success == 1) { if (response.data.success == 1) {
this.$message.success("产品注册成功"); this.$message.success("产品注册成功");
this.$router.push("/fwgl/" + this.$store.getters.level); this.$router.push("/fwgl/" + this.$store.getters.level);
...@@ -1701,6 +1715,7 @@ export default { ...@@ -1701,6 +1715,7 @@ export default {
} }
}); });
} }
}
}); });
}, },
registePt() { registePt() {
...@@ -1717,6 +1732,7 @@ export default { ...@@ -1717,6 +1732,7 @@ export default {
if (this.activeBtn == 1 && !this.is_portal) { if (this.activeBtn == 1 && !this.is_portal) {
this.addPortalItem(); this.addPortalItem();
} else { } else {
this.fwR = true;
if ( if (
this.activeBtn == 0 || this.activeBtn == 0 ||
this.activeBtn == 2 || this.activeBtn == 2 ||
...@@ -1770,6 +1786,7 @@ export default { ...@@ -1770,6 +1786,7 @@ export default {
], ],
}; };
this.$api.workbench.serviceAdd(query).then((response) => { this.$api.workbench.serviceAdd(query).then((response) => {
this.fwR = false;
if (response.data.success == 1) { if (response.data.success == 1) {
this.$message.success("服务注册成功"); this.$message.success("服务注册成功");
this.$router.push("/fwgl/" + this.$store.getters.level); this.$router.push("/fwgl/" + this.$store.getters.level);
...@@ -1795,6 +1812,7 @@ export default { ...@@ -1795,6 +1812,7 @@ export default {
if (this.jkwds.length == 0) { if (this.jkwds.length == 0) {
this.$message.error("请上传接口文档"); this.$message.error("请上传接口文档");
} else { } else {
this.fwR = true;
let urls = []; let urls = [];
this.liucheng_list.forEach((item) => { this.liucheng_list.forEach((item) => {
urls.push({ urls.push({
...@@ -1831,6 +1849,7 @@ export default { ...@@ -1831,6 +1849,7 @@ export default {
doc_file: this.jkwds.length != 0 ? this.jkwds[0] : "", doc_file: this.jkwds.length != 0 ? this.jkwds[0] : "",
}; };
this.$api.workbench.serviceAdd(query).then((response) => { this.$api.workbench.serviceAdd(query).then((response) => {
this.fwR = false;
if (response.data.success == 1) { if (response.data.success == 1) {
this.$message.success("服务注册成功"); this.$message.success("服务注册成功");
this.$router.push("/fwgl/" + this.$store.getters.level); this.$router.push("/fwgl/" + this.$store.getters.level);
...@@ -2638,6 +2657,7 @@ export default { ...@@ -2638,6 +2657,7 @@ export default {
font-size: 14px; font-size: 14px;
margin-left: 8px; margin-left: 8px;
cursor: pointer; cursor: pointer;
text-decoration: none;
} }
.cp_mb { .cp_mb {
padding: 0 0 16px 8px; padding: 0 0 16px 8px;
......
### 产品功能
请输入对产品核心功能的介绍说明,如:
本产品包含常见人工智能及机器学习相关算法:
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment