|
@@ -17,8 +17,6 @@ import { ref, onMounted, watch, onBeforeUnmount } from 'vue';
|
|
|
import LogicFlow from "@logicflow/core";
|
|
|
import { PolylineEdge, PolylineEdgeModel } from "@logicflow/core";
|
|
|
import cid from '@/api/cid/cid'
|
|
|
-import systemRow from '@/api/systemRow';
|
|
|
-import flow from "@/api/flow/flow"
|
|
|
import { ElMessage } from 'element-plus';
|
|
|
import { useRouter, useRoute } from 'vue-router';
|
|
|
import AbilityModal from "../drawModal/AbilityModal.vue"
|
|
@@ -71,9 +69,6 @@ export default {
|
|
|
let route = useRoute()
|
|
|
const container = ref();
|
|
|
const lf = ref();
|
|
|
- let needColor = props.lineMenuColor
|
|
|
- let toX = props.fatX
|
|
|
- let toY = props.fatY
|
|
|
let lineColor = ref('#255CE7')
|
|
|
let copyColor = ref('')
|
|
|
let delId = ref('')
|
|
@@ -83,7 +78,6 @@ export default {
|
|
|
let setY = ref(0)
|
|
|
let needMap = ref([])
|
|
|
let coolId = ref('')
|
|
|
- let coolObj = ref({})
|
|
|
let coolName = ref('')
|
|
|
let copyObj = ref({})//整个模型属性
|
|
|
let modelId = ref("")//模型id
|
|
@@ -114,9 +108,9 @@ export default {
|
|
|
setY.value = newVal
|
|
|
}
|
|
|
})
|
|
|
- watch(() => props.needObj, (newVal) => {
|
|
|
- coolObj.value = newVal
|
|
|
- })
|
|
|
+ // watch(() => props.needObj, (newVal) => {
|
|
|
+ // coolObj.value = newVal
|
|
|
+ // })
|
|
|
watch(() => props.needId, (newVal) => {
|
|
|
coolId.value = newVal
|
|
|
})
|
|
@@ -124,26 +118,25 @@ export default {
|
|
|
coolName.value = newVal
|
|
|
})
|
|
|
watch(() => props.coolObj, (newVal) => {
|
|
|
- // setTimeout(() => {
|
|
|
- loading.value = true
|
|
|
+ loading.value = true//打开加载动画
|
|
|
copyObj.value = newVal
|
|
|
- modelId.value = copyObj.value.id
|
|
|
- cid.getModelInfo({ id: copyObj.value.id, pageno: 1, pagesize: 20 }).then(res => {
|
|
|
- if (res.data[0].relation_json == null || res.data[0].relation_json == '') return;
|
|
|
- const origiondata = JSON.parse(res.data[0].relation_json)
|
|
|
- lf.value.render(origiondata);
|
|
|
- loading.value = false
|
|
|
- console.log('调用了coolobg的watch');
|
|
|
- for (let index = 0; index < origiondata.edges.length; index++) {
|
|
|
- const element = origiondata.edges[index];
|
|
|
- if (element.properties != null && element.properties["issv"] === 'SV') {
|
|
|
- let lineStyle = lf.value.getEdgeModelById(element.id)//.getEdgeStyle();
|
|
|
- // console.log(lineStyle)
|
|
|
- lineStyle.setProperties({ svEdge: { stroke: 'orange' } })
|
|
|
+ modelId.value = copyObj.value.id//模型id
|
|
|
+ setTimeout(() => {
|
|
|
+ cid.getModelInfo({ id: copyObj.value.id, pageno: 1, pagesize: 20 }).then(res => {
|
|
|
+ if (res.data[0].relation_json == null || res.data[0].relation_json == '') return;
|
|
|
+ const origiondata = JSON.parse(res.data[0].relation_json)
|
|
|
+ lf.value.render(origiondata);//渲染模型图
|
|
|
+ loading.value = false//关闭加载动画
|
|
|
+ for (let index = 0; index < origiondata.edges.length; index++) {
|
|
|
+ const element = origiondata.edges[index];
|
|
|
+ if (element.properties != null && element.properties["issv"] === 'SV') {
|
|
|
+ let lineStyle = lf.value.getEdgeModelById(element.id)//.getEdgeStyle();
|
|
|
+ // console.log(lineStyle)
|
|
|
+ lineStyle.setProperties({ svEdge: { stroke: 'orange' } })
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- }, { immediate: true })
|
|
|
- // }, 3000);
|
|
|
+ })
|
|
|
+ }, 1000);
|
|
|
})
|
|
|
watch(() => props.svOrGoose, (newVal) => {
|
|
|
numCase.value = newVal
|
|
@@ -190,10 +183,10 @@ export default {
|
|
|
message: "保存成功!",
|
|
|
duration: 2000,
|
|
|
})
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
ElMessage({
|
|
|
- message:res.msg,
|
|
|
- type:"error"
|
|
|
+ message: res.msg,
|
|
|
+ type: "error"
|
|
|
})
|
|
|
}
|
|
|
})
|
|
@@ -210,10 +203,10 @@ export default {
|
|
|
message: "保存成功!",
|
|
|
duration: 2000,
|
|
|
})
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
ElMessage({
|
|
|
- message:res.msg,
|
|
|
- type:"error"
|
|
|
+ message: res.msg,
|
|
|
+ type: "error"
|
|
|
})
|
|
|
}
|
|
|
})
|
|
@@ -255,222 +248,222 @@ export default {
|
|
|
for (let index = 0; index < origiondata.edges.length; index++) {
|
|
|
const element = origiondata.edges[index];
|
|
|
if (element.properties != null && element.properties["issv"] === 'SV') {
|
|
|
- let lineStyle = lf.value.getEdgeModelById(element.id)//.getEdgeStyle();
|
|
|
- // console.log(lineStyle)
|
|
|
+ let lineStyle = lf.value.getEdgeModelById(element.id)
|
|
|
lineStyle.setProperties({ svEdge: { stroke: 'orange' } })
|
|
|
}
|
|
|
}
|
|
|
}, { immediate: true })
|
|
|
}
|
|
|
onMounted(() => {
|
|
|
- coolObj.value = props.needObj
|
|
|
coolId.value = props.needId
|
|
|
- coolName.value = props.needName
|
|
|
- copyObj.value = props.coolObj
|
|
|
- numCase.value = props.svOrGoose
|
|
|
- copyColor.value = props.lineMenuColor
|
|
|
- systemRow.getChildren({ code: "ied_type" }).then(res => {
|
|
|
- needMap.value = res.data.map(item => {
|
|
|
- return {
|
|
|
- type: 'rect',
|
|
|
- text: item.name,
|
|
|
- label: item.name,
|
|
|
- icon: '',
|
|
|
- properties: {
|
|
|
- ied_type: item.code,
|
|
|
- id: item.id
|
|
|
+ coolName.value = props.needName//模型名称
|
|
|
+ copyObj.value = props.coolObj//需要的模型信息对象
|
|
|
+ numCase.value = props.svOrGoose//判断sv或者goose类型
|
|
|
+ copyColor.value = props.lineMenuColor//颜色
|
|
|
+ setTimeout(() => {
|
|
|
+ cid.getModelInfo({ id: copyObj.value.id, pageno: 1, pagesize: 20 }).then(res => {
|
|
|
+ console.log(res.data, 'res.data');
|
|
|
+ const filteredArray = res.data[0].ied_type.filter(param => param !== null)
|
|
|
+ needMap.value = filteredArray.map(item => {
|
|
|
+ return {
|
|
|
+ type: 'rect',
|
|
|
+ text: item.name,
|
|
|
+ label: item.name,
|
|
|
+ icon: '',
|
|
|
+ properties: {
|
|
|
+ ied_type: item.code,
|
|
|
+ id: item.id
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ lf.value = new LogicFlow({
|
|
|
+ // 通过选项指定了渲染的容器和需要显示网格
|
|
|
+ container: container.value,//需要显示画布的容器ref
|
|
|
+ // grid: {
|
|
|
+ // size: 10,
|
|
|
+ // visible: false,
|
|
|
+ // type: "mesh",
|
|
|
+ // config: {
|
|
|
+ // color: "#ababab",
|
|
|
+ // thickness: 1,
|
|
|
+ // },
|
|
|
+ // },//网格,
|
|
|
+ grid: true,
|
|
|
+ plugins: [DndPanel, SelectionSelect, Group, Menu, MiniMap, Snapshot],//全局加载的组件
|
|
|
+ keyboard: {
|
|
|
+ enabled: true
|
|
|
+ },
|
|
|
+ snapline: true,//辅助线
|
|
|
+ edgeTextDraggable: true,//连接线文本可以拖拽
|
|
|
+ })
|
|
|
+ class SvEdge extends PolylineEdge { }
|
|
|
+ // 节点Model
|
|
|
+ class SvEdgeModel extends PolylineEdgeModel {
|
|
|
+ getEdgeStyle() {
|
|
|
+ const stl = super.getEdgeStyle()
|
|
|
+ stl.stroke = 'orange'
|
|
|
+ return stl
|
|
|
}
|
|
|
}
|
|
|
- })
|
|
|
- lf.value = new LogicFlow({
|
|
|
- // 通过选项指定了渲染的容器和需要显示网格
|
|
|
- container: container.value,//需要显示画布的容器ref
|
|
|
- // grid: {
|
|
|
- // size: 10,
|
|
|
- // visible: false,
|
|
|
- // type: "mesh",
|
|
|
- // config: {
|
|
|
- // color: "#ababab",
|
|
|
- // thickness: 1,
|
|
|
- // },
|
|
|
- // },//网格,
|
|
|
- grid: true,
|
|
|
- plugins: [DndPanel, SelectionSelect, Group, Menu, MiniMap, Snapshot],//全局加载的组件
|
|
|
- keyboard: {
|
|
|
- enabled: true
|
|
|
- },
|
|
|
- snapline: true,//辅助线
|
|
|
- edgeTextDraggable: true,//连接线文本可以拖拽
|
|
|
- })
|
|
|
- class SvEdge extends PolylineEdge { }
|
|
|
- // 节点Model
|
|
|
- class SvEdgeModel extends PolylineEdgeModel {
|
|
|
- getEdgeStyle() {
|
|
|
- const stl = super.getEdgeStyle()
|
|
|
- stl.stroke = 'orange'
|
|
|
- return stl
|
|
|
- }
|
|
|
- }
|
|
|
- class GooseEdge extends PolylineEdge { }
|
|
|
- // 节点Model
|
|
|
- class GooseEdgeModel extends PolylineEdgeModel {
|
|
|
- getEdgeStyle() {
|
|
|
- const stl = super.getEdgeStyle()
|
|
|
- stl.stroke = '#255CE7'
|
|
|
- return stl
|
|
|
+ class GooseEdge extends PolylineEdge { }
|
|
|
+ // 节点Model
|
|
|
+ class GooseEdgeModel extends PolylineEdgeModel {
|
|
|
+ getEdgeStyle() {
|
|
|
+ const stl = super.getEdgeStyle()
|
|
|
+ stl.stroke = '#255CE7'
|
|
|
+ return stl
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- lf.value.register({
|
|
|
- type: "svEdge",
|
|
|
- view: SvEdge,
|
|
|
- model: SvEdgeModel,
|
|
|
- })
|
|
|
- lf.value.register({
|
|
|
- type: "baseEdge",
|
|
|
- view: GooseEdge,
|
|
|
- model: GooseEdgeModel,
|
|
|
- })
|
|
|
- lf.value.setTheme({//设置画布
|
|
|
- rect: {
|
|
|
- fill: "#FFFFFF",
|
|
|
- stroke: "#255CE7",
|
|
|
- strokeWidth: 2,
|
|
|
- },//放置的元素
|
|
|
- snapline: {
|
|
|
- stroke: 'black', // 对齐线颜色
|
|
|
- strokeWidth: 1, // 对齐线宽度
|
|
|
- },
|
|
|
- edgeText: {
|
|
|
- textWidth: 100,
|
|
|
- overflowMode: "default",
|
|
|
- fontSize: 18,
|
|
|
- background: {
|
|
|
+ lf.value.register({
|
|
|
+ type: "svEdge",
|
|
|
+ view: SvEdge,
|
|
|
+ model: SvEdgeModel,
|
|
|
+ })
|
|
|
+ lf.value.register({
|
|
|
+ type: "baseEdge",
|
|
|
+ view: GooseEdge,
|
|
|
+ model: GooseEdgeModel,
|
|
|
+ })
|
|
|
+ lf.value.setTheme({//设置画布
|
|
|
+ rect: {
|
|
|
fill: "#FFFFFF",
|
|
|
+ stroke: "#255CE7",
|
|
|
+ strokeWidth: 2,
|
|
|
+ },//放置的元素
|
|
|
+ snapline: {
|
|
|
+ stroke: 'black', // 对齐线颜色
|
|
|
+ strokeWidth: 1, // 对齐线宽度
|
|
|
},
|
|
|
- },//连接线w文字样式
|
|
|
- outline: {
|
|
|
- fill: "transparent",
|
|
|
- stroke: "#949494",
|
|
|
- strokeDasharray: "3,3",
|
|
|
- hover: {
|
|
|
+ edgeText: {
|
|
|
+ textWidth: 100,
|
|
|
+ overflowMode: "default",
|
|
|
+ fontSize: 18,
|
|
|
+ background: {
|
|
|
+ fill: "#FFFFFF",
|
|
|
+ },
|
|
|
+ },//连接线w文字样式
|
|
|
+ outline: {
|
|
|
+ fill: "transparent",
|
|
|
stroke: "#949494",
|
|
|
+ strokeDasharray: "3,3",
|
|
|
+ hover: {
|
|
|
+ stroke: "#949494",
|
|
|
+ },
|
|
|
},
|
|
|
- },
|
|
|
- anchor: {
|
|
|
- stroke: "#000000",
|
|
|
- fill: "#FFFFFF",
|
|
|
- r: 4,
|
|
|
- hover: {
|
|
|
- fill: "#949494",
|
|
|
- fillOpacity: 0.5,
|
|
|
- stroke: "#949494",
|
|
|
- r: 10,
|
|
|
- },
|
|
|
- },//锚点样式
|
|
|
- baseEdge: {
|
|
|
- stroke: "#255CE7",
|
|
|
- strokeWidth: 2,
|
|
|
- },//连接线颜色
|
|
|
- svEdge: {
|
|
|
- stroke: "orange",
|
|
|
- strokeWidth: 1,
|
|
|
- },//连接线颜色
|
|
|
- nodeText: {
|
|
|
- color: "#255CE7",
|
|
|
- overflowMode: "autoWrap",
|
|
|
- lineHeight: 1.2,
|
|
|
- fontSize: 12,
|
|
|
- },//节点内文字样式
|
|
|
- });
|
|
|
- lf.value.on("edge:click", function (data, e, position) {
|
|
|
- console.log(data, 'data1');
|
|
|
- delId.value = data.data.id
|
|
|
- if (copyColor.value == '#255CE7') {
|
|
|
- lf.value.graphModel.updateText(data.data.id, "GOOSE");
|
|
|
- } else if (copyColor.value == 'orange') {
|
|
|
- lf.value.graphModel.updateText(data.data.id, "SV");
|
|
|
- }
|
|
|
- })
|
|
|
- lf.value.on("edge:add", function (data, e, position) {
|
|
|
- if (copyColor.value == '#255CE7') {
|
|
|
- blue()
|
|
|
- lf.value.changeEdgeType(data.data.id, "baseEdge")
|
|
|
- lf.value.setProperties(data.data.id, { 'issv': 'GOOSE' })
|
|
|
- }
|
|
|
- if (copyColor.value == 'orange') {
|
|
|
- orange()
|
|
|
- lf.value.changeEdgeType(data.data.id, "svEdge")
|
|
|
- lf.value.setProperties(data.data.id, { 'issv': 'SV' })
|
|
|
- }
|
|
|
- })
|
|
|
- lf.value.on('node:click', function (data, e, position) {//传送坐标轴参数到父组件
|
|
|
- console.log(data, 'data3');
|
|
|
- copyId.value = data.data.id
|
|
|
- nodeId.value = data.data.id
|
|
|
- setX.value = data.data.x
|
|
|
- setY.value = data.data.y
|
|
|
- emit("backxy", setX.value, setY.value)
|
|
|
- })
|
|
|
- lf.value.on('anchor:drop', function (data, e, position) {//添加线上文字
|
|
|
- if (numCase.value == 0) {
|
|
|
- lf.value.graphModel.updateText(data.edgeModel.id, "SV");
|
|
|
- } else if (numCase.value == 1) {
|
|
|
- lf.value.graphModel.updateText(data.edgeModel.id, "GOOSE");
|
|
|
- }
|
|
|
- })
|
|
|
- lf.value.on('node:dbclick', function (data, e, position) {//双击打开弹窗
|
|
|
- iedType.value = data.data.properties.ied_type
|
|
|
- abModal.value = true
|
|
|
- })
|
|
|
- lf.value.on('edge:dbclick', function (data, e, position) {//双击连接线
|
|
|
- lineType.value = data.data.properties.issv
|
|
|
- let start = lf.value.getNodeModelById(data.data.sourceNodeId)//获取连线开始节点
|
|
|
- let end = lf.value.getNodeModelById(data.data.targetNodeId)//获取连线结尾节点
|
|
|
- startText.value = start.text.value//开始文本
|
|
|
- endText.value = end.text.value//结束文本
|
|
|
- startTarget.value = start.properties
|
|
|
- endTarget.value = end.properties
|
|
|
- console.log(copyColor.value, 'copy');
|
|
|
- console.log(data, 'data');
|
|
|
- if (copyColor.value == '#255CE7') {
|
|
|
- lf.value.graphModel.updateText(data.data.id, "GOOSE");
|
|
|
- } else if (copyColor.value == 'orange') {
|
|
|
- lf.value.graphModel.updateText(data.data.id, "SV");
|
|
|
- }
|
|
|
- ldModal.value = true
|
|
|
- })
|
|
|
- lf.value.on('node:mousemove', function (data, e) {//传递坐标轴参数到父组件
|
|
|
- setX.value = data.data.x
|
|
|
- setY.value = data.data.y
|
|
|
- console.log(data.data, 'move');
|
|
|
- emit("backxy", setX.value, setY.value)
|
|
|
- })
|
|
|
- // console.log(lf.value.graphModel,'sss');
|
|
|
- lf.value.on('edge:click', function (data, e, position) {//解决点击连接线问题
|
|
|
- console.log(data, 'data2');
|
|
|
- if (copyColor.value == '#255CE7') {
|
|
|
- blue()
|
|
|
- lf.value.changeEdgeType(data.data.id, "baseEdge")
|
|
|
- lf.value.setProperties(data.data.id, { 'issv': 'GOOSE' })
|
|
|
- }
|
|
|
- if (copyColor.value == 'orange') {
|
|
|
- orange()
|
|
|
- lf.value.changeEdgeType(data.data.id, "svEdge")
|
|
|
- lf.value.setProperties(data.data.id, { 'issv': 'SV' })
|
|
|
+ anchor: {
|
|
|
+ stroke: "#000000",
|
|
|
+ fill: "#FFFFFF",
|
|
|
+ r: 4,
|
|
|
+ hover: {
|
|
|
+ fill: "#949494",
|
|
|
+ fillOpacity: 0.5,
|
|
|
+ stroke: "#949494",
|
|
|
+ r: 10,
|
|
|
+ },
|
|
|
+ },//锚点样式
|
|
|
+ baseEdge: {
|
|
|
+ stroke: "#255CE7",
|
|
|
+ strokeWidth: 2,
|
|
|
+ },//连接线颜色
|
|
|
+ svEdge: {
|
|
|
+ stroke: "orange",
|
|
|
+ strokeWidth: 1,
|
|
|
+ },//连接线颜色
|
|
|
+ nodeText: {
|
|
|
+ color: "#255CE7",
|
|
|
+ overflowMode: "autoWrap",
|
|
|
+ lineHeight: 1.2,
|
|
|
+ fontSize: 12,
|
|
|
+ },//节点内文字样式
|
|
|
+ });
|
|
|
+ lf.value.on("edge:click", function (data, e, position) {
|
|
|
+ delId.value = data.data.id
|
|
|
+ if (copyColor.value == '#255CE7') {
|
|
|
+ lf.value.graphModel.updateText(data.data.id, "GOOSE");
|
|
|
+ } else if (copyColor.value == 'orange') {
|
|
|
+ lf.value.graphModel.updateText(data.data.id, "SV");
|
|
|
+ }
|
|
|
+ })
|
|
|
+ lf.value.on("edge:add", function (data, e, position) {
|
|
|
+ if (copyColor.value == '#255CE7') {
|
|
|
+ blue()
|
|
|
+ lf.value.changeEdgeType(data.data.id, "baseEdge")
|
|
|
+ lf.value.setProperties(data.data.id, { 'issv': 'GOOSE' })
|
|
|
+ }
|
|
|
+ if (copyColor.value == 'orange') {
|
|
|
+ orange()
|
|
|
+ lf.value.changeEdgeType(data.data.id, "svEdge")
|
|
|
+ lf.value.setProperties(data.data.id, { 'issv': 'SV' })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ lf.value.on('node:click', function (data, e, position) {//传送坐标轴参数到父组件
|
|
|
+ console.log(data, 'data3');
|
|
|
+ copyId.value = data.data.id
|
|
|
+ nodeId.value = data.data.id
|
|
|
+ setX.value = data.data.x
|
|
|
+ setY.value = data.data.y
|
|
|
+ emit("backxy", setX.value, setY.value)
|
|
|
+ })
|
|
|
+ lf.value.on('anchor:drop', function (data, e, position) {//添加线上文字
|
|
|
+ if (numCase.value == 0) {
|
|
|
+ lf.value.graphModel.updateText(data.edgeModel.id, "SV");
|
|
|
+ } else if (numCase.value == 1) {
|
|
|
+ lf.value.graphModel.updateText(data.edgeModel.id, "GOOSE");
|
|
|
+ }
|
|
|
+ })
|
|
|
+ lf.value.on('node:dbclick', function (data, e, position) {//双击打开弹窗
|
|
|
+ iedType.value = data.data.properties.ied_type
|
|
|
+ abModal.value = true
|
|
|
+ })
|
|
|
+ lf.value.on('edge:dbclick', function (data, e, position) {//双击连接线
|
|
|
+ lineType.value = data.data.properties.issv
|
|
|
+ let start = lf.value.getNodeModelById(data.data.sourceNodeId)//获取连线开始节点
|
|
|
+ let end = lf.value.getNodeModelById(data.data.targetNodeId)//获取连线结尾节点
|
|
|
+ startText.value = start.text.value//开始文本
|
|
|
+ endText.value = end.text.value//结束文本
|
|
|
+ startTarget.value = start.properties
|
|
|
+ endTarget.value = end.properties
|
|
|
+ console.log(copyColor.value, 'copy');
|
|
|
+ console.log(data, 'data');
|
|
|
+ if (copyColor.value == '#255CE7') {
|
|
|
+ lf.value.graphModel.updateText(data.data.id, "GOOSE");
|
|
|
+ } else if (copyColor.value == 'orange') {
|
|
|
+ lf.value.graphModel.updateText(data.data.id, "SV");
|
|
|
+ }
|
|
|
+ ldModal.value = true
|
|
|
+ })
|
|
|
+ lf.value.on('node:mousemove', function (data, e) {//传递坐标轴参数到父组件
|
|
|
+ setX.value = data.data.x
|
|
|
+ setY.value = data.data.y
|
|
|
+ console.log(data.data, 'move');
|
|
|
+ emit("backxy", setX.value, setY.value)
|
|
|
+ })
|
|
|
+ // console.log(lf.value.graphModel,'sss');
|
|
|
+ lf.value.on('edge:click', function (data, e, position) {//解决点击连接线问题
|
|
|
+ console.log(data, 'data2');
|
|
|
+ if (copyColor.value == '#255CE7') {
|
|
|
+ blue()
|
|
|
+ lf.value.changeEdgeType(data.data.id, "baseEdge")
|
|
|
+ lf.value.setProperties(data.data.id, { 'issv': 'GOOSE' })
|
|
|
+ }
|
|
|
+ if (copyColor.value == 'orange') {
|
|
|
+ orange()
|
|
|
+ lf.value.changeEdgeType(data.data.id, "svEdge")
|
|
|
+ lf.value.setProperties(data.data.id, { 'issv': 'SV' })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ // lf.value.register(logicFlows)
|
|
|
+ lf.value.extension.dndPanel.setPatternItems(needMap.value);
|
|
|
+ lf.value.render();
|
|
|
+ if (route.query.modelid != '' && route.query.modelid != null && route.query.modelid != undefined) {
|
|
|
+ console.log(456789);
|
|
|
+ lastRender()
|
|
|
}
|
|
|
+ setTimeout(() => {
|
|
|
+ loading.value = false
|
|
|
+ }, 10000)
|
|
|
})
|
|
|
- // lf.value.register(logicFlows)
|
|
|
- lf.value.extension.dndPanel.setPatternItems(needMap.value);
|
|
|
- lf.value.render();
|
|
|
- console.log(route.query.modelid, '498651');
|
|
|
- if (route.query.modelid != '' && route.query.modelid != null && route.query.modelid != undefined) {
|
|
|
- console.log(456789);
|
|
|
- lastRender()
|
|
|
- }
|
|
|
- setTimeout(() => {
|
|
|
- loading.value = false
|
|
|
- }, 10000)
|
|
|
- })
|
|
|
+ }, 1000);
|
|
|
})
|
|
|
function abilityBack(data) {
|
|
|
abModal.value = data
|
|
@@ -480,7 +473,7 @@ export default {
|
|
|
}
|
|
|
onBeforeUnmount(() => {
|
|
|
// lf.value.remove()
|
|
|
- coolObj.value = {}
|
|
|
+ // coolObj.value = {}
|
|
|
router.push("/home/setting")
|
|
|
})
|
|
|
return {
|