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
757fbdde
authored
Dec 02, 2023
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐛
修复 dictType 和 dictData 在 IDEA 报错的问题
parent
a77173f2
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
7 deletions
+7
-7
src/api/system/dict/dict.data.ts
+1
-1
src/api/system/dict/dict.type.ts
+1
-1
src/views/system/dict/DictTypeForm.vue
+1
-1
src/views/system/dict/data/DictDataForm.vue
+1
-1
src/views/system/dict/data/index.vue
+1
-1
src/views/system/dict/index.vue
+2
-2
No files found.
src/api/system/dict/dict.data.ts
View file @
757fbdde
...
@@ -45,5 +45,5 @@ export const deleteDictData = (id: number) => {
...
@@ -45,5 +45,5 @@ export const deleteDictData = (id: number) => {
// 导出字典类型数据
// 导出字典类型数据
export
const
exportDictData
=
(
params
)
=>
{
export
const
exportDictData
=
(
params
)
=>
{
return
request
.
get
({
url
:
'/system/dict-data/export'
,
params
})
return
request
.
download
({
url
:
'/system/dict-data/export'
,
params
})
}
}
src/api/system/dict/dict.type.ts
View file @
757fbdde
...
@@ -40,5 +40,5 @@ export const deleteDictType = (id: number) => {
...
@@ -40,5 +40,5 @@ export const deleteDictType = (id: number) => {
}
}
// 导出字典类型
// 导出字典类型
export
const
exportDictType
=
(
params
)
=>
{
export
const
exportDictType
=
(
params
)
=>
{
return
request
.
get
({
url
:
'/system/dict-type/export'
,
params
})
return
request
.
download
({
url
:
'/system/dict-type/export'
,
params
})
}
}
src/views/system/dict/DictTypeForm.vue
View file @
757fbdde
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<el-radio-group
v-model=
"formData.status"
>
<el-radio-group
v-model=
"formData.status"
>
<el-radio
<el-radio
v-for=
"dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
v-for=
"dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
:key=
"dict.value"
:key=
"dict.value
as number
"
:label=
"dict.value"
:label=
"dict.value"
>
>
{{
dict
.
label
}}
{{
dict
.
label
}}
...
...
src/views/system/dict/data/DictDataForm.vue
View file @
757fbdde
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<el-radio-group
v-model=
"formData.status"
>
<el-radio-group
v-model=
"formData.status"
>
<el-radio
<el-radio
v-for=
"dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
v-for=
"dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
:key=
"dict.value"
:key=
"dict.value
as number
"
:label=
"dict.value"
:label=
"dict.value"
>
>
{{
dict
.
label
}}
{{
dict
.
label
}}
...
...
src/views/system/dict/data/index.vue
View file @
757fbdde
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
<el-select
v-model=
"queryParams.status"
placeholder=
"数据状态"
clearable
class=
"!w-240px"
>
<el-select
v-model=
"queryParams.status"
placeholder=
"数据状态"
clearable
class=
"!w-240px"
>
<el-option
<el-option
v-for=
"dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
v-for=
"dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
:key=
"dict.value"
:key=
"dict.value
as number
"
:label=
"dict.label"
:label=
"dict.label"
:value=
"dict.value"
:value=
"dict.value"
/>
/>
...
...
src/views/system/dict/index.vue
View file @
757fbdde
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
>
>
<el-option
<el-option
v-for=
"dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
v-for=
"dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
:key=
"dict.value"
:key=
"dict.value
as number
"
:label=
"dict.label"
:label=
"dict.label"
:value=
"dict.value"
:value=
"dict.value"
/>
/>
...
@@ -161,7 +161,7 @@ const queryParams = reactive({
...
@@ -161,7 +161,7 @@ const queryParams = reactive({
name
:
''
,
name
:
''
,
type
:
''
,
type
:
''
,
status
:
undefined
,
status
:
undefined
,
createTime
:
[]
createTime
:
[
undefined
,
undefined
]
})
})
const
queryFormRef
=
ref
()
// 搜索的表单
const
queryFormRef
=
ref
()
// 搜索的表单
const
exportLoading
=
ref
(
false
)
// 导出的加载中
const
exportLoading
=
ref
(
false
)
// 导出的加载中
...
...
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