Commit 4b0e2ff7 authored by chenjiahao's avatar chenjiahao

数据要素-API

parent ca63ef0e
...@@ -154,12 +154,13 @@ ...@@ -154,12 +154,13 @@
descriptionData.value = cardList.filter((item) => item.title === data.title); descriptionData.value = cardList.filter((item) => item.title === data.title);
console.log('descriptionData.value', descriptionData.value); console.log('descriptionData.value', descriptionData.value);
setModalProps({ confirmLoading: false }); setModalProps({ confirmLoading: false });
setDescProps({ data: descriptionData.value[0] });
}); });
const [ const [
registerApplyForPushNotificationsModal, registerApplyForPushNotificationsModal,
{ openModal: openApplyForPushNotificationsModal }, { openModal: openApplyForPushNotificationsModal },
] = useModal(); ] = useModal();
const [register1] = useDescription({ const [register1, { setDescProps }] = useDescription({
bordered: false, bordered: false,
data: descriptionData.value[0], data: descriptionData.value[0],
schema: schema, schema: schema,
......
...@@ -152,14 +152,16 @@ ...@@ -152,14 +152,16 @@
setModalProps({ confirmLoading: true }); setModalProps({ confirmLoading: true });
title.value = data.title; title.value = data.title;
descriptionData.value = cardList.filter((item) => item.title === data.title); descriptionData.value = cardList.filter((item) => item.title === data.title);
console.log('descriptionData.value', descriptionData.value); console.log('data', data)
console.log('descriptionData.value', descriptionData.value[0]);
setModalProps({ confirmLoading: false }); setModalProps({ confirmLoading: false });
setDescProps({ data: descriptionData.value[0] });
}); });
const [ const [
registerApplyForPushNotificationsModal, registerApplyForPushNotificationsModal,
{ openModal: openApplyForPushNotificationsModal }, { openModal: openApplyForPushNotificationsModal },
] = useModal(); ] = useModal();
const [register1] = useDescription({ const [register1, { setDescProps }] = useDescription({
bordered: false, bordered: false,
data: descriptionData.value[0], data: descriptionData.value[0],
schema: schema, schema: schema,
......
...@@ -265,6 +265,10 @@ ...@@ -265,6 +265,10 @@
// console.log(node); // console.log(node);
workSpaceName.value = node.workSpaceName; workSpaceName.value = node.workSpaceName;
if ([101, 102].includes(node.parentId)) { if ([101, 102].includes(node.parentId)) {
openEditModal(
true,
cardList.find((item) => item.title === node.workSpaceName),
);
//跳转详情页 //跳转详情页
} else { } else {
onSearch(); onSearch();
......
...@@ -169,51 +169,6 @@ export const TreeData: any[] = [ ...@@ -169,51 +169,6 @@ export const TreeData: any[] = [
createTime: '2024-10-24 10:04:04', createTime: '2024-10-24 10:04:04',
createBy: 'admin', createBy: 'admin',
}, },
{
delFlag: '0',
flag: '1',
businessId: 206,
parentWorkSpaceName: '党建建设',
workSpaceName: '红色文化展览',
parentId: 101,
'code:': '003',
ancestors: '0,100',
orderNum: 1,
children: [],
selectType: null,
createTime: '2024-10-24 10:04:04',
createBy: 'admin',
},
{
delFlag: '0',
flag: '1',
businessId: 207,
parentWorkSpaceName: '党建建设',
workSpaceName: '志愿服务活动',
parentId: 101,
'code:': '003',
ancestors: '0,100',
orderNum: 1,
children: [],
selectType: null,
createTime: '2024-10-24 10:04:04',
createBy: 'admin',
},
{
delFlag: '0',
flag: '1',
businessId: 208,
parentWorkSpaceName: '党建建设',
workSpaceName: '党员风采展示',
parentId: 101,
'code:': '003',
ancestors: '0,100',
orderNum: 1,
children: [],
selectType: null,
createTime: '2024-10-24 10:04:04',
createBy: 'admin',
},
{ {
delFlag: '0', delFlag: '0',
flag: '1', flag: '1',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment