Commit 6139e1eb authored by 罗林杰's avatar 罗林杰

修改知识库树

parent 65640772
......@@ -217,7 +217,7 @@
/** 重命名按钮*/
function handleResetName(record: Recordable) {
record.fileName = record.anotherName;
record.workSpaceName = record.name;
openResetNameModal(true, {
record,
isReset: true,
......
......@@ -100,7 +100,7 @@ export const MoveFormSchema: any[] = [
export const resetNameFormSchema: FormSchema[] = [
{
field: 'fileName',
field: 'workSpaceName',
label: '文件名称',
component: 'Input',
rules: [
......
......@@ -49,7 +49,7 @@
const treeList = handleTree(TreeData, 'businessId', undefined, undefined, undefined);
updateSchema([
{
field: 'businessId',
field: 'taskId',
componentProps: {
treeData: treeList,
},
......
......@@ -49,7 +49,7 @@
const treeList = handleTree(TreeData, 'businessId', undefined, undefined, undefined);
updateSchema([
{
field: 'businessId',
field: 'taskId',
componentProps: {
treeData: treeList,
},
......
......@@ -4,6 +4,7 @@ export const TreeData: any[] = [
flag: '1',
businessId: 100,
workSpaceName: '知识库',
name: '知识库',
parentId: 0,
'code:': '001',
ancestors: '0',
......@@ -19,6 +20,7 @@ export const TreeData: any[] = [
flag: '1',
businessId: 111,
workSpaceName: '文件夹1',
name: '文件夹1',
parentId: 100,
'code:': '001',
ancestors: '0',
......@@ -34,6 +36,7 @@ export const TreeData: any[] = [
flag: '1',
businessId: 112,
workSpaceName: '文件夹2',
name: '文件夹2',
parentId: 100,
'code:': '001',
ancestors: '0',
......@@ -49,6 +52,7 @@ export const TreeData: any[] = [
flag: '1',
businessId: 113,
workSpaceName: '文件夹3',
name: '文件夹3',
parentId: 100,
'code:': '001',
ancestors: '0',
......@@ -64,6 +68,7 @@ export const TreeData: any[] = [
flag: '1',
businessId: 101,
workSpaceName: 'test',
name: 'test',
parentId: 111,
'code:': '002',
ancestors: '0,100',
......@@ -79,6 +84,7 @@ export const TreeData: any[] = [
flag: '1',
businessId: 107,
workSpaceName: '产品验收',
name: '产品验收',
parentId: 112,
'code:': '003',
ancestors: '0,100',
......@@ -94,6 +100,7 @@ export const TreeData: any[] = [
flag: '0',
businessId: 203,
workSpaceName: '2222222',
name: '2222222',
parentId: 113,
'code:': '010',
ancestors: '0,100,107',
......
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