diff --git a/src/pages/workbench/fwzc_fwcs.vue b/src/pages/workbench/fwzc_fwcs.vue index 2c5d8b4c193dbd523b1e3089017e20bdedcfc573..815d66537cc67d441882ccacd0687aa68f2894a8 100644 --- a/src/pages/workbench/fwzc_fwcs.vue +++ b/src/pages/workbench/fwzc_fwcs.vue @@ -425,7 +425,8 @@

产品介绍文档:

- 产品介绍文档模版.md下载文件 + 产品介绍文档模版.md + 下载文件
- 产品注册 @@ -861,7 +862,7 @@ {{ is_map == 1 ? "返回智能制图" : "返回Web应用程序" }} - + 服务发布 @@ -869,13 +870,19 @@ 返回流程管理 - + 服务发布 上一步 - 服务注册 + 服务注册 @@ -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; diff --git "a/static/\344\272\247\345\223\201\344\273\213\347\273\215\346\226\207\346\241\243\346\250\241\347\211\210.md" "b/static/\344\272\247\345\223\201\344\273\213\347\273\215\346\226\207\346\241\243\346\250\241\347\211\210.md" new file mode 100644 index 0000000000000000000000000000000000000000..a4684c6abc8cadab232ba7483ee6170fa3415816 --- /dev/null +++ "b/static/\344\272\247\345\223\201\344\273\213\347\273\215\346\226\207\346\241\243\346\250\241\347\211\210.md" @@ -0,0 +1,35 @@ +### 产品功能 +请输入对产品核心功能的介绍说明,如: +本产品包含常见人工智能及机器学习相关算法: + 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