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
9c38c330
authored
Feb 17, 2023
by
bimei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 字典点击表格红色报错修改 2.keepalive缓存toCamelCase设置中去掉‘-’,保留驼峰明名
parent
c9cebcde
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
src/utils/routerHelper.ts
+5
-3
src/views/bpm/task/todo/index.vue
+1
-1
src/views/system/dict/index.vue
+1
-0
No files found.
src/utils/routerHelper.ts
View file @
9c38c330
...
@@ -212,9 +212,11 @@ const addToChildren = (
...
@@ -212,9 +212,11 @@ const addToChildren = (
}
}
}
}
const
toCamelCase
=
(
str
:
string
,
upperCaseFirst
:
boolean
)
=>
{
const
toCamelCase
=
(
str
:
string
,
upperCaseFirst
:
boolean
)
=>
{
str
=
(
str
||
''
).
toLowerCase
().
replace
(
/-
(
.
)
/g
,
function
(
group1
:
string
)
{
str
=
(
str
||
''
)
return
group1
.
toUpperCase
()
.
replace
(
/-
(
.
)
/g
,
function
(
group1
:
string
)
{
})
return
group1
.
toUpperCase
()
})
.
replaceAll
(
'-'
,
''
)
if
(
upperCaseFirst
&&
str
)
{
if
(
upperCaseFirst
&&
str
)
{
str
=
str
.
charAt
(
0
).
toUpperCase
()
+
str
.
slice
(
1
)
str
=
str
.
charAt
(
0
).
toUpperCase
()
+
str
.
slice
(
1
)
...
...
src/views/bpm/task/todo/index.vue
View file @
9c38c330
...
@@ -22,7 +22,7 @@ const { push } = useRouter() // 路由
...
@@ -22,7 +22,7 @@ const { push } = useRouter() // 路由
const
[
registerTable
]
=
useXTable
({
const
[
registerTable
]
=
useXTable
({
allSchemas
:
allSchemas
,
allSchemas
:
allSchemas
,
topActionSlots
:
false
,
topActionSlots
:
false
,
getListApi
:
TaskApi
.
getTodoTaskPage
getListApi
:
TaskApi
.
getTodoTaskPage
})
})
...
...
src/views/system/dict/index.vue
View file @
9c38c330
...
@@ -179,6 +179,7 @@ const tableTypeSelect = ref(false)
...
@@ -179,6 +179,7 @@ const tableTypeSelect = ref(false)
const
cellClickEvent
:
VxeTableEvents
.
CellClick
=
async
({
row
})
=>
{
const
cellClickEvent
:
VxeTableEvents
.
CellClick
=
async
({
row
})
=>
{
tableTypeSelect
.
value
=
true
tableTypeSelect
.
value
=
true
queryParams
.
dictType
=
row
[
'type'
]
queryParams
.
dictType
=
row
[
'type'
]
await
nextTick
()
await
dataGetList
()
await
dataGetList
()
parentType
.
value
=
row
[
'type'
]
parentType
.
value
=
row
[
'type'
]
}
}
...
...
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