Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
Starter Web Vue
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
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
product
kim3-web-vue
Starter Web Vue
Commits
cb88768c
Commit
cb88768c
authored
Jul 01, 2021
by
陈浩玮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
eea69e87
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
63 additions
and
29 deletions
+63
-29
src/components/table/index.vue
src/components/table/index.vue
+1
-0
src/pages/system/view/organization/usermanagement/User.vue
src/pages/system/view/organization/usermanagement/User.vue
+28
-27
src/pages/system/view/organization/usermanagement/form.vue
src/pages/system/view/organization/usermanagement/form.vue
+34
-2
No files found.
src/components/table/index.vue
View file @
cb88768c
...
...
@@ -69,6 +69,7 @@
</a-space>
</
template
>
</a-drawer>
<slot
name=
"children"
></slot>
</div>
</template>
...
...
src/pages/system/view/organization/usermanagement/User.vue
View file @
cb88768c
<
template
>
<div>
<my-table
url=
"/api/v1/users"
rowKey=
"userId"
ref=
"table"
>
<template
#search
="
{ query }">
<my-form-item
label=
"归属部门"
>
<OrganizationTree
v-model=
"query.orgId"
/>
</my-form-item>
<my-form-item
label=
"账号"
>
<a-input
placeholder=
"Basic usage"
v-model=
"query.loginId"
/>
</my-form-item>
</
template
>
<
template
#buttons
>
<a-button
type=
"primary"
@
click=
"onAdd"
>
新增
</a-button>
<my-table
url=
"/api/v1/users"
rowKey=
"userId"
ref=
"table"
>
<template
#search
="
{ query }">
<my-form-item
label=
"归属部门"
>
<OrganizationTree
v-model=
"query.orgId"
/>
</my-form-item>
<my-form-item
label=
"账号"
>
<a-input
placeholder=
"Basic usage"
v-model=
"query.loginId"
/>
</my-form-item>
</
template
>
<
template
#buttons
>
<a-button
type=
"primary"
@
click=
"onAdd"
>
新增
</a-button>
</
template
>
<a-table-column
title=
"账号"
data-index=
"loginId"
/>
<a-table-column
title=
"姓名"
data-index=
"userName"
/>
<a-table-column
title=
"职称"
data-index=
"userTitleName"
/>
<a-table-column
title=
"移动电话"
data-index=
"mobilePhone"
/>
<a-table-column
title=
"固定电话"
data-index=
"fixedPhone"
/>
<a-table-column
title=
"电子邮箱"
data-index=
"userEmail"
/>
<a-table-column
title=
"是否锁定"
data-index=
"isLockedName"
/>
<a-table-column
title=
"操作"
>
<
template
#default=
"row"
>
<ActionButton
:buttons=
"buttons"
:row=
"row"
/>
</
template
>
</a-table-column>
<a-table-column
title=
"账号"
data-index=
"loginId"
/>
<a-table-column
title=
"姓名"
data-index=
"userName"
/>
<a-table-column
title=
"职称"
data-index=
"userTitleName"
/>
<a-table-column
title=
"移动电话"
data-index=
"mobilePhone"
/>
<a-table-column
title=
"固定电话"
data-index=
"fixedPhone"
/>
<a-table-column
title=
"电子邮箱"
data-index=
"userEmail"
/>
<a-table-column
title=
"是否锁定"
data-index=
"isLockedName"
/>
<a-table-column
title=
"操作"
>
<
template
#default=
"row"
>
<ActionButton
:buttons=
"buttons"
:row=
"row"
/>
</
template
>
</a-table-column>
</my-table>
<Form
ref=
"form"
/>
</div>
<
template
#children
>
<Form
ref=
"form"
/>
</
template
>
</my-table>
</template>
<
script
>
import
Form
from
'
./form.vue
'
;
...
...
src/pages/system/view/organization/usermanagement/form.vue
View file @
cb88768c
<
template
>
<Drawer
ref=
"drawerRef"
v-model=
"visible"
>
<a-form-model
layout=
"vertical"
:model=
"form"
:rules=
"rules"
ref=
"DrawerForm"
>
<Drawer
ref=
"drawerRef"
v-model=
"visible"
title=
"用户配置"
>
<
!--
<
a-form-model
layout=
"vertical"
:model=
"form"
:rules=
"rules"
ref=
"DrawerForm"
>
<a-form-model-item
label=
"名称"
prop=
"jobName"
>
<a-input
v-model=
"form.jobName"
:disabled=
"isView"
/>
</a-form-model-item>
<a-form-model-item
label=
"描述"
prop=
"jobDescription"
>
<a-textarea
v-model=
"form.jobDescription"
:disabled=
"isView"
:rows=
"4"
/>
</a-form-model-item>
</a-form-model>
-->
<a-steps
:current=
"current"
>
<a-step
v-for=
"item in steps"
:key=
"item.title"
:title=
"item.title"
/>
</a-steps>
<a-form-model
layout=
"vertical"
:model=
"form"
:rules=
"rules"
ref=
"DrawerForm"
>
<a-form-model-item
label=
"名称"
prop=
"jobName"
>
<a-input
v-model=
"form.jobName"
:disabled=
"isView"
/>
</a-form-model-item>
</a-form-model>
<template
#footer
>
<a-button
type=
"primary"
@
click=
"prev"
v-if=
"current > 0"
>
上一步
</a-button>
<a-button
type=
"primary"
@
click=
"next"
v-if=
"current
<
2"
>
下一步
</a-button>
</
template
>
</Drawer>
</template>
...
...
@@ -27,12 +40,31 @@ export default {
{
required
:
true
,
message
:
'
Please select Activity zone
'
,
trigger
:
'
change
'
},
],
},
current
:
0
,
steps
:
[
{
title
:
'
基本信息
'
,
},
{
title
:
'
证件设置
'
,
},
{
title
:
'
岗位设置
'
,
},
],
};
},
methods
:
{
open
()
{
this
.
visible
=
true
;
},
next
()
{
this
.
current
++
;
},
prev
()
{
this
.
current
--
;
},
add
()
{
return
JobsApi
.
addJobs
({
...
this
.
form
});
},
...
...
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