|
@@ -52,12 +52,13 @@
|
|
style="font-size: 14px;color: #7484AB;display: block;color: #255CE7;">双击节点或连接线可配置属性</span>
|
|
style="font-size: 14px;color: #7484AB;display: block;color: #255CE7;">双击节点或连接线可配置属性</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div style="width: calc(15%);">
|
|
|
|
|
|
+ <div style="width: calc(20%);">
|
|
<div style="width: calc(100%);">
|
|
<div style="width: calc(100%);">
|
|
<el-button style="width: 80px;height: 30px;" type="primary" @click="cleanAll"
|
|
<el-button style="width: 80px;height: 30px;" type="primary" @click="cleanAll"
|
|
plain>关闭</el-button>
|
|
plain>关闭</el-button>
|
|
<el-button style="width: 80px;height: 30px;" type="primary"
|
|
<el-button style="width: 80px;height: 30px;" type="primary"
|
|
@click="saveMap">保存</el-button>
|
|
@click="saveMap">保存</el-button>
|
|
|
|
+ <el-button style="width: 80px;height: 30px;" type="success" plain @click="copyMap">复制</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -72,6 +73,7 @@
|
|
:searchModule="searchModule" :coolObj="coolObj" :svOrGoose="svOrGoose" @backxy="backxy"
|
|
:searchModule="searchModule" :coolObj="coolObj" :svOrGoose="svOrGoose" @backxy="backxy"
|
|
@drawCor="drawCor"></DrawDesigns>
|
|
@drawCor="drawCor"></DrawDesigns>
|
|
</div>
|
|
</div>
|
|
|
|
+ <CopyLoad v-if="copyType" :copyType="copyType" :coolObj=coolObj></CopyLoad>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -81,10 +83,11 @@
|
|
<script>
|
|
<script>
|
|
import { ref, onMounted, toRefs, watch } from 'vue';
|
|
import { ref, onMounted, toRefs, watch } from 'vue';
|
|
import { ElMessage } from 'element-plus';
|
|
import { ElMessage } from 'element-plus';
|
|
-import cid from '@/api/cid/cid'
|
|
|
|
|
|
+import flow from '@/api/flow/flow';
|
|
import FeelLoad from '@/pages/feelLoad/FeelLoad.vue'//bmnp
|
|
import FeelLoad from '@/pages/feelLoad/FeelLoad.vue'//bmnp
|
|
import FatherMap from '@/pages/mapLoad/FatherMap.vue';//jsplumb
|
|
import FatherMap from '@/pages/mapLoad/FatherMap.vue';//jsplumb
|
|
import DrawDesigns from '@/pages/components/draw/DrawDesigns.vue';//logicflow
|
|
import DrawDesigns from '@/pages/components/draw/DrawDesigns.vue';//logicflow
|
|
|
|
+import CopyLoad from '../modalComp/CopyLoad.vue';
|
|
import { now } from 'moment';
|
|
import { now } from 'moment';
|
|
import { useRoute } from 'vue-router';
|
|
import { useRoute } from 'vue-router';
|
|
export default {
|
|
export default {
|
|
@@ -126,6 +129,7 @@ export default {
|
|
let svOrGoose = ref(1)//0为sv,1为goose
|
|
let svOrGoose = ref(1)//0为sv,1为goose
|
|
let flashLevel = ref("")//抬头显示的电压等级
|
|
let flashLevel = ref("")//抬头显示的电压等级
|
|
let linkStyle = ref("")//抬头显示的接线方式
|
|
let linkStyle = ref("")//抬头显示的接线方式
|
|
|
|
+ let copyType = ref(false)//copyload.vue打开或关闭
|
|
watch(() => props.tfType, (newVal) => {
|
|
watch(() => props.tfType, (newVal) => {
|
|
nowLook.value = newVal
|
|
nowLook.value = newVal
|
|
})
|
|
})
|
|
@@ -152,6 +156,7 @@ export default {
|
|
// needName.value = route.query.modelname
|
|
// needName.value = route.query.modelname
|
|
// }
|
|
// }
|
|
coolObj.value = props.setId//模型整个数据
|
|
coolObj.value = props.setId//模型整个数据
|
|
|
|
+ console.log(coolObj.value,'scaos ');
|
|
}
|
|
}
|
|
function svClick() {
|
|
function svClick() {
|
|
lineMenuColor.value = 'orange'
|
|
lineMenuColor.value = 'orange'
|
|
@@ -163,6 +168,9 @@ export default {
|
|
svOrGoose.value = 1
|
|
svOrGoose.value = 1
|
|
designsRef.value.blue()//切换为goose
|
|
designsRef.value.blue()//切换为goose
|
|
}
|
|
}
|
|
|
|
+ function copyMap(){
|
|
|
|
+ copyType.value = true
|
|
|
|
+ }
|
|
function delClick() {
|
|
function delClick() {
|
|
designsRef.value.delLine()//删除连接线
|
|
designsRef.value.delLine()//删除连接线
|
|
}
|
|
}
|
|
@@ -229,12 +237,15 @@ export default {
|
|
drawCor,
|
|
drawCor,
|
|
flashLevel,
|
|
flashLevel,
|
|
linkStyle,
|
|
linkStyle,
|
|
|
|
+ copyType,//copyload.vue打开或关闭
|
|
|
|
+ copyMap,//打开copyload模态框
|
|
}
|
|
}
|
|
},
|
|
},
|
|
components: {
|
|
components: {
|
|
FeelLoad,
|
|
FeelLoad,
|
|
FatherMap,
|
|
FatherMap,
|
|
- DrawDesigns
|
|
|
|
|
|
+ DrawDesigns,
|
|
|
|
+ CopyLoad,//复制模态框
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|