Commit be71710f authored by 罗林杰's avatar 罗林杰

修改知识库

parent 5453c88e
...@@ -83,11 +83,11 @@ ...@@ -83,11 +83,11 @@
let data = []; let data = [];
if (params.fileTypeId == 100) { if (params.fileTypeId == 100) {
data = tableData.value.filter((item) => item.parentId !== 0); data = tableData.value.filter((item) => item.parentId !== 0);
} else if (params.fileTypeId == 101) { } else if (params.fileTypeId == 101 || params.fileTypeId == 111) {
data = tableData.value.filter((item) => item.fileTypeId == 101); data = tableData.value.filter((item) => item.fileTypeId == 101);
} else if (params.fileTypeId == 107) { } else if (params.fileTypeId == 107 || params.fileTypeId == 112) {
data = tableData.value.filter((item) => item.fileTypeId == 107); data = tableData.value.filter((item) => item.fileTypeId == 107);
} else if (params.fileTypeId == 203) { } else if (params.fileTypeId == 203 || params.fileTypeId == 113) {
data = tableData.value.filter((item) => item.fileTypeId == ''); data = tableData.value.filter((item) => item.fileTypeId == '');
} else { } else {
data = tableData.value.filter((item) => item.parentId !== 0); data = tableData.value.filter((item) => item.parentId !== 0);
......
...@@ -13,12 +13,54 @@ export const TreeData: any[] = [ ...@@ -13,12 +13,54 @@ 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: 111,
workSpaceName: '文件夹1',
parentId: 100,
'code:': '001',
ancestors: '0',
orderNum: 0,
children: [],
selectType: null,
createTime: '2024-10-24 10:04:04',
createBy: 'admin',
},
{
delFlag: '0',
flag: '1',
businessId: 112,
workSpaceName: '文件夹2',
parentId: 100,
'code:': '001',
ancestors: '0',
orderNum: 0,
children: [],
selectType: null,
createTime: '2024-10-24 10:04:04',
createBy: 'admin',
},
{
delFlag: '0',
flag: '1',
businessId: 113,
workSpaceName: '文件夹3',
parentId: 100,
'code:': '001',
ancestors: '0',
orderNum: 0,
children: [],
selectType: null,
createTime: '2024-10-24 10:04:04',
createBy: 'admin',
},
{ {
delFlag: '0', delFlag: '0',
flag: '1', flag: '1',
businessId: 101, businessId: 101,
workSpaceName: 'test', workSpaceName: 'test',
parentId: 100, parentId: 111,
'code:': '002', 'code:': '002',
ancestors: '0,100', ancestors: '0,100',
orderNum: 1, orderNum: 1,
...@@ -32,7 +74,7 @@ export const TreeData: any[] = [ ...@@ -32,7 +74,7 @@ export const TreeData: any[] = [
flag: '1', flag: '1',
businessId: 107, businessId: 107,
workSpaceName: '产品验收', workSpaceName: '产品验收',
parentId: 100, parentId: 112,
'code:': '003', 'code:': '003',
ancestors: '0,100', ancestors: '0,100',
orderNum: 2, orderNum: 2,
...@@ -46,7 +88,7 @@ export const TreeData: any[] = [ ...@@ -46,7 +88,7 @@ export const TreeData: any[] = [
flag: '0', flag: '0',
businessId: 203, businessId: 203,
workSpaceName: '2222222', workSpaceName: '2222222',
parentId: 100, parentId: 113,
'code:': '010', 'code:': '010',
ancestors: '0,100,107', ancestors: '0,100,107',
orderNum: 2, orderNum: 2,
......
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