mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 13:26:45 +08:00
feat:增加下载页面
This commit is contained in:
@@ -33,23 +33,37 @@
|
||||
/>
|
||||
<div>李玉冰</div>
|
||||
</div>
|
||||
<img
|
||||
style="
|
||||
width: 27px;
|
||||
height: 26px;
|
||||
margin: 27px 29px 0px 31px;
|
||||
cursor: pointer;
|
||||
"
|
||||
src="../assets/images/navtop/signout.png"
|
||||
/>
|
||||
<div
|
||||
class="signOutMain"
|
||||
style="margin: 0px 33px 0px 35px"
|
||||
@click="showDrawer"
|
||||
>
|
||||
<img
|
||||
style="width: 22px; height: 22px"
|
||||
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>
|
||||
<down-load v-model:downloadVisible="visible" />
|
||||
</template>
|
||||
<script>
|
||||
import { reactive, toRefs } from "vue";
|
||||
import DownLoad from "../components/drawers/DownLoad";
|
||||
export default {
|
||||
name: "NavTop",
|
||||
components: {
|
||||
DownLoad,
|
||||
},
|
||||
setup() {
|
||||
const state = reactive({
|
||||
selectRole: "管理员",
|
||||
@@ -63,6 +77,8 @@ export default {
|
||||
name: "学员",
|
||||
},
|
||||
],
|
||||
|
||||
visible: false,
|
||||
});
|
||||
const changeRole = (value) => {
|
||||
state.roleList.map((item) => {
|
||||
@@ -71,9 +87,14 @@ export default {
|
||||
}
|
||||
});
|
||||
};
|
||||
const showDrawer = () => {
|
||||
state.visible = true;
|
||||
console.log("点击下载", state.visible);
|
||||
};
|
||||
return {
|
||||
...toRefs(state),
|
||||
changeRole,
|
||||
showDrawer,
|
||||
};
|
||||
},
|
||||
};
|
||||
@@ -148,6 +169,19 @@ export default {
|
||||
color: #b3bdc4;
|
||||
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>
|
||||
|
||||
Reference in New Issue
Block a user