From a7a016dc0c49eaee593b9054238ba66f1f03dbf3 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Tue, 23 Feb 2021 10:20:35 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9=20=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E6=A1=86=E8=A2=AB=E9=81=AE=E7=9B=96=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/common/language/cn.js | 7 +- .../src/components/common/language/en.js | 9 ++- .../common/project/L5/CanvasProps.vue | 34 ++++++---- .../common/project/L5/topologyTopTool.vue | 19 ++++-- .../components/common/project/topologyL5.vue | 66 +++++++++++++------ 5 files changed, 92 insertions(+), 43 deletions(-) diff --git a/nezha-fronted/src/components/common/language/cn.js b/nezha-fronted/src/components/common/language/cn.js index a3cb0065a..d65d0c93f 100644 --- a/nezha-fronted/src/components/common/language/cn.js +++ b/nezha-fronted/src/components/common/language/cn.js @@ -978,7 +978,6 @@ const cn = { description: "描述" }, topology:{ - line:'线', module:'模块', add:'添加', selTwoNode:'请选择两个模块', @@ -1008,7 +1007,6 @@ const cn = { alert:'告警信息', lineType:'线型', straight:'直线', - curve:'曲线', upload:'上传文件', requiredName:'名称不能为空', imgFormat:'上传图片只能是 JPG/png 格式!', @@ -1030,6 +1028,7 @@ const cn = { bac:'背景', bacImage:'背景图片', defaultLineWidth:'默认线宽', + defaultLineType:'默认连线类型', lineWidth:'线条宽度', grids:'网格', gridSize:'网格大小', @@ -1048,6 +1047,7 @@ const cn = { gradient:'渐变', lineStyle:'线条样式', lineColor:'线条颜色', + lineDash:'线条虚实', fromArrow:"起点箭头", toArrow:"终点箭头", arrowColor:"箭头颜色", @@ -1065,6 +1065,9 @@ const cn = { beads:'水珠流动', dot:'圆点', comet:'彗星', + curve:'曲线', + polyline:'折线', + line:'直线', }, }, date:{ diff --git a/nezha-fronted/src/components/common/language/en.js b/nezha-fronted/src/components/common/language/en.js index c5d1b0ea5..37fe22f5f 100644 --- a/nezha-fronted/src/components/common/language/en.js +++ b/nezha-fronted/src/components/common/language/en.js @@ -983,7 +983,6 @@ const en = { description: 'Description'//'描述' }, topology:{ - line:'Line', module:'Module element', add:'Add', selTwoNode:'Please select two module', @@ -1013,7 +1012,6 @@ const en = { alert:'Alert Message', lineType:'Line type', straight:'straight', - curve:'curve', upload:'upload', requiredName:'The name of the required', imgFormat:'Upload picture can only be JPG/ PNG format!', @@ -1034,7 +1032,8 @@ const en = { name:'Name', bac:"Background", bacImage:'Background image', - defaultLineWidth:'Default lineWidth', + defaultLineWidth:'Default line width', + defaultLineType:'Default line type', lineWidth:'Line width', grids:'Grids', gridSize:'Grid Size', @@ -1053,6 +1052,7 @@ const en = { gradient:'Gradient', lineStyle:'Line dash', lineColor:'Line color', + lineDash:'lineDash', fromArrow:"From arrow", toArrow:"To arrow", arrowColor:"Arrow color", @@ -1070,6 +1070,9 @@ const en = { beads:'beads', dot:'dot', comet:'comet', + curve:'curve', + polyline:'polyline', + line:'line', }, }, date:{ diff --git a/nezha-fronted/src/components/common/project/L5/CanvasProps.vue b/nezha-fronted/src/components/common/project/L5/CanvasProps.vue index 418246d4d..c01e61f65 100644 --- a/nezha-fronted/src/components/common/project/L5/CanvasProps.vue +++ b/nezha-fronted/src/components/common/project/L5/CanvasProps.vue @@ -13,7 +13,7 @@ + @change="moduleIdChange" > --> - +
{{$t('project.topology.circularBead')}}(0 - 1)
@@ -346,7 +346,7 @@ > + @change="bkTypeChange"> @@ -377,7 +377,7 @@
{{$t('project.topology.lineDash')}}
-
@@ -407,7 +407,7 @@
{{$t('project.topology.lineType')}}
-
@@ -438,7 +438,7 @@
{{$t('project.topology.fromArrow')}}
+ @change="onClickFromArrow">
@@ -487,7 +487,7 @@
{{$t('project.topology.toArrow')}}
+ @change="onClickToArrow">
@@ -618,7 +618,7 @@ @@ -630,7 +630,7 @@
+ @change="onAnimate"> @@ -809,7 +809,7 @@
@@ -859,7 +859,7 @@
@@ -1120,7 +1120,7 @@ {d:'M5 14 a100,50 0 0,1 85,0',"stroke-dasharray":"",name:'curve'}, {d:'M5 8 l40 0 l0 12 l40 0',"stroke-dasharray":"",name:'polyline'}, {d:'M5 14 l85 0',"stroke-dasharray":"",name:'line'}, - {d:'M5 20 C0,8 50,0 85,0',"stroke-dasharray":"",name:'mind'}, + // {d:'M5 20 C0,8 50,0 85,0',"stroke-dasharray":"",name:'mind'}, ], penLineFromTOArrow:[ {d:'M5 14 l85 0',"points":"",fill:'',stroke:"",'stroke-width':"",name:''}, @@ -1377,6 +1377,7 @@ this.selection.pen.toArrowColor=this.colorRGBtoHex(val); this.selection.pen.data['fromArrowColor']=this.colorRGBtoHex(val); this.selection.pen.data['toArrowColor']=this.colorRGBtoHex(val); + this.selection.pen.data['arrowColor']=this.colorRGBtoHex(val); }else{ this.selection.pen[name]=this.colorRGBtoHex(val); } @@ -1600,6 +1601,15 @@ border-radius: 0 0 5px 5px; border-top: none; } + .icon-item { + width: 75%; + height: 100%; + padding-left: 25%; + } + .icon-item svg { + width: 180px; + height: 100%; + }