mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 04:16:47 +08:00
Merge branch 'master' of ssh://gitlab.dongwu-inc.com:10022/BOE/fe-manage
This commit is contained in:
BIN
src/assets/images/navtop/download.png
Normal file
BIN
src/assets/images/navtop/download.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 469 B |
Binary file not shown.
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 733 B |
@@ -33,23 +33,37 @@
|
|||||||
/>
|
/>
|
||||||
<div>李玉冰</div>
|
<div>李玉冰</div>
|
||||||
</div>
|
</div>
|
||||||
<img
|
<div
|
||||||
style="
|
class="signOutMain"
|
||||||
width: 27px;
|
style="margin: 0px 33px 0px 35px"
|
||||||
height: 26px;
|
@click="showDrawer"
|
||||||
margin: 27px 29px 0px 31px;
|
>
|
||||||
cursor: pointer;
|
<img
|
||||||
"
|
style="width: 22px; height: 22px"
|
||||||
src="../assets/images/navtop/signout.png"
|
src="../assets/images/navtop/download.png"
|
||||||
/>
|
/>
|
||||||
|
<span class="signOut">下载</span>
|
||||||
|
</div>
|
||||||
|
<div class="signOutMain">
|
||||||
|
<img
|
||||||
|
style="width: 27px; height: 27px"
|
||||||
|
src="../assets/images/navtop/signout.png"
|
||||||
|
/>
|
||||||
|
<span class="signOut">退出</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<down-load v-model:downloadVisible="visible" />
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { reactive, toRefs } from "vue";
|
import { reactive, toRefs } from "vue";
|
||||||
|
import DownLoad from "../components/drawers/DownLoad";
|
||||||
export default {
|
export default {
|
||||||
name: "NavTop",
|
name: "NavTop",
|
||||||
|
components: {
|
||||||
|
DownLoad,
|
||||||
|
},
|
||||||
setup() {
|
setup() {
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
selectRole: "管理员",
|
selectRole: "管理员",
|
||||||
@@ -63,6 +77,8 @@ export default {
|
|||||||
name: "学员",
|
name: "学员",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
||||||
|
visible: false,
|
||||||
});
|
});
|
||||||
const changeRole = (value) => {
|
const changeRole = (value) => {
|
||||||
state.roleList.map((item) => {
|
state.roleList.map((item) => {
|
||||||
@@ -71,9 +87,14 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
const showDrawer = () => {
|
||||||
|
state.visible = true;
|
||||||
|
console.log("点击下载", state.visible);
|
||||||
|
};
|
||||||
return {
|
return {
|
||||||
...toRefs(state),
|
...toRefs(state),
|
||||||
changeRole,
|
changeRole,
|
||||||
|
showDrawer,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -148,6 +169,19 @@ export default {
|
|||||||
color: #b3bdc4;
|
color: #b3bdc4;
|
||||||
line-height: 36px;
|
line-height: 36px;
|
||||||
}
|
}
|
||||||
|
.signOutMain {
|
||||||
|
cursor: pointer;
|
||||||
|
margin-right: 29px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.signOut {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #242424;
|
||||||
|
line-height: 22px;
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
71
src/components/drawers/DownLoad.vue
Normal file
71
src/components/drawers/DownLoad.vue
Normal file
@@ -0,0 +1,71 @@
|
|||||||
|
<template>
|
||||||
|
<a-drawer
|
||||||
|
:visible="downloadVisible"
|
||||||
|
class="drawerStyle downloadDrawer"
|
||||||
|
placement="right"
|
||||||
|
width="80%"
|
||||||
|
@after-visible-change="afterVisibleChange"
|
||||||
|
>
|
||||||
|
<div class="drawerMain">
|
||||||
|
<div class="header">
|
||||||
|
<div class="headerTitle">下载中心</div>
|
||||||
|
<img
|
||||||
|
style="width: 29px; height: 29px; cursor: pointer"
|
||||||
|
src="../../assets/images/basicinfo/close.png"
|
||||||
|
@click="closeDrawer"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="main"></div>
|
||||||
|
</div>
|
||||||
|
</a-drawer>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { toRefs, reactive } from "vue";
|
||||||
|
export default {
|
||||||
|
name: "DownLoad",
|
||||||
|
props: {
|
||||||
|
downloadVisible: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
setup(props, ctx) {
|
||||||
|
console.log("props", props.downloadVisible);
|
||||||
|
const state = reactive({});
|
||||||
|
|
||||||
|
const closeDrawer = () => {
|
||||||
|
ctx.emit("update:downloadVisible", false);
|
||||||
|
};
|
||||||
|
|
||||||
|
return {
|
||||||
|
...toRefs(state),
|
||||||
|
closeDrawer,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
.downloadDrawer {
|
||||||
|
.drawerMain {
|
||||||
|
.header {
|
||||||
|
height: 73px;
|
||||||
|
border-bottom: 1px solid #e8e8e8;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
.headerTitle {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #333333;
|
||||||
|
line-height: 25px;
|
||||||
|
margin-left: 24px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.contentMain {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -372,7 +372,10 @@
|
|||||||
? 'flex'
|
? 'flex'
|
||||||
: 'none',
|
: 'none',
|
||||||
}"
|
}"
|
||||||
@click="showCopyModal"
|
|
||||||
|
@click="
|
||||||
|
item.course === '面授' ? showCopyModal(item.course) : null
|
||||||
|
"
|
||||||
>
|
>
|
||||||
二维码
|
二维码
|
||||||
</div>
|
</div>
|
||||||
@@ -1473,7 +1476,7 @@
|
|||||||
v-model:visible="copyModal"
|
v-model:visible="copyModal"
|
||||||
:footer="null"
|
:footer="null"
|
||||||
:closable="closeCopy"
|
:closable="closeCopy"
|
||||||
wrapClassName="CopyModal"
|
wrapClassName="facemanageModal"
|
||||||
centered="true"
|
centered="true"
|
||||||
>
|
>
|
||||||
<div class="delete">
|
<div class="delete">
|
||||||
@@ -2296,7 +2299,11 @@ export default {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div class="studentopea1" onClick={() => {
|
<div class="studentopea1" onClick={() => {
|
||||||
state.canclestu = true;
|
if(value.excellent === false){
|
||||||
|
state.canclestu = true;
|
||||||
|
}else if(value.excellent === true){
|
||||||
|
state.canclestu = false;
|
||||||
|
}
|
||||||
}}>
|
}}>
|
||||||
{value.excellent ? "取消优秀" : "优秀学员"}
|
{value.excellent ? "取消优秀" : "优秀学员"}
|
||||||
</div>
|
</div>
|
||||||
@@ -2861,7 +2868,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.CopyModal {
|
.facemanageModal {
|
||||||
.ant-modal {
|
.ant-modal {
|
||||||
width: 532px !important;
|
width: 532px !important;
|
||||||
height: 428px !important;
|
height: 428px !important;
|
||||||
|
|||||||
Reference in New Issue
Block a user