Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
so-manage-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
smart-operation
so-manage-ui
Commits
a4128d62
Commit
a4128d62
authored
Jul 06, 2023
by
李鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dict
parent
a1ef092e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/page/main/system-admin/dict/index.vue
src/page/main/system-admin/dict/index.vue
+3
-0
No files found.
src/page/main/system-admin/dict/index.vue
View file @
a4128d62
...
@@ -74,6 +74,7 @@
...
@@ -74,6 +74,7 @@
@
click=
"changeUseRow(row)"
@
click=
"changeUseRow(row)"
:labels=
"['否', '是']"
:labels=
"['否', '是']"
:values=
"[2, 1]"
:values=
"[2, 1]"
:disabled=
"nodeClassifyId === 3 && row.built_in === 1"
v-model=
"row.status"
></bg-switch>
v-model=
"row.status"
></bg-switch>
</
template
>
</
template
>
<
template
v-slot:action=
"{ row }"
>
<
template
v-slot:action=
"{ row }"
>
...
@@ -405,6 +406,8 @@ const getTableRows = () => {
...
@@ -405,6 +406,8 @@ const getTableRows = () => {
};
// 获取表格数据
};
// 获取表格数据
const
changeUseRow
=
(
row
)
=>
{
const
changeUseRow
=
(
row
)
=>
{
//预警规则类型且为内置数据的不可编辑删除
if
(
row
.
class
===
3
&&
row
.
built_in
==
1
)
return
;
axios
.
put
(
`/v1/api/dict/status?id=
${
row
.
id
}
&status=
${
row
.
status
}
`
).
then
((
res
)
=>
{
axios
.
put
(
`/v1/api/dict/status?id=
${
row
.
id
}
&status=
${
row
.
status
}
`
).
then
((
res
)
=>
{
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
code
==
200
)
{
ElMessage
.
success
(
res
.
data
.
msg
);
ElMessage
.
success
(
res
.
data
.
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