From 27c2fa22c25a93307175bff2d12b0d7baf8c3cb5 Mon Sep 17 00:00:00 2001 From: zhangjun1 Date: Thu, 11 Jun 2020 10:57:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=AD=E7=89=A9=E8=BD=A6=E7=94=B3=E8=AF=B7?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shop-car-apply/apply_service_state.vue | 19 +- src/pages/authority/organizationdetail.vue | 508 +++++++++--------- src/pages/authority/organizationuser.vue | 4 +- src/pages/service_shop/shop_car_apply.vue | 72 ++- .../fwgl/approval_service_detail.vue | 17 +- 5 files changed, 355 insertions(+), 265 deletions(-) diff --git a/src/components/shop-car-apply/apply_service_state.vue b/src/components/shop-car-apply/apply_service_state.vue index 26ed19d..fc6fa71 100644 --- a/src/components/shop-car-apply/apply_service_state.vue +++ b/src/components/shop-car-apply/apply_service_state.vue @@ -27,7 +27,11 @@ backgroundColor: 'rgba(255, 239, 239, 1)', border: 'solid 1px rgba(215, 164, 169, 1)', } - : {} + : { + color: '#ef9433', + backgroundColor: '#fffee8', + border: 'solid 1px #e4c884', + } " >{{ item.tip }} @@ -58,16 +62,17 @@ placeholder="请填写申请服务的应用场景" > -

+

选择需要申请的数据项:

@@ -116,9 +121,13 @@ export default { }, watch: {}, computed: {}, - created() {}, + created() { + + }, mounted() {}, - methods: {}, + methods: { + + }, }; diff --git a/src/pages/authority/organizationdetail.vue b/src/pages/authority/organizationdetail.vue index b286a21..0a26313 100644 --- a/src/pages/authority/organizationdetail.vue +++ b/src/pages/authority/organizationdetail.vue @@ -1,293 +1,297 @@ diff --git a/src/pages/authority/organizationuser.vue b/src/pages/authority/organizationuser.vue index a2c2383..d152bbd 100644 --- a/src/pages/authority/organizationuser.vue +++ b/src/pages/authority/organizationuser.vue @@ -257,9 +257,7 @@ export default { desc:data.description, person:data.create_user, date:data.create_date, - ip:data.ip_whitelist.map((v,k)=>{ - return v - }).join(';'), + ip:data.ip_whitelist, domain:data.domain_name } }) diff --git a/src/pages/service_shop/shop_car_apply.vue b/src/pages/service_shop/shop_car_apply.vue index 6a626b4..bcda86b 100644 --- a/src/pages/service_shop/shop_car_apply.vue +++ b/src/pages/service_shop/shop_car_apply.vue @@ -84,6 +84,21 @@ export default { tableurl:'applydata', }, ], + share_arr:[ + '', + { + name:'共享', + val:'share' + }, + { + name:'受限', + val:'limit' + }, + { + name:'敏感', + val:'mg' + } + ], }; }, @@ -94,13 +109,64 @@ export default { }, created() { - + this.get_car_list() }, mounted() { - + }, methods: { - + get_car_list(){ + this.service_arr = [] + this.$http + .get(`/apaas/serviceapp/v3/shopcart/list`) + .then(response => { + console.log(response); + let data = response.data.data.valid + data.forEach(e => { + this.service_arr.push({}) + let l = this.service_arr.length -1 + if(e.app_id){ + //应用 + this.service_arr[l]['img'] = e.application.logo + this.service_arr[l]['title'] = e.application.app_name + this.service_arr[l]['type'] = e.application.type_name + this.service_arr[l]['auth'] = e.application.org_name + this.service_arr[l]['size'] = e.app_apply.apply_type==0?'部署':'开发' + this.service_arr[l]['applytype'] = '申请方式:'+e.app_apply.duration_unit==1?'月':'年' + this.service_arr[l]['num'] = e.app_apply.duration + this.service_arr[l]['isMg'] = false + this.service_arr[l]['isapp'] = true + }else{ + //服务 + this.service_arr[l]['img'] = e.service.cover + this.service_arr[l]['title'] = e.service.name + this.service_arr[l]['type'] = e.service.data_service_type1_name + this.service_arr[l]['tips'] = [ + { + tip:this.share_arr[e.service.openness].name, + type:this.share_arr[e.service.openness].val + } + ] + this.service_arr[l]['auth'] = e.service.organization_name + this.service_arr[l]['size'] = '规格:' + e.service.request_spcs_info.forEach(el => { + this.service_arr[l]['size'] = this.service_arr[l]['size'] + '访问次数:'+el.count+',访问量:'+el.pv+',' + }); + this.service_arr[l]['applytype'] = '申请方式:'+(e.service_apply.duration_unit==1?'月':'年') + this.service_arr[l]['num'] = e.service_apply.duration + this.service_arr[l]['isMg'] = e.service.openness == 3 + this.service_arr[l]['data'] = JSON.parse(e.service.res_fields) + console.log(this.service_arr[l]['data']); + this.service_arr[l]['isapp'] = false + } + }); + // this.service_arr = + }) + .catch((response)=> { + + }); + }, + }, }; diff --git a/src/pages/workbench/fwgl/approval_service_detail.vue b/src/pages/workbench/fwgl/approval_service_detail.vue index 6159887..247a031 100644 --- a/src/pages/workbench/fwgl/approval_service_detail.vue +++ b/src/pages/workbench/fwgl/approval_service_detail.vue @@ -256,7 +256,9 @@ export default { }, watch: {}, computed: {}, - created() {}, + created() { + this.get_service_info() + }, mounted() {}, methods: { onSubmit(formName){ @@ -271,7 +273,18 @@ export default { }, download(val){ console.log(val); - } + }, + get_service_info(){ + this.$http + .get(`/apaas/service/v3/service/apply/service?apply_id=${this.$route.params.id}`) + .then((response) => { + console.log(response); + + }) + .catch(function(response) { + + }); + }, } }; -- 2.26.0