-
服务类型
+
服务分类
调用状态
diff --git a/src/components/wangE.vue b/src/components/wangE.vue
index c63198e9220930b2e67bb688bb2556e79d165b3c..fc754980ca3a971336ce981bc197ef05cb124c88 100644
--- a/src/components/wangE.vue
+++ b/src/components/wangE.vue
@@ -1,17 +1,50 @@
@@ -142,4 +216,7 @@ export default {
border: none!important;
height: calc(100% - 80px)!important;
}
+.upload-file {
+ width: 50%;
+}
diff --git a/src/pages/message-management/recommended/recommended-eidt.vue b/src/pages/message-management/recommended/recommended-eidt.vue
index 3106d3171e9bae61955edfed13cbafe800ff8f28..6592db3ea901f892aff138bfb52943cef49b586d 100644
--- a/src/pages/message-management/recommended/recommended-eidt.vue
+++ b/src/pages/message-management/recommended/recommended-eidt.vue
@@ -63,8 +63,8 @@ export default {
filtdata: [],
filter_name_arr: {
organizations: "数据来源机构",
- serviceDomain: "数据领域",
- serviceTypeInfo: "基础支撑服务类型",
+ serviceDomain: "业务领域",
+ serviceTypeInfo: "服务类型",
},
select_able_arr: [],
selected_arr: [],
@@ -166,22 +166,22 @@ export default {
var temp = 21
this.filter_name_arr = {
organizations: "服务来源组织",
- serviceDomain: "服务领域",
+ serviceDomain: "业务领域",
serviceTypeInfo: "服务类型",
}
}else if(this.$route.query.ad_type == 'hotdata'){
var temp = 5
this.filter_name_arr = {
organizations: "数据来源机构",
- serviceDomain: "数据领域",
- serviceTypeInfo: "基础支撑服务类型",
+ serviceDomain: "业务领域",
+ serviceTypeInfo: "服务类型",
}
}else{
var temp = 6
this.filter_name_arr = {
organizations: "服务来源组织",
- serviceDomain: "服务领域",
- serviceTypeInfo: "基础地图服务类型",
+ serviceDomain: "业务领域",
+ serviceTypeInfo: "服务类型",
}
}
this.$http
diff --git a/src/pages/service_shop/shop_car_apply.vue b/src/pages/service_shop/shop_car_apply.vue
index 7f67c85308803ce98f77b9ed49ac287723318bde..957c4a7a3f4d211a3139783d549b82c57f0db325 100644
--- a/src/pages/service_shop/shop_car_apply.vue
+++ b/src/pages/service_shop/shop_car_apply.vue
@@ -3,6 +3,7 @@
@@ -125,7 +126,8 @@ export default {
val: "mg"
}
],
- temp_sub_arr: []
+ temp_sub_arr: [],
+ disabledDate: false,
};
},
watch: {},
@@ -197,6 +199,15 @@ export default {
let data = response.data.data;
if (response.data.success && data) {
//服务
+ if (data.interface_typ == 2 || data.interface_typ == 3) {
+ this.disabledDate = true
+ let yyyy = new Date().getFullYear()
+ let mm = new Date().getMonth() + 1 < 10 ? '0' + (new Date().getMonth() + 1) : new Date().getMonth() + 1
+ let dd = new Date().getDate() < 10 ? '0' + new Date().getDate() : new Date().getDate()
+ let date_now = yyyy + '-' + mm + '-' + dd
+ this.formInline.date = ["","2099-12-31"]
+ this.formInline.date[0] = date_now
+ }
this.post_arr = [data];
this.post_arr[0].service_id = parseInt(service_data.service_id);
this.post_arr[0].spec_id = parseInt(service_data.spec_id);
diff --git a/src/pages/service_shop/shop_cloud-new.vue b/src/pages/service_shop/shop_cloud-new.vue
index d7ccfb1db842dfbb87f994fe601aaf839b6b01c6..03e8ed5bfeeda91a085d929b54a61b8734395760 100644
--- a/src/pages/service_shop/shop_cloud-new.vue
+++ b/src/pages/service_shop/shop_cloud-new.vue
@@ -12,7 +12,7 @@
+
+
\ No newline at end of file
diff --git a/src/pages/service_shop/sjfwDetail.vue b/src/pages/service_shop/sjfwDetail.vue
index dd2c425909a93505ac35da32cbaa40bcb170f4f8..40f546620093d69d35173eb810a5ff506c59c059 100644
--- a/src/pages/service_shop/sjfwDetail.vue
+++ b/src/pages/service_shop/sjfwDetail.vue
@@ -3,8 +3,8 @@
服务超市
-
- 基础支撑服务
+
+ {{ typeName }}
服务详情信息
@@ -36,6 +36,7 @@ export default {
detailData: [],
providerData: null,
commentsData: null,
+ typeName: ""
}),
computed: {
id() {
@@ -59,7 +60,8 @@ export default {
service_id: this.id,
app_id: 0,
name: datas.name,
- // type: "",
+ type:datas.data_service_type2_name=="流程类"?"workflow":"",
+ workflows_id:datas.data_service_type2_name=="流程类"?datas.workflows_id:"",
openness: datas.openness,
view_count: datas.view_count,
apply_count: datas.apply_count,
@@ -80,7 +82,7 @@ export default {
user_name: datas.register_user_info.user_name,
phone: datas.register_user_info.phone,
};
-
+
this.detailData = [
{
name: "获取流程",
@@ -185,6 +187,11 @@ export default {
},
},
];
+ this.typeName = datas.data_service_type1_name
+ let template = [2,3,4,5,8,9,10,11]
+ if (template.indexOf(datas.serv_template) > -1 ) {
+ this.detailData = this.detailData.slice(0,1)
+ }
let arr1 = datas.serviceRequestSpcs.spcs_type_1 || [];
let arr2 = datas.serviceRequestSpcs.spcs_type_2 || [];
let arr = arr1.concat(arr2);
diff --git a/src/pages/technical-support/doc-manage/detail.vue b/src/pages/technical-support/doc-manage/detail.vue
index 83839ab5eb3c5d9fdeab040740a4162d39dc1e5d..3fd9e6e1077690516130fd04b74ec09c89abaed4 100644
--- a/src/pages/technical-support/doc-manage/detail.vue
+++ b/src/pages/technical-support/doc-manage/detail.vue
@@ -14,8 +14,8 @@
-
-
@@ -288,13 +288,19 @@
>
@@ -468,6 +474,26 @@ export default {
times: 0,
month: 0,
},
+ jkwd_headers: [
+ {
+ prop: "wd_name",
+ label: "文档名称",
+ align: "left",
+ },
+ {
+ label: "操作",
+ type: "Button",
+ align: "center",
+ btnList: [
+ {
+ type: "download",
+ label: "下载",
+ disabledRule: true
+ },
+ ],
+ },
+ ],
+ jkwd_datas: [],
trans_log_arr: [
{
title: "服务交易概览",
@@ -739,18 +765,19 @@ export default {
workflows_id: "", //判断是否是流程服务
sizeset_flag: false, //规格设置是否显示
service_arr: [
- ["服务基本信息", "接口详细信息", "服务运行状态"],
+ ["服务基本信息", "接口详细信息", "服务运行状态","接口文档"],
[
"服务基本信息",
"接口详细信息",
"服务运行状态",
// "服务计费规则",
// "服务交易记录",
+ "接口文档"
],
[
"服务基本信息",
"接口详细信息",
- "服务运行状态",
+ "服务运行状态","接口文档"
// "服务规格",
// "服务交易记录",
],
@@ -764,7 +791,7 @@ export default {
name: "",
first: [
{
- name: "服务类型",
+ name: "服务分类",
text: "",
},
{
@@ -1189,7 +1216,7 @@ export default {
info: "",
},
{
- title: "服务领域:",
+ title: "业务领域:",
info: "",
},
{
@@ -1272,6 +1299,14 @@ export default {
},
mounted() {},
methods: {
+ download(row) {
+ console.log(row.url)
+ const a = document.createElement("a"); // 创建a标签
+ a.setAttribute("download", ""); // download属性
+ a.setAttribute("href", row.url); // href链接
+ a.click(); // 自执行点击事件
+ }, // 下载接口文档
+
change_port(val) {
this.port_options.forEach((e) => {
if (e.value == val) {
@@ -1665,6 +1700,12 @@ export default {
});
this.service_size_data = temp;
this.size_arr_down = temp;
+ if (data.doc_file != '') {
+ this.jkwd_datas.push({
+ wd_name: helper.downloadFileFormat(data.doc_file),
+ url: data.doc_file
+ })
+ }
} else {
this.$message({
message: response.data.errMsg,
diff --git a/src/pages/workbench/fwgl/serviceEdit.vue b/src/pages/workbench/fwgl/serviceEdit.vue
index cf2599d38a14052d9f5f63fe6f1aa406960e82ea..f912a2efce599191bba21098b92f57eb243da9bc 100644
--- a/src/pages/workbench/fwgl/serviceEdit.vue
+++ b/src/pages/workbench/fwgl/serviceEdit.vue
@@ -23,7 +23,7 @@
- 服务领域:
+ 业务领域:
+
+
+
+
+
+ 在线组件工具
+
+
+ 智能制图
+
+ 发布信息填写
+
+
+
+
+ 在线组件工具
+
+
+ 流程设计
+
+ 发布信息填写
+
+
+
+ 服务注册
+ 服务测试
+ 服务测试
+ 基础信息填写
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+ 接口协议:
+
+
+ {{e.label}}
+
+
+
+
+
+
+
+
+ 说明:支持多个流程服务接口的注册,若流程服务包含多个接口,每个接口需分别注册为独立的服务地址才可使用。
+ 示例:http(s)://www.apaas.com(自有域名)/xxx,其中xxx为该流程服务的不同接口后缀,需分别进行单个接口的注册。
+ 比如:服务地址1:http(s)://www.apaas.com(自有域名)/create(用于新建流程实例)
+
+ 服务地址2:http(s)://www.apaas.com(自有域名)/query
+ (用于查询流程状态)
+
+
+
+
+
+ 上传接口文档
+ (请上传所有服务地址完整接口文档):
+
+
+
+
+
+
返回数据格式
+
+ JSON
+ XML
+
+
+
+
+
+
+ 服务地址:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 服务测试
+
+
+
+
+
+
+ IP+端口号:
+
+
+
+
+
+
+ 服务测试
+
+
+
+
+ 服务地址:
+
+
+
+
+
+
+ 服务测试
+
+
+
+
+
+
+
+
+
+
+
+
+ JSON
+
+
+
+
+
+
+
+ 授权方式:
+
+
+
+
+
注册说明:
+
1、服务提供方按需填写服务的地址、请求参数和返回参数进行正常注册。
+
2、服务被调用时,平台会提供一个动态token,由服务提供方访问身份认证地址,进行认证。由平台返回身份认证结果,由服务提供方依据结果判断是否可以提供服务。
+
3、详细流程和接口说明,请点击下载 服务注册说明。
+
+
+
+
+
+
+
+
Token名称:
+
+
Token值:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ JSON
+ form-data
+ x-www-form-urlencoded
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
请求参数信息填写:
+
+
返回参数信息填写:
+
+
+
+
测试服务信息:
+
+
+

测试成功
+
+
+
+
+
测试服务信息:
+
+
+

测试失败
+
+
+
+
+
+
+
+
+
+
+
服务接口名称:
+
+
+
+
+
+
+
+
+
服务地址{{ indexOne + 1 }}:
+
+ {
+ getUrlOne(val, indexOne);
+ }
+ "
+ v-model="itemOne.serviceUrl"
+ class="input-with-select"
+ >
+
+
+
+
+ 服务测试
+
+
+
+ {
+ changeTableOne(val, indexOne);
+ }
+ "
+ >
+
+
+
+
+ JSON
+
+
+
+
+
+
+
+ 授权方式:
+
+
+
+
+
注册说明:
+
1、服务提供方按需填写服务的地址、请求参数和返回参数进行正常注册。
+
2、服务被调用时,平台会提供一个动态token,由服务提供方访问身份认证地址,进行认证。由平台返回身份认证结果,由服务提供方依据结果判断是否可以提供服务。
+
3、详细流程和接口说明,请点击下载 服务注册说明。
+
+
+
+
+
+
+
+
Token名称:
+
+
Token值:
+
+
+
+
+
+
+
+
+
+
+
+
请求参数信息填写:
+
+
返回参数信息填写:
+
+
+
+
测试服务信息:
+
+
+

测试失败
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 服务名称:
+
+
+
+ 服务描述:
+
+
+
+ 业务领域:
+
+
+
+
+
+ 所属组织:
+
+
+
+ 服务封面:
+
+
+
+ 接口编码:
+
+
+
+ 开放程度:
+
+ 共享
+ 受限
+ 敏感
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/workbench/product-type/class_edit.vue b/src/pages/workbench/product-type/class_edit.vue
new file mode 100644
index 0000000000000000000000000000000000000000..f8dd134240150ebaa1bfefd70fcc60505c067812
--- /dev/null
+++ b/src/pages/workbench/product-type/class_edit.vue
@@ -0,0 +1,322 @@
+
+
+
+
+ 分类管理
+ 产品分类管理
+ {{isAdd? '新增' : '编辑'}}
+
+
+
+
+
+ 分类类别:
+
+
+
+
+
+ 分类名称:
+
+
+
+ 服务模版:
+
+
+
+
+
+ 上级分类名称:
+
+
+
+
+
+ 描述:
+
+
+
+ 状态:
+
+
+
+
+
+
+ 保存
+ 取消
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/workbench/product-type/class_list.vue b/src/pages/workbench/product-type/class_list.vue
new file mode 100644
index 0000000000000000000000000000000000000000..256884ddd4e3c9d2af99019e420e1b00e71f018b
--- /dev/null
+++ b/src/pages/workbench/product-type/class_list.vue
@@ -0,0 +1,413 @@
+
+
+
+
+ 分类管理
+ 服务分类
+
+
+
+
+
分类名称:
+
+
状态:
+
+
+
+
查询
+
重置
+
+
+
+
+
+
+ 删除后无法恢复,请确认是否删除
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/workbench/product-type/domain_edit.vue b/src/pages/workbench/product-type/domain_edit.vue
new file mode 100644
index 0000000000000000000000000000000000000000..a0368e9a8d667ccd2c329b0e0fdcca52bcc4da6d
--- /dev/null
+++ b/src/pages/workbench/product-type/domain_edit.vue
@@ -0,0 +1,184 @@
+
+
+
+
+ 分类管理
+ 领域分类
+ {{isAdd? '新增' : '编辑'}}
+
+
+
+
+
+ 分类名称:
+
+
+
+ 描述:
+
+
+
+ 状态:
+
+
+
+
+
+
+ 保存
+ 取消
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/workbench/product-type/domain_list.vue b/src/pages/workbench/product-type/domain_list.vue
new file mode 100644
index 0000000000000000000000000000000000000000..31335120d8a64fc46c963312330b50d2c7dc845d
--- /dev/null
+++ b/src/pages/workbench/product-type/domain_list.vue
@@ -0,0 +1,390 @@
+
+
+
+
+ 分类管理
+ 领域分类
+
+
+
+
+
分类名称:
+
+
状态:
+
+
+
+
查询
+
重置
+
+
+
+
+
+
+ 删除后无法恢复,请确认是否删除
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/workbench/product-type/index.vue b/src/pages/workbench/product-type/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..13f54a489399d3f962c29722209e7ab4b495da16
--- /dev/null
+++ b/src/pages/workbench/product-type/index.vue
@@ -0,0 +1,78 @@
+
+
+
+
+
+
+
diff --git a/src/pages/workbench/yygl/deploy_app_detail.vue b/src/pages/workbench/yygl/deploy_app_detail.vue
index 93d3c8272871d46c88c6798b2ec1a34d3b259326..8600f75169b34b4e641b3cdfb05f5b0b29a93c99 100644
--- a/src/pages/workbench/yygl/deploy_app_detail.vue
+++ b/src/pages/workbench/yygl/deploy_app_detail.vue
@@ -203,9 +203,9 @@
- 服务领域:
+ 业务领域:
-
+
@@ -289,7 +289,7 @@ export default {
},
public_rules: {
area: [
- { required: true, message: "请选择服务领域", trigger: "change" }
+ { required: true, message: "请选择业务领域", trigger: "change" }
],
open: [{ required: true, message: "请选择开放程度", trigger: "change" }]
},
@@ -330,7 +330,7 @@ export default {
},
rules1: {
area: [
- { required: true, message: "请选择服务领域", trigger: "change" }
+ { required: true, message: "请选择业务领域", trigger: "change" }
],
resource: [
{ required: true, message: "请选择开放程度", trigger: "change" }
diff --git a/src/request/api.js b/src/request/api.js
index 79560debc1bfa26384b4369d7ec8de50b1e87f16..513dab912c5cba9efefd5a830901668c43335880 100644
--- a/src/request/api.js
+++ b/src/request/api.js
@@ -4,6 +4,7 @@ import user from '@/request/api/user';
import authority from '@/request/api/authority';
import general from '@/request/api/general';
import dataAnalysis from '@/request/api/data-analysis';
+import productType from '@/request/api/product-type'
export default {
workbench,
@@ -11,5 +12,6 @@ export default {
user,
authority,
general,
- dataAnalysis
+ dataAnalysis,
+ productType
}
\ No newline at end of file
diff --git a/src/request/api/product-type.js b/src/request/api/product-type.js
new file mode 100644
index 0000000000000000000000000000000000000000..2ecd20e0278b06245ac18b92e966a1a38f9314c7
--- /dev/null
+++ b/src/request/api/product-type.js
@@ -0,0 +1,49 @@
+import axios from '@/request/http'; // 导入http中创建的axios实例
+import qs from 'qs'; // 根据需求是否导入qs模块
+
+const productType = {
+ // 分类相关接口
+ getClassTypeList(params) {
+ return axios.get(`/apaas/service/v3/service/manager/servtypeList`,{params})
+ }, // 服务分类/服务类型列表
+ changeClassState(params) {
+ return axios.put(`/apaas/service/v3/service/manager/servtype/state`,params)
+ }, // 服务分类/服务类型状态改变
+ deleteClass(id) {
+ return axios.delete(`/apaas/service/v3/service/manager/servtype/${id}`)
+ }, // 删除服务分类/服务类型
+ addNewClass(params) {
+ return axios.post(`/apaas/service/v3/service/manager/servtype`,params)
+ }, // 新增服务分类/服务类型
+ editClass(params) {
+ return axios.put(`/apaas/service/v3/service/manager/servtype`,params)
+ }, // 编辑服务分类/服务类型
+ getClassDetail(id) {
+ return axios.get(`/apaas/service/v3/service/manager/servtype/${id}`)
+ }, // 获取服务分类/服务类型详情
+ getClassTypes() {
+ return axios.get(`/apaas/service/v3/service/manager/allServtypes?state=1`)
+ }, // 获取所有的产品分类
+
+ // 领域相关接口
+ getDomainTypeList(params) {
+ return axios.get(`/apaas/service/v3/service/manager/servareaList`,{params})
+ }, // 领域分类列表
+ changeDomainState(params) {
+ return axios.put(`/apaas/service/v3/service/manager/servarea/state`,params)
+ }, // 领域分类状态改变
+ deleteDomain(id) {
+ return axios.delete(`/apaas/service/v3/service/manager/servarea/${id}`)
+ }, // 删除领域分类
+ addNewDomain(params) {
+ return axios.post(`/apaas/service/v3/service/manager/servarea`,params)
+ }, // 新增领域分类
+ editDomain(params) {
+ return axios.put(`/apaas/service/v3/service/manager/servarea`,params)
+ }, // 编辑领域分类
+ getDomainDetail(id) {
+ return axios.get(`/apaas/service/v3/service/manager/servarea/${id}`)
+ }, // 获取领域分类详情
+}
+
+export default productType;
diff --git a/src/router/index.js b/src/router/index.js
index 36d60302576561a61ca4a9c17ee7b10140d4b990..77e0360db987e50c27150a561d4b8e96d964ec18 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -32,12 +32,12 @@ var router = new Router({
path: "/fwzc", // 服务注册
name: "fwzc",
redirect: "/fwzc/fwcs",
- component: () => import("@/pages/workbench/fwzc_fwcs"),
+ component: () => import("@/pages/workbench/fwzc_fwcs_new"),
children: [
{
path: "/fwzc/fwcs", // 服务注册/服务测试
name: "fwcs",
- component: () => import("@/pages/workbench/fwzc_fwcs"),
+ component: () => import("@/pages/workbench/fwzc_fwcs_new"),
},
],
}, // 工作台 - 服务注册模块
@@ -150,6 +150,44 @@ var router = new Router({
},
],
}, // 工作台 - 应用管理模块
+ {
+ path: "/productType",
+ name: "productType",
+ component: () => import("@/pages/workbench/product-type"),
+ redirect: "/productType/classList",
+ children: [
+ {
+ path: "/productType/classList",
+ name: "/productTypeClassList",
+ component: () => import("@/pages/workbench/product-type/class_list")
+ }, // 产品分类与产品类型
+ {
+ path: "/productType/classList/add",
+ name: "/productTypeClassListAdd",
+ component: () => import("@/pages/workbench/product-type/class_edit")
+ }, // 产品分类与产品类型新增
+ {
+ path: "/productType/classList/edit/:id",
+ name: "/productTypeClassListEdit",
+ component: () => import("@/pages/workbench/product-type/class_edit")
+ }, // 产品分类与产品类型编辑
+ {
+ path: "/productType/domainList",
+ name: "/productTypeDomainList",
+ component: () => import("@/pages/workbench/product-type/domain_list")
+ }, // 领域管理
+ {
+ path: "/productType/domainList/add",
+ name: "/productTypeDomainListAdd",
+ component: () => import("@/pages/workbench/product-type/domain_edit")
+ }, // 领域分类新增
+ {
+ path: "/productType/domainList/edit/:id",
+ name: "/productTypeDomainListEdit",
+ component: () => import("@/pages/workbench/product-type/domain_edit")
+ }, // 领域分类编辑
+ ],
+ }, // 分类管理
{
path: "/technical_support",
name: "technicalSupport",
@@ -281,55 +319,60 @@ var router = new Router({
{
path: "/shop", // 服务超市
name: "shop",
- redirect: "/shop/data_service_list/5",
+ redirect: "/shop/data_service_list",
component: () => import("@/pages/service_shop/shop"),
children: [
{
- path: "/shop/data_service_list/:id", // 数据服务列表页
+ path: "/shop/data_service_list/:id", // 应用商店列表页
name: "shopDataList",
- component: () => import("@/pages/service_shop/shop_list-new"),
+ component: () => import("@/pages/service_shop/shop_list_new"),
},
{
- path: "/shop/space_time_service_list/:id", // 时空服务列表页
- name: "shopSpaceTimeList",
- component: () => import("@/pages/service_shop/shop_list-new"),
- },
- {
- path: "/shop/video_service_list/:id", // 视频服务列表页
- name: "shopVideoList",
- component: () => import("@/pages/service_shop/shop_list-new"),
- },
- {
- path: "/shop/perception_service_list/:id", // 感知服务列表页
- name: "shopPerceptionList",
- component: () => import("@/pages/service_shop/shop_list-new"),
- },
- {
- path: "/shop/comprehensive_app_list/:id", // 综合应用列表页
- name: "shopComAppList",
- component: () => import("@/pages/service_shop/shop_list-new"),
- },
- {
- path: "/shop/cloud", // 云资源服务
- name: "shopCloud",
- component: () => import("@/pages/service_shop/shop_cloud-new"),
- },
+ path: "/shop/data_service_list", // 服务商店列表页
+ name: "shopDataList",
+ component: () => import("@/pages/service_shop/shop_list_new"),
+ },
+ // {
+ // path: "/shop/space_time_service_list/:id", // 时空服务列表页
+ // name: "shopSpaceTimeList",
+ // component: () => import("@/pages/service_shop/shop_list-new"),
+ // },
+ // {
+ // path: "/shop/video_service_list/:id", // 视频服务列表页
+ // name: "shopVideoList",
+ // component: () => import("@/pages/service_shop/shop_list-new"),
+ // },
+ // {
+ // path: "/shop/perception_service_list/:id", // 感知服务列表页
+ // name: "shopPerceptionList",
+ // component: () => import("@/pages/service_shop/shop_list-new"),
+ // },
+ // {
+ // path: "/shop/comprehensive_app_list/:id", // 综合应用列表页
+ // name: "shopComAppList",
+ // component: () => import("@/pages/service_shop/shop_list-new"),
+ // },
+ // {
+ // path: "/shop/cloud", // 云资源服务
+ // name: "shopCloud",
+ // component: () => import("@/pages/service_shop/shop_cloud-new"),
+ // },
{
path: "/shop/service_application_successfully", // 申请服务成功
name: "shopSuccess",
component: () =>
import("@/pages/service_shop/service_application_successfully"),
},
- {
- path: "/shop/app_store_list/:id", // 应用商店列表页
- name: "shopAppStoreList",
- component: () => import("@/pages/service_shop/shop_list-new"),
- },
- {
- path: "/shop/products_list/:id", // 应用商店列表页
- name: "shopAppStoreList",
- component: () => import("@/pages/service_shop/shop_list-new"),
- },
+ // {
+ // path: "/shop/app_store_list/:id", // 应用商店列表页
+ // name: "shopAppStoreList",
+ // component: () => import("@/pages/service_shop/shop_list_new"),
+ // },
+ // {
+ // path: "/shop/products_list/:id", // 应用商店列表页
+ // name: "shopAppStoreList",
+ // component: () => import("@/pages/service_shop/shop_list-new"),
+ // },
{
path: "/shop/shopping_cart", // 购物车页
name: "shoppingCart",
@@ -346,37 +389,37 @@ var router = new Router({
path: "/shop/sjfwDetail/:id",
name: "sjfwDetail",
component: () => import("@/pages/service_shop/sjfwDetail"),
- }, // 服务超市 - 数据服务详情
- {
- path: "/shop/skfwDetail/:id",
- name: "skfwDetail",
- component: () => import("@/pages/service_shop/skfwDetail"),
- }, // 服务超市 - 时空服务详情
- {
- path: "/shop/spfwDetail/:id",
- name: "spfwDetail",
- component: () => import("@/pages/service_shop/spfwDetail"),
- }, // 服务超市 - 视频服务详情
- {
- path: "/shop/gzfwDetail/:id",
- name: "sjfwDetail",
- component: () => import("@/pages/service_shop/gzfwDetail"),
- }, // 服务超市 - 感知服务详情
- {
- path: "/shop/zhfwDetail/:id",
- name: "zhfwDetail",
- component: () => import("@/pages/service_shop/zhfwDetail"),
- }, // 服务超市 - 综合应用详情
- {
- path: "/shop/yysdDetail/:id",
- name: "yysdDetail",
- component: () => import("@/pages/service_shop/yysdDetail"),
- }, // 服务超市 - 应用详情
- {
- path: "/shop/cpDetail/:id",
- name: "cpDetail",
- component: () => import("@/pages/service_shop/cpDetail"),
- }, // 服务超市 - 产品资源详情
+ }, // 服务超市 - 服务详情
+ // {
+ // path: "/shop/skfwDetail/:id",
+ // name: "skfwDetail",
+ // component: () => import("@/pages/service_shop/skfwDetail"),
+ // }, // 服务超市 - 时空服务详情
+ // {
+ // path: "/shop/spfwDetail/:id",
+ // name: "spfwDetail",
+ // component: () => import("@/pages/service_shop/spfwDetail"),
+ // }, // 服务超市 - 视频服务详情
+ // {
+ // path: "/shop/gzfwDetail/:id",
+ // name: "sjfwDetail",
+ // component: () => import("@/pages/service_shop/gzfwDetail"),
+ // }, // 服务超市 - 感知服务详情
+ // {
+ // path: "/shop/zhfwDetail/:id",
+ // name: "zhfwDetail",
+ // component: () => import("@/pages/service_shop/zhfwDetail"),
+ // }, // 服务超市 - 综合应用详情
+ // {
+ // path: "/shop/yysdDetail/:id",
+ // name: "yysdDetail",
+ // component: () => import("@/pages/service_shop/yysdDetail"),
+ // }, // 服务超市 - 应用详情
+ // {
+ // path: "/shop/cpDetail/:id",
+ // name: "cpDetail",
+ // component: () => import("@/pages/service_shop/cpDetail"),
+ // }, // 服务超市 - 产品资源详情
{
path: "/workplace",
name: "workPlace",
diff --git a/src/services/helper.js b/src/services/helper.js
index 5b100000fe90e238d9c9bff65ede06a77981d5e6..c850ab934ec18b715a4f6711c1c3e961f8caebdd 100644
--- a/src/services/helper.js
+++ b/src/services/helper.js
@@ -35,6 +35,25 @@ module.exports.dateFormat = function (fmt, timestamp) {
return fmt;
}
+module.exports.downloadFileFormatNew = function (fileUrl) {
+ /*
+ input: /apaas/static/docs/image/images/1234_qq234ewr123.png
+ output: 1234.png
+ */
+ if (fileUrl != "") {
+ var temp = fileUrl.split('/')[fileUrl.split('/').length - 1]
+ var name = temp.split('_')[0]
+ var type = temp.split('_')[temp.split('_').length - 1].split('.')[1]
+ if (temp.indexOf('_') == -1) {
+ return name
+ } else {
+ return name + '.' + type
+ }
+ } else {
+ return "";
+ }
+}
+
module.exports.dateStringTransform = function (date) {
/*
input: 2020-06-12T16:38:11+08:00
diff --git a/src/store/index.js b/src/store/index.js
index caa30e2239dbc87bb635634c45b45d45fc629740..c1c043a1d11d724cf0c5300d6c52b07627f196db 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -6,7 +6,8 @@ const store = new Vuex.Store({
state: {
role: 0, // 0:普通用户,1:组织管理员,2:超级管理员
userInfo: null, // 用户信息
- serviceShopMenu: "/shop/data_service_list/5", // 服务超市侧边栏
+ // serviceShopMenu: "/shop/data_service_list/5", // 服务超市侧边栏
+ serviceShopMenu: null, // 服务超市侧边栏
fwglNav: [
["注册发布的服务", "申请的服务", "云资源服务"], // 普通用户
["组织服务管理", "服务审批管理", "云资源管理"], // 组织管理员