Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5459fada
authored
Mar 30, 2023
by
puhui999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: @ts-ignore
parent
eff7e25a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
0 deletions
+5
-0
src/plugins/vxeTable/renderer/preview.tsx
+1
-0
src/store/modules/dict.ts
+1
-0
src/types/auto-components.d.ts
+1
-0
src/utils/tree.ts
+2
-0
No files found.
src/plugins/vxeTable/renderer/preview.tsx
View file @
5459fada
...
@@ -25,6 +25,7 @@ VXETable.renderer.add('XPreview', {
...
@@ -25,6 +25,7 @@ VXETable.renderer.add('XPreview', {
)
)
}
else
{
}
else
{
return
(
return
(
// @ts-ignore
<
ElLink
href=
{
row
[
column
.
field
]
}
target=
"_blank"
>
<
ElLink
href=
{
row
[
column
.
field
]
}
target=
"_blank"
>
{
row
[
column
.
field
]
}
{
row
[
column
.
field
]
}
</
ElLink
>
</
ElLink
>
...
...
src/store/modules/dict.ts
View file @
5459fada
import
{
defineStore
}
from
'pinia'
import
{
defineStore
}
from
'pinia'
import
{
store
}
from
'../index'
import
{
store
}
from
'../index'
// @ts-ignore
import
{
DictDataVO
}
from
'@/api/system/dict/types'
import
{
DictDataVO
}
from
'@/api/system/dict/types'
import
{
CACHE_KEY
,
useCache
}
from
'@/hooks/web/useCache'
import
{
CACHE_KEY
,
useCache
}
from
'@/hooks/web/useCache'
const
{
wsCache
}
=
useCache
(
'sessionStorage'
)
const
{
wsCache
}
=
useCache
(
'sessionStorage'
)
...
...
src/types/auto-components.d.ts
View file @
5459fada
...
@@ -70,6 +70,7 @@ declare module '@vue/runtime-core' {
...
@@ -70,6 +70,7 @@ declare module '@vue/runtime-core' {
ElTabPane
:
typeof
import
(
'element-plus/es'
)[
'ElTabPane'
]
ElTabPane
:
typeof
import
(
'element-plus/es'
)[
'ElTabPane'
]
ElTabs
:
typeof
import
(
'element-plus/es'
)[
'ElTabs'
]
ElTabs
:
typeof
import
(
'element-plus/es'
)[
'ElTabs'
]
ElTooltip
:
typeof
import
(
'element-plus/es'
)[
'ElTooltip'
]
ElTooltip
:
typeof
import
(
'element-plus/es'
)[
'ElTooltip'
]
ElTreeSelect
:
typeof
import
(
'element-plus/es'
)[
'ElTreeSelect'
]
ElUpload
:
typeof
import
(
'element-plus/es'
)[
'ElUpload'
]
ElUpload
:
typeof
import
(
'element-plus/es'
)[
'ElUpload'
]
Error
:
typeof
import
(
'./../components/Error/src/Error.vue'
)[
'default'
]
Error
:
typeof
import
(
'./../components/Error/src/Error.vue'
)[
'default'
]
FlowCondition
:
typeof
import
(
'./../components/bpmnProcessDesigner/package/penal/flow-condition/FlowCondition.vue'
)[
'default'
]
FlowCondition
:
typeof
import
(
'./../components/bpmnProcessDesigner/package/penal/flow-condition/FlowCondition.vue'
)[
'default'
]
...
...
src/utils/tree.ts
View file @
5459fada
...
@@ -265,6 +265,7 @@ export const handleTree = (data: any[], id?: string, parentId?: string, children
...
@@ -265,6 +265,7 @@ export const handleTree = (data: any[], id?: string, parentId?: string, children
}
}
return
tree
return
tree
}
}
/**
/**
* 构造树型结构数据
* 构造树型结构数据
* @param {*} data 数据源
* @param {*} data 数据源
...
@@ -273,6 +274,7 @@ export const handleTree = (data: any[], id?: string, parentId?: string, children
...
@@ -273,6 +274,7 @@ export const handleTree = (data: any[], id?: string, parentId?: string, children
* @param {*} children 孩子节点字段 默认 'children'
* @param {*} children 孩子节点字段 默认 'children'
* @param {*} rootId 根Id 默认 0
* @param {*} rootId 根Id 默认 0
*/
*/
// @ts-ignore
export
const
handleTree2
=
(
data
,
id
,
parentId
,
children
,
rootId
)
=>
{
export
const
handleTree2
=
(
data
,
id
,
parentId
,
children
,
rootId
)
=>
{
id
=
id
||
'id'
id
=
id
||
'id'
parentId
=
parentId
||
'parentId'
parentId
=
parentId
||
'parentId'
...
...
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