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

应用评价+流程最大高度

parent 22da9577
......@@ -393,12 +393,12 @@ export default {
});
} else if (this.cellItem.order_type == 2) {
let query = {
app: this.cellItem.app_id,
app_id: this.cellItem.app_id,
content: this.textarea,
score: this.serviceRate,
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) {
this.$message({
message: "评价订单成功",
......
<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
ref="superFlow"
:node-list="nodeList"
......@@ -86,6 +86,7 @@ export default {
origin: [],
nodeList: [],
linkList: [],
max_height: 650,
};
},
methods: {
......@@ -120,10 +121,17 @@ export default {
...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.linkList = linkList;
console.log(this.max_height)
})
.catch(function (error) {
console.log(error);
......@@ -157,7 +165,7 @@ export default {
<style scoped>
.workflows-view {
width: 100%;
height: 830px;
/* height: 830px; */
background-color: #fbfcfe;
border-radius: 10px;
margin-top: 10px;
......
......@@ -655,12 +655,12 @@ export default {
});
} else if (this.orderDetail.order_type == 2) {
let query = {
app: this.orderDetail.app_id,
app_id: this.orderDetail.app_id,
content: this.textarea,
score: this.serviceRate,
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) {
this.$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