Commit 6ec82312 by duanaijun

Merge branch 'develop' into 'test'

增加会员类型培训用户 See merge request !182
parents 1783eefb 107ab6e7
# 多彩校园综合项目
内含多个子项目`customerManage`,`baseManage`,`systemManage`,`operateManage`,`statisticsManage`,`deviceManage`,`smaproManage`.
# 运维替换文件 # 运维替换文件
打包分别有 3 种模式 打包分别有 3 种模式
......
...@@ -24,6 +24,7 @@ export const customerTypesOptions = [ ...@@ -24,6 +24,7 @@ export const customerTypesOptions = [
{ label: '社区领导', value: '5' }, { label: '社区领导', value: '5' },
{ label: '学校领导', value: '6' }, { label: '学校领导', value: '6' },
{ label: '单位领导', value: '7' }, { label: '单位领导', value: '7' },
{ label: '培训人员', value: '8'}
]; ];
export const customerSexOptions = [ export const customerSexOptions = [
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<div class="IconMenu-name">{{ menuName }}</div> <div class="IconMenu-name">{{ menuName }}</div>
</div> </div>
<div <div
:class="`SubmenuBox ${showSubMenus?'show':''}`" :class="{SubmenuBox: true, show: showSubMenus, scroll: needScroll}"
:style="style" :style="style"
v-if="menuList && menuList.length" v-if="menuList && menuList.length"
> >
...@@ -78,6 +78,7 @@ ...@@ -78,6 +78,7 @@
<script> <script>
import LikeIcon from './LikeIcon'; import LikeIcon from './LikeIcon';
let timers = null;
export default { export default {
name: 'MenuItem', name: 'MenuItem',
components: { LikeIcon }, components: { LikeIcon },
...@@ -101,6 +102,7 @@ export default { ...@@ -101,6 +102,7 @@ export default {
data() { data() {
return { return {
showSubMenus: false, showSubMenus: false,
needScroll: false,
style: '', style: '',
}; };
}, },
...@@ -123,6 +125,19 @@ export default { ...@@ -123,6 +125,19 @@ export default {
methods: { methods: {
toggleSubmenus(visiable) { toggleSubmenus(visiable) {
this.showSubMenus = visiable; this.showSubMenus = visiable;
if (visiable) {
// this.$nextTick(() => {
// });
timers = setTimeout(() => {
this.needScroll = visiable;
}, 280);
} else {
if (timers) {
clearTimeout(timers);
timers = null;
}
this.needScroll = visiable;
}
}, },
selectHandle() { selectHandle() {
if (typeof this.selectRouteMenu === 'function') { if (typeof this.selectRouteMenu === 'function') {
...@@ -173,9 +188,12 @@ export default { ...@@ -173,9 +188,12 @@ export default {
transition: all 0.28s ease-in-out; transition: all 0.28s ease-in-out;
overflow: hidden; overflow: hidden;
&.show { &.show {
max-height: 1000px; max-height: 600px;
height: auto; height: auto;
} }
&.scroll {
overflow-y: auto;
}
.Submenu-title { .Submenu-title {
width: 560px; width: 560px;
height: 30px; height: 30px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment