明树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
25bbac44
Commit
25bbac44
authored
Dec 10, 2025
by
yangyajing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
浮点数计算
parent
6aa0ed17
Pipeline
#104458
passed with stage
in 13 seconds
Changes
6
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
146 additions
and
86 deletions
+146
-86
MainLayout.vue
src/layouts/MainLayout.vue
+7
-1
leftMenu.vue
src/layouts/leftMenu.vue
+2
-2
leftMenuItem.vue
src/layouts/leftMenuItem.vue
+1
-1
manage.less
src/styles/manage.less
+17
-4
addProject.vue
src/views/managePage/addProject.vue
+97
-50
userManage.vue
src/views/systemManage/userManage.vue
+22
-28
No files found.
src/layouts/MainLayout.vue
View file @
25bbac44
...
...
@@ -22,7 +22,7 @@
</div>
</el-header>
<el-container>
<el-container
class=
"container-main"
>
<!-- 侧边Aside -->
<el-aside
width=
"220px"
class=
"city-aside"
>
<left-menu></left-menu>
...
...
@@ -86,6 +86,12 @@ const handleLogout = () => {
.smart-city-container {
height: 100vh;
overflow: hidden;
display: flex;
flex-direction: column;
.container-main{
flex: 1;
height: 0;
}
}
/* 选中菜单项样式 */
...
...
src/layouts/leftMenu.vue
View file @
25bbac44
...
...
@@ -5,10 +5,10 @@
>
<template
v-for=
"item in menuList"
>
<template
v-if=
"item.children && item.children.length"
>
<left-menu-item
:key=
"item.id"
:menuItem=
"item"
></left-menu-item>
<left-menu-item
:key=
"item.id
?.toString()
"
:menuItem=
"item"
></left-menu-item>
</
template
>
<
template
v-else
>
<el-menu-item
:key=
"item.id"
:index=
"item.url"
>
<el-menu-item
:key=
"item.id
?.toString()
"
:index=
"item.url"
>
<span>
{{
item
.
name
}}
</span>
</el-menu-item>
</
template
>
...
...
src/layouts/leftMenuItem.vue
View file @
25bbac44
<
template
>
<el-sub-menu
:index=
"menuItem.id"
>
<el-sub-menu
:index=
"menuItem.id
?.toString()
"
>
<template
#
title
>
<span>
{{
menuItem
.
name
}}
</span>
</
template
>
...
...
src/styles/manage.less
View file @
25bbac44
.tab-content{
th{
// text-align: center;
}
.manage-container{
display: flex;
flex-direction: column;
}
.manage-header{
background: rgba(255, 255, 255, 0.9);
border-radius: 8px;
padding: 12px 20px 0;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
}
.manage-content{
flex: 1;
height: 0;
}
\ No newline at end of file
src/views/managePage/addProject.vue
View file @
25bbac44
This diff is collapsed.
Click to expand it.
src/views/systemManage/userManage.vue
View file @
25bbac44
<
template
>
<div
class=
"user-manage"
v-loading=
"loading"
>
<!--
<div
class=
"search-form"
>
<commonForm
v-model=
"searchForm"
:config=
"searchConfig"
:items=
"searchItems"
@
submit=
"handleSearch"
@
reset=
"handleReset"
/>
</div>
-->
<div
class=
"table-container"
>
<div
class=
"manage-container user-manage"
v-loading=
"loading"
>
<div
class=
"manage-header"
>
<div
class=
"header-left"
>
<el-form
:inline=
"true"
:model=
"searchForm"
>
<el-form-item
label=
"关键字查询"
>
<el-input
v-model=
"searchForm.name"
clearable
/>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
</el-form-item>
</el-form>
</div>
<div
class=
"header-right"
>
<el-form>
<el-form-item>
<el-button
type=
"primary"
@
click=
"handleAdd"
>
新增用户
</el-button>
</el-form-item>
</el-form>
</div>
</div>
<div
class=
"manage-content table-container"
>
<common-table
:autoHeight=
"true"
:maxRows=
"10"
:rowHeight=
"40"
:data=
"tableData"
:columns=
"tableColumns"
:total=
"total"
...
...
@@ -24,22 +33,6 @@
@
size-change=
"handleSizeChange"
@
current-page-change=
"handleCurrentPageChange"
>
<template
#
header-left
>
<commonForm
v-model=
"searchForm"
:config=
"searchConfig"
:items=
"searchItems"
@
submit=
"handleSearch"
@
reset=
"handleReset"
/>
</
template
>
<
template
#
header-actions
>
<el-button
type=
"primary"
@
click=
"handleAdd"
>
<!--
<el-icon><Plus
/></el-icon>
-->
新增
</el-button>
</
template
>
<template
#
enable=
"
{ row }">
<el-switch
:model-value=
"row.enable === 0 ? true : false"
...
...
@@ -530,6 +523,7 @@ onMounted(() => {
</
script
>
<
style
scoped
lang=
"less"
>
@import "@/styles/manage.less";
.user-manage {
padding: 8px 8px 20px 8px;
background: rgba(157, 188, 218, 0.1);
...
...
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