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

修改知识库树

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