Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bigDataSystem
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
bigDataSystem
Commits
b015ba43
Commit
b015ba43
authored
Nov 15, 2024
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增了路由
parent
09261484
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
47 additions
and
191 deletions
+47
-191
index.ts
src/router/routes/index.ts
+34
-0
audiModaltab2.vue
src/views/auditLog/audiModaltab2.vue
+0
-2
beforeOutputModal.vue
src/views/auditLog/beforeOutputModal.vue
+13
-0
ModelTree.vue
...aWarehousePlanning/logicalModel/modelDetail/ModelTree.vue
+0
-77
modelModal.vue
...WarehousePlanning/logicalModel/modelDetail/modelModal.vue
+0
-112
No files found.
src/router/routes/index.ts
View file @
b015ba43
...
@@ -523,6 +523,39 @@ export const kinshipParseRoute: AppRouteRecordRaw = {
...
@@ -523,6 +523,39 @@ export const kinshipParseRoute: AppRouteRecordRaw = {
},
},
],
],
};
};
/**服务开发*/
export
const
serviceDevelopmentRoute
:
AppRouteRecordRaw
=
{
path
:
'/serviceDevelopment'
,
name
:
'serviceDevelopment'
,
component
:
LAYOUT
,
meta
:
{
title
:
'服务开发'
,
icon
:
''
,
hidden
:
true
,
currentActiveMenu
:
'/serviceDevelopment'
,
},
children
:
[
{
path
:
'fileDetail'
,
name
:
'fileDetail'
,
component
:
()
=>
import
(
'@/views/serviceDevelopment/index.vue'
),
meta
:
{
title
:
'模块描述'
,
icon
:
''
,
},
},
{
path
:
'apiContrast'
,
name
:
'apiContrast'
,
component
:
()
=>
import
(
'@/views/serviceDevelopment/apiContrast.vue'
),
meta
:
{
title
:
'api对比'
,
icon
:
''
,
},
},
],
};
// Basic routing without permission
// Basic routing without permission
// 没有权限要求的基本路由
// 没有权限要求的基本路由
export
const
basicRoutes
=
[
export
const
basicRoutes
=
[
...
@@ -536,6 +569,7 @@ export const basicRoutes = [
...
@@ -536,6 +569,7 @@ export const basicRoutes = [
DataSourceRoute
,
DataSourceRoute
,
DataStandardRoute
,
DataStandardRoute
,
kinshipParseRoute
,
kinshipParseRoute
,
serviceDevelopmentRoute
,
// RootRoute,
// RootRoute,
...
mainOutRoutes
,
...
mainOutRoutes
,
REDIRECT_ROUTE
,
REDIRECT_ROUTE
,
...
...
src/views/auditLog/audiModaltab2.vue
View file @
b015ba43
...
@@ -16,9 +16,7 @@
...
@@ -16,9 +16,7 @@
import
{
ModelFormSchematab2
}
from
'./audiModal.data'
;
import
{
ModelFormSchematab2
}
from
'./audiModal.data'
;
import
{
getDeptList
}
from
'@/api/system/dept/dept'
;
import
{
getDeptList
}
from
'@/api/system/dept/dept'
;
import
{
addUserApi
,
UserDetailApi
,
UserUpdataApi
}
from
'@/api/system/user/user'
;
import
{
addUserApi
,
UserDetailApi
,
UserUpdataApi
}
from
'@/api/system/user/user'
;
import
{
encryptTwo
}
from
'../../../../src/utils/jsencrypt.js'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
TableData
}
from
'./mock'
;
import
{
router
}
from
'@/router'
;
import
{
router
}
from
'@/router'
;
defineOptions
({
name
:
'ModelModal'
});
defineOptions
({
name
:
'ModelModal'
});
...
...
src/views/auditLog/beforeOutputModal.vue
View file @
b015ba43
<
template
>
</
template
>
<
script
>
export
default
{
name
:
"beforeOutputModal"
}
</
script
>
<
style
scoped
>
</
style
>
src/views/dataWarehousePlanning/logicalModel/modelDetail/ModelTree.vue
deleted
100644 → 0
View file @
09261484
<
template
>
<div
class=
"m-4 mr-0 overflow-hidden bg-white"
>
<BasicTree
ref=
"treeRef"
treeWrapperClassName=
"h-[calc(100%-35px)] overflow-auto"
:clickRowToExpand=
"true"
:defaultExpandAll=
"true"
:treeData=
"treeData"
:fieldNames=
"
{ key: 'businessId', title: 'modelName' }"
@select="handleSelect"
/>
</div>
</
template
>
<
script
lang=
"ts"
setup
>
import
{
nextTick
,
onMounted
,
ref
,
unref
}
from
'vue'
;
import
{
BasicTree
,
TreeActionType
,
TreeItem
}
from
'@/components/Tree'
;
import
{
Nullable
}
from
'@vben/types'
;
import
{
TreeData
}
from
'@/views/dataWarehousePlanning/logicalModel/modelDetail/modelData'
;
defineOptions
({
name
:
'DeptTree'
});
const
emit
=
defineEmits
([
'select'
]);
const
treeData
=
ref
<
TreeItem
[]
>
([]);
const
treeRef
=
ref
<
Nullable
<
TreeActionType
>>
(
null
);
function
getTree
()
{
const
tree
=
unref
(
treeRef
);
if
(
!
tree
)
{
throw
new
Error
(
'tree is null!'
);
}
return
tree
;
}
async
function
fetch
()
{
const
data
=
TreeData
;
treeData
.
value
=
handleTree
(
data
,
'businessId'
,
undefined
,
undefined
,
undefined
);
await
nextTick
(()
=>
{
getTree
().
expandAll
(
true
);
});
}
function
handleTree
(
data
,
id
,
parentId
,
children
,
rootId
)
{
id
=
id
||
'id'
;
parentId
=
parentId
||
'parentId'
;
children
=
children
||
'children'
;
rootId
=
rootId
||
Math
.
min
.
apply
(
Math
,
data
.
map
((
item
)
=>
{
return
item
[
parentId
];
}),
)
||
0
;
// 对源数据深度克隆
const
cloneData
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
// 循环所有项
const
treeData
=
cloneData
.
filter
((
father
)
=>
{
const
branchArr
=
cloneData
.
filter
((
child
)
=>
{
// 返回每一项的子级数组
return
father
[
id
]
===
child
[
parentId
];
});
branchArr
.
length
>
0
?
(
father
.
children
=
branchArr
)
:
''
;
// 返回第一层
return
father
[
parentId
]
===
rootId
;
});
return
treeData
!==
''
?
treeData
:
data
;
}
function
handleSelect
(
keys
)
{
emit
(
'select'
,
keys
[
0
]);
}
onMounted
(()
=>
{
fetch
();
});
</
script
>
src/views/dataWarehousePlanning/logicalModel/modelDetail/modelModal.vue
deleted
100644 → 0
View file @
09261484
<
template
>
<BasicModal
width=
"40%"
v-bind=
"$attrs"
@
register=
"registerModal"
:title=
"getTitle"
@
ok=
"handleSubmit"
>
<BasicForm
@
register=
"registerForm"
/>
</BasicModal>
</
template
>
<
script
lang=
"ts"
setup
>
import
{
ref
,
computed
,
unref
,
onMounted
}
from
'vue'
;
import
{
BasicModal
,
useModalInner
}
from
'@/components/Modal'
;
import
{
BasicForm
,
useForm
}
from
'@/components/Form'
;
import
{
modelFormSchema
}
from
'./model.data'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
TreeData
}
from
'@/views/dataWarehousePlanning/logicalModel/modelDetail/modelData'
;
import
{
router
}
from
'@/router'
;
defineOptions
({
name
:
'ModelModal'
});
const
props
=
defineProps
({
modelData
:
{
type
:
Object
},
});
const
emit
=
defineEmits
([
'success'
,
'register'
]);
const
{
createMessage
}
=
useMessage
();
const
isUpdate
=
ref
(
true
);
const
isMove
=
ref
(
false
);
const
rowId
=
ref
(
''
);
const
getTitle
=
ref
(
''
);
//获取接口数据并放在下拉框里(这里是打开了一个弹框)
//初始化表单
const
[
registerForm
,
{
setFieldsValue
,
updateSchema
,
resetFields
,
validate
}]
=
useForm
({
labelWidth
:
100
,
baseColProps
:
{
lg
:
12
,
md
:
24
},
schemas
:
modelFormSchema
,
showActionButtonGroup
:
false
,
actionColOptions
:
{
span
:
23
,
},
});
//初始化弹框
const
[
registerModal
,
{
setModalProps
,
closeModal
}]
=
useModalInner
(
async
(
data
)
=>
{
resetFields
();
getTitle
.
value
=
data
.
titel
setModalProps
({
confirmLoading
:
false
});
isUpdate
.
value
=
!!
data
?.
isUpdate
;
isMove
.
value
=
!!
data
?.
isMove
;
if
(
unref
(
isUpdate
))
{
// 获取行数据的id
rowId
.
value
=
data
.
record
.
businessId
;
// 塞值
setFieldsValue
({
...
data
.
record
,
});
}
const
treeList
=
handleTree
(
TreeData
,
'businessId'
,
undefined
,
undefined
,
undefined
);
console
.
log
(
'treeList'
,
treeList
);
updateSchema
([
{
field
:
'modelId'
,
componentProps
:
{
treeData
:
treeList
,
},
},
]);
});
// const getTitle = computed(() => '新建文件');
function
handleTree
(
data
,
id
,
parentId
,
children
,
rootId
)
{
id
=
id
||
'id'
;
parentId
=
parentId
||
'parentId'
;
children
=
children
||
'children'
;
rootId
=
rootId
||
Math
.
min
.
apply
(
Math
,
data
.
map
((
item
)
=>
{
return
item
[
parentId
];
}),
)
||
0
;
// 对源数据深度克隆
const
cloneData
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
// 循环所有项
const
treeData
=
cloneData
.
filter
((
father
)
=>
{
const
branchArr
=
cloneData
.
filter
((
child
)
=>
{
// 返回每一项的子级数组
return
father
[
id
]
===
child
[
parentId
];
});
branchArr
.
length
>
0
?
(
father
.
children
=
branchArr
)
:
''
;
// 返回第一层
return
father
[
parentId
]
===
rootId
;
});
return
treeData
!==
''
?
treeData
:
data
;
}
/**确定按钮*/
async
function
handleSubmit
()
{
const
values
=
await
validate
();
router
.
push
({
path
:
'/metaModel/knowledgeModel/EditRowTable'
,
query
:
{},
});
closeModal
();
}
</
script
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment