Skip to content

Commit 344e4ae

Browse files
authored
Merge pull request #32 from lixiangxiang1/main
fix:develop->main v1.0.0-release 's work
2 parents b4d54ce + b6019f8 commit 344e4ae

21 files changed

Lines changed: 930 additions & 105 deletions

File tree

.env.production

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ ENV = 'production'
22

33
# 接口地址,注意协议,如果你没有配置 ssl,需要将 https 改为 http
44
VUE_APP_BASE_API = 'http://127.0.0.1:8000'
5+
56
# 如果接口是 http 形式, wss 需要改为 ws
67
VUE_APP_WS_API = 'wss://localhost:8000'

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ SMPE-ADMIN通用框架前端
44
## 项目简介
55
一个基于[EL-ADMIN](https://el-admin.vip/)、Spring Boot 2.1.0 、 Mybatis Plus、JWT + Spring Security、Redis、Vue的前后端分离的后台管理系统
66

7-
**开发文档:** 待完善
7+
**[官方文档](https://sanyueruanjian.github.io/smpe-admin-doc/)**
88

99
## 项目源码
1010

1111
| | 后端源码 | 前端源码 |
1212
|--- |--- | --- |
13-
| GitHub | https://github.com/shiwei-Ren/smpe-admin | https://github.com/shiwei-Ren/smpe-admin-web |
13+
| GitHub | https://github.com/sanyueruanjian/smpe-admin | https://github.com/sanyueruanjian/smpe-admin-web |
1414

1515
### 项目结构
1616

@@ -39,7 +39,7 @@ SMPE-ADMIN通用框架前端
3939
|-- vue.config.js cli配置文件
4040
```
4141

42-
## 使用手册
42+
## 使用指南
4343
### 用户账号密码
4444

4545
- 管理员: ```admin```
@@ -78,9 +78,9 @@ npm run build
7878
4. [docker 构建centos7+git+nvm镜像,实现自主切换node版本统一部署前端vue项目](https://blog.csdn.net/qq_42937522/article/details/108702775)
7979

8080
# 鸣谢
81-
- [@三月软件](http://www.marchsoft.cn/)提供技术支持
82-
- 主要参考[EL-ADMIN](https://el-admin.vip/)
83-
-[@Nancy](https://github.com/NancyDancy)[@shiwei-Ren](https://github.com/shiwei-Ren)[@jiaoqianjin](https://github.com/jiaoqianjin)[@mingDn](https://github.com/mingDn)参与前端初版的开发维护
84-
85-
81+
- 感谢 [EL-ADMIN](https://el-admin.vip/) 开源框架
82+
- 感谢[@shiwei-Ren](https://github.com/shiwei-Ren)[@jiaoqianjin](https://github.com/jiaoqianjin)[@Nancy](https://github.com/NancyDancy)参与初版的开发维护
83+
- 感谢每一位为 SMPE-ADMIN 做出过贡献的开发者
8684

85+
# 反馈交流
86+
QQ交流群:571506692

src/api/data.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ export function initData(url, params) {
99
}
1010

1111
export function download(url, params) {
12+
console.log(url, '2')
13+
// console.log(params,"2")
1214
return request({
1315
url: url + '?' + qs.stringify(params, { indices: false }),
1416
method: 'get',

src/api/monitor/log.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import request from '@/utils/request'
2+
3+
export function getErrDetail(id) {
4+
return request({
5+
url: 'api/logs/error/' + id,
6+
method: 'get'
7+
})
8+
}
9+
10+
export function delAllError() {
11+
return request({
12+
url: 'api/logs/del/error',
13+
method: 'delete'
14+
})
15+
}
16+
17+
export function delAllInfo() {
18+
return request({
19+
url: 'api/logs/del/info',
20+
method: 'delete'
21+
})
22+
}

src/api/system/timing.js

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import request from '@/utils/request'
2+
3+
export function add(data) {
4+
return request({
5+
url: 'api/jobs',
6+
method: 'post',
7+
data
8+
})
9+
}
10+
11+
export function del(ids) {
12+
return request({
13+
url: 'api/jobs',
14+
method: 'delete',
15+
data: ids
16+
})
17+
}
18+
19+
export function edit(data) {
20+
return request({
21+
url: 'api/jobs',
22+
method: 'put',
23+
data
24+
})
25+
}
26+
27+
export function updateIsPause(id) {
28+
return request({
29+
url: 'api/jobs/' + id,
30+
method: 'put'
31+
})
32+
}
33+
34+
export function execution(id) {
35+
return request({
36+
url: 'api/jobs/exec/' + id,
37+
method: 'put'
38+
})
39+
}
40+
41+
export default { del, add, edit, updateIsPause, execution }

src/components/Crud/crud.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ function CRUD(options) {
120120
},
121121
// 搜索
122122
toQuery() {
123+
if (crud.getQueryParams().startTime) {
124+
crud.query.createTime = null
125+
}
123126
crud.page.page = 1
124127
crud.refresh()
125128
},
@@ -132,8 +135,6 @@ function CRUD(options) {
132135
crud.loading = true
133136
// 请求数据
134137
initData(crud.url, crud.getQueryParams()).then(res => {
135-
// console.log(123456)
136-
// console.log(res)
137138
const table = crud.getTable()
138139
if (table && table.lazy) { // 懒加载子节点数据,清掉已加载的数据
139140
table.store.states.treeData = {}
@@ -147,6 +148,9 @@ function CRUD(options) {
147148
crud.loading = false
148149
callVmHook(crud, CRUD.HOOK.afterRefresh)
149150
}, crud.time)
151+
// 清除上次搜索的条件
152+
crud.query.startTime = null
153+
crud.query.endTime = null
150154
resolve(data)
151155
}).catch(err => {
152156
crud.loading = false

src/layout/components/Navbar.vue

Lines changed: 71 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
<template>
22
<div class="navbar">
3-
<hamburger id="hamburger-container" :is-active="sidebar.opened" class="hamburger-container" @toggleClick="toggleSideBar" />
3+
<hamburger
4+
id="hamburger-container"
5+
:is-active="sidebar.opened"
6+
class="hamburger-container"
7+
@toggleClick="toggleSideBar"
8+
/>
49

510
<breadcrumb id="breadcrumb-container" class="breadcrumb-container" />
611

@@ -18,7 +23,7 @@
1823

1924
<el-dropdown class="avatar-container right-menu-item hover-effect" trigger="click">
2025
<div class="avatar-wrapper">
21-
<img :src="user.avatarName ? baseApi + '/avatar/' + user.avatarName : Avatar" class="user-avatar">
26+
<img :src="user.avatarPath ? baseApi + '/api/file/download/' + user.avatarPath : Avatar" class="user-avatar">
2227
<i class="el-icon-caret-bottom" />
2328
</div>
2429
<el-dropdown-menu slot="dropdown">
@@ -106,85 +111,85 @@ export default {
106111
</script>
107112

108113
<style lang="scss" scoped>
109-
.navbar {
110-
height: 50px;
111-
overflow: hidden;
112-
position: relative;
113-
background: #fff;
114-
box-shadow: 0 1px 4px rgba(0,21,41,.08);
115-
116-
.hamburger-container {
117-
line-height: 46px;
118-
height: 100%;
119-
float: left;
120-
cursor: pointer;
121-
transition: background .3s;
122-
-webkit-tap-highlight-color:transparent;
123-
124-
&:hover {
125-
background: rgba(0, 0, 0, .025)
126-
}
127-
}
128-
129-
.breadcrumb-container {
130-
float: left;
131-
}
132-
133-
.errLog-container {
134-
display: inline-block;
135-
vertical-align: top;
136-
}
114+
.navbar {
115+
height: 50px;
116+
overflow: hidden;
117+
position: relative;
118+
background: #fff;
119+
box-shadow: 0 1px 4px rgba(0, 21, 41, .08);
120+
121+
.hamburger-container {
122+
line-height: 46px;
123+
height: 100%;
124+
float: left;
125+
cursor: pointer;
126+
transition: background .3s;
127+
-webkit-tap-highlight-color: transparent;
137128
138-
.right-menu {
139-
float: right;
140-
height: 100%;
141-
line-height: 50px;
129+
&:hover {
130+
background: rgba(0, 0, 0, .025)
131+
}
132+
}
142133
143-
&:focus {
144-
outline: none;
134+
.breadcrumb-container {
135+
float: left;
145136
}
146137
147-
.right-menu-item {
138+
.errLog-container {
148139
display: inline-block;
149-
padding: 0 8px;
150-
height: 100%;
151-
font-size: 18px;
152-
color: #5a5e66;
153-
vertical-align: text-bottom;
140+
vertical-align: top;
141+
}
154142
155-
&.hover-effect {
156-
cursor: pointer;
157-
transition: background .3s;
143+
.right-menu {
144+
float: right;
145+
height: 100%;
146+
line-height: 50px;
158147
159-
&:hover {
160-
background: rgba(0, 0, 0, .025)
161-
}
148+
&:focus {
149+
outline: none;
162150
}
163-
}
164-
165-
.avatar-container {
166-
margin-right: 30px;
167151
168-
.avatar-wrapper {
169-
margin-top: 5px;
170-
position: relative;
152+
.right-menu-item {
153+
display: inline-block;
154+
padding: 0 8px;
155+
height: 100%;
156+
font-size: 18px;
157+
color: #5a5e66;
158+
vertical-align: text-bottom;
171159
172-
.user-avatar {
160+
&.hover-effect {
173161
cursor: pointer;
174-
width: 40px;
175-
height: 40px;
176-
border-radius: 10px;
162+
transition: background .3s;
163+
164+
&:hover {
165+
background: rgba(0, 0, 0, .025)
166+
}
177167
}
168+
}
178169
179-
.el-icon-caret-bottom {
180-
cursor: pointer;
181-
position: absolute;
182-
right: -20px;
183-
top: 25px;
184-
font-size: 12px;
170+
.avatar-container {
171+
margin-right: 30px;
172+
173+
.avatar-wrapper {
174+
margin-top: 5px;
175+
position: relative;
176+
177+
.user-avatar {
178+
cursor: pointer;
179+
width: 40px;
180+
height: 40px;
181+
border-radius: 10px;
182+
}
183+
184+
.el-icon-caret-bottom {
185+
cursor: pointer;
186+
position: absolute;
187+
right: -20px;
188+
top: 25px;
189+
font-size: 12px;
190+
}
185191
}
186192
}
187193
}
188194
}
189-
}
190195
</style>

src/layout/components/Sidebar/Logo.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
<script>
1717
import Logo from '@/assets/images/logo.png'
18+
import Setting from '@/settings'
1819
export default {
1920
name: 'SidebarLogo',
2021
props: {
@@ -25,7 +26,7 @@ export default {
2526
},
2627
data() {
2728
return {
28-
title: '三月软件-后台管理',
29+
title: Setting.logoTitle,
2930
logo: Logo
3031
}
3132
}

0 commit comments

Comments
 (0)