diff --git a/src/pages/workbench/fwgl/apply_service_detail.vue b/src/pages/workbench/fwgl/apply_service_detail.vue
index 69964c5febb11ce0d376c3bf27346d44c31f4a21..d60203d653bf427d1baa6135196dd51c7f289c22 100644
--- a/src/pages/workbench/fwgl/apply_service_detail.vue
+++ b/src/pages/workbench/fwgl/apply_service_detail.vue
@@ -621,7 +621,7 @@ export default {
},
{
title: "支付总价:",
- info: "2000",
+ info: "0",
},
{
title: "审批信息",
@@ -729,6 +729,19 @@ export default {
this.$set(this.service_header_arr["second"][0], "text", data.req_url);
this.$set(this.service_header_arr, "url", data.cover);
+ //判断是否是服务注册出来的流程服务
+ if(data.data_service_type2 == 24&&data.workflows_id==0){
+ this.process_in_up = true
+ }else{
+ this.process_in_up = false
+ }
+
+ if(data.service_data_type_1 == 10){
+ this.perception_in = true
+ }else{
+ this.perception_in = false
+ }
+
if(this.process_in_up){
var temp_sj = this.service_header_arr.first.pop()
this.service_header_arr.second = []
@@ -835,6 +848,11 @@ export default {
"info",
data.service_apply_info.apply_time.replace("T", " ").split("+")[0]
);
+ this.$set(
+ this.apply_arr[9],
+ "info",
+ data.service_apply_info.total_money
+ );
this.res_table_arr = JSON.parse(
data.service_apply_info.res_fields || "[]"
);
diff --git a/src/pages/workbench/fwgl/approval_service_detail.vue b/src/pages/workbench/fwgl/approval_service_detail.vue
index 36e265937eb238761e3625d9b4ab2210a38f0573..9f3a77cdeae91e1ee1c35fded8ccca5e654c0466 100644
--- a/src/pages/workbench/fwgl/approval_service_detail.vue
+++ b/src/pages/workbench/fwgl/approval_service_detail.vue
@@ -265,7 +265,7 @@ export default {
},
{
title: "总价:",
- info: "2000",
+ info: "",
},
]
};
@@ -365,6 +365,7 @@ export default {
this.$set(this.list_arr[6], "url", data.service_apply_info.apply_file);
this.$set(this.list_arr[8], "info", data.service_apply_info.duration+(data.service_apply_info.duration_unit==1?'月':'年'));
this.$set(this.list_arr[9], "info", "访问次数:"+(data.service_apply_info.request_spcs&&data.service_apply_info.request_spcs.pv||'-')+"次/日 访问量:"+(data.service_apply_info.request_spcs&&data.service_apply_info.request_spcs.count||'-')+"次/日");
+ this.$set(this.list_arr[10], "info", data.service_apply_info.total_money);
this.id = data.service_apply_info.id
if(data.service_apply_info.approval_status!==0){
this.servicead_arr[this.now_user].splice(1,1)
diff --git a/src/pages/workbench/fwgl/serviceDetail.vue b/src/pages/workbench/fwgl/serviceDetail.vue
index 65204ffa6d7e89f63d17087be2534ac5e7923ca6..fe2f3188de495d33c1e46235b98d5fc8b14ba9a5 100644
--- a/src/pages/workbench/fwgl/serviceDetail.vue
+++ b/src/pages/workbench/fwgl/serviceDetail.vue
@@ -32,7 +32,7 @@
流程服务接口说明见文档中心流程服务接口文档
-
+
-
+
服务运行概况
-
+
@@ -344,6 +345,7 @@ export default {
pageSizes: [10, 50, 100],
responseParamUrl: "",
codeExampleUrl: "",
+ port_select_server:'',
yx_state: {
state: "",
averageTime: "",
@@ -360,20 +362,20 @@ export default {
res_gz_solt_data:[],
service_gz_process_arr:[],
trans_all_obj:{
- all:1123,
- times:13215,
- month:1312,
+ all:0,
+ times:0,
+ month:0,
},
trans_log_arr:[
{
- title: "应用交易概览",
+ title: "服务交易概览",
info: "",
prop:'title',
type: "solt",
solt_name: "trans_all",
},
{
- title: "应用交易记录",
+ title: "服务交易记录",
info: "",
prop:'title',
type: "solt",
@@ -382,19 +384,19 @@ export default {
],
trans_log_header:[
{
- prop: "dydw",
+ prop: "department_name",
label: "申请单位",
minWidth: "20%",
align: "left",
},
{
- prop: "dyyw",
+ prop: "system_name",
label: "业务系统",
minWidth: "20%",
align: "left",
},
{
- prop: "sqr",
+ prop: "apply_username",
label: "申请人",
minWidth: "20%",
align: "center",
@@ -406,35 +408,25 @@ export default {
align: "left",
},
{
- prop: "sqsc",
+ prop: "duration_name",
label: "购买时长",
width: "110px",
align: "center",
},
{
- prop: "price",
+ prop: "total_money",
label: "订单总价",
width: "150px",
align: "center",
},
{
- prop: "sqsj",
+ prop: "trade_time",
label: "交易时间",
width: "160px",
align: "center",
},
],
- trans_log_data:[
- {
- dydw:'机关事务局',
- dyyw:'业务系统',
- sqr:'超管用户',
- gg:'申请获取应用镜像部署权限(3000/月)',
- sqsc:'1',
- price:'3000金币',
- sqsj:'2020-10-12 10:30:52'
- }
- ],
+ trans_log_data:[],
res_solt_header_arr: [
{
prop: "name",
@@ -460,7 +452,7 @@ export default {
align: "left",
},
{
- prop: "is_must",
+ prop: "example",
label: "字段示例数值",
align: "center",
width: 240,
@@ -491,7 +483,7 @@ export default {
align: "left",
},
{
- prop: "is_must",
+ prop: "example",
label: "字段示例数值",
align: "center",
width: 240,
@@ -849,25 +841,25 @@ export default {
align: "center",
},
{
- prop: "type",
+ prop: "spcs_type",
label: "规格类型",
minWidth: "33.33%",
align: "center",
},
{
- prop: "pv",
+ prop: "gg",
label: "规格",
minWidth: "33.33%",
align: "center",
},
{
- prop: "pv",
+ prop: "time",
label: "购买时长",
width: "200px",
align: "center",
},
{
- prop: "des",
+ prop: "descript",
label: "规格说明",
minWidth: "33.33%",
align: "left",
@@ -875,7 +867,7 @@ export default {
],
edit_size_arr: [
{
- prop: "type",
+ prop: "spcs_type",
label: '规格类型
',
width: "180px",
align: "center",
@@ -892,7 +884,7 @@ export default {
]
},
{
- prop: "count",
+ prop: "money",
label: "价格/金币",
width: "200px",
align: "center",
@@ -901,7 +893,7 @@ export default {
{
prop: "pv",
label: '调用次数
',
- width: "200px",
+ width: "150px",
align: "center",
type: "input",
},
@@ -918,7 +910,7 @@ export default {
align: "left"
},
{
- prop: "des",
+ prop: "descript",
label: "规格说明",
minWidth: "33.33%",
align: "left",
@@ -976,8 +968,8 @@ export default {
process_in_up_arr:[
{
title: "接口文档:",
- info: "接口文档示例.docx",
- url: "11111",
+ info: "",
+ url: "",
type: "down",
},
{
@@ -990,11 +982,11 @@ export default {
port_solt_arr:[
{
title: "服务地址:",
- info: "12312312",
+ info: "",
},
{
title: "请求方式:",
- info: "12123",
+ info: "",
},
{
title: "编码格式:",
@@ -1059,19 +1051,7 @@ export default {
solt_name: "response_code",
},
],
- port_options:[
- {
- label:'接口1',
- value:'qweqweqsdfsdf',
- able:true,
- },
- {
- label:'接口2',
- value:'qweqweqsdfsdfwer2w23',
- able:false,
- },
-
- ],
+ port_options:[],
service_type_arr: [
"数据服务",
"时空服务",
@@ -1136,6 +1116,11 @@ export default {
created() {
if (this.userInfo) {
this.now_user = this.level;
+ if(this.now_user==1||this.now_user==2){
+ this.in_origin_ser = true
+ }else{
+ this.in_origin_ser = false
+ }
} else {
this.getCurrentUser();
}
@@ -1145,6 +1130,19 @@ export default {
},
mounted() {},
methods: {
+ change_port(val){
+ this.port_options.forEach(e => {
+ if(e.value == val){
+ this.$set(this.port_solt_arr[0],'info',e.value)
+ this.$set(this.port_solt_arr[1],'info',e.req_type)
+ this.$set(this.port_solt_arr[2],'info',e.encode_method)
+ this.req_solt_data = e.req_fields
+ this.res_solt_data = e.res_fields
+ this.req_solt_code_arr = e.req_fields_example
+ this.res_solt_code_arr = e.res_fields_example
+ }
+ });
+ },
changePageSize(value) {
this.pageSize = value;
this.currentPage = 1;
@@ -1153,7 +1151,7 @@ export default {
transchangePageSize(value) {
this.transpageSize = value;
this.transcurrentPage = 1;
-
+ this.get_trans_data()
},
changeCurrentPage(value) {
this.currentPage = value;
@@ -1161,7 +1159,7 @@ export default {
},
transchangeCurrentPage(value) {
this.transcurrentPage = value;
-
+ this.get_trans_data()
},
iconChange (val) {
// el-select实际上是两层div包裹的input
@@ -1186,6 +1184,8 @@ export default {
inputDom.setAttribute('style', 'padding-left: 60px;');
// 将添加的标签放到input前面
dom.children[0].insertBefore(svgDom, inputDom);
+
+ this.getData()
},
get_use_list() {
this.service_use_arr = [];
@@ -1211,6 +1211,11 @@ export default {
? `访问次数:${e.request_spcs.count}/日 访问量:${e.request_spcs.pv}/日`
: "",
sqsc: e.duration + ["", "个月", "年"][e.duration_unit || 0],
+ jkmc:'',
+ jkdz:'',
+ state:'',
+ time:'',
+ count:''
});
});
}
@@ -1229,6 +1234,11 @@ export default {
if (data.success == 1) {
this.$store.commit("userInfofun", data.data);
this.now_user = this.level;
+ if(this.now_user==1||this.now_user==2){
+ this.in_origin_ser = true
+ }else{
+ this.in_origin_ser = false
+ }
console.log(this.level);
} else {
console.log(data.errMsg);
@@ -1241,6 +1251,29 @@ export default {
this.datas = response.data.elements;
});
},
+ get_trans_data(){
+ this.$http
+ .get(
+ `/apaas/service/v3/service/manager/service/trade/list?page=${this.currentPage}&size=${this.pageSize}&service_id=${this.$route.params.id}`
+ ).then(res=>{
+ console.log(res);
+ // listTotal: 0,
+ if(res.data.success){
+ this.listTotal = res.data.total
+ var temp = res.data.data||[]
+ temp.forEach(e => {
+ if(e.spcs_type==1){
+ e.duration_name = '不限时长'
+ e.gg = `${e.spcs_count}次/ ${e.single_money} 元`
+ }else if(e.spcs_type==2){
+ e.duration_name = e.duration+'月'
+ e.gg = `${e.single_money} 元/月`
+ }
+ });
+ this.trans_log_data = temp
+ }
+ })
+ },
getServiceInfo() {
this.$http
.get(
@@ -1250,7 +1283,7 @@ export default {
.then((response) => {
if (response.data.success === 1) {
let data = response.data.data;
- this.namespace = data.namespace;
+ this.namespace = data.urls[0].namespace;
if(data.workflows_id){
this.workflows_id = data.workflows_id
}else{
@@ -1303,8 +1336,55 @@ export default {
"fixedurl",
this.$route.path.replace("servicedetail", "serviceedit")
);
+ this.trans_all_obj={
+ all:data.sale_total_money,
+ times:data.sale_total,
+ month:data.sale_month_total,
+ }
+ //判断是否是服务注册出来的流程服务
+ if(data.data_service_type2 == 24&&data.workflows_id==0){
+ this.process_in_up = true
+ this.$set(this.process_in_up_arr[0],'info',data.doc_file.split('/')[data.doc_file.split('/').length-1])
+ this.$set(this.process_in_up_arr[0],'url',data.doc_file)
+ var temp_port_arr = []
+ data.urls.forEach(e => {
+ temp_port_arr.push({
+ label:e.req_name,
+ value:e.req_url,
+ able:e.state==-1?false:true,
+ ...e
+ })
+ });
+ this.port_options = temp_port_arr
+ if(this.port_options[0]){
+ this.port_select = this.port_options[0].value
+ this.$set(this.port_solt_arr[0],'info',this.port_options[0].value)
+ this.$set(this.port_solt_arr[1],'info',this.port_options[0].req_type)
+ this.$set(this.port_solt_arr[2],'info',this.port_options[0].encode_method)
+ this.req_solt_data = this.port_options[0].req_fields
+ this.res_solt_data = this.port_options[0].res_fields
+ this.req_solt_code_arr = this.port_options[0].req_fields_example
+ this.res_solt_code_arr = this.port_options[0].res_fields_example
+ }
+ }else{
+ this.process_in_up = false
+ }
+ if(data.service_data_type_1 == 10){
+ this.perception_in = true
+ this.$set(this.gz_solt_arr[0],'info',data.urls[0].req_url)
+ this.$set(this.gz_solt_arr[1],'info',data.urls[0].encode_method)
+ this.req_gz_solt_data = data.urls[0].req_fields
+ this.res_gz_solt_data = data.urls[0].res_fields
+ this.req_solt_code_arr = data.urls[0].req_fields_example
+ this.res_solt_code_arr = data.urls[0].res_fields_example
+
+ }else{
+ this.perception_in = false
+ }
+ console.log(this.process_in_up,this.perception_in);
if(this.process_in_up){
+ this.get_trans_data()
var temp_sj = this.service_header_arr.first.pop()
this.service_header_arr.second = []
this.service_header_arr.second.push(temp_sj)
@@ -1353,15 +1433,23 @@ export default {
this.$set(this.servicead_arr[5], "info", "无响应示例");
}
// 接口详情信息 end
-
- this.service_size_data = data.request_spcs_info;
- this.size_arr_down = data.request_spcs_info;
- this.buy_type = data.request_spcs_info[0].type;
- if (this.buy_type == 3) {
- this.buy_style = [1, 2];
- } else {
- this.buy_style = [this.buy_type];
- }
+ var temp = data.request_spcs_info||[]
+ temp.forEach((e,idx) => {
+ e.index = idx+1
+ if(e.spcs_type==1){
+ e.gg = e.money+'/'+e.spcs_count
+ e.time = '不限时长'
+ e.pv = e.spcs_count
+ e.d_price = e.money
+ }else if(e.spcs_type==1){
+ e.gg = e.money+'/月'
+ e.time = '1个月'
+ e.pv = '不限次数'
+ e.d_price = '-'
+ }
+ });
+ this.service_size_data =temp;
+ this.size_arr_down =temp;
} else {
this.$message({
message: response.data.errMsg,
@@ -1374,24 +1462,24 @@ export default {
now_size_data(val) {
console.log(val);
val.forEach(e => {
- if(e.type==1){
+ if(e.spcs_type==1){
if(e.pv=='不限次数'){
e.pv = ''
e.time = ''
- e.des = ''
- e.count = ''
+ e.descript = ''
+ e.money = ''
e.d_price = ''
}
e.time = '不限时长'
- e.des = '提供'+e.pv+'次服务,时长不限'
- if(e.count&&e.pv){
- e.d_price = parseInt(e.count/e.pv)+'金币/次'
+ e.descript = '提供'+e.pv+'次服务,时长不限'
+ if(e.money&&e.pv){
+ e.d_price = parseInt(e.money/e.pv)+'金币/次'
}
- }else if(e.type==2){
+ }else if(e.spcs_type==2){
e.pv = '不限次数'
e.d_price = '-'
e.time = '按月'
- e.des = '每月不限调用次数'
+ e.descript = '每月不限调用次数'
}
});
@@ -1406,38 +1494,41 @@ export default {
.then((response) => {
let data = response.data.data;
console.log(data);
- this.service_size_data = data.data;
- this.buy_type = data.data[0].type;
- if (this.buy_type == 3) {
- this.buy_style = [1, 2];
- } else {
- this.buy_style = [this.buy_type];
- }
+ var temp = data.data||[]
+ temp.forEach((e,idx) => {
+ e.index = idx+1
+ if(e.spcs_type==1){
+ e.gg = e.money+'/'+e.spcs_count
+ e.time = '不限时长'
+ e.pv = e.spcs_count
+ e.d_price = ''
+ }else if(e.spcs_type==1){
+ e.gg = e.money+'/月'
+ e.time = '1个月'
+ e.pv = '不限次数'
+ e.d_price = '-'
+ }
+ });
+ this.service_size_data = temp;
})
.catch(function(response) {});
},
change_service_size() {
let temp = [];
+
this.size_arr_down.forEach((e) => {
- if (e.pv && e.count) {
- if (e.flag) {
- e.id = 0;
- }
- if (this.buy_style.length == 0) {
- this.$message.error("请选择申请时长");
- return;
- } else if (this.buy_style.length == 2) {
- e.type = 3;
- } else {
- e.type = this.buy_style[0];
- }
+ if (e.pv && e.money&&e.spcs_type) {
+ e.id = 0
delete e.undefined;
delete e.flag;
- e.pv = parseInt(e.pv);
- e.count = parseInt(e.count);
+ e.spcs_count = e.spcs_type==1?parseInt(e.pv):0;
+ e.money = parseFloat(e.money);
+ e.duration=1
+ e.duration_unit=1
temp.push(e);
}
});
+ console.log(this.size_arr_down);
this.$http
.post("/apaas/service/v3/service/manager/request/spcs/save", {
service_id: parseInt(this.$route.params.id),
@@ -1613,6 +1704,7 @@ export default {
text-align: center;
cursor: pointer;
margin-bottom: 30px;
+ margin-top: 20px;
}
.savebtn {
margin-top: 50px;
diff --git a/src/pages/workbench/workPlace.vue b/src/pages/workbench/workPlace.vue
index 436e3237aab7795669d817861c869f5681947ce3..57d66487920c669ddd4732bc1063ba2c426689f1 100644
--- a/src/pages/workbench/workPlace.vue
+++ b/src/pages/workbench/workPlace.vue
@@ -1042,7 +1042,7 @@ export default {
pic: require("@/assets/imgs/home_tool_ic_shuju.png"),
text: "数据采集管理",
role: 2,
- url: "/data_acquisition/file"
+ url: "https://apaas3.wodcloud.com/sjcj/ui/#/data_acquisition/file"
},
{
pic: require("@/assets/imgs/home_tool_ic_message.png"),
@@ -1441,7 +1441,11 @@ export default {
},
manage_func(n) {
console.log(n);
- this.$router.push(n);
+ if(n.indexOf('http')!==-1){
+ window.location.href = n
+ }else{
+ this.$router.push(n);
+ }
},
init_health(num) {
var options = {