Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7107b83

Browse files
提交
2 parents bd512c1 + 4e814ed commit 7107b83

File tree

9 files changed

+134
-73
lines changed

9 files changed

+134
-73
lines changed

‎src/components/PageForm/index.vue‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
v-if="item.type === 'date'"
6969
v-model="data[item.value]"
7070
:type="item.dateType"
71+
:picker-options="item.TimePickerOptions"
7172
:clearable="item.clearable"
7273
:disabled="item.disabled"
7374
:placeholder="getPlaceholder(item)"

‎src/components/PageTree/index.vue‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ export default {
380380
item.key = item[loadInfo.key]
381381
item[treeProps.label] = item[loadInfo.label]
382382
})
383+
console.log(resData)
383384
// 得到数据后把数据给到父级,方便父级用到
384385
this.$emit('update:baseData', arr)
385386
// 设置默认高亮

‎src/components/SelectFile/index.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export default {
177177
// 得到树状数据
178178
this.treeInfo.treeData = this.$fn.getTreeArr({
179179
key: 'id',
180-
pKey: 'f_id',
180+
pKey: 'pid',
181181
data: val
182182
})
183183
console.log(val)

‎src/store/modules/permission.js‎

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,25 @@ function addPage (arr) {
2323
}
2424
]
2525
}
26-
// const HOWTOUSE = {
27-
// id: 0,
28-
// pid: 1,
29-
// path: '/HOWTOUSE',
30-
// component: Layout,
31-
// redirect: '/HOWTOUSE/PAGE',
32-
// meta: {title: '使用说明', icon: ''},
33-
// children: [
34-
// {
35-
// path: 'PAGE',
36-
// component: () => import('@/views/HOWTOUSE/index'),
37-
// name: 'PAGE',
38-
// meta: {title: '使用说明', icon: 'el-icon-feedback'},
39-
// children: []
40-
// }
41-
// ]
42-
// }
26+
const HOWTOUSE = {
27+
id: 0,
28+
pid: 1,
29+
path: '/HOWTOUSE',
30+
component: Layout,
31+
redirect: '/HOWTOUSE/PAGE',
32+
meta: {title: '使用说明', icon: ''},
33+
children: [
34+
{
35+
path: 'PAGE',
36+
component: () => import('@/views/HOWTOUSE/index'),
37+
name: 'PAGE',
38+
meta: {title: '使用说明', icon: 'el-icon-albb-feedback'},
39+
children: []
40+
}
41+
]
42+
}
4343
arr.unshift(home)
44-
// arr.push(HOWTOUSE)
44+
arr.push(HOWTOUSE)
4545
return arr
4646
}
4747
// 得到页面路径

‎src/views/HOWTOUSE/index.vue‎

Lines changed: 111 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,120 @@
11
<template>
2-
<div class="HOWTOUSE" />
2+
<div class="HOWTOUSE" v-html="marked(init())"/>
33
</template>
44

55
<script>
6+
import marked from '@/common/js/marked'
7+
68
export default {
9+
data () {
10+
return {
11+
marked
12+
}
13+
},
14+
mounted () {
15+
document.querySelector('.HOWTOUSE').addEventListener('click', e => {
16+
// 阻止默认事件
17+
e.preventDefault()
18+
// 定义a标签跳转规则
19+
if (e.target.nodeName === 'A') {
20+
this.$fn.openWindow(e.target.href)
21+
}
22+
})
23+
},
24+
methods: {
25+
init () {
26+
return `
27+
# 关于 #
28+
## shift + F11 开启全屏模式 ##
29+
## github地址 ##
30+
31+
- [管理平台][1] (建设中)
32+
- [论坛][2] (建设中)
33+
- [node服务][3] (建设中)
34+
35+
# 文件库 #
36+
## 图片管理 ##
37+
用户可设置相关文件夹,将相关图片按文件分类上传到服务器,用于管理系统其他模块图片配置
38+
## 文件管理 ##
39+
用户可设置相关文件夹,将相关文件按文件分类上传到服务器,用于管理系统其他模块文件配置
40+
# 论坛设置 #
41+
[去论坛看看][4] (建设中)
42+
## 轮播管理 ##
43+
论坛端主页的轮播管理
44+
## 标签类型管理 ##
45+
用于论坛端
46+
## 标签管理 ##
47+
用于论坛端
48+
# 系统管理 #
49+
## 用户管理页面 ##
50+
### 查询 ###
51+
52+
- 可以查询到当前用户所创建的用户
53+
- 可以查询到创建的用户创建的用户
54+
- 无限分级
55+
### 创建用户 ###
56+
创新新用户
57+
### 编辑用户 ###
58+
对用户进行编辑操作
59+
### 删除用户 ###
60+
61+
- 当前用户存在创建用户,删除时需要先将创建的用户转移给其他用户(非自己的子集用户)
62+
- 当前用户不存在创建用户,可直接删除
63+
## 角色管理页面 ##
64+
### 创建角色 ###
65+
角色创建在当前选中角色的下级
66+
### 编辑角色 ###
67+
对角色基本信息进行编辑操作
68+
### 删除角色 ###
69+
删除当前角色
70+
### 绑定用户 ###
71+
将用户绑定在当前角色,用户将拥有当前角色的权限
72+
## 分配权限 ##
73+
- 左边树状分配菜单权限,右边表格分配数据权限
74+
- 给角色分配权限的时候,只能在当前所属上级的角色所拥有的权限中进行分配
75+
- 测试角色只包含一些不影响页面功能的数据权限
76+
77+
## 菜单管理 ##
78+
管理员可操作,用于配置菜单和数据权限
79+
## 系统日志 ##
80+
记录用户登陆和基本操作信息
81+
82+
83+
[1]: https://github.com/2017coding/BBS_admin
84+
[2]: https://github.com/2017coding/BBS
85+
[3]: https://github.com/2017coding/BBS_node
86+
[4]: https://lyh.red/bbs/
87+
`
88+
}
89+
}
790
}
891
</script>
992

10-
<style lang="scss" scoped>
93+
<style lang="scss">
94+
.HOWTOUSE{
95+
padding: 20px;
96+
h1, h2, h3, h4{
97+
padding: 10px;
98+
}
99+
h1{
100+
margin: 20px 0;
101+
margin-bottom: 10px;
102+
font-size: 24px;
103+
border-bottom: 1px solid rgb(200, 200, 200);
104+
}
105+
h2{
106+
font-size: 18px;
107+
}
108+
h3{
109+
font-size: 16px;
110+
}
111+
p{
112+
padding: 5px;
113+
color: rgb(100, 100, 100);
114+
}
115+
a{
116+
color: red;
117+
text-decoration: underline;
118+
}
119+
}
11120
</style>
File renamed without changes.

‎src/views/layout/index.vue‎

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ export default {
5454
])
5555
},
5656
mounted () {
57-
this.startTips()
5857
// 添加全局的键盘事件
5958
document.body.addEventListener('keyup', this.handleFullScreen)
6059
},
@@ -75,57 +74,6 @@ export default {
7574
this.tip.close()
7675
}
7776
}
78-
},
79-
// 消息提示
80-
startTips () {
81-
setTimeout(() => {
82-
this.$notify({
83-
title: '全屏模式',
84-
message: 'shift + F11',
85-
duration: 30000,
86-
offset: 50
87-
})
88-
}, 100)
89-
setTimeout(() => {
90-
this.$notify({
91-
title: '源码',
92-
message: '右上角点用户进去源码地址,可去作者git仓库查看node端源码和管理平台源码',
93-
duration: 30000,
94-
offset: 50
95-
})
96-
}, 200)
97-
setTimeout(() => {
98-
this.$notify({
99-
title: '用户管理',
100-
message: '1. 用户创建某个用户,这个用户以及他子用户创建的所有用户,父级都能够管理 2. 删除用户时,用户如果有子用户,需要先将子用户转移给同级用户后才可删除',
101-
duration: 30000,
102-
offset: 50
103-
})
104-
}, 300)
105-
setTimeout(() => {
106-
this.$notify({
107-
title: '角色管理',
108-
message: '1. 使用右键可以对角色编辑 2. 绑定用户时,如果用户已经绑定其他角色需要先取消绑定后才能操作 3. 分配菜单或者数据权限的时候,只能分配给当前角色的父级角色的权限',
109-
duration: 30000,
110-
offset: 50
111-
})
112-
}, 400)
113-
setTimeout(() => {
114-
this.$notify({
115-
title: '菜单管理',
116-
message: '1. 右键添加菜单, 菜单中可添加对应的数据权限 2. 数据权限tab需要点击页面级菜单才会显示',
117-
duration: 30000,
118-
offset: 50
119-
})
120-
}, 500)
121-
// setTimeout(() => {
122-
// this.$notify({
123-
// title: '日志管理',
124-
// message: '日志管理会记录当前登录用户,时间,IP等信息',
125-
// duration: 30000,
126-
// offset: 50
127-
// })
128-
// }, 600)
12977
}
13078
}
13179
}

‎src/views/sysMan/userMan/index.vue‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363
:rules="formInfo.rules"
6464
:label-width="formInfo.labelWidth"
6565
:list-type-info="listTypeInfo"
66+
@handleClick="handleClick"
67+
@handleEvent="handleEvent"
6668
>
6769
<!-- 自定义插槽-选择头像 -->
6870
<template v-slot:form-avatar>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /