|
@@ -16,12 +16,17 @@
|
|
|
<span class="goose" :style="{ opacity: lineMenuColor == 'orange' ? 0.4 : 1 }"
|
|
|
@click="gooseClick">GOOSE</span>
|
|
|
</div>
|
|
|
- <div style="display: flex;width: calc(15%);">
|
|
|
+ <div style="display: flex;width: calc(20%);">
|
|
|
<span style="font-size: 14px;color: #7484AB;margin-left: 20px;">操作:</span>
|
|
|
- <div class="cutPoint">
|
|
|
- <!-- <img style="width: 22px;height: 22px;display: block;"
|
|
|
+ <div v-if="!selectModeState" class="cutPoint" style="border: 1px dashed #ccc;" @click="selectMode">
|
|
|
+ <img style="width: 22px;height: 22px;display: block;opacity: 0.3;"
|
|
|
src="../../../assets/icon/iorn_pen.png" alt="">
|
|
|
- <span style="display: block;">控点</span> -->
|
|
|
+ <span style="display: block;color: #ccc;">选区模式</span>
|
|
|
+ </div>
|
|
|
+ <div v-if="selectModeState" class="cutPoint" style="border: 1px dashed #255CE7;" @click="selectMode">
|
|
|
+ <img style="width: 22px;height: 22px;display: block;"
|
|
|
+ src="../../../assets/icon/iorn_pen.png" alt="">
|
|
|
+ <span style="display: block;">选区模式</span>
|
|
|
</div>
|
|
|
<div class="deletePoint" @click="delClick">
|
|
|
<img style="width: 22px;height: 22px;display: block;"
|
|
@@ -29,6 +34,18 @@
|
|
|
<span style="display: block;">删除</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <!--
|
|
|
+ <div style="display: flex;width: 15%;">
|
|
|
+ <div>
|
|
|
+ <span style="font-size: 14px;color: #7484AB;">对齐:</span>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <el-select class="coord" v-model="alignListValue" @change="onAlignChange">
|
|
|
+ <el-option v-for="item in alignList" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ -->
|
|
|
<div style="display: flex;width: 20%;">
|
|
|
<div>
|
|
|
<span style="font-size: 14px;color: #7484AB;">位置:</span>
|
|
@@ -69,7 +86,7 @@
|
|
|
<div class="tableBox">
|
|
|
<!-- 建议使用这个 -->
|
|
|
<DrawDesigns ref="designsRef" :lineMenuColor="lineMenuColor" :needObj="needObj" :fatX="fatX"
|
|
|
- :fatY="fatY" :nowLook="nowLook" :cleanAll="cleanAll" :needId="needId" :needName="needName"
|
|
|
+ :fatY="fatY" :nowLook="nowLook" :cleanAll="cleanAll" :selectMode="selectMode" :onAlignChange="onAlignChange" :needId="needId" :needName="needName"
|
|
|
:searchModule="searchModule" :coolObj="coolObj" :svOrGoose="svOrGoose" @backxy="backxy"
|
|
|
@drawCor="drawCor"></DrawDesigns>
|
|
|
</div>
|
|
@@ -130,6 +147,17 @@ export default {
|
|
|
let flashLevel = ref("")//抬头显示的电压等级
|
|
|
let linkStyle = ref("")//抬头显示的接线方式
|
|
|
let copyType = ref(false)//copyload.vue打开或关闭
|
|
|
+ let selectModeState = ref(false)
|
|
|
+ let alignList = ref([
|
|
|
+ {id:"align_left",name:"左对齐"},
|
|
|
+ {id:"align_right",name:"右对齐"},
|
|
|
+ {id:"align_center",name:"水平居中"},
|
|
|
+ {id:"align_top",name:"顶部对齐"},
|
|
|
+ {id:"align_bottom",name:"底部对齐"},
|
|
|
+ {id:"size_samewidth",name:"相同宽度"},
|
|
|
+ {id:"size_sameheight",name:"相同高度"},
|
|
|
+ ])
|
|
|
+ let alignListValue = ref("")
|
|
|
watch(() => props.tfType, (newVal) => {
|
|
|
nowLook.value = newVal
|
|
|
})
|
|
@@ -207,6 +235,18 @@ export default {
|
|
|
flashLevel.value = row[0].voltage_level_name
|
|
|
linkStyle.value = row[0].line_link_style_name
|
|
|
}
|
|
|
+ //切换选区模式
|
|
|
+ function selectMode(){
|
|
|
+ selectModeState.value=!selectModeState.value
|
|
|
+ designsRef.value.selectMode(selectModeState.value)
|
|
|
+ }
|
|
|
+ //应用对齐选项
|
|
|
+ function onAlignChange(){
|
|
|
+ if(alignListValue.value==""){
|
|
|
+ return
|
|
|
+ }
|
|
|
+ designsRef.value.onAlignChange(alignListValue.value)
|
|
|
+ }
|
|
|
onMounted(() => {
|
|
|
searchModule()
|
|
|
})
|
|
@@ -220,6 +260,7 @@ export default {
|
|
|
delClick,
|
|
|
saveMap,
|
|
|
cleanAll,
|
|
|
+ onAlignChange,
|
|
|
fatX,
|
|
|
fatY,
|
|
|
backxy,
|
|
@@ -239,6 +280,10 @@ export default {
|
|
|
linkStyle,
|
|
|
copyType,//copyload.vue打开或关闭
|
|
|
copyMap,//打开copyload模态框
|
|
|
+ selectMode,
|
|
|
+ selectModeState,
|
|
|
+ alignList,
|
|
|
+ alignListValue,
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
@@ -323,8 +368,12 @@ export default {
|
|
|
align-items: center;
|
|
|
font-size: 14px;
|
|
|
text-align: center;
|
|
|
+ margin-left: 10px;
|
|
|
margin-right: 10px;
|
|
|
cursor: pointer;
|
|
|
+ line-height: 20px;
|
|
|
+ height: 30px;
|
|
|
+ margin-top: 20px;
|
|
|
}
|
|
|
|
|
|
.deletePoint {
|