Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Y
yishuju-ui
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
何远江
yishuju-ui
Commits
e3df34a0
Commit
e3df34a0
authored
Mar 18, 2025
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
部门管理
parent
079eabc8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
DepartmentFormModal.vue
...ystem/departmentManage/components/DepartmentFormModal.vue
+5
-5
index.vue
src/views/system/departmentManage/index.vue
+1
-1
No files found.
src/views/system/departmentManage/components/DepartmentFormModal.vue
View file @
e3df34a0
...
...
@@ -15,11 +15,11 @@
<el-input
v-model=
"form.name"
placeholder=
"请输入部门名称"
/>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<
!--
<
el-col
:span=
"24"
>
<el-form-item
class=
"w-full"
label=
"部门编码"
prop=
"code"
>
<el-input
v-model=
"form.code"
placeholder=
"请输入部门编码"
/>
</el-form-item>
</el-col>
</el-col>
-->
</el-row>
</el-form>
...
...
@@ -41,12 +41,12 @@
const
showModal
=
ref
(
false
);
const
loading
=
ref
(
false
);
const
form
=
ref
({
code
:
''
,
//
code: '',
name
:
''
,
parent
:
{}
});
const
rules
=
ref
({
code
:
{
required
:
true
,
message
:
'请输入部门编码'
,
trigger
:
'blur'
},
//
code: { required: true, message: '请输入部门编码', trigger: 'blur' },
name
:
[
{
required
:
true
,
message
:
'请输入部门名称'
,
trigger
:
'blur'
}
],
...
...
@@ -76,7 +76,7 @@
const
onHide
=
()
=>
{
form
.
value
=
{
code
:
''
,
//
code: '',
name
:
''
,
parent
:
{}
};
...
...
src/views/system/departmentManage/index.vue
View file @
e3df34a0
...
...
@@ -55,7 +55,7 @@ const config = reactive({
columns
:
[
{
type
:
'radio'
,
width
:
60
,
fixed
:
'left'
},
{
field
:
'name'
,
title
:
'部门名称'
,
search
:
{
el
:
'input'
,
labelWidth
:
85
}
},
{
field
:
'code'
,
title
:
'部门编码'
,
search
:
{
el
:
'input'
,
labelWidth
:
85
}
},
//
{ field: 'code', title: '部门编码', search: { el: 'input', labelWidth: 85 } },
{
field
:
'action'
,
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