Commit f98c6886 authored by 刘殿昕's avatar 刘殿昕

应用评价+流程最大高度

parent 22da9577
...@@ -393,12 +393,12 @@ export default { ...@@ -393,12 +393,12 @@ export default {
}); });
} else if (this.cellItem.order_type == 2) { } else if (this.cellItem.order_type == 2) {
let query = { let query = {
app: this.cellItem.app_id, app_id: this.cellItem.app_id,
content: this.textarea, content: this.textarea,
score: this.serviceRate, score: this.serviceRate,
apply_id: this.cellItem.apply_id, apply_id: this.cellItem.apply_id,
}; };
this.$api.user.addServiceEvaluation(query).then((response) => { this.$api.user.addAppEvaluation(query).then((response) => {
if (response.data.success == 1) { if (response.data.success == 1) {
this.$message({ this.$message({
message: "评价订单成功", message: "评价订单成功",
......
<template> <template>
<div class="workflows-view" ref="flowContainer" :style="{ zoom: zoom }"> <div class="workflows-view" ref="flowContainer" :style="{ zoom: zoom, height: Number(max_height + 180) + 'px' }">
<super-flow <super-flow
ref="superFlow" ref="superFlow"
:node-list="nodeList" :node-list="nodeList"
...@@ -86,6 +86,7 @@ export default { ...@@ -86,6 +86,7 @@ export default {
origin: [], origin: [],
nodeList: [], nodeList: [],
linkList: [], linkList: [],
max_height: 650,
}; };
}, },
methods: { methods: {
...@@ -120,10 +121,17 @@ export default { ...@@ -120,10 +121,17 @@ export default {
...node, ...node,
}; };
} }
});
});
nodeList.forEach(item => {
// console.log(item.coordinate)
if (item.coordinate[1] > this.max_height) {
this.max_height = item.coordinate[1]
}
});
this.nodeList = nodeList; this.nodeList = nodeList;
this.linkList = linkList; this.linkList = linkList;
console.log(this.max_height)
}) })
.catch(function (error) { .catch(function (error) {
console.log(error); console.log(error);
...@@ -157,7 +165,7 @@ export default { ...@@ -157,7 +165,7 @@ export default {
<style scoped> <style scoped>
.workflows-view { .workflows-view {
width: 100%; width: 100%;
height: 830px; /* height: 830px; */
background-color: #fbfcfe; background-color: #fbfcfe;
border-radius: 10px; border-radius: 10px;
margin-top: 10px; margin-top: 10px;
......
...@@ -655,12 +655,12 @@ export default { ...@@ -655,12 +655,12 @@ export default {
}); });
} else if (this.orderDetail.order_type == 2) { } else if (this.orderDetail.order_type == 2) {
let query = { let query = {
app: this.orderDetail.app_id, app_id: this.orderDetail.app_id,
content: this.textarea, content: this.textarea,
score: this.serviceRate, score: this.serviceRate,
apply_id: this.orderDetail.apply_id, apply_id: this.orderDetail.apply_id,
}; };
this.$api.user.addServiceEvaluation(query).then((response) => { this.$api.user.addAppEvaluation(query).then((response) => {
if (response.data.success == 1) { if (response.data.success == 1) {
this.$message({ this.$message({
message: "评价订单成功", message: "评价订单成功",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment