明树Git Lab
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
J
jt_front
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
Administrator
jt_front
Commits
327efb71
Commit
327efb71
authored
Mar 13, 2026
by
zhanghan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
3b68760b
Pipeline
#108284
passed with stage
in 20 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
95 additions
and
71 deletions
+95
-71
informationConstructionAdd.vue
src/views/everydayPage/informationConstructionAdd.vue
+2
-2
index.vue
src/views/login/index.vue
+20
-21
menuManage.vue
src/views/systemManage/menuManage.vue
+73
-48
No files found.
src/views/everydayPage/informationConstructionAdd.vue
View file @
327efb71
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"
文件
类别"
required
>
<el-form-item
label=
"
问题
类别"
required
>
<CommonSelector
<CommonSelector
v-model=
"formData.issueCategory"
v-model=
"formData.issueCategory"
dictName=
"xxhwtlb"
dictName=
"xxhwtlb"
...
@@ -80,7 +80,7 @@ const formData = reactive({
...
@@ -80,7 +80,7 @@ const formData = reactive({
wjmc
:
""
,
// 文件名称
wjmc
:
""
,
// 文件名称
bbsj
:
""
,
// 颁布时间
bbsj
:
""
,
// 颁布时间
wjcj
:
""
,
// 文件层级
wjcj
:
""
,
// 文件层级
wjlb
:
""
,
//
文件
类别
wjlb
:
""
,
//
问题
类别
fjsc
:
[],
// 附件上传
fjsc
:
[],
// 附件上传
});
});
...
...
src/views/login/index.vue
View file @
327efb71
...
@@ -12,11 +12,11 @@
...
@@ -12,11 +12,11 @@
labelPosition=
"top"
labelPosition=
"top"
@
keydown
.
enter=
"handleLogin"
@
keydown
.
enter=
"handleLogin"
>
>
<el-form-item
label=
"
用户名
"
prop=
"mobile"
>
<el-form-item
label=
"
手机号
"
prop=
"mobile"
>
<el-input
<el-input
:prefix-icon=
"User"
:prefix-icon=
"User"
v-model=
"loginForm.mobile"
v-model=
"loginForm.mobile"
placeholder=
"请输入
用户名
"
placeholder=
"请输入
手机号
"
prefix-icon=
"el-icon-user"
prefix-icon=
"el-icon-user"
></el-input>
></el-input>
</el-form-item>
</el-form-item>
...
@@ -60,35 +60,34 @@ const loading = ref(false);
...
@@ -60,35 +60,34 @@ const loading = ref(false);
// 登录表单数据
// 登录表单数据
const
loginForm
=
ref
({
const
loginForm
=
ref
({
mobile
:
""
,
mobile
:
""
,
password
:
""
password
:
""
,
});
});
// 表单验证规则
// 表单验证规则
const
loginRules
=
ref
({
const
loginRules
=
ref
({
mobile
:
[
mobile
:
[{
required
:
true
,
message
:
"请输入手机号"
,
trigger
:
"blur"
}],
{
required
:
true
,
message
:
"请输入用户名"
,
trigger
:
"blur"
}
password
:
[{
required
:
true
,
message
:
"请输入密码"
,
trigger
:
"blur"
}],
],
password
:
[
{
required
:
true
,
message
:
"请输入密码"
,
trigger
:
"blur"
}
],
});
});
// 处理登录
// 处理登录
const
handleLogin
=
async
()
=>
{
const
handleLogin
=
async
()
=>
{
loginFormRef
.
value
?.
validate
(
valid
=>
{
loginFormRef
.
value
?.
validate
(
(
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
proxy
.
$post
({
proxy
.
$post
({
url
:
"/api/user/login"
,
url
:
"/api/user/login"
,
data
:
{
data
:
{
encryptLogStr
:
CryptoJS
.
AES
.
encrypt
(
`
${
loginForm
.
value
.
mobile
}
,
${
loginForm
.
value
.
password
}
`
,
"GFG5w5AP0Ja2rNaa"
).
toString
()
encryptLogStr
:
CryptoJS
.
AES
.
encrypt
(
`
${
loginForm
.
value
.
mobile
}
,
${
loginForm
.
value
.
password
}
`
,
"GFG5w5AP0Ja2rNaa"
,
).
toString
(),
},
},
callback
:
(
data
)
=>
{
callback
:
(
data
)
=>
{
userStore
.
setUseInfo
(
data
);
userStore
.
setUseInfo
(
data
);
router
.
replace
(
"/"
);
router
.
replace
(
"/"
);
},
});
}
}
})
});
}
})
};
};
</
script
>
</
script
>
...
@@ -136,7 +135,7 @@ const handleLogin = async () => {
...
@@ -136,7 +135,7 @@ const handleLogin = async () => {
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
border-radius: 8px;
border-radius: 8px;
:deep(.el-form-item) {
:deep(.el-form-item) {
margin-bottom: 1
0
px;
margin-bottom: 1
6
px;
.el-form-item__content {
.el-form-item__content {
.el-input {
.el-input {
height: 48px;
height: 48px;
...
...
src/views/systemManage/menuManage.vue
View file @
327efb71
...
@@ -22,11 +22,29 @@
...
@@ -22,11 +22,29 @@
default-expand-all
default-expand-all
>
>
<template
#
operations=
"
{ row, index }">
<template
#
operations=
"
{ row, index }">
<el-button
v-if=
"!row.url"
link
type=
"primary"
size=
"small"
@
click=
"addChildMenu(row, index)"
>
新增子菜单
</el-button>
<el-button
<el-button
link
type=
"primary"
size=
"small"
@
click=
"handleEdit(row, index)"
>
v-if=
"!row.url"
link
type=
"primary"
size=
"small"
@
click=
"addChildMenu(row, index)"
>
新增子菜单
</el-button>
<el-button
link
type=
"primary"
size=
"small"
@
click=
"handleEdit(row, index)"
>
编辑
编辑
</el-button>
</el-button>
<el-button
link
type=
"primary"
size=
"small"
@
click=
"handleDelete(row, index)"
>
<el-button
link
type=
"primary"
size=
"small"
@
click=
"handleDelete(row, index)"
>
删除
删除
</el-button>
</el-button>
</
template
>
</
template
>
...
@@ -38,14 +56,24 @@
...
@@ -38,14 +56,24 @@
:title=
"dialogTitle"
:title=
"dialogTitle"
width=
"500px"
width=
"500px"
@
close=
"cancelMenuForm"
@
close=
"cancelMenuForm"
:close-on-click-modal=
"false"
:close-on-press-escape=
"false"
:close-on-click-modal=
"false"
:close-on-press-escape=
"false"
>
<el-form
:model=
"menuFormData"
ref=
"menuForm"
:rules=
"menuRules"
label-width=
"100"
>
>
<el-form
:model=
"menuFormData"
ref=
"menuForm"
:rules=
"menuRules"
label-width=
"100"
>
<el-form-item
label=
"菜单名称"
prop=
"name"
>
<el-form-item
label=
"项目名称"
prop=
"name"
>
<el-input
v-model=
"menuFormData.name"
/>
<el-input
v-model=
"menuFormData.name"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"排序"
>
<el-form-item
label=
"排序"
>
<el-input-number
v-model=
"menuFormData.order"
:min=
"0"
:precision=
"0"
:max=
"99999999999"
<el-input-number
v-model=
"menuFormData.order"
:min=
"0"
:precision=
"0"
:max=
"99999999999"
controls-position=
"right"
controls-position=
"right"
/>
/>
</el-form-item>
</el-form-item>
...
@@ -73,9 +101,7 @@ const loading = ref(false);
...
@@ -73,9 +101,7 @@ const loading = ref(false);
const
menuForm
=
ref
();
const
menuForm
=
ref
();
const
menuRules
=
ref
({
const
menuRules
=
ref
({
name
:
[
name
:
[{
required
:
true
,
message
:
"请输入菜单名称"
,
trigger
:
"blur"
}],
{
required
:
true
,
message
:
"请输入菜单名称"
,
trigger
:
"blur"
}
]
});
});
// 表格数据
// 表格数据
...
@@ -99,7 +125,7 @@ const tableColumns = [
...
@@ -99,7 +125,7 @@ const tableColumns = [
width
:
180
,
width
:
180
,
slot
:
"operations"
,
slot
:
"operations"
,
fixed
:
"right"
,
fixed
:
"right"
,
align
:
"right"
align
:
"right"
,
},
},
];
];
// 表格数据
// 表格数据
...
@@ -134,7 +160,7 @@ const addChildMenu = (row, index) => {
...
@@ -134,7 +160,7 @@ const addChildMenu = (row, index) => {
dialogTitle
.
value
=
"新增菜单"
;
dialogTitle
.
value
=
"新增菜单"
;
menuFormData
.
value
.
parentId
=
row
.
id
;
menuFormData
.
value
.
parentId
=
row
.
id
;
dialogVisible
.
value
=
true
;
dialogVisible
.
value
=
true
;
}
}
;
// 编辑
// 编辑
const
handleEdit
=
(
row
,
index
)
=>
{
const
handleEdit
=
(
row
,
index
)
=>
{
menuFormData
.
value
=
{
...
row
};
menuFormData
.
value
=
{
...
row
};
...
@@ -163,11 +189,10 @@ const handleDelete = async (row, index) => {
...
@@ -163,11 +189,10 @@ const handleDelete = async (row, index) => {
});
});
};
};
const
saveMenuForm
=
()
=>
{
const
saveMenuForm
=
()
=>
{
menuForm
.
value
.
validate
(
valid
=>
{
menuForm
.
value
.
validate
(
(
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
let
url
=
menuFormData
.
value
.
id
?
"updateMenu"
:
"createMenu"
let
url
=
menuFormData
.
value
.
id
?
"updateMenu"
:
"createMenu"
;
proxy
.
$post
({
proxy
.
$post
({
url
:
"/api/user/menu/"
+
url
,
url
:
"/api/user/menu/"
+
url
,
data
:
menuFormData
.
value
,
data
:
menuFormData
.
value
,
...
@@ -175,8 +200,8 @@ const saveMenuForm = () => {
...
@@ -175,8 +200,8 @@ const saveMenuForm = () => {
ElMessage
.
success
(
dialogTitle
.
value
+
"成功"
);
ElMessage
.
success
(
dialogTitle
.
value
+
"成功"
);
loadTableData
();
loadTableData
();
cancelMenuForm
();
cancelMenuForm
();
}
},
})
})
;
}
}
});
});
};
};
...
@@ -192,5 +217,5 @@ onMounted(() => {
...
@@ -192,5 +217,5 @@ onMounted(() => {
</
script
>
</
script
>
<
style
scoped
lang=
"less"
>
<
style
scoped
lang=
"less"
>
@import "@/styles/manage.less";
@import "@/styles/manage.less";
</
style
>
</
style
>
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