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

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

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