-
权限管理 / 组织用户 / 用户管理
-
-
-
-
-
+
+
权限管理 / 组织用户 / 用户管理
+
+
+
+
+
diff --git a/src/pages/authority/organizationedit.vue b/src/pages/authority/organizationedit.vue
index af7b0690d44d5f4241a314c9267c826468bf7524..f0c86eb35f36dc5c29939b6fd24a47f78fa160e0 100644
--- a/src/pages/authority/organizationedit.vue
+++ b/src/pages/authority/organizationedit.vue
@@ -155,6 +155,7 @@ export default {
console.log(this.$route);
if(this.$route.path.indexOf('add')!==-1){
this.edit_flag = 0
+ this.get_now_user()
}
if(this.$route.path.indexOf('edit')!==-1){
this.edit_flag = 1
@@ -165,6 +166,21 @@ export default {
this.get_user()
}
},
+ get_now_user(){
+ this.$http
+ .get(`/apaas/backmgt/user/getCurrentUser`)
+ .then(response => {
+ console.log(response);
+ let data = response.data.data
+ this.form={
+ person:data.user_name,
+ date:data.create_date.replace('T',' ').replace('Z',' '),
+ }
+ })
+ .catch((response)=> {
+
+ });
+ },
get_user(){
this.$http
.get(`/apaas/backmgt/department/detail?department_id=${this.$route.params.id}`)
diff --git a/src/pages/authority/organizationuser.vue b/src/pages/authority/organizationuser.vue
index a2c23830e71f780f94c259055f2abefd6ce1af7d..d152bbdedaf21b5d632ea953b73b50038c529753 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 6a626b495633d03d6b59ae0635055e6c16f4e94a..bcda86b8b51861c36d8d56d5cc2652c5f03b9de6 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 6159887926a68f659005249195826341d3527708..247a03104f5ce1103fefd27bbfb95f36c0d64bfc 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) {
+
+ });
+ },
}
};