Skip to content

Commit

Permalink
更换logo,用户管理优化完成
Browse files Browse the repository at this point in the history
  • Loading branch information
elunez committed Nov 22, 2019
1 parent ea08543 commit d99fb71
Show file tree
Hide file tree
Showing 11 changed files with 205 additions and 371 deletions.
Binary file modified public/favicon.ico
Binary file not shown.
17 changes: 1 addition & 16 deletions src/api/job.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,4 @@ export function edit(data) {
})
}

export function downloadJob(params) {
return request({
url: 'api/job/download',
method: 'get',
params,
responseType: 'blob'
})
}

export default {
add,
edit,
del,
getAllJob,
downloadJob
}
export default { add, edit, del }
12 changes: 3 additions & 9 deletions src/api/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,6 @@ export function add(data) {
})
}

export function downloadUser(params) {
return request({
url: 'api/users/download',
method: 'get',
params,
responseType: 'blob'
})
}

export function del(id) {
return request({
url: 'api/users/' + id,
Expand Down Expand Up @@ -51,3 +42,6 @@ export function updateEmail(code, data) {
data
})
}

export default { add, edit, del }

Binary file modified src/assets/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/assets/styles/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $menuHover:#263445;
$subMenuBg:#1f2d3d;
$subMenuHover:#001528;

$sideBarWidth: 200px;
$sideBarWidth: 205px;

// the :export directive is the magic sauce for webpack
// https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass
Expand Down
7 changes: 4 additions & 3 deletions src/layout/components/Sidebar/Logo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
</template>

<script>
import Logo from '@/assets/images/logo.png'
export default {
name: 'SidebarLogo',
props: {
Expand All @@ -24,8 +25,8 @@ export default {
},
data() {
return {
title: 'EL-ADMIN 后台管理',
logo: 'https://wpimg.wallstcn.com/69a1c46c-eb1c-4b46-8bd4-e9e686ef5251.png'
title: 'ELADMIN-后台管理',
logo: Logo
}
}
}
Expand Down Expand Up @@ -57,7 +58,7 @@ export default {
width: 32px;
height: 32px;
vertical-align: middle;
margin-right: 12px;
margin-right: 6px;
}
& .sidebar-title {
Expand Down
2 changes: 1 addition & 1 deletion src/mixins/crud.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
// 表格数据
data: [],
// 排序规则,默认 id 降序, 支持多字段排序 ['id,desc', 'createTime,asc']
sort: ['id,desc', 'createTime,asc'],
sort: ['id,desc'],
// 页码
page: 0,
// 每页数据条数
Expand Down
5 changes: 5 additions & 0 deletions src/utils/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ export function validEmail(email) {
return reg.test(email)
}

export function isvalidPhone(phone) {
const reg = /^1[3|4|5|7|8][0-9]\d{8}$/
return reg.test(phone)
}

/**
* @param {string} str
* @returns {Boolean}
Expand Down
2 changes: 2 additions & 0 deletions src/views/system/user/center.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
</div>
</el-card>
</el-col>
<!-- 用户日志 -->
<el-col :xs="24" :sm="24" :md="16" :lg="18" :xl="19">
<el-card class="box-card">
<div slot="header" class="clearfix">
Expand Down Expand Up @@ -143,6 +144,7 @@ export default {
duration: 2500
})
},
// 刷新日志
refresh() {
this.ico = 'el-icon-loading'
this.init()
Expand Down
218 changes: 0 additions & 218 deletions src/views/system/user/form.vue

This file was deleted.

Loading

0 comments on commit d99fb71

Please sign in to comment.