feat:注释二维码

This commit is contained in:
lixg
2022-12-11 10:40:30 +08:00
parent 481ba9fb42
commit fd2c55bffb
6 changed files with 101 additions and 77 deletions

View File

@@ -163,8 +163,7 @@
</div> </div>
<span>考试中心</span> <span>考试中心</span>
</a-menu-item> --> </a-menu-item> -->
<!-- 2022-12-10注释 后面放开 --> <a-menu-item key="sub5" @titleClick="titleClick">
<!-- <a-menu-item key="sub5" @titleClick="titleClick">
<div class="imgBox"> <div class="imgBox">
<img <img
style="width: 16px; height: 16px" style="width: 16px; height: 16px"
@@ -172,7 +171,7 @@
/> />
</div> </div>
<router-link to="/researchmanage">评估管理</router-link> <router-link to="/researchmanage">评估管理</router-link>
</a-menu-item> --> </a-menu-item>
<!-- 2022-12-10注释 后面放开 --> <!-- 2022-12-10注释 后面放开 -->
<!-- <a-menu-item key="sub6" @titleClick="titleClick"> <!-- <a-menu-item key="sub6" @titleClick="titleClick">
<div class="imgBox"> <div class="imgBox">
@@ -245,13 +244,13 @@
<!-- 2022-12-10注释 后面放开 --> <!-- 2022-12-10注释 后面放开 -->
<!-- <a-menu-item key="sub4" @titleClick="titleClick"> <!-- <a-menu-item key="sub4" @titleClick="titleClick">
<span>考试</span> <span>考试</span>
</a-menu-item> </a-menu-item> -->
<a-menu-item key="sub5" @titleClick="titleClick"> <a-menu-item key="sub5" @titleClick="titleClick">
<span>评估</span> <span>评估</span>
</a-menu-item> </a-menu-item>
<!-- 2022-12-10注释 后面放开 -->
<a-menu-item key="sub6" @titleClick="titleClick"> <!-- <a-menu-item key="sub6" @titleClick="titleClick">
<span>报表</span> <span>报表</span>
</a-menu-item> </a-menu-item>

View File

@@ -2,8 +2,8 @@
<div class="navTop"> <div class="navTop">
<div class="navTopMain"> <div class="navTopMain">
<img <img
style="width: 205px; height: 29px; margin-left: 37px; margin-top: 22px" style="width: 205px; height: 29px; margin-left: 37px; margin-top: 22px"
src="../assets/images/navtop/logo.png" src="../assets/images/navtop/logo.png"
/> />
<div class="navTopRight"> <div class="navTopRight">
<div class="role"> <div class="role">
@@ -11,10 +11,10 @@
<div class="roleArrow"></div> <div class="roleArrow"></div>
<div class="roleItems"> <div class="roleItems">
<div <div
v-for="(value, index) in roleList" v-for="(value, index) in roleList"
:key="index" :key="index"
class="roleItem" class="roleItem"
@click="changeRole(value)" @click="changeRole(value)"
> >
{{ value.name }} {{ value.name }}
</div> </div>
@@ -22,14 +22,14 @@
</div> </div>
<div class="user"> <div class="user">
<img <img
style=" style="
width: 40px; width: 40px;
height: 40px; height: 40px;
margin-left: 8px; margin-left: 8px;
border-radius: 15px; border-radius: 15px;
margin-right: 10px; margin-right: 10px;
" "
:src="avatar" :src="avatar"
/> />
<div style="margin-right: 20px">{{ username }}</div> <div style="margin-right: 20px">{{ username }}</div>
</div> </div>
@@ -47,18 +47,18 @@
</div> --> </div> -->
<div class="signOutMain" @click="logOut"> <div class="signOutMain" @click="logOut">
<img <img
style="width: 27px; height: 27px" style="width: 27px; height: 27px"
src="../assets/images/navtop/signout.png" src="../assets/images/navtop/signout.png"
/> />
<span class="signOut">登出</span> <span class="signOut">登出</span>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<down-load v-model:downloadVisible="visible"/> <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"; import DownLoad from "../components/drawers/DownLoad";
import * as api from "../api/index1"; import * as api from "../api/index1";
@@ -71,7 +71,7 @@ export default {
const state = reactive({ const state = reactive({
selectRole: "管理员", selectRole: "管理员",
username: "", username: "",
avatar: null, avatar: require("../assets/images/avatar.png"),
roleList: [ roleList: [
{ {
id: 1, id: 1,
@@ -101,32 +101,32 @@ export default {
}; };
const getUser = () => { const getUser = () => {
api api
.getUser() .getUser()
.then((res) => { .then((res) => {
console.log("获取登录信息成功", res); console.log("获取登录信息成功", res);
if (res.data.code === 200) { if (res.data.code === 200) {
state.username = res.data.data.realName; state.username = res.data.data.realName;
// state.avatar = res.data.data.avatar // state.avatar = res.data.data.avatar
// ? res.data.data.avatar // ? res.data.data.avatar
// : require("../assets/images/avatar.png"); // : require("../assets/images/avatar.png");
state.avatar = require("../assets/images/avatar.png"); state.avatar = require("../assets/images/avatar.png");
} }
}) })
.catch((err) => { .catch((err) => {
console.log("获取登录信息失败", err); console.log("获取登录信息失败", err);
}); });
}; };
getUser(); getUser();
const logOut = () => { const logOut = () => {
localStorage.removeItem('faceclassPic'); localStorage.removeItem("faceclassPic");
localStorage.removeItem('faceclassClass'); localStorage.removeItem("faceclassClass");
localStorage.removeItem('faceclassScene'); localStorage.removeItem("faceclassScene");
localStorage.removeItem('projectLevel'); localStorage.removeItem("projectLevel");
localStorage.removeItem('projectSys'); localStorage.removeItem("projectSys");
localStorage.removeItem('pathmapPic'); localStorage.removeItem("pathmapPic");
localStorage.removeItem('projectClass'); localStorage.removeItem("projectClass");
localStorage.removeItem('projectPic'); localStorage.removeItem("projectPic");
window.open("https://u-pre.boe.com/web/", "_self"); window.open("https://u-pre.boe.com/web/", "_self");
}; };
return { return {
@@ -144,6 +144,7 @@ export default {
height: 80px; height: 80px;
// display: flex; // display: flex;
background-color: rgba(255, 255, 255, 1); background-color: rgba(255, 255, 255, 1);
// box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21); // box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21);
.navTopMain { .navTopMain {
width: 100%; width: 100%;
@@ -151,7 +152,7 @@ export default {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
background-color: rgba(255, 255, 255, 1); background-color: rgba(255, 255, 255, 1);
// background-color: #0078fc;
.navTopRight { .navTopRight {
display: flex; display: flex;
} }
@@ -161,7 +162,8 @@ export default {
align-items: center; align-items: center;
font-size: 16px; font-size: 16px;
font-weight: 400; font-weight: 400;
color: #333330; font-family: "Menlo", "苹方-简" !important;
color: #000;
line-height: 36px; line-height: 36px;
cursor: pointer; cursor: pointer;
position: relative; position: relative;
@@ -204,9 +206,9 @@ export default {
display: block; display: block;
} }
.role:hover .roleArrow { // .role:hover .roleArrow {
background-image: url(../assets/images/navtop/up.png); // background-image: url(../assets/images/navtop/up.png);
} // }
.user { .user {
margin-left: 37px; margin-left: 37px;
@@ -214,8 +216,10 @@ export default {
align-items: center; align-items: center;
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
color: #b3bdc4; // color: #b3bdc4;
color: #000;
line-height: 36px; line-height: 36px;
font-family: "Menlo", "苹方-简" !important;
} }
.signOutMain { .signOutMain {
@@ -228,9 +232,10 @@ export default {
.signOut { .signOut {
font-size: 16px; font-size: 16px;
font-weight: 400; font-weight: 400;
color: #242424; color: #000;
line-height: 22px; line-height: 22px;
margin-left: 5px; margin-left: 5px;
font-family: "Menlo", "苹方-简" !important;
} }
} }
} }

View File

@@ -52,10 +52,13 @@
<div class="select fitems"> <div class="select fitems">
<a-range-picker <a-range-picker
v-model:value="projectTime" v-model:value="projectTime"
style="width:420px;" style="width: 420px"
valueFormat="X" valueFormat="X"
separator="至" separator="至"
:placeholder="[' 开始时间(创建时间)', ' 结束时间(创建时间)']" :placeholder="[
' 开始时间(创建时间)',
' 结束时间(创建时间)',
]"
/> />
</div> </div>
</div> </div>
@@ -737,7 +740,7 @@
" "
> >
<span <span
style="margin-right: 24px;" style="margin-right: 24px"
:class="[ :class="[
String(record.courseform) === '1' String(record.courseform) === '1'
? 'disabled table-operation' ? 'disabled table-operation'
@@ -836,7 +839,7 @@
" "
> >
<span <span
style="margin-right: 24px;" style="margin-right: 24px"
:class="[ :class="[
String(record.courseform) === '1' String(record.courseform) === '1'
? 'disabled table-operation' ? 'disabled table-operation'
@@ -927,7 +930,7 @@
" "
> >
<span <span
style="margin-right: 24px;" style="margin-right: 24px"
:class="[ :class="[
String(record.courseform) === '1' String(record.courseform) === '1'
? 'disabled table-operation' ? 'disabled table-operation'
@@ -1057,7 +1060,7 @@
" "
> >
<span <span
style="margin-right: 24px;" style="margin-right: 24px"
:class="[ :class="[
String(record.courseform) === '1' String(record.courseform) === '1'
? 'disabled table-operation' ? 'disabled table-operation'
@@ -1194,7 +1197,7 @@
" "
> >
<span <span
style="margin-right: 24px;" style="margin-right: 24px"
:class="[ :class="[
String(record.courseform) === '1' String(record.courseform) === '1'
? 'disabled table-operation' ? 'disabled table-operation'
@@ -1652,7 +1655,8 @@
<template #bodyCell="{ record, column }"> <template #bodyCell="{ record, column }">
<template v-if="column.key === 'operation'"> <template v-if="column.key === 'operation'">
<span class="table-operation"> <span class="table-operation">
<a <!-- 2022-12-10注释 后面放开 -->
<!-- <a
@click=" @click="
() => { () => {
//QR_hs = true; //QR_hs = true;
@@ -1669,7 +1673,7 @@
" "
> >
签到 签到
</a> </a> -->
<a <a
@click=" @click="
() => { () => {
@@ -1709,7 +1713,8 @@
> >
删除 删除
</a-menu-item> </a-menu-item>
<a-menu-item <!-- 2022-12-10注释 后面放开 -->
<!-- <a-menu-item
@click=" @click="
() => { () => {
//QR_hs = true; //QR_hs = true;
@@ -1726,7 +1731,7 @@
" "
> >
二维码 二维码
</a-menu-item> </a-menu-item> -->
</a-menu> </a-menu>
</template> </template>
<a> <a>
@@ -1816,7 +1821,7 @@
style="width: 440px; height: 40px; border-radius: 8px" style="width: 440px; height: 40px; border-radius: 8px"
placeholder="请输入详细地点" placeholder="请输入详细地点"
/> />
<div class="inp_num" style="right:164px;"> <div class="inp_num" style="right: 164px">
<span style="color: #c7cbd2">{{ xjkkinputV2.length }}/50</span> <span style="color: #c7cbd2">{{ xjkkinputV2.length }}/50</span>
</div> </div>
</div> </div>
@@ -4289,9 +4294,9 @@ export default defineComponent({
}; };
// 弹框提示敬请期待 // 弹框提示敬请期待
const expectOnline = () => { const expectOnline = () => {
message.destroy() message.destroy();
message.success("功能正在开发中,敬请期待。") message.success("功能正在开发中,敬请期待。");
} };
//新建面授课 //新建面授课
const createft = () => { const createft = () => {
if (!state.xzinputV1) { if (!state.xzinputV1) {
@@ -5634,17 +5639,16 @@ export default defineComponent({
} }
} }
} }
} }
.tableBox { .tableBox {
margin: 20px 38px 30px; margin: 20px 38px 30px;
th { th {
background-color: #eff4fc !important; background-color: #eff4fc !important;
text-align: center !important; text-align: center !important;
} }
.ant-table-tbody .ant-table-tbody
> tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)
> td { > td {

View File

@@ -11,7 +11,13 @@
placeholder="请输入路径名称" placeholder="请输入路径名称"
/> />
</div> </div>
<div class="pathnameInp">
<a-input
v-model:value="createUser"
style="width: 270px; height: 40px; border-radius: 8px"
placeholder="请输入创建人"
/>
</div>
<div class="select"> <div class="select">
<a-select <a-select
v-model:value="statusValue" v-model:value="statusValue"
@@ -23,6 +29,7 @@
showSearch showSearch
></a-select> ></a-select>
</div> </div>
<div class="select addTimeBox"> <div class="select addTimeBox">
<!-- <a-date-picker <!-- <a-date-picker
v-model="selectTime" v-model="selectTime"
@@ -811,6 +818,8 @@ export default {
selectPathId: null, //选择授权的路径id selectPathId: null, //选择授权的路径id
addAuthList: null, //确定授权列表 addAuthList: null, //确定授权列表
authClassify: null, //显示的是管理权还是查看权 authClassify: null, //显示的是管理权还是查看权
createUser: null, //创建人搜索
}); });
//归属组织 //归属组织
@@ -1512,6 +1521,8 @@ export default {
status: state.statusClassify, status: state.statusClassify,
beginTime: state.startTime, beginTime: state.startTime,
endTime: state.endTime, endTime: state.endTime,
//添加创建人搜素 createUser
createName: state.createUser,
}; };
api api
.getLearnPath(obj) .getLearnPath(obj)

View File

@@ -10,11 +10,12 @@
<div class="fort">创建时间{{ cretime }}</div> <div class="fort">创建时间{{ cretime }}</div>
</div> </div>
<div class="right"> <div class="right">
<img <!-- 2022-12-10注释 后面放开 -->
<!-- <img
class="img1" class="img1"
src="../../assets/images/leveladd/ma.png" src="../../assets/images/leveladd/ma.png"
@click="showCodeModel2()" @click="showCodeModel2()"
/> /> -->
<div v-if="action == 1 || action == 0" class="line"></div> <div v-if="action == 1 || action == 0" class="line"></div>
<img <img
v-if="action == 1 || action == 0" v-if="action == 1 || action == 0"
@@ -490,6 +491,7 @@
</div> </div>
</div> </div>
<div class="operations"> <div class="operations">
<!-- 2022-12-2注释 后面放开 -->
<!-- <div <!-- <div
class="operation" class="operation"
style="cursor: pointer" style="cursor: pointer"
@@ -513,13 +515,14 @@
> >
考勤 考勤
</div> --> </div> -->
<div <!-- 2022-12-10注释 后面放开 -->
<!-- <div
class="operation" class="operation"
style="cursor: pointer" style="cursor: pointer"
@click="showCodeModel(item)" @click="showCodeModel(item)"
> >
二维码 二维码
</div> </div> -->
<!-- <div <!-- <div
class="operation" class="operation"
style="cursor: pointer; margin-right: 35px" style="cursor: pointer; margin-right: 35px"

View File

@@ -11,11 +11,12 @@
<div class="fort">起止时间{{ startTime }}{{ endTime }}</div> <div class="fort">起止时间{{ startTime }}{{ endTime }}</div>
</div> </div>
<div class="right"> <div class="right">
<img <!-- 2022-12-10注释 后面放开 -->
<!-- <img
class="img1" class="img1"
src="../../assets/images/leveladd/ma.png" src="../../assets/images/leveladd/ma.png"
@click="showCodeModel2()" @click="showCodeModel2()"
/> /> -->
<div <div
class="line" class="line"
v-if=" v-if="
@@ -592,13 +593,14 @@
> >
考勤 考勤
</div> --> </div> -->
<div <!-- 2022-12-10注释 后面放开 -->
<!-- <div
class="operation" class="operation"
style="cursor: pointer" style="cursor: pointer"
@click="showCodeModel(item)" @click="showCodeModel(item)"
> >
二维码 二维码
</div> </div> -->
<!-- 2022-11-30注释 后面放开 --> <!-- 2022-11-30注释 后面放开 -->
<!-- <div <!-- <div
class="operation" class="operation"