|
|
@ -371,6 +371,23 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="ele-node-info" > |
|
|
|
<div class="ele-sub-c" > |
|
|
|
<div class="intro-ico" style="width: 70px;height: 40px;"> |
|
|
|
<svg t="1664332866723" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2797" style="width: 36px;height: 37px;"> |
|
|
|
<path d="M763.733333 554.666667H725.333333v-85.333334h38.4c-17.066667-106.666667-102.4-192-209.066666-209.066666V298.666667h-85.333334v-38.4c-106.666667 17.066667-192 102.4-209.066666 209.066666H298.666667v85.333334h-38.4c17.066667 106.666667 102.4 192 209.066666 209.066666V725.333333h85.333334v38.4c106.666667-17.066667 192-102.4 209.066666-209.066666zM512 853.333333c-187.733333 0-341.333333-153.6-341.333333-341.333333s153.6-341.333333 341.333333-341.333333 341.333333 153.6 341.333333 341.333333-153.6 341.333333-341.333333 341.333333z m132.266667-477.866666l-106.666667 196.266666-89.6-89.6 196.266667-106.666666z m-324.266667-25.6l29.866667-29.866667 29.866666 29.866667-29.866666 29.866666-29.866667-29.866666z m320 320l29.866667-29.866667 29.866666 29.866667-29.866666 29.866666-29.866667-29.866666z m29.866667-349.866667l29.866666 29.866667-29.866666 29.866666-29.866667-29.866666 29.866667-29.866667zM349.866667 640l29.866666 29.866667-29.866666 29.866666-29.866667-29.866666 29.866667-29.866667z" fill="#444444" p-id="2798"></path> |
|
|
|
</svg> |
|
|
|
</div> |
|
|
|
<div class="intro-txt"> |
|
|
|
仪表盘 |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="ele-content"> |
|
|
|
<div class="canvas pipeLineNode" nid="5" cid="3" > |
|
|
|
<div class="chartStyle"></div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- 图库 --> |
|
|
|
<div class="element-container imglibrary self-upload" v-show="tabmode==2"> |
|
|
@ -866,7 +883,43 @@ |
|
|
|
<input class="slide_size" v-model="rotate_speed" @input="rotateSpeedChange" > |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div v-show="editType>=0 && editType <= 11 && editType!= 7"> |
|
|
|
<div class="tool-title " style="padding: 10px;">大小</div> |
|
|
|
<div style="padding: 0 10px;"> |
|
|
|
<span style="padding-right: 5px;">宽</span> |
|
|
|
<input class="input-style" v-model="canswidth" @input="canswidthChange" style="margin-right: 15px;"> |
|
|
|
<span style="padding-right: 5px;">高</span> |
|
|
|
<input class="input-style" v-model="cansheight" @input="cansheightChange"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-show="editType>=0 && editType <= 11 && editType!= 7"> |
|
|
|
<div class="tool-title " style="padding: 10px;">位置</div> |
|
|
|
<div style="padding: 0 10px;"> |
|
|
|
<span style="padding-right: 5px;">X </span> |
|
|
|
<input class="input-style" v-model="canvensx" @input="canvensxChange" style="margin-right: 15px;"> |
|
|
|
<span style="padding-right: 5px;">Y </span> |
|
|
|
<input class="input-style" v-model="canvensy" @input="canvensyChange"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div v-show="editType == 2 || editType == 9 || editType == 8 || editType == 11 " > |
|
|
|
<div class="tool-title " style="padding: 10px;">图片显示</div> |
|
|
|
<div style="padding: 0 10px;"> |
|
|
|
<button @click="imgScale(0)" class="el-button el-button--small el-button--primary" >原比例</button> |
|
|
|
<button @click="imgScale(1)" class="el-button el-button--small el-button--primary" >缩放</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="functionDetails" v-if="propertyModuleName.length>0"> |
|
|
|
<br/> |
|
|
|
<span> |
|
|
|
{{propertyModuleName}} |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
<!--@新增 isDisableAnimation属性对应元素--> |
|
|
|
<!-- 液位图属性 --> |
|
|
|
<div v-show="editType == 5 && cid == 4 "> |
|
|
|
<div style="padding: 10px;"> |
|
|
|
<input v-model="isDisableAnimation" type="checkbox" @change="setLiquidFillAnimation"> |
|
|
@ -906,30 +959,42 @@ |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-show="editType>=0 && editType <= 11 && editType!= 7"> |
|
|
|
<div class="tool-title " style="padding: 10px;">大小</div> |
|
|
|
<div style="padding: 0 10px;"> |
|
|
|
<span style="padding-right: 5px;">宽</span> |
|
|
|
<input class="input-style" v-model="canswidth" @input="canswidthChange" style="margin-right: 15px;"> |
|
|
|
<span style="padding-right: 5px;">高</span> |
|
|
|
<input class="input-style" v-model="cansheight" @input="cansheightChange"> |
|
|
|
<!-- 仪表盘属性 --> |
|
|
|
<!-- 仪表盘结束与开始角度 --> |
|
|
|
<div v-show="editType == 5 && cid == 3 "> |
|
|
|
<div class="tool-title " style="padding: 10px;">仪表盘形状</div> |
|
|
|
<div style="padding-left: 10px;"> |
|
|
|
<el-slider |
|
|
|
v-model="piRect" |
|
|
|
range |
|
|
|
show-stops |
|
|
|
:max="360" |
|
|
|
:min="-360" |
|
|
|
style="width:75%;" |
|
|
|
@change="changePiRect" |
|
|
|
> |
|
|
|
</el-slider> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- 仪表盘刻度最大值 --> |
|
|
|
<div v-show="editType == 5 && cid == 3 "> |
|
|
|
<div class="tool-title " style="padding: 10px;">仪表盘刻度最大值</div> |
|
|
|
<div style="padding-left: 10px;"> |
|
|
|
<input class="el-input__inner" v-model="pimax" placeholder="刻度最大值" style="width:75%;" @blur="changePiMax"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-show="editType>=0 && editType <= 11 && editType!= 7"> |
|
|
|
<div class="tool-title " style="padding: 10px;">位置</div> |
|
|
|
<div style="padding: 0 10px;"> |
|
|
|
<span style="padding-right: 5px;">X </span> |
|
|
|
<input class="input-style" v-model="canvensx" @input="canvensxChange" style="margin-right: 15px;"> |
|
|
|
<span style="padding-right: 5px;">Y </span> |
|
|
|
<input class="input-style" v-model="canvensy" @input="canvensyChange"> |
|
|
|
<!-- 仪表盘刻度分段 --> |
|
|
|
<div v-show="editType == 5 && cid == 3 "> |
|
|
|
<div class="tool-title " style="padding: 10px;">仪表盘刻度分段数</div> |
|
|
|
<div style="padding-left: 10px;"> |
|
|
|
<input class="el-input__inner" v-model="splitNumber" placeholder="刻度最大值" style="width:75%;" @blur="changeSplitNumber"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div v-show="editType == 2 || editType == 9 || editType == 8 || editType == 11 " > |
|
|
|
<div class="tool-title " style="padding: 10px;">图片显示</div> |
|
|
|
<div style="padding: 0 10px;"> |
|
|
|
<button @click="imgScale(0)" class="el-button el-button--small el-button--primary" >原比例</button> |
|
|
|
<button @click="imgScale(1)" class="el-button el-button--small el-button--primary" >缩放</button> |
|
|
|
<!-- 仪表盘刻度单位 --> |
|
|
|
<div v-show="editType == 5 && cid == 3 "> |
|
|
|
<div class="tool-title " style="padding: 10px;">刻度单位</div> |
|
|
|
<div style="padding-left: 10px;"> |
|
|
|
<input class="el-input__inner" v-model="piCompany" placeholder="刻度最大值" style="width:75%;" @blur="changePiCompany"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
@ -1320,12 +1385,16 @@ |
|
|
|
imgObjList:'' , // 组件图片列表 |
|
|
|
chartMax: 1000 , // 图标最大值 |
|
|
|
columnVal: '0' , // 栏目值 |
|
|
|
pimax: '' , // 仪表盘最大值 |
|
|
|
visual_name : '' , // 组态名称 |
|
|
|
addColumn: false , |
|
|
|
propertyModuleName:'',// 属性模块 分组名称 |
|
|
|
pimax:100, // 仪表盘最大值 |
|
|
|
visual_select_code: '' , // 组态内跳转 |
|
|
|
isDisableAnimation:false, // 是否禁用动画 @新增属性 |
|
|
|
shape:"container", // 形状 @新增属性 |
|
|
|
piRect:[225,-45],// 仪表盘区间 |
|
|
|
splitNumber:10, // 刻度分段数 |
|
|
|
piCompany:'' //刻度单位 |
|
|
|
}; |
|
|
|
}, |
|
|
|
methods:{ |
|
|
@ -1872,6 +1941,24 @@ |
|
|
|
cl.attr('border',this.columnVal ); |
|
|
|
// 更新echart数据 |
|
|
|
setChartOption( getEchartObj() ,optnj) ; |
|
|
|
}, |
|
|
|
// 修改仪表盘开始和结束角度 |
|
|
|
changePiRect(value){ |
|
|
|
var obj={startAngle:value[0],endAngle:value[1]}; |
|
|
|
changeChartOption(obj); |
|
|
|
}, |
|
|
|
// 修改仪表盘刻度最大值 |
|
|
|
changePiMax(){ |
|
|
|
changeChartOption1("max",this.pimax); |
|
|
|
}, |
|
|
|
// 修改仪表盘刻度分段 |
|
|
|
changeSplitNumber(){ |
|
|
|
changeChartOption1("splitNumber",this.splitNumber); |
|
|
|
}, |
|
|
|
// 修改仪表盘刻度单位 |
|
|
|
changePiCompany(){ |
|
|
|
var formatter={axisLabel:{formatter:"{value}"+this.piCompany}}; |
|
|
|
changeChartOption(formatter); |
|
|
|
} |
|
|
|
},created(){ |
|
|
|
|
|
|
|