Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
intelligent_qp_manager
Project
Project
Details
Activity
Releases
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
张伯涛
intelligent_qp_manager
Commits
1729badb
Commit
1729badb
authored
Oct 18, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
状态显示
parent
dfdca5bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
account.data.ts
src/views/system/user/account.data.ts
+9
-0
No files found.
src/views/system/user/account.data.ts
View file @
1729badb
import
{
getAllRoleList
,
isAccountExist
}
from
'@/api/demo/system'
;
import
{
BasicColumn
,
FormSchema
}
from
'@/components/Table'
;
import
{
optionsListApi
}
from
"@/api/demo/select"
;
import
{
h
}
from
"vue"
;
import
{
Tag
}
from
"ant-design-vue"
;
/**
* transform mock data
...
...
@@ -44,6 +46,13 @@ export const columns: BasicColumn[] = [
title
:
'状态'
,
dataIndex
:
'flag'
,
width
:
180
,
customRender
:
({
record
})
=>
{
const
status
=
record
.
status
;
const
enable
=
~~
status
===
0
;
const
color
=
enable
?
'green'
:
'red'
;
const
text
=
enable
?
'启用'
:
'停用'
;
return
h
(
Tag
,
{
color
:
color
},
()
=>
text
);
},
},
{
title
:
'创建时间'
,
...
...
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