Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
link-admin-pc
Project
Project
Details
Activity
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
框架平台
link-admin-pc
Commits
b6a96b8e
Commit
b6a96b8e
authored
Jul 14, 2022
by
Chen_9g
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 字典优化,0.0.7
parent
a4707321
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
Dict.ts
src/api/sys/Dict.ts
+2
-2
DictDetail.vue
src/views/sys/Dict/DictDetail.vue
+1
-1
index.vue
src/views/sys/Dict/index.vue
+1
-1
No files found.
src/api/sys/Dict.ts
View file @
b6a96b8e
...
@@ -31,9 +31,9 @@ export function deleteDict(id) {
...
@@ -31,9 +31,9 @@ export function deleteDict(id) {
method
:
'DELETE'
,
method
:
'DELETE'
,
});
});
}
}
export
function
viewDict
(
id
)
{
export
function
viewDict
(
id
,
groupId
)
{
return
request
({
return
request
({
url
:
Api
.
viewDictUrl
+
id
,
url
:
Api
.
viewDictUrl
+
id
+
'/'
+
groupId
,
method
:
'GET'
,
method
:
'GET'
,
});
});
}
}
...
...
src/views/sys/Dict/DictDetail.vue
View file @
b6a96b8e
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
let
isIdDisabled
=
true
;
let
isIdDisabled
=
true
;
try
{
try
{
if
(
data
&&
data
.
id
)
{
if
(
data
&&
data
.
id
)
{
const
billData
=
(
await
viewDict
(
data
.
id
)).
data
;
const
billData
=
(
await
viewDict
(
data
.
id
,
data
.
groupId
)).
data
;
billData
.
code
=
billData
.
id
;
billData
.
code
=
billData
.
id
;
await
setProps
({
conentLoading
:
false
});
await
setProps
({
conentLoading
:
false
});
setFieldsValue
(
billData
,
true
);
setFieldsValue
(
billData
,
true
);
...
...
src/views/sys/Dict/index.vue
View file @
b6a96b8e
...
@@ -95,7 +95,7 @@ export default defineComponent({
...
@@ -95,7 +95,7 @@ export default defineComponent({
})
})
};
};
function
handleChangeStatus
(
record
:
any
)
{
function
handleChangeStatus
(
record
:
any
)
{
changeEnable
({
id
:
record
.
id
,
isEnable
:
record
.
isEnable
===
1
?
0
:
1
}).
then
((
res
:
Result
<
any
>
)
=>
{
changeEnable
({
id
:
`
${
record
.
id
}
|
${
record
.
groupId
}
`
,
isEnable
:
record
.
isEnable
===
1
?
0
:
1
}).
then
((
res
:
Result
<
any
>
)
=>
{
handleSuccess
();
handleSuccess
();
ElMessage
.
success
(
res
.
msg
);
ElMessage
.
success
(
res
.
msg
);
});
});
...
...
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