Commit 2677c19e authored by 胡占生's avatar 胡占生 🇨🇳

fix: 点位管理,增加绘图点位等比例增加

parent d433a898
<template>
<el-dialog v-model="algorithmManage.visible.value" width="70%" append-to-body>
<el-dialog v-model="algorithmManage.visible.value" width="1100px" append-to-body>
<template v-slot:header>
<div
class="cleartitle"
......@@ -139,7 +139,7 @@
type="primary"
@click="beginDraw(scope.row)"
v-hasPermi="['system:post:edit']"
>{{graph[scope.row.id].length >0?'':'' }}绘制</el-button
>{{(graph[scope.row.id]&&graph[scope.row.id].length >0)?'':'' }}绘制</el-button
>
<el-button
link
......@@ -674,9 +674,11 @@ function pointDraw(e) {
point: "",
title: draw.value.algorithmName,
start: [e.offsetX, e.offsetY],
realPoint:'',
};
}
graph[drawId.value][drawIndex.value].point += `${e.offsetX},${e.offsetY} `;
graph[drawId.value][drawIndex.value].realPoint += `${e.offsetX*4},${e.offsetY*4} `;
}
</script>
......@@ -716,7 +718,8 @@ function pointDraw(e) {
gap: 20px;
.right-draw-content {
position: relative;
height: 500px;
width: 480px;
height: 270px;
svg {
position: absolute;
left: 0;
......
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