|
|
@ -442,7 +442,7 @@ import ImgNode from './nodes/form/imgNode.vue';
|
|
|
|
import AreaNode from './nodes/other/areaNode.vue';
|
|
|
|
import AreaNode from './nodes/other/areaNode.vue';
|
|
|
|
import tool from './tool';
|
|
|
|
import tool from './tool';
|
|
|
|
import { getDataSourceList } from '@/views/boardGenerate/api/dataSource';
|
|
|
|
import { getDataSourceList } from '@/views/boardGenerate/api/dataSource';
|
|
|
|
import { editBoardApi, getBoardListApi } from '@/views/boardGenerate/api/boardList';
|
|
|
|
import { editBoardApi, getBoardApi, getBoardListApi } from '@/views/boardGenerate/api/boardList';
|
|
|
|
|
|
|
|
|
|
|
|
const router = useRouter();
|
|
|
|
const router = useRouter();
|
|
|
|
// 获取自定义的方法
|
|
|
|
// 获取自定义的方法
|
|
|
@ -491,13 +491,9 @@ onMounted(async () => {
|
|
|
|
customBoard.value = JSON.parse(localStorage.getItem('BOARDNODE') || '[]');
|
|
|
|
customBoard.value = JSON.parse(localStorage.getItem('BOARDNODE') || '[]');
|
|
|
|
await nextTick();
|
|
|
|
await nextTick();
|
|
|
|
|
|
|
|
|
|
|
|
getBoardListApi({
|
|
|
|
getBoardApi(router.currentRoute.value.query.id)
|
|
|
|
pageNum: 1,
|
|
|
|
|
|
|
|
pageSize: 9999999,
|
|
|
|
|
|
|
|
pageConfigId: router.currentRoute.value.query.id
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.then((res) => {
|
|
|
|
.then((res) => {
|
|
|
|
let data = res.rows[0] || {};
|
|
|
|
let data = res.data;
|
|
|
|
boardData.value = data;
|
|
|
|
boardData.value = data;
|
|
|
|
nodes.value = data.designPagePointList.map(e => {
|
|
|
|
nodes.value = data.designPagePointList.map(e => {
|
|
|
|
let data = {};
|
|
|
|
let data = {};
|
|
|
@ -651,6 +647,7 @@ const save = () => {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
|
|
|
|
activeFlag: '1',
|
|
|
|
pagePointId: e.id,
|
|
|
|
pagePointId: e.id,
|
|
|
|
pagePointName: e.name,
|
|
|
|
pagePointName: e.name,
|
|
|
|
width: e.dimensions.width,
|
|
|
|
width: e.dimensions.width,
|
|
|
@ -663,6 +660,7 @@ const save = () => {
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
designPagePointList: edges.value.map(e => {
|
|
|
|
designPagePointList: edges.value.map(e => {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
|
|
|
|
activeFlag: '1',
|
|
|
|
pageEdgesId: e.id,
|
|
|
|
pageEdgesId: e.id,
|
|
|
|
sourceNodeId: e.source,
|
|
|
|
sourceNodeId: e.source,
|
|
|
|
targetNodeId: e.target,
|
|
|
|
targetNodeId: e.target,
|
|
|
|