|
|
@ -28,6 +28,15 @@ |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
<div style="margin-top: 10px;"> |
|
|
|
此电梯对重块总数为 |
|
|
|
<el-input v-model="ysjlParam.duizhongkuaishu" style="width: 100px" /> |
|
|
|
块,对重块总高度为 |
|
|
|
<el-input v-model="ysjlParam.duizhongkuaigaodu" style="width: 100px" /> |
|
|
|
m,电梯平衡系数为 |
|
|
|
<el-input v-model="ysjlParam.pinghengxishu" style="width: 100px" /> |
|
|
|
%。 |
|
|
|
</div> |
|
|
|
<div id="chart" style="width:600px;height:500px;margin-top:50px" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
@ -49,7 +58,11 @@ export default { |
|
|
|
}, |
|
|
|
pic: { |
|
|
|
type: String, |
|
|
|
default: '' |
|
|
|
required: true |
|
|
|
}, |
|
|
|
ysjlParam: { |
|
|
|
type: Object, |
|
|
|
required: true |
|
|
|
} |
|
|
|
}, |
|
|
|
data() { |
|
|
@ -141,8 +154,7 @@ export default { |
|
|
|
phxs = phxsTemp |
|
|
|
} |
|
|
|
} |
|
|
|
console.log('平衡系数', phxs) |
|
|
|
this.$emit('loadPhxs', phxs) |
|
|
|
this.$set(this.ysjlParam, 'pinghengxishu', phxs) |
|
|
|
}, |
|
|
|
crossPointX(line1x1, line1y1, line1x2, line1y2, line2x1, line2y1, line2x2, line2y2) { |
|
|
|
return (line1x1 * (line1y2 - line1y1) / (line1x2 - line1x1) - line2x1 * (line2y2 - line2y1) / (line2x2 - line2x1) + line2y1 - line1y1) / |
|
|
|