Merge branch 'master' of ssh://gitlab.dongwu-inc.com:10022/BOE/fe-manage

This commit is contained in:
岳佳鑫
2022-10-21 16:00:46 +08:00
16 changed files with 2157 additions and 457 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 855 B

View File

@@ -266,6 +266,7 @@ textarea {
//抽屉-------------------------------------------------------- //抽屉--------------------------------------------------------
.drawerStyle { .drawerStyle {
// transform: translateX(0px) !important;
.ant-drawer-content-wrapper { .ant-drawer-content-wrapper {
max-width: 1050px; max-width: 1050px;

View File

@@ -220,9 +220,11 @@ export default {
gang: "产品经理", gang: "产品经理",
cur: "-", cur: "-",
jin: "-", jin: "-",
time: "缺勤", time: "缺勤",
state: "异常", state: "异常",
signIn: false, //签到
signOut: false, //签退
leave: false, //请假
}, },
{ {
key: 2, key: 2,
@@ -231,8 +233,11 @@ export default {
gang: "产品经理", gang: "产品经理",
cur: "2022-10-31 23:12", cur: "2022-10-31 23:12",
jin: "-", jin: "-",
time: "签到", time: "签到/签退",
state: "正常", state: "正常",
signIn: true, //签到
signOut: true, //签退
leave: false, //请假
}, },
{ {
key: 3, key: 3,
@@ -241,8 +246,11 @@ export default {
gang: "产品经理", gang: "产品经理",
cur: "2022-10-31 23:12", cur: "2022-10-31 23:12",
jin: "2022-10-31 23:12", jin: "2022-10-31 23:12",
time: "签到/签退", time: "迟到",
state: "常", state: "常",
signIn: false, //签到
signOut: true, //签退
leave: false, //请假
}, },
{ {
key: 4, key: 4,
@@ -251,8 +259,11 @@ export default {
gang: "产品经理", gang: "产品经理",
cur: "2022-10-31 23:12", cur: "2022-10-31 23:12",
jin: "2022-10-31 23:12", jin: "2022-10-31 23:12",
time: "签到/签退", time: "退",
state: "常", state: "常",
signIn: true, //签到
signOut: false, //签退
leave: false, //请假
}, },
{ {
key: 5, key: 5,
@@ -263,6 +274,9 @@ export default {
jin: "2022-10-31 23:12", jin: "2022-10-31 23:12",
time: "签到/签退", time: "签到/签退",
state: "正常", state: "正常",
signIn: true, //签到
signOut: true, //签退
leave: false, //请假
}, },
{ {
key: 6, key: 6,
@@ -273,6 +287,9 @@ export default {
jin: "2022-10-31 23:12", jin: "2022-10-31 23:12",
time: "签到/签退", time: "签到/签退",
state: "正常", state: "正常",
signIn: true, //签到
signOut: true, //签退
leave: false, //请假
}, },
{ {
name: "张三", name: "张三",
@@ -282,6 +299,9 @@ export default {
jin: "2022-10-31 23:12", jin: "2022-10-31 23:12",
time: "签到/签退", time: "签到/签退",
state: "正常", state: "正常",
signIn: true, //签到
signOut: true, //签退
leave: false, //请假
}, },
{ {
key: 8, key: 8,
@@ -292,6 +312,9 @@ export default {
jin: "2022-10-31 23:12", jin: "2022-10-31 23:12",
time: "请假", time: "请假",
state: "正常", state: "正常",
signIn: false, //签到
signOut: false, //签退
leave: true, //请假
}, },
], ],
options: [ options: [
@@ -328,6 +351,43 @@ export default {
state.selectedRowKeys = selectedRowKeys; state.selectedRowKeys = selectedRowKeys;
}; };
const getTableData = () => {
let arr = state.tableData;
arr.map((value) => {
// console.log("value", value);
value.opacation = (
<div class="opa">
<a-checkbox
checked={value.signIn}
onChange={(e) => {
console.log("点击签到", e);
}}
>
签到
</a-checkbox>
<a-checkbox
checked={value.signOut}
onChange={(e) => {
console.log("点击签退", e);
}}
>
签退
</a-checkbox>
<a-checkbox
checked={value.leave}
onChange={(e) => {
console.log("点击请假", e);
}}
>
请假
</a-checkbox>
</div>
);
});
state.tableData = arr;
};
getTableData();
const tableDataFunc = () => { const tableDataFunc = () => {
const columns = [ const columns = [
{ {
@@ -402,16 +462,16 @@ export default {
className: "h", className: "h",
dataIndex: "opacation", dataIndex: "opacation",
key: "opacation", key: "opacation",
width: 210, width: 130,
align: "center", align: "center",
scopedSlots: { customRender: "action" }, //引入的插槽 // scopedSlots: { customRender: "action" }, //引入的插槽
customRender: () => { // customRender: () => {
return ( // return (
<div class="opa"> // <div class="opa">
<a-checkbox-group /> // <a-checkbox-group />
</div> // </div>
); // );
}, // },
}, },
]; ];
return columns; return columns;
@@ -429,7 +489,7 @@ export default {
}; };
</script> </script>
<style lang="scss" > <style lang="scss">
.me { .me {
.ant-modal-body { .ant-modal-body {
padding: 0px; padding: 0px;
@@ -731,4 +791,4 @@ export default {
} }
} }
} }
</style> </style>

View File

@@ -162,9 +162,9 @@
</div> </div>
<div class="btnbox"> <div class="btnbox">
<a-radio-group v-model:value="radioV1"> <a-radio-group v-model:value="radioV1">
<a-radio v-model:checked="checked" :value="1">仅签到</a-radio> <a-radio v-model:checked="checked" :value="1" @click="cloradio1">仅签到</a-radio>
<a-radio v-model:checked="checked" :value="2" <a-radio v-model:checked="checked" :value="2" @click="cloradio1"
>签到签退全部完成</a-radio >签到签退全部完成</a-radio
> >
</a-radio-group> </a-radio-group>
</div> </div>
@@ -220,15 +220,22 @@ export default {
}); });
const closeDrawer = () => { const closeDrawer = () => {
ctx.emit("update:addactiveVisible", false); ctx.emit("update:addactiveVisible", false);
state.radioV1 = "";
}; };
const afterVisibleChange = (bool) => { const afterVisibleChange = (bool) => {
console.log("state", bool); console.log("state", bool);
}; };
const cloradio1 = (value) => {
if (value != "") {
state.radioV1 = "";
}
}
return { return {
...toRefs(state), ...toRefs(state),
afterVisibleChange, afterVisibleChange,
closeDrawer, closeDrawer,
rowSelection, rowSelection,
cloradio1,
}; };
}, },
}; };

View File

@@ -2,7 +2,7 @@
<a-drawer <a-drawer
:visible="addfaceteachVisible" :visible="addfaceteachVisible"
class="drawerStyle addfaceteachDrawer" class="drawerStyle addfaceteachDrawer"
width="80%" width="90%"
title="添加面授" title="添加面授"
placement="right" placement="right"
@after-visible-change="afterVisibleChange" @after-visible-change="afterVisibleChange"
@@ -116,7 +116,7 @@
v-model:value="inputV3" v-model:value="inputV3"
style="width: 384px; height: 32px" style="width: 384px; height: 32px"
/> />
<span style="margin-left: 5px">分钟</span> <span style="margin-left: 5px; width: 30px">分钟</span>
</div> </div>
</div> </div>
<div class="main_item"> <div class="main_item">
@@ -142,24 +142,37 @@
<span style="margin-right: 3px">考勤设置</span> <span style="margin-right: 3px">考勤设置</span>
</div> </div>
<div class="kqszbox"> <div class="kqszbox">
<div class="qdqtbox"><div class="qdbtn"><div class="btntext">签到</div></div></div> <div class="qdqtbox">
<div class="qdbtn"><div class="btntext">签到</div></div>
</div>
<div class="setbox"> <div class="setbox">
<div class="timerbox"> <div class="timerbox">
<span>开始前</span> <span>开始前</span>
<a-input style="width: 88px; height: 32px" :v-model:value="inputV5"></a-input> <a-input
style="width: 88px; height: 32px"
:v-model:value="inputV5"
></a-input>
<span style="color: #999999; margin-left: 8px">分钟</span> <span style="color: #999999; margin-left: 8px">分钟</span>
</div> </div>
<div class="timerbox"> <div class="timerbox">
<span>开始后</span> <span>开始后</span>
<a-input style="width: 88px; height: 32px" :v-model:value="inputV6"></a-input> <a-input
style="width: 88px; height: 32px"
:v-model:value="inputV6"
></a-input>
<span style="color: #999999; margin-left: 8px">分钟</span> <span style="color: #999999; margin-left: 8px">分钟</span>
</div> </div>
</div> </div>
<div class="qdqtbox"><div class="qtbtn"><div class="btntext">签退</div></div></div> <div class="qdqtbox">
<div class="qtbtn"><div class="btntext">签退</div></div>
</div>
<div class="setbox"> <div class="setbox">
<div class="timerbox"> <div class="timerbox">
<span>结束前</span> <span>结束前</span>
<a-input style="width: 88px; height: 32px" :v-model:value="inputV7"></a-input> <a-input
style="width: 88px; height: 32px"
:v-model:value="inputV7"
></a-input>
<span style="color: #999999; margin-left: 8px" <span style="color: #999999; margin-left: 8px"
>分钟提前签退则记为早退</span >分钟提前签退则记为早退</span
> >
@@ -173,8 +186,8 @@
</div> </div>
<div class="btnbox"> <div class="btnbox">
<a-radio-group v-model:value="radioV1"> <a-radio-group v-model:value="radioV1">
<a-radio v-model:checked="checked" :value="1">仅签到</a-radio> <a-radio v-model:checked="checked" :value="1" @click="cloradio1">仅签到</a-radio>
<a-radio v-model:checked="checked" :value="2" <a-radio v-model:checked="checked" :value="2" @click="cloradio1"
>签到签退全部完成</a-radio >签到签退全部完成</a-radio
> >
</a-radio-group> </a-radio-group>
@@ -196,8 +209,8 @@
</div> </div>
<div class="btnbox2"> <div class="btnbox2">
<a-radio-group v-model:value="radioV2"> <a-radio-group v-model:value="radioV2">
<a-radio v-model:checked="checked" :value="1">允许项目内人员临时到场参加</a-radio> <a-radio v-model:checked="checked" :value="1" @click="cloradio2">允许项目内人员临时到场参加</a-radio>
<a-radio v-model:checked="checked" :value="2" <a-radio v-model:checked="checked" :value="2" @click="cloradio2"
>允许项目外人员临时到场参加</a-radio >允许项目外人员临时到场参加</a-radio
> >
</a-radio-group> </a-radio-group>
@@ -309,6 +322,8 @@ export default {
}); });
const closeDrawer = () => { const closeDrawer = () => {
ctx.emit("update:addfaceteachVisible", false); ctx.emit("update:addfaceteachVisible", false);
state.radioV1 = "";
state.radioV2 = "";
}; };
const afterVisibleChange = (bool) => { const afterVisibleChange = (bool) => {
console.log("state", bool); console.log("state", bool);
@@ -322,6 +337,16 @@ export default {
const showDrawerAddTest = () => { const showDrawerAddTest = () => {
state.addtestvisible = true; state.addtestvisible = true;
}; };
const cloradio1 = (value) => {
if (value != "") {
state.radioV1 = "";
}
};
const cloradio2 = (value) => {
if (value != "") {
state.radioV2 = "";
}
}
return { return {
...toRefs(state), ...toRefs(state),
showDrawerSelFacet, showDrawerSelFacet,
@@ -330,6 +355,8 @@ export default {
afterVisibleChange, afterVisibleChange,
closeDrawer, closeDrawer,
rowSelection, rowSelection,
cloradio1,
cloradio2,
// change, // change,
}; };
}, },
@@ -359,6 +386,7 @@ export default {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
.main_left { .main_left {
height: 1080px;
padding-right: 30px; padding-right: 30px;
flex: 1; flex: 1;
border-right: 1px solid #e8e8e8; border-right: 1px solid #e8e8e8;
@@ -410,7 +438,7 @@ export default {
.qtbtn { .qtbtn {
width: 75px; width: 75px;
height: 24px; height: 24px;
background: rgba(56,139,225,0.16); background: rgba(56, 139, 225, 0.16);
border-radius: 2px; border-radius: 2px;
border: 1px solid #387df7; border: 1px solid #387df7;
display: flex; display: flex;

View File

@@ -16,38 +16,38 @@
/> />
</div> </div>
<div class="main"> <div class="main">
<div class="name"> <div class="name">
<div class="star" style="margin-top: -4px"> <div class="star" style="margin-top: -4px">
<img <img
style="width: 10px; height: 10px" style="width: 10px; height: 10px"
src="../../assets/images/basicinfo/asterisk.png" src="../../assets/images/basicinfo/asterisk.png"
/> />
</div>
<div class="inname">小组名称:</div>
<div class="in">
<a-input
v-model:value="value"
placeholder="请输入小组名称"
style="border-radius: 8px; height: 40px"
/>
</div>
</div> </div>
<div class="name"> <div class="inname">小组名称:</div>
<div class="star" style="margin-top: -4px"> <div class="in">
<img <a-input
style="width: 10px; height: 10px; margin-left: 15px" v-model:value="value"
src="../../assets/images/basicinfo/asterisk.png" placeholder="请输入小组名称"
/> style="border-radius: 8px; height: 40px"
</div> />
<div class="inname">小组长:</div>
<div class="in">
<a-input
v-model:value="value"
placeholder="请输入小组长"
style="border-radius: 8px; height: 40px"
/>
</div>
</div> </div>
</div>
<div class="name">
<div class="star" style="margin-top: -4px">
<img
style="width: 10px; height: 10px; margin-left: 15px"
src="../../assets/images/basicinfo/asterisk.png"
/>
</div>
<div class="inname">小组长:</div>
<div class="in">
<a-input
v-model:value="value"
placeholder="请输入小组长"
style="border-radius: 8px; height: 40px"
/>
</div>
</div>
</div> </div>
<div class="btnn"> <div class="btnn">
<button class="btn1">取消</button> <button class="btn1">取消</button>
@@ -55,7 +55,6 @@
</div> </div>
</div> </div>
</a-drawer> </a-drawer>
</template> </template>
<script> <script>
@@ -88,7 +87,7 @@ export default {
}; };
</script> </script>
<style scoped lang="scss" > <style scoped lang="scss">
.addgroup { .addgroup {
.ant-drawer-content-wrapper { .ant-drawer-content-wrapper {
// max-width: 1000px; // max-width: 1000px;
@@ -122,67 +121,67 @@ export default {
} }
} }
.main { .main {
display: flex;
flex-direction: column;
//align-items: center;
.name {
//width: 78%;
// background-color: lightcoral;
display: flex; display: flex;
flex-direction: column; //justify-content: right;
//align-items: center; margin-top: 32px;
.name { align-items: center;
//width: 78%; height: 40px;
// background-color: lightcoral; // border: 1px solid black;
display: flex;
//justify-content: right;
margin-top: 32px;
align-items: center;
height: 40px;
// border: 1px solid black;
.inname { .inname {
color: #000000; color: #000000;
font-size: 14px; font-size: 14px;
margin-left: 7px; margin-left: 7px;
}
.in {
margin-left: 14px;
//width: 81%;
.ant-input {
border-radius: 5px;
// height: 120%;
width: 384px;
height: 40px;
}
}
} }
.pubtn { .in {
display: flex; margin-left: 14px;
justify-content: center; //width: 81%;
margin-top: 25px; .ant-input {
//margin-bottom: 29px; border-radius: 5px;
.pubtn1 { // height: 120%;
width: 100px; width: 384px;
height: 40px; height: 40px;
margin-right: 16px;
margin-bottom: 29px;
border: 1px solid #409eff;
border-radius: 4px;
color: rgba(78, 166, 255, 1);
font-size: 14px;
//line-height: 36px;
align-items: center;
background: rgba(255, 255, 255, 1);
}
.pubtn2 {
width: 100px;
height: 40px;
margin-bottom: 29px;
border: 1px solid #409eff;
border-radius: 4px;
color: #ffffff;
font-size: 14px;
align-items: center;
//line-height: 36px;
background: #409eff;
} }
} }
} }
.pubtn {
display: flex;
justify-content: center;
margin-top: 25px;
//margin-bottom: 29px;
.pubtn1 {
width: 100px;
height: 40px;
margin-right: 16px;
margin-bottom: 29px;
border: 1px solid #409eff;
border-radius: 4px;
color: rgba(78, 166, 255, 1);
font-size: 14px;
//line-height: 36px;
align-items: center;
background: rgba(255, 255, 255, 1);
}
.pubtn2 {
width: 100px;
height: 40px;
margin-bottom: 29px;
border: 1px solid #409eff;
border-radius: 4px;
color: #ffffff;
font-size: 14px;
align-items: center;
//line-height: 36px;
background: #409eff;
}
}
}
.btnn { .btnn {
height: 72px; height: 72px;
width: 100%; width: 100%;
@@ -215,4 +214,4 @@ export default {
} }
} }
} }
</style> </style>

View File

@@ -0,0 +1,805 @@
<template>
<a-drawer
:visible="AddSvisible"
class="drawerStyle AddLevelAddStu"
placement="right"
width="60%"
@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 class="left">
<div class="tabs">
<a-tabs v-model:activeKey="activeKey">
<a-tab-pane key="1" tab="快速选人">
<div class="tab1">
<div class="nameinp">
<div class="namee">姓名</div>
<a-input
v-model:value="name"
style="width: 270px; height: 40px; border-radius: 8px"
placeholder="请输入姓名"
/>
</div>
<div class="btns">
<div class="btn1">
<div class="img1">
<img
src="../../assets/images/courseManage/search0.png"
/>
</div>
<div class="wz">搜索</div>
</div>
<div class="btn2">
<div class="img2">
<img
src="../../assets/images/courseManage/reset1.png"
/>
</div>
<div class="wz">重置</div>
</div>
</div>
</div>
<div class="line">
<div class="inline">
<div class="left1">
<div class="img"></div>
<div class="text" style="margin-left: 10px">已选择</div>
<div class="text2">2</div>
<div class="text"></div>
<div class="text3">列表选项总计</div>
<div class="text4">9</div>
</div>
<div class="right1">清空</div>
</div>
</div>
<div class="tabb" style="margin-top: 16px">
<a-table
style="border: 1px solid #f2f6fe"
:columns="tablecolumns"
:data-source="tabledata"
:loading="tableDataTotal === -1 ? true : false"
expandRowByClick="true"
:scroll="{ x: 100, y: 560 }"
@expand="expandTable"
:pagination="false"
:row-selection="{
columnWidth: 30,
selectedRowKeys: selectedRowKeys,
onChange: onSelectChange,
}"
/>
<div class="pa">
<a-pagination
showSizeChanger="true"
showQuickJumper="true"
hideOnSinglePage="true"
:pageSize="pageSize"
:current="currentPage"
:total="tableDataTotal"
class="pagination"
/>
</div>
</div>
</a-tab-pane>
<a-tab-pane key="2" tab="添加组织" force-render>
<div class="tab2">
<div class="organize">组织</div>
<div class="select">
<a-cascader
v-model:value="value"
placeholder="请输入组织名称"
:options="organizeList"
/>
</div>
</div>
</a-tab-pane>
<a-tab-pane key="3" tab="受众关联">
<div class="tab1">
<div class="nameinp">
<div class="namee">受众名称</div>
<div class="select">
<a-select
v-model:value="choosevalue"
style="width: 264px; border-radius: 8px"
placeholder="请输入组织名称"
:options="organizeList1"
/>
</div>
</div>
<div class="btns">
<div class="btn1">
<div class="img1">
<img
src="../../assets/images/courseManage/search0.png"
/>
</div>
<div class="wz">搜索</div>
</div>
<div class="btn2">
<div class="img2">
<img
src="../../assets/images/courseManage/reset1.png"
/>
</div>
<div class="wz">重置</div>
</div>
</div>
</div>
<div class="line">
<div class="inline">
<div class="left1">
<div class="img"></div>
<div class="text" style="margin-left: 10px">已选择</div>
<div class="text2">2</div>
<div class="text"></div>
<div class="text3">列表选项总计</div>
<div class="text4">9</div>
</div>
<div class="right1">清空</div>
</div>
</div>
<div class="tabb" style="margin-top: 16px">
<a-table
style="border: 1px solid #f2f6fe"
:columns="tablecolumns1"
:data-source="tabledata1"
:loading="tableDataTotal === -1 ? true : false"
expandRowByClick="true"
:scroll="{ x: 700, y: 400 }"
@expand="expandTable"
:pagination="false"
:row-selection="{
columnWidth: 30,
selectedRowKeys: selectedRowKeys,
onChange: onSelectChange,
}"
/>
<div class="pa">
<a-pagination
showSizeChanger="true"
showQuickJumper="true"
hideOnSinglePage="true"
:pageSize="pageSize"
:current="currentPage"
:total="tableDataTotal"
class="pagination"
/>
</div>
</div>
</a-tab-pane>
</a-tabs>
</div>
</div>
<div class="right">
<div class="onerow">
<div class="already">已选</div>
<div class="clbox">
<div class="colose"></div>
<span class="allclear">全部清除</span>
</div>
</div>
<div class="selecteds">
<div class="chose">
李明
<div class="ch"></div>
</div>
<div class="chose">
李大明
<div class="ch"></div>
</div>
<div class="chose">
李二明
<div class="ch"></div>
</div>
<div class="chose">
李明
<div class="ch"></div>
</div>
<div class="chose">
李大明
<div class="ch"></div>
</div>
<div class="chose">
李二明
<div class="ch"></div>
</div>
</div>
</div>
</div>
<div class="btnn">
<button class="btn1">取消</button>
<button class="btn2">确定</button>
</div>
</div>
</a-drawer>
</template>
<script>
import { reactive, toRefs } from "vue";
export default {
name: "AddStu",
props: {
AddSvisible: {
type: Boolean,
default: false,
},
},
setup(props, ctx) {
const state = reactive({
pageSize: 10,
currentPage: 1,
tableDataTotal: 50,
activeKey: "1",
name: "", //输入名字搜索
value: [], //级联选择框
choosevalue: null, //受众选择
organizeList: [
{
id: 1,
value: "京东方",
label: "京东方",
children: [
{
id: 2,
value: "产研部",
label: "产研部",
children: [
{
id: 4,
value: "产品部门",
label: "产品部门",
},
{
id: 5,
value: "研发部门",
label: "研发部门",
},
],
},
{
id: 3,
value: "人力资源部",
label: "人力资源部",
children: [
{
id: 6,
value: "人事部",
label: "人事部",
},
{
id: 7,
value: "行政部",
label: "行政部",
},
],
},
],
},
],
tabledata: [
{
key: 1,
name: "小李",
bum: "产研部",
gangw: "产品经理",
},
{
key: 2,
name: "小刘",
bum: "产研部",
gangw: "产品经理",
},
{
key: 3,
name: "小李",
bum: "产研部",
gangw: "产品经理",
},
{
key: 4,
name: "小李",
bum: "产研部",
gangw: "产品经理",
},
{
key: 5,
name: "小李",
bum: "产研部",
gangw: "产品经理",
},
{
key: 6,
name: "小李",
bum: "产研部",
gangw: "产品经理",
},
{
key: 7,
name: "小李",
bum: "产研部",
gangw: "产品经理",
},
{
key: 8,
name: "小李",
bum: "产研部",
gangw: "产品经理",
},
{
key: 9,
name: "小李",
bum: "产研部",
gangw: "产品经理",
},
],
tablecolumns: [
{
title: "姓名",
dataIndex: "name",
key: "name",
width: 30,
align: "left",
className: "h",
},
{
title: "部门",
dataIndex: "bum",
key: "bum",
width: 45,
align: "center",
className: "h",
},
{
title: "岗位",
dataIndex: "gangw",
key: "gangw",
width: 45,
align: "center",
className: "h",
},
],
tabledata1: [
{
key: 1,
name: "学习受众",
time: "2022-10-31 23:12:00",
total: "1",
state: "已发布",
type: "普通受众",
},
{
key: 2,
name: "2",
time: "2022-10-31 23:12:00",
total: "2",
state: "已发布",
type: "普通受众",
},
{
key: 3,
name: "mask",
time: "2022-10-31 23:12:00",
total: "1",
state: "已发布",
type: "普通受众",
},
{
key: 4,
name: "学习受众",
time: "2022-10-31 23:12:00",
total: "1",
state: "已发布",
type: "普通受众",
},
{
key: 5,
name: "学业受众",
time: "2022-10-31 23:12:00",
total: "2",
state: "已发布",
type: "普通受众",
},
{
key: 6,
name: "案例受众",
time: "2022-10-31 23:12:00",
total: "3",
state: "已发布",
type: "普通受众",
},
],
tablecolumns1: [
{
title: "受众名称",
dataIndex: "name",
key: "name",
width: 30,
align: "left",
className: "h",
},
{
title: "创建时间",
dataIndex: "time",
key: "time",
width: 40,
align: "center",
className: "h",
},
{
title: "人数",
dataIndex: "total",
key: "total",
width: 20,
align: "center",
className: "h",
},
{
title: "状态",
dataIndex: "state",
key: "state",
width: 20,
align: "center",
className: "h",
},
{
title: "类型",
dataIndex: "type",
key: "type",
width: 30,
align: "center",
className: "h",
},
],
organizeList1: [
{
value: "项目一",
label: "项目一",
},
],
});
const closeDrawer = () => {
ctx.emit("update:AddSvisible", false);
};
const afterVisibleChange = (bool) => {
console.log("state", bool);
};
return {
...toRefs(state),
afterVisibleChange,
closeDrawer,
// change,
};
},
};
</script>
<style lang="scss" >
.AddLevelAddStu {
// .ant-drawer-content-wrapper {
// // max-width: 1000px;
// .ant-drawer-header {
// display: none !important;
// }
// .ant-drawer-body {
// padding: 0;
// }
// }
.drawerMain {
min-width: 600px;
margin: 0px 32px 0px 32px;
overflow-x: scroll;
display: flex;
flex-direction: column;
.header {
height: 73px;
border-bottom: 1px solid #e8e8e8;
display: flex;
justify-content: space-between;
align-items: center;
// background-color: red;
margin-bottom: 20px;
.headerTitle {
font-size: 18px;
font-weight: 600;
color: #333333;
line-height: 25px;
// margin-left: 24px;
}
}
.main {
display: flex;
height: 80%;
.left {
// overflow-y: auto;
width: 65%;
height: 100%;
border-right: 1px solid rgba(233, 233, 233, 1);
.tabs {
margin-right: 33px;
.tab1 {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
.nameinp {
display: flex;
align-items: center;
margin-top: 10px;
.namee {
color: rgba(0, 0, 0, 0.85);
font-size: 14px;
}
}
.btns {
display: flex;
margin-top: 10px;
.btn1 {
width: 100px;
height: 40px;
margin-right: 16px;
display: flex;
align-items: center;
justify-content: center;
color: #ffffff;
font-size: 14px;
background: #409eff;
border-radius: 8px;
border: 1px solid #409eff;
cursor: pointer;
.wz {
margin-left: 10px;
}
}
.btn2 {
width: 100px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
color: #409eff;
font-size: 14px;
background: #ffffff;
border-radius: 8px;
cursor: pointer;
border: 1px solid #409eff;
.wz {
margin-left: 10px;
}
}
}
}
.line {
width: 100%;
height: 40px;
background-color: #e9f6fe;
display: flex;
justify-content: center;
align-items: center;
margin-top: 20px;
border: 1px solid #c3e6fc;
.inline {
width: 95%;
height: 100%;
display: flex;
justify-content: space-between;
// background-color: #bfa;
.left1 {
height: 100%;
display: flex;
align-items: center;
.img {
width: 14px;
height: 15px;
background-image: url(../../assets/images/leveladd/gan.png);
background-size: 100% 100%;
}
.text {
color: #999ba3;
}
.text2 {
color: #4ea6ff;
margin-left: 5px;
margin-right: 5px;
}
.text3 {
color: #999ba3;
margin-left: 20px;
}
}
.right1 {
font-size: 14px;
font-weight: 400;
color: #387df7;
height: 100%;
display: flex;
align-items: center;
cursor: pointer;
}
}
}
.tabb {
.ant-table-thead > tr > th {
background-color: rgba(240, 246, 252, 1);
color: rgba(0, 0, 0, 0.85);
}
.ant-table-tbody > tr > td {
border-bottom: 1px solid #f0f6fc;
color: rgba(0, 0, 0, 0.65);
}
th.h {
background-color: #eff4fc !important;
}
.ant-table-tbody
> tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)
> td {
background: rgba(250, 250, 250, 1);
}
.ant-table-selection-column {
padding: 0 !important;
}
// table tr td.ant-table-selection-column {
// text-align: right;
// }
// .ant-checkbox-wrapper {
// align-items: center;
// margin-top: -2px;
// }
.pa {
// left: 0;
margin-top: 15px;
width: 100%;
// height: 20px;
// background-color: red;
display: flex;
justify-content: center;
// position: absolute;
// bottom: 20px;
}
}
.tab2 {
display: flex;
align-items: center;
margin-top: 10px;
.organize {
color: rgba(0, 0, 0, 0.85);
font-size: 14px;
}
.ant-select {
border-radius: 8px !important;
}
.ant-cascader {
width: 264px;
height: 40px;
border-radius: 8px !important;
.ant-select-selector {
height: 100%;
}
.ant-select-selection-search-input {
height: 40px;
}
}
}
}
}
.right {
width: 35%;
.onerow {
display: flex;
justify-content: space-between;
align-items: center;
margin-right: 40px;
flex-wrap: wrap;
.already {
color: rgba(51, 51, 51, 1);
font-size: 16px;
font-weight: 500;
margin-left: 32px;
white-space: nowrap;
// margin-bottom: 20px;
}
.clbox {
margin-left: 30px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
width: 104px;
height: 32px;
border-radius: 4px;
background: #409eff;
.colose {
width: 16px;
height: 16px;
// border-radius: 8px;
// background: #ffffff;
// position: relative;
background-image: url(../../assets/images/basicinfo/ch.png);
background-size: 100%;
margin-right: 4px;
}
.allclear {
color: rgba(255, 255, 255, 1);
font-size: 14px;
}
}
}
.selecteds {
display: flex;
flex-wrap: wrap;
margin-left: 32px;
.chose {
width: 64px;
height: 24px;
margin-top: 25px;
margin-right: 25px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 2px;
border: 1px solid rgba(56, 139, 225, 1);
color: rgba(56, 139, 225, 1);
font-size: 12px;
position: relative;
.ch {
position: absolute;
width: 18px;
height: 18px;
background-image: url(../../assets/images/basicinfo/ch.png);
right: -8px;
top: -8px;
}
}
}
}
}
.btnn {
height: 72px;
width: 100%;
position: absolute;
bottom: 0;
left: 0;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.16);
.btn1 {
width: 100px;
height: 40px;
border: 1px solid #4ea6ff;
border-radius: 8px;
color: #4ea6ff;
background-color: #fff;
cursor: pointer;
}
.btn2 {
cursor: pointer;
width: 100px;
height: 40px;
background: #4ea6ff;
border-radius: 8px;
border: 0;
margin-left: 15px;
color: #fff;
}
}
}
}
</style>

View File

@@ -0,0 +1,354 @@
<template>
<a-drawer
:visible="AddImpStuvisible"
class="drawerStyle AddLevelImpStu"
placement="right"
width="40%"
@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 class="minatitl">
<div class="up1">请下载</div>
<div class="up2">模板</div>
<div class="up1">按要求填写数据并导入</div>
</div>
<div class="upload">
<div class="text">上传</div>
<div class="right">
<div class="load">
<div class="cloud"></div>
<div class="tip">点击或将文件拖拽到此处上传</div>
<div class="tipz">支持扩展名.xls/.xlsx</div>
</div>
<div class="loadstate">
<div class="loadborder">
<div class="content">
<div class="img"></div>
<div class="timebox">
<div class="timetop">
<div class="tit">京东方商业模型.xls</div>
<div class="stateloading">正在上传</div>
</div>
<div class="prog">
<div class="inprogloading"></div>
</div>
</div>
<div class="curloading">
<div class="cur">55%</div>
<div class="cancel" style="margin-left: 20px">暂停</div>
<div class="cancel" style="margin-left: 15px">取消</div>
</div>
</div>
</div>
<div class="loadborder">
<div class="content">
<div class="img"></div>
<div class="timebox">
<div class="timetop">
<div class="tit">京东方商业模型.xls</div>
<div class="statedefeat">上传失败</div>
</div>
<div class="prog">
<div class="inprogdefeat"></div>
</div>
</div>
<div class="curloading">
<div class="cur">55%</div>
<div class="cancel" style="margin-left: 20px">暂停</div>
<div class="cancel" style="margin-left: 15px">取消</div>
</div>
<div class="defeat">下载失败数据</div>
</div>
</div>
<div class="loadborder">
<div class="content">
<div class="img"></div>
<div class="timebox">
<div class="timetop">
<div class="tit">京东方商业模型.xls</div>
<div class="statesucce">上传成功</div>
</div>
<div class="prog">
<div class="inprogsucce"></div>
</div>
</div>
<div class="curloading">
<div class="cur">55%</div>
<div class="cancel" style="margin-left: 20px">删除</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="btnn">
<button class="btn1">取消</button>
<button class="btn2">确定</button>
</div>
</div>
</a-drawer>
</template>
<script>
import { reactive, toRefs } from "vue";
export default {
name: "ImpStu",
props: {
AddImpStuvisible: {
type: Boolean,
default: false,
},
},
setup(props, ctx) {
const state = reactive({});
const closeDrawer = () => {
ctx.emit("update:AddImpStuvisible", false);
};
const afterVisibleChange = (bool) => {
console.log("state", bool);
};
return {
...toRefs(state),
afterVisibleChange,
closeDrawer,
// change,
};
},
};
</script>
<style lang="scss" >
.AddLevelImpStu {
.drawerMain {
min-width: 600px;
margin: 0px 32px 0px 32px;
overflow-x: scroll;
display: flex;
flex-direction: column;
.header {
height: 73px;
border-bottom: 1px solid #e8e8e8;
display: flex;
justify-content: space-between;
align-items: center;
// background-color: red;
margin-bottom: 20px;
.headerTitle {
font-size: 18px;
font-weight: 600;
color: #333333;
line-height: 25px;
// margin-left: 24px;
}
}
.main {
.minatitl {
display: flex;
.up1 {
font-size: 16px;
font-weight: 400;
color: #333333;
}
.up2 {
font-size: 16px;
font-weight: 400;
color: #388be1;
margin-left: 4px;
}
}
.upload {
margin-top: 32px;
display: flex;
.text {
font-size: 14px;
font-weight: 400;
color: #333333;
}
.right {
margin-left: 6px;
.load {
width: 500px;
height: 176px;
background: #f5f9fd;
border-radius: 4px;
// opacity: 0.3;
border: 1px dashed #caddfd;
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 20px;
.cloud {
margin-top: 52px;
width: 28px;
height: 28px;
background-image: url(../../assets/images/basicinfo/cloud.png);
}
.tip {
font-size: 14px;
font-weight: 400;
color: #388be1;
margin-top: 15px;
cursor: pointer;
}
.tipz {
font-size: 14px;
font-weight: 400;
color: #999999;
margin-top: 10px;
}
}
.loadstate {
width: 500px;
margin-bottom: 100px;
.loadborder {
width: 500px;
height: 173px;
border-radius: 4px;
border: 1px dashed #eaeaea;
margin-bottom: 30px;
display: flex;
align-items: center;
.content {
display: flex;
margin-left: 20px;
position: relative;
.defeat {
position: absolute;
left: 46px;
top: 38px;
font-size: 14px;
font-weight: 500;
color: #ff7474;
}
.img {
width: 30px;
height: 34px;
background-image: url(../../assets/images/basicinfo/exl.png);
}
.timebox {
margin-left: 15px;
margin-top: -5px;
.timetop {
display: flex;
width: 262px;
justify-content: space-between;
margin-bottom: 8px;
.tit {
font-size: 14px;
font-weight: 400;
color: #333333;
}
.stateloading {
font-size: 14px;
font-weight: 400;
color: #388be1;
}
.statedefeat {
font-size: 14px;
font-weight: 400;
color: #ff7474;
}
.statesucce {
font-size: 14px;
font-weight: 400;
color: #35ae69;
}
}
.prog {
width: 262px;
height: 5px;
background: #eaf1fe;
border-radius: 4px;
.inprogloading {
width: 55%;
height: 5px;
border-radius: 4px;
background: #388be1;
}
//下载失败条
.inprogdefeat {
width: 55%;
height: 5px;
border-radius: 4px;
background: #ff7474;
}
//下载成功条
.inprogsucce {
width: 100%;
height: 5px;
border-radius: 4px;
background: #57c887;
}
}
}
.curloading {
margin-left: 15px;
margin-top: 15px;
display: flex;
.cur {
font-size: 14px;
font-weight: 400;
color: #333333;
}
.cancel {
font-size: 14px;
font-weight: 400;
color: #387df7;
}
}
}
}
}
}
}
}
.btnn {
height: 72px;
width: 100%;
position: absolute;
background-color: #fff;
bottom: 0;
left: 0;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.16);
.btn1 {
width: 100px;
height: 40px;
border: 1px solid #4ea6ff;
border-radius: 8px;
color: #4ea6ff;
background-color: #fff;
cursor: pointer;
}
.btn2 {
cursor: pointer;
width: 100px;
height: 40px;
background: #4ea6ff;
border-radius: 8px;
border: 0;
margin-left: 15px;
color: #fff;
}
}
}
}
</style>

View File

@@ -230,8 +230,8 @@
</div> </div>
<div class="btnbox"> <div class="btnbox">
<a-radio-group v-model:value="radioV1"> <a-radio-group v-model:value="radioV1">
<a-radio v-model:checked="checked" :value="1">仅签到</a-radio> <a-radio v-model:checked="checked" :value="1" @click="cloradio1">仅签到</a-radio>
<a-radio v-model:checked="checked" :value="2" <a-radio v-model:checked="checked" :value="2" @click="cloradio1"
>签到签退全部完成</a-radio >签到签退全部完成</a-radio
> >
</a-radio-group> </a-radio-group>
@@ -439,6 +439,8 @@ export default {
}); });
const closeDrawer = () => { const closeDrawer = () => {
ctx.emit("update:addliveVisible", false); ctx.emit("update:addliveVisible", false);
state.radioV1 = "";
state.playback = false;
}; };
const afterVisibleChange = (bool) => { const afterVisibleChange = (bool) => {
console.log("state", bool); console.log("state", bool);
@@ -446,6 +448,11 @@ export default {
const PlayBack = () => { const PlayBack = () => {
state.playback = !state.playback; state.playback = !state.playback;
}; };
const cloradio1 = (value) => {
if (value != "") {
state.radioV1 = "";
}
}
return { return {
...toRefs(state), ...toRefs(state),
afterVisibleChange, afterVisibleChange,
@@ -454,6 +461,7 @@ export default {
options1, options1,
columns1, columns1,
rowSelection, rowSelection,
cloradio1,
}; };
}, },
}; };

View File

@@ -132,8 +132,8 @@
</div> </div>
<div class="btnbox"> <div class="btnbox">
<a-radio-group v-model:value="radioV1"> <a-radio-group v-model:value="radioV1">
<a-radio v-model:checked="checked" :value="1">允许查看</a-radio> <a-radio v-model:checked="checked" :value="1" @click="cloradio1">允许查看</a-radio>
<a-radio v-model:checked="checked" :value="2" <a-radio v-model:checked="checked" :value="2" @click="cloradio1"
>不允许查看</a-radio >不允许查看</a-radio
> >
</a-radio-group> </a-radio-group>
@@ -145,8 +145,8 @@
</div> </div>
<div class="btnbox"> <div class="btnbox">
<a-radio-group v-model:value="radioV2"> <a-radio-group v-model:value="radioV2">
<a-radio v-model:checked="checked" :value="1">允许查看</a-radio> <a-radio v-model:checked="checked" :value="1" @click="cloradio2">允许查看</a-radio>
<a-radio v-model:checked="checked" :value="2" <a-radio v-model:checked="checked" :value="2" @click="cloradio2"
>不允许查看</a-radio >不允许查看</a-radio
> >
</a-radio-group> </a-radio-group>
@@ -159,10 +159,10 @@
<div class="btnbox"> <div class="btnbox">
<div class="btnbox"> <div class="btnbox">
<a-radio-group v-model:value="radioV3"> <a-radio-group v-model:value="radioV3">
<a-radio v-model:checked="checked" :value="1" <a-radio v-model:checked="checked" :value="1" @click="cloradio3"
>最高一次</a-radio >最高一次</a-radio
> >
<a-radio v-model:checked="checked" :value="2" <a-radio v-model:checked="checked" :value="2" @click="cloradio3"
>最后一次</a-radio >最后一次</a-radio
> >
</a-radio-group> </a-radio-group>
@@ -187,9 +187,9 @@
</div> </div>
<div class="btnbox"> <div class="btnbox">
<a-radio-group v-model:value="radioV4"> <a-radio-group v-model:value="radioV4">
<a-radio v-model:checked="checked" :value="1">试题乱序</a-radio> <a-radio v-model:checked="checked" :value="1" @click="cloradio4">试题乱序</a-radio>
<a-radio v-model:checked="checked" :value="2">试题排序</a-radio> <a-radio v-model:checked="checked" :value="2" @click="cloradio4">试题排序</a-radio>
<a-radio v-model:checked="checked" :value="3">全部乱序</a-radio> <a-radio v-model:checked="checked" :value="3" @click="cloradio4">全部乱序</a-radio>
</a-radio-group> </a-radio-group>
</div> </div>
</div> </div>
@@ -243,15 +243,43 @@ export default {
}); });
const closeDrawer = () => { const closeDrawer = () => {
ctx.emit("update:addtestVisible", false); ctx.emit("update:addtestVisible", false);
state.radioV1 = "";
state.radioV2 = "";
state.radioV3 = "";
state.radioV4 = "";
}; };
const afterVisibleChange = (bool) => { const afterVisibleChange = (bool) => {
console.log("state", bool); console.log("state", bool);
}; };
const cloradio1 = (value) => {
if (value != "") {
state.radioV1 = "";
}
}
const cloradio2 = (value) => {
if (value != "") {
state.radioV2 = "";
}
}
const cloradio3 = (value) => {
if (value != "") {
state.radioV3 = "";
}
}
const cloradio4 = (value) => {
if (value != "") {
state.radioV4 = "";
}
}
return { return {
...toRefs(state), ...toRefs(state),
afterVisibleChange, afterVisibleChange,
closeDrawer, closeDrawer,
rowSelection, rowSelection,
cloradio1,
cloradio2,
cloradio3,
cloradio4,
}; };
}, },
}; };

View File

@@ -224,9 +224,11 @@ export default {
gang: "产品经理", gang: "产品经理",
cur: "-", cur: "-",
jin: "-", jin: "-",
time: "缺勤", time: "缺勤",
state: "异常", state: "异常",
signIn: false, //签到
signOut: false, //签退
leave: false, //请假
}, },
{ {
key: 2, key: 2,
@@ -235,8 +237,11 @@ export default {
gang: "产品经理", gang: "产品经理",
cur: "2022-10-31 23:12", cur: "2022-10-31 23:12",
jin: "-", jin: "-",
time: "签到", time: "签到/签退",
state: "正常", state: "正常",
signIn: true, //签到
signOut: true, //签退
leave: false, //请假
}, },
{ {
key: 3, key: 3,
@@ -245,8 +250,11 @@ export default {
gang: "产品经理", gang: "产品经理",
cur: "2022-10-31 23:12", cur: "2022-10-31 23:12",
jin: "2022-10-31 23:12", jin: "2022-10-31 23:12",
time: "签到/签退", time: "迟到",
state: "常", state: "常",
signIn: false, //签到
signOut: true, //签退
leave: false, //请假
}, },
{ {
key: 4, key: 4,
@@ -255,8 +263,11 @@ export default {
gang: "产品经理", gang: "产品经理",
cur: "2022-10-31 23:12", cur: "2022-10-31 23:12",
jin: "2022-10-31 23:12", jin: "2022-10-31 23:12",
time: "签到/签退", time: "退",
state: "常", state: "常",
signIn: true, //签到
signOut: false, //签退
leave: false, //请假
}, },
{ {
key: 5, key: 5,
@@ -267,6 +278,9 @@ export default {
jin: "2022-10-31 23:12", jin: "2022-10-31 23:12",
time: "签到/签退", time: "签到/签退",
state: "正常", state: "正常",
signIn: true, //签到
signOut: true, //签退
leave: false, //请假
}, },
{ {
key: 6, key: 6,
@@ -277,6 +291,9 @@ export default {
jin: "2022-10-31 23:12", jin: "2022-10-31 23:12",
time: "签到/签退", time: "签到/签退",
state: "正常", state: "正常",
signIn: true, //签到
signOut: true, //签退
leave: false, //请假
}, },
{ {
name: "张三", name: "张三",
@@ -286,6 +303,9 @@ export default {
jin: "2022-10-31 23:12", jin: "2022-10-31 23:12",
time: "签到/签退", time: "签到/签退",
state: "正常", state: "正常",
signIn: true, //签到
signOut: true, //签退
leave: false, //请假
}, },
{ {
key: 8, key: 8,
@@ -296,22 +316,26 @@ export default {
jin: "2022-10-31 23:12", jin: "2022-10-31 23:12",
time: "请假", time: "请假",
state: "正常", state: "正常",
signIn: false, //签到
signOut: false, //签退
leave: true, //请假
}, },
], ],
options: [ tableOptions: [
{ {
label: "Apple", label: "签到",
value: "Apple", value: "1",
}, },
{ {
label: "Pear", label: "签退",
value: "Pear", value: "2",
}, },
{ {
label: "Orange", label: "请假",
value: "Orange", value: "3",
}, },
], ],
// selectOption: [],
}); });
const selectProjectName = (value, index) => { const selectProjectName = (value, index) => {
console.log("value", value, index); console.log("value", value, index);
@@ -332,6 +356,42 @@ export default {
state.selectedRowKeys = selectedRowKeys; state.selectedRowKeys = selectedRowKeys;
}; };
const getTableData = () => {
let arr = state.tableData;
arr.map((value) => {
// console.log("value", value);
value.opacation = (
<div class="opa">
<a-checkbox
checked={value.signIn}
onChange={(e) => {
console.log("点击签到", e);
}}
>
签到
</a-checkbox>
<a-checkbox
checked={value.signOut}
onChange={(e) => {
console.log("点击签退", e);
}}
>
签退
</a-checkbox>
<a-checkbox
checked={value.leave}
onChange={(e) => {
console.log("点击请假", e);
}}
>
请假
</a-checkbox>
</div>
);
});
state.tableData = arr;
};
getTableData();
const tableDataFunc = () => { const tableDataFunc = () => {
const columns = [ const columns = [
{ {
@@ -406,16 +466,25 @@ export default {
className: "h", className: "h",
dataIndex: "opacation", dataIndex: "opacation",
key: "opacation", key: "opacation",
width: 210, width: 130,
align: "center", align: "center",
scopedSlots: { customRender: "action" }, //引入的插槽 // scopedSlots: { customRender: "action" }, //引入的插槽
customRender: () => {
return ( // customRender: () => {
<div class="opa"> // return (
<a-checkbox-group /> // <div class="opa">
</div> // <a-checkbox-group
); // // value={state.selectOption}
}, // name="checkboxgroup"
// options={state.tableOptions}
// onChange={(e) => {
// console.log("eee", e);
// // state.selectOption = e;
// }}
// />
// </div>
// );
// },
}, },
]; ];
return columns; return columns;
@@ -428,12 +497,13 @@ export default {
onSelectChange, onSelectChange,
showEntryScore, showEntryScore,
tableDataFunc, tableDataFunc,
getTableData,
}; };
}, },
}; };
</script> </script>
<style lang="scss" > <style lang="scss">
.me { .me {
.ant-modal-body { .ant-modal-body {
padding: 0px; padding: 0px;
@@ -678,7 +748,14 @@ export default {
background: #f6f9fd; background: #f6f9fd;
} }
.opa { .opa {
background-color: #bfa; background-color: rgba(255, 255, 255, 0);
.ant-checkbox + span {
font-size: 14px;
font-weight: 400;
color: rgba(0, 0, 0, 0.65);
line-height: 22px;
margin-top: 5px;
}
} }
} }
// .tab { // .tab {
@@ -735,4 +812,4 @@ export default {
} }
} }
} }
</style> </style>

View File

@@ -18,35 +18,34 @@
<div class="main"> <div class="main">
<div class="groupl">小组</div> <div class="groupl">小组</div>
<div> <div>
<div class="groupin"> <div class="groupin">
<a-input <a-input
v-model:value="value" v-model:value="value"
placeholder="好好学习小组" placeholder="好好学习小组"
style="border-radius: 8px; height: 40px" style="border-radius: 8px; height: 40px"
/> />
<div class="delete">删除</div> <div class="delete">删除</div>
</div>
<div class="groupin">
<a-input
v-model:value="value"
placeholder="全能小组"
style="border-radius: 8px; height: 40px"
/>
<div class="delete">删除</div>
</div>
<div class="groupin">
<a-input
v-model:value="value"
placeholder="宇宙第一最强小组"
style="border-radius: 8px; height: 40px"
/>
<div class="delete">删除</div>
</div>
</div> </div>
<div class="groupin">
<a-input
v-model:value="value"
placeholder="全能小组"
style="border-radius: 8px; height: 40px"
/>
<div class="delete">删除</div>
</div>
<div class="groupin">
<a-input
v-model:value="value"
placeholder="宇宙第一最强小组"
style="border-radius: 8px; height: 40px"
/>
<div class="delete">删除</div>
</div>
</div>
</div> </div>
<div class="addgroup" @click="showAddGroup"> <div class="addgroup" @click="showAddGroup">
<img src="../../assets/images/courseManage/add0.png"/> <img src="../../assets/images/courseManage/add0.png" />
<span class="grot">创建小组</span> <span class="grot">创建小组</span>
</div> </div>
<div class="zhu">随机分组不对小组长生效</div> <div class="zhu">随机分组不对小组长生效</div>
@@ -103,7 +102,7 @@ export default {
}; };
</script> </script>
<style scoped lang="scss" > <style scoped lang="scss">
.subset { .subset {
.ant-drawer-content-wrapper { .ant-drawer-content-wrapper {
// max-width: 1000px; // max-width: 1000px;
@@ -140,46 +139,45 @@ export default {
display: flex; display: flex;
.groupin { .groupin {
display: flex; display: flex;
align-items: center; align-items: center;
margin-top: 32px; margin-top: 32px;
.ant-input { .ant-input {
border-radius: 5px; border-radius: 5px;
// height: 120%; // height: 120%;
width: 384px; width: 384px;
height: 40px; height: 40px;
} }
.delete { .delete {
color: rgba(56, 125, 247, 1); color: rgba(56, 125, 247, 1);
font-size: 14px; font-size: 14px;
margin-left: 10px; margin-left: 10px;
cursor: pointer; cursor: pointer;
} }
} }
.groupl { .groupl {
color: rgba(0, 0, 0, 0.8500); color: rgba(0, 0, 0, 0.85);
font-size: 16px; font-size: 16px;
margin-top: 36px; margin-top: 36px;
} }
} }
.addgroup { .addgroup {
width: 130px; width: 130px;
height: 40px; height: 40px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
//margin-right: 16px; //margin-right: 16px;
margin-top: 32px; margin-top: 32px;
border: 1px solid #409eff; border: 1px solid #409eff;
border-radius: 8px; border-radius: 8px;
background: #409eff; background: #409eff;
cursor: pointer; cursor: pointer;
.grot { .grot {
color: #ffffff; color: #ffffff;
margin-left: 5px; margin-left: 5px;
font-size: 14px; font-size: 14px;
}
} }
}
.zhu { .zhu {
margin-top: 24px; margin-top: 24px;
color: rgba(153, 153, 153, 1); color: rgba(153, 153, 153, 1);
@@ -217,4 +215,4 @@ export default {
} }
} }
} }
</style> </style>

View File

@@ -109,13 +109,13 @@
</div> </div>
<div class="b_input"> <div class="b_input">
<a-input <a-input
v-model:value="value5" v-model:value="xzinputV1"
maxlength="20" maxlength="20"
style="width: 440px; height: 40px; border-radius: 8px" style="width: 440px; height: 40px; border-radius: 8px"
placeholder="请输入课程名称" placeholder="请输入课程名称"
/> />
<div class="inp_num"> <div class="inp_num">
<span style="color: #c7cbd2">{{ value5.length }}/20</span> <span style="color: #c7cbd2">{{ xzinputV1.length }}/20</span>
</div> </div>
</div> </div>
</div> </div>
@@ -183,16 +183,16 @@
</div> </div>
<a-radio-group v-model:value="valueE1"> <a-radio-group v-model:value="valueE1">
<div class="bc_box"> <div class="bc_box">
<div class="bc_boxl" @click="bs_hShow"> <div class="bc_boxl" >
<div class="ol_checkbox"> <div class="ol_checkbox">
<a-radio v-model:checked="checked" :value="1" <a-radio v-model:checked="checked" :value="1" @click="bs_hShow"
>线上</a-radio >线上</a-radio
> >
</div> </div>
</div> </div>
<div class="bc_boxr" @click="clear_valueE"> <div class="bc_boxr" >
<div class="ol_checkbox"> <div class="ol_checkbox">
<a-radio v-model:checked="checked" :value="2" <a-radio v-model:checked="checked" :value="2" @click="clear_valueE1"
>面授</a-radio >面授</a-radio
> >
</div> </div>
@@ -214,10 +214,10 @@
<a-radio-group v-model:value="valueE2"> <a-radio-group v-model:value="valueE2">
<div class="bc_box"> <div class="bc_box">
<div class="ol_checkbox"> <div class="ol_checkbox">
<a-radio v-model:checked="checked" :value="3"></a-radio> <a-radio v-model:checked="checked" :value="3" @click="clear_valueE2"></a-radio>
</div> </div>
<div class="ol_checkbox"> <div class="ol_checkbox">
<a-radio v-model:checked="checked" :value="4"></a-radio> <a-radio v-model:checked="checked" :value="4" @click="clear_valueE2"></a-radio>
</div> </div>
</div> </div>
</a-radio-group> </a-radio-group>
@@ -245,6 +245,7 @@
:closable="false" :closable="false"
wrapClassName="modalStyle facteachModal" wrapClassName="modalStyle facteachModal"
width="80%" width="80%"
@cancel="ft_exit"
> >
<div class="modalHeader"> <div class="modalHeader">
<div class="headerLeft"> <div class="headerLeft">
@@ -281,14 +282,14 @@
<div class="item_inp"> <div class="item_inp">
<div class="i1_input"> <div class="i1_input">
<a-input <a-input
v-model:value="value6" v-model:value="qdms_inputV1"
maxlength="90" maxlength="90"
style="width: 440px; height: 40px; border-radius: 8px" style="width: 440px; height: 40px; border-radius: 8px"
placeholder="请输入课程名称" placeholder="请输入课程名称"
/> />
<div class="inp_num"> <div class="inp_num">
<span style="color: #c7cbd2" <span style="color: #c7cbd2"
>{{ value6.length }}/90</span >{{ qdms_inputV1.length }}/90</span
> >
</div> </div>
</div> </div>
@@ -369,14 +370,14 @@
<div class="item_inp"> <div class="item_inp">
<div class="i1_input"> <div class="i1_input">
<a-input <a-input
v-model:value="value7" v-model:value="qdms_inputV2"
maxlength="50" maxlength="50"
style="width: 440px; height: 40px; border-radius: 8px" style="width: 440px; height: 40px; border-radius: 8px"
placeholder="请输入目标人群" placeholder="请输入目标人群"
/> />
<div class="inp_num"> <div class="inp_num">
<span style="color: #c7cbd2" <span style="color: #c7cbd2"
>{{ value7.length }}/50</span >{{ qdms_inputV2.length }}/50</span
> >
</div> </div>
</div> </div>
@@ -389,14 +390,14 @@
<div class="item_inp"> <div class="item_inp">
<div class="i1_input"> <div class="i1_input">
<a-input <a-input
v-model:value="value8" v-model:value="qdms_inputV3"
maxlength="200" maxlength="200"
style="width: 440px; height: 40px; border-radius: 8px" style="width: 440px; height: 40px; border-radius: 8px"
placeholder="请输入课程价值" placeholder="请输入课程价值"
/> />
<div class="inp_num"> <div class="inp_num">
<span style="color: #c7cbd2" <span style="color: #c7cbd2"
>{{ value8.length }}/200</span >{{ qdms_inputV3.length }}/200</span
> >
</div> </div>
</div> </div>
@@ -448,7 +449,7 @@
</div> </div>
<div class="item_inp"> <div class="item_inp">
<a-input <a-input
v-model:value="value" v-model:value="qdms_inputV4"
style="width: 440px; height: 40px; border-radius: 8px" style="width: 440px; height: 40px; border-radius: 8px"
placeholder="请输入按回车键创建成功" placeholder="请输入按回车键创建成功"
/> />
@@ -473,7 +474,7 @@
<div class="item_inp"> <div class="item_inp">
<div class="i1_input"> <div class="i1_input">
<a-input <a-input
v-model:value="value10" v-model:value="qdms_inputV5"
style="width: 440px; height: 40px; border-radius: 8px" style="width: 440px; height: 40px; border-radius: 8px"
placeholder="请输入" placeholder="请输入"
/> />
@@ -487,14 +488,14 @@
<div class="item_inp"> <div class="item_inp">
<div class="i10_textarea"> <div class="i10_textarea">
<a-textarea <a-textarea
v-model:value="value11" v-model:value="qdms_inputV6"
maxlength="150" maxlength="150"
style="width: 440px; height: 100px; border-radius: 8px" style="width: 440px; height: 100px; border-radius: 8px"
placeholder="请输入" placeholder="请输入"
/> />
<div class="inp_num"> <div class="inp_num">
<span style="color: #c7cbd2" <span style="color: #c7cbd2"
>{{ value11.length }}/150</span >{{ qdms_inputV6.length }}/150</span
> >
</div> </div>
</div> </div>
@@ -528,7 +529,7 @@
</div> </div>
</div> </div>
<div class="file_operation"> <div class="file_operation">
<span style="color: #4ea6ff">删除</span> <div class="fobox"><span style="color: #4ea6ff">删除</span></div>
</div> </div>
</div> </div>
<div class="i12_box1"> <div class="i12_box1">
@@ -548,7 +549,7 @@
</div> </div>
</div> </div>
<div class="file_operation"> <div class="file_operation">
<span style="color: #4ea6ff">删除</span> <div class="fobox"><span style="color: #4ea6ff">删除</span></div>
</div> </div>
</div> </div>
<div class="i12_box1"> <div class="i12_box1">
@@ -568,8 +569,8 @@
</div> </div>
</div> </div>
<div class="file_operation"> <div class="file_operation">
<span style="color: #4ea6ff; margin-right: 5px">重传</span <div class="fobox"><span style="color: #4ea6ff; ">重传</span></div>
><span style="color: #4ea6ff">取消</span> <div class="fobox"><span style="color: #4ea6ff">取消</span></div>
</div> </div>
</div> </div>
<div class="i12_box1"> <div class="i12_box1">
@@ -583,11 +584,14 @@
<div class="updatacolor3"></div> <div class="updatacolor3"></div>
<div class="updataxq3">正在上传</div> <div class="updataxq3">正在上传</div>
</div> </div>
<div class="upjd">
<span style="margin: auto 5px">50%</span>
</div>
</div> </div>
</div> </div>
<div class="file_operation"> <div class="file_operation">
<span style="color: #4ea6ff; margin-right: 5px">暂停</span <div class="fobox"><span style="color: #4ea6ff; margin-right: 5px">暂停</span></div>
><span style="color: #4ea6ff">取消</span> <div class="fobox"><span style="color: #4ea6ff">取消</span></div>
</div> </div>
</div> </div>
</div> </div>
@@ -697,7 +701,7 @@
class="select" class="select"
ref="select" ref="select"
placeholder="请选择状态" placeholder="请选择状态"
v-model:value="value12" v-model:value="gl_selectV1"
style="width: 200px" style="width: 200px"
@focus="focus" @focus="focus"
@change="handleChange" @change="handleChange"
@@ -714,7 +718,7 @@
</div> </div>
<div class="bm_input"> <div class="bm_input">
<a-input <a-input
v-model:value="value13" v-model:value="gl_inputv1"
style="width: 200px; height: 40px; border-radius: 8px" style="width: 200px; height: 40px; border-radius: 8px"
placeholder="姓名" placeholder="姓名"
/> />
@@ -742,7 +746,7 @@
class="select" class="select"
ref="select" ref="select"
placeholder="请选择状态" placeholder="请选择状态"
v-model:value="value14" v-model:value="gl_selectV2"
style="width: 200px" style="width: 200px"
@focus="focus" @focus="focus"
@change="handleChange" @change="handleChange"
@@ -759,7 +763,7 @@
</div> </div>
<div class="bm_input"> <div class="bm_input">
<a-input <a-input
v-model:value="value15" v-model:value="gl_inputV2"
style="width: 200px; height: 40px; border-radius: 8px" style="width: 200px; height: 40px; border-radius: 8px"
placeholder="姓名" placeholder="姓名"
/> />
@@ -951,6 +955,7 @@
:closable="false" :closable="false"
wrapClassName="modalStyle schtimeModal" wrapClassName="modalStyle schtimeModal"
width="80%" width="80%"
@cancel="stm_exit"
> >
<div class="modalHeader"> <div class="modalHeader">
<div class="headerLeft"> <div class="headerLeft">
@@ -973,7 +978,7 @@
<div class="st_main"> <div class="st_main">
<div class="stm_inputbtn"> <div class="stm_inputbtn">
<a-input <a-input
v-model:value="value17" v-model:value="kk_inputV1"
style=" style="
width: 270px; width: 270px;
height: 40px; height: 40px;
@@ -983,7 +988,7 @@
placeholder="请输入创建人" placeholder="请输入创建人"
/> />
<a-input <a-input
v-model:value="value18" v-model:value="kk_inputV2"
style=" style="
width: 270px; width: 270px;
height: 40px; height: 40px;
@@ -1075,7 +1080,7 @@
</a-modal> </a-modal>
<!--开课页面 --> <!--开课页面 -->
<!--新建开课页面 --> <!--新建开课页面 -->
<a-modal v-model:visible="cstm_hs" style="margin-top: 400px"> <a-modal v-model:visible="cstm_hs" style="margin-top: 400px" @cancel="cstm_exit">
<div <div
class="createschooltime" class="createschooltime"
:style="{ display: cstm_hs ? 'block' : 'none' }" :style="{ display: cstm_hs ? 'block' : 'none' }"
@@ -1102,7 +1107,7 @@
</div> </div>
<div class="b_input"> <div class="b_input">
<a-input <a-input
v-model:value="value19" v-model:value="xjkkinputV1"
style="width: 440px; height: 40px; border-radius: 8px" style="width: 440px; height: 40px; border-radius: 8px"
placeholder="请输入开课名称" placeholder="请输入开课名称"
/> />
@@ -1120,13 +1125,13 @@
</div> </div>
<div class="b_input"> <div class="b_input">
<a-input <a-input
v-model:value="value20" v-model:value="xjkkinputV2"
maxlength="50" maxlength="50"
style="width: 440px; height: 40px; border-radius: 8px" style="width: 440px; height: 40px; border-radius: 8px"
placeholder="请输入详细地点" placeholder="请输入详细地点"
/> />
<div class="inp_num"> <div class="inp_num">
<span style="color: #c7cbd2">{{ value20.length }}/50</span> <span style="color: #c7cbd2">{{ xjkkinputV2.length }}/50</span>
</div> </div>
</div> </div>
</div> </div>
@@ -1143,7 +1148,7 @@
<div class="select fitems"> <div class="select fitems">
<a-range-picker <a-range-picker
style="width: 440px; height: 40px; border-radius: 8px" style="width: 440px; height: 40px; border-radius: 8px"
v-model:value="value21" v-model:value="xjkkinputV3"
separator="至" separator="至"
:placeholder="[' 开始时间', ' 结束时间']" :placeholder="[' 开始时间', ' 结束时间']"
/> />
@@ -1161,7 +1166,7 @@
</div> </div>
<div class="b_input"> <div class="b_input">
<a-input <a-input
v-model:value="value22" v-model:value="xjkkinputV4"
style="width: 440px; height: 40px; border-radius: 8px" style="width: 440px; height: 40px; border-radius: 8px"
placeholder="请输入教师" placeholder="请输入教师"
/> />
@@ -1182,13 +1187,13 @@
<span style="margin-right: 3px">签到设置</span> <span style="margin-right: 3px">签到设置</span>
</div> </div>
<div class="b_input"> <div class="b_input">
<a-radio-group v-model:value="valueB"> <a-radio-group v-model:value="xjkkradioV1">
<a-radio :value="24" <a-radio v-model:checked="checked" :value="1" @click="clear_xjkkradioV1"
><span style="color: #6d7584; margin-right: 30px" ><span style="color: #6d7584; margin-right: 30px"
>是否允许未报名的学员签到</span >是否允许未报名的学员签到</span
></a-radio ></a-radio
> >
<a-radio :value="25" <a-radio v-model:checked="checked" :value="2" @click="clear_xjkkradioV1"
><span style="color: #6d7584">签到是否需要口令</span></a-radio ><span style="color: #6d7584">签到是否需要口令</span></a-radio
> >
</a-radio-group> </a-radio-group>
@@ -1209,18 +1214,18 @@
<span style="margin-right: 3px">完成规则</span> <span style="margin-right: 3px">完成规则</span>
</div> </div>
<div class="b_input"> <div class="b_input">
<a-radio-group v-model:value="valueC"> <a-radio-group v-model:value="xjkkradioV2">
<a-radio :value="26" <a-radio v-model:checked="checked" :value="1" @click="clear_xjkkradioV2"
><span style="color: #6d7584; margin-right: 30px" ><span style="color: #6d7584; margin-right: 30px"
>报名即完成</span >报名即完成</span
></a-radio ></a-radio
> >
<a-radio :value="27" <a-radio v-model:checked="checked" :value="2" @click="clear_xjkkradioV2"
><span style="color: #6d7584; margin-right: 30px" ><span style="color: #6d7584; margin-right: 30px"
>签到即完成</span >签到即完成</span
></a-radio ></a-radio
> >
<a-radio :value="28" <a-radio v-model:checked="checked" :value="3" @click="clear_xjkkradioV2"
><span style="color: #6d7584">请假算完成</span></a-radio ><span style="color: #6d7584">请假算完成</span></a-radio
> >
</a-radio-group> </a-radio-group>
@@ -1273,6 +1278,7 @@
:closable="false" :closable="false"
wrapClassName="modalStyle stusmanageModal" wrapClassName="modalStyle stusmanageModal"
width="80%" width="80%"
@cancel="sm_exit"
> >
<div class="modalHeader"> <div class="modalHeader">
<div class="headerLeft"> <div class="headerLeft">
@@ -1316,7 +1322,7 @@
<div class="stmm_i5"> <div class="stmm_i5">
<div class="i5_left"> <div class="i5_left">
<a-input <a-input
v-model:value="value23" v-model:value="xygl_inputV1"
style=" style="
width: 270px; width: 270px;
height: 40px; height: 40px;
@@ -1482,7 +1488,7 @@
</div> </div>
<div class="rgmb_input"> <div class="rgmb_input">
<a-input <a-input
v-model:value="value24" v-model:value="lrcj_inputV1"
maxlength="20" maxlength="20"
style="width: 440px; height: 40px; border-radius: 8px" style="width: 440px; height: 40px; border-radius: 8px"
placeholder="" placeholder=""
@@ -1533,15 +1539,15 @@
<span>结业</span> <span>结业</span>
</div> </div>
<div class="gramb_input"> <div class="gramb_input">
<a-radio-group v-model:value="onftvalue"> <a-radio-group v-model:value="jyradioV1">
<div class="bc_box"> <div class="bc_box">
<div class="ol_checkbox"> <div class="ol_checkbox">
<a-radio v-model:checked="checked" :value="1" <a-radio v-model:checked="checked" :value="1" @click="clear_jyradioV1"
>结业</a-radio >结业</a-radio
> >
</div> </div>
<div class="ol_checkbox"> <div class="ol_checkbox">
<a-radio v-model:checked="checked" :value="2" <a-radio v-model:checked="checked" :value="2" @click="clear_jyradioV1"
>不结业</a-radio >不结业</a-radio
> >
</div> </div>
@@ -1646,7 +1652,7 @@
<div class="del_header"></div> <div class="del_header"></div>
<div class="del_main"> <div class="del_main">
<div class="header"> <div class="header">
<div class="icon"></div> <div class="del-icon"></div>
<span>提示</span> <span>提示</span>
<div class="close_exit" @click="delete_exit"></div> <div class="close_exit" @click="delete_exit"></div>
</div> </div>
@@ -1731,9 +1737,7 @@
<own-power v-model:ownpowervisible="ownpowervisible" /> <own-power v-model:ownpowervisible="ownpowervisible" />
<!-- 学员管理课程库-归属权抽屉 --> <!-- 学员管理课程库-归属权抽屉 -->
<!-- 添加授权侧弹窗 --> <!-- 添加授权侧弹窗 -->
<div> <corpowerlist v-model:corpowerlistVisible="corpowerlistvisible"/>
<corpowerlist v-model:corpowerlistVisible="corpowerlistvisible"/>
</div>
<!-- 添加授权侧弹窗 --> <!-- 添加授权侧弹窗 -->
</div> </div>
</template> </template>
@@ -1742,6 +1746,7 @@ import { reactive, toRefs, defineComponent, ref } from "vue";
import { message } from "ant-design-vue"; import { message } from "ant-design-vue";
import OwnPower from "../../components/drawers/OwnPower.vue"; import OwnPower from "../../components/drawers/OwnPower.vue";
import Corpowerlist from "../../components/drawers/CorPowerlist.vue"; import Corpowerlist from "../../components/drawers/CorPowerlist.vue";
//列表表格
const columns1 = [ const columns1 = [
{ {
title: "序号", title: "序号",
@@ -1846,6 +1851,7 @@ const columns1 = [
align: "center", align: "center",
}, },
]; ];
const columns2 = [ const columns2 = [
{ {
title: "姓名", title: "姓名",
@@ -1913,7 +1919,7 @@ const columns4 = [
align: "center", align: "center",
}, },
]; ];
//授权弹窗的数据 //授权弹窗
// const columns5 = [ // const columns5 = [
// { // {
// title: "姓名", // title: "姓名",
@@ -2089,6 +2095,7 @@ export default defineComponent({
}, },
setup() { setup() {
const state = reactive({ const state = reactive({
//列表表格
tableData1: [ tableData1: [
{ {
key: "1", key: "1",
@@ -2187,6 +2194,7 @@ export default defineComponent({
kkty: true, kkty: true,
}, },
], ],
//在线面授管理报名管理
tableData2: [ tableData2: [
{ {
key: 1, key: 1,
@@ -2205,6 +2213,7 @@ export default defineComponent({
status: "已完成", status: "已完成",
}, },
], ],
//在线面授管理学习记录
tableData3: [ tableData3: [
{ {
key: 1, key: 1,
@@ -2215,6 +2224,7 @@ export default defineComponent({
status: "已通过", status: "已通过",
}, },
], ],
//管理查看详情
tableData4: [ tableData4: [
{ {
key: 1, key: 1,
@@ -2223,7 +2233,8 @@ export default defineComponent({
status: "已通过", status: "已通过",
}, },
], ],
//授权弹窗的数据
// 授权弹窗
// tableData5: [ // tableData5: [
// { // {
// key: 1, // key: 1,
@@ -2261,6 +2272,8 @@ export default defineComponent({
// authority: "管理权", // authority: "管理权",
// }, // },
// ], // ],
//开课
tableData6: [ tableData6: [
{ {
key: 1, key: 1,
@@ -2303,6 +2316,7 @@ export default defineComponent({
createtime: "2022-07-14 14:00:00", createtime: "2022-07-14 14:00:00",
}, },
], ],
//开课学员管理
tableData7: [ tableData7: [
{ {
key: "1", key: "1",
@@ -2412,20 +2426,45 @@ export default defineComponent({
//抽屉状态 //抽屉状态
ownpowervisible: false, ownpowervisible: false,
corpowerlistvisible: false, corpowerlistvisible: false,
//列表
value: "", value1: "",
value5: "", value2: "",
value6: "", value3: "",
value7: "", value4: "",
value8: "", //选择线上还是面授
value11: "", xzinputV1: "",
value20: "",
valueE1: "", valueE1: "",
valueE2: "", valueE2: "",
valueB: "", //确定面授
valueC: "", qdms_inputV1: "",
qdms_inputV2: "",
qdms_inputV3: "",
qdms_inputV4: "",
qdms_inputV5: "",
qdms_inputV6: "",
//在线面授管理
gl_selectV1:"",
gl_selectV2:"",
gl_inputV1:"",
gl_inputV2:"",
//开课
kkinputV1: "",
kkinputV2: "",
//新建开课
xjkkradioV1:"",
xjkkradioV2:"",
xjkkinputV1: "",
xjkkinputV2: "",
xjkkinputV3: "",
xjkkinputV4: "",
selectedRowKeys: [], selectedRowKeys: [],
faceManageTab: "1", faceManageTab: "1",
//开课学员管理
xygl_inputV1:"",
//录入成绩
lrcj_inputV1:"",
//结业
jyradioV1:"",
}); });
// 渲染列表1操作 // 渲染列表1操作
const getTableDate = () => { const getTableDate = () => {
@@ -3035,6 +3074,8 @@ export default defineComponent({
const of_exit = () => { const of_exit = () => {
state.of_hs = false; state.of_hs = false;
state.valueE1 = ""; state.valueE1 = "";
state.valueE2 = "";
state.hideshow = true;
}; };
const hideShow = () => { const hideShow = () => {
if (state.hideshow == true) { if (state.hideshow == true) {
@@ -3043,8 +3084,11 @@ export default defineComponent({
state.hideshow = true; state.hideshow = true;
} }
}; };
const bs_hShow = () => { const bs_hShow = (value) => {
state.bs_hs = true; state.bs_hs = true;
if (value != "") {
state.valueE1 = "";
}
}; };
const createft = () => { const createft = () => {
if (state.bs_hs == false) { if (state.bs_hs == false) {
@@ -3055,6 +3099,7 @@ export default defineComponent({
}; };
const ft_exit = () => { const ft_exit = () => {
state.ft_hs = false; state.ft_hs = false;
state.hideshow = true;
}; };
const om_exit = () => { const om_exit = () => {
state.om_1 = false; state.om_1 = false;
@@ -3077,14 +3122,39 @@ export default defineComponent({
}; };
const cstm_exit = () => { const cstm_exit = () => {
state.cstm_hs = false; state.cstm_hs = false;
state.xjkkradioV1 = "";
state.xjkkradioV2 = "";
state.xjkkinputV1 = "";
state.xjkkinputV2 = "";
state.xjkkinputV3 = "";
state.xjkkinputV4 = "";
}; };
const sm_exit = () => { const sm_exit = () => {
state.sm_hs = false; state.sm_hs = false;
state.hideshow = true;
}; };
const clear_valueE = () => { const clear_valueE1 = () => {
state.bs_hs = false; state.bs_hs = false;
state.valueE1 = ""; state.valueE1 = "";
}; };
const clear_valueE2 = () => {
state.valueE2 = "";
};
const clear_xjkkradioV1 = (value) => {
if (value != ""){
state.xjkkradioV1 = "";
}
}
const clear_xjkkradioV2 = (value) => {
if (value != ""){
state.xjkkradioV2 = "";
}
}
const clear_jyradioV1 = (value) => {
if (value != ""){
state.jyradioV1 = "";
}
}
const qr_exit = () => { const qr_exit = () => {
state.QR_hs = false; state.QR_hs = false;
state.qrQR_hs = false; state.qrQR_hs = false;
@@ -3162,7 +3232,11 @@ export default defineComponent({
createkk, createkk,
cstm_exit, cstm_exit,
sm_exit, sm_exit,
clear_valueE, clear_valueE1,
clear_valueE2,
clear_xjkkradioV1,
clear_xjkkradioV2,
clear_jyradioV1,
qr_exit, qr_exit,
rg_exit, rg_exit,
graduate_exit, graduate_exit,
@@ -4351,14 +4425,14 @@ export default defineComponent({
} }
} }
} }
.file_operation { }
.file_operation {
display: flex; display: flex;
.fobox{
span { margin-right: 5px;
cursor: pointer; cursor: pointer;
} }
} }
}
} }
} }
} }
@@ -5029,6 +5103,13 @@ export default defineComponent({
padding-top: 20px; padding-top: 20px;
padding-left: 26px; padding-left: 26px;
font-size: 16px; font-size: 16px;
.del-icon {
width: 16px;
height: 16px;
margin-right: 10px;
background-image: url(@/assets/images/coursewareManage/notice.png);
background-size: 100% 100%;
}
.icon { .icon {
width: 16px; width: 16px;
height: 16px; height: 16px;

View File

@@ -72,66 +72,97 @@
</div> </div>
</div> </div>
<div class="Lbom"> <div class="Lbom">
<div class="item" v-for="item in level" :key="item.id"> <!-- 判断路径中是否有关卡 -->
<div class="itemhead"> <div v-if="level.length != 0">
<div class="lev">{{ item.lev }}</div> <div class="item" v-for="item in level" :key="item.id">
<div class="lin"></div> <div class="itemhead">
<div class="nam">{{ item.name }}</div> <div class="lev">{{ item.lev }}</div>
<div class="count"> <div class="lin"></div>
<span>当前关卡</span> <div class="nam">{{ item.name }}</div>
<span>{{ item.count }}</span> <div class="count">
<span>个人</span> <span>当前关卡</span>
</div> <span>{{ item.count }}</span>
</div> <span>个人</span>
<div class="itembomm">
<div class="it">
<div class="on" style="color: #ffb145">
{{ item.online }}
</div> </div>
<div class="ittext">在线</div>
</div> </div>
<div class="linee"></div> <div class="itembomm">
<div class="it"> <div class="it">
<div class="on" style="color: #ff89a4"> <div class="on" style="color: #ffb145">
{{ item.homework }} {{ item.online }}
</div>
<div class="ittext">在线</div>
</div> </div>
<div class="ittext">作业</div> <div class="linee"></div>
</div> <div class="it">
<div class="linee"></div> <div class="on" style="color: #ff89a4">
<div class="it"> {{ item.homework }}
<div class="on" style="color: #3fc5e3"> </div>
{{ item.juan }} <div class="ittext">作业</div>
</div> </div>
<div class="ittext">问卷</div> <div class="linee"></div>
</div> <div class="it">
<div class="linee"></div> <div class="on" style="color: #3fc5e3">
<div class="it"> {{ item.juan }}
<div class="on" style="color: #5be1c0"> </div>
{{ item.ballot }} <div class="ittext">问卷</div>
</div> </div>
<div class="ittext">投票</div> <div class="linee"></div>
</div> <div class="it">
<div class="linee"></div> <div class="on" style="color: #5be1c0">
<div class="it"> {{ item.ballot }}
<div class="on" style="color: #a498ff"> </div>
{{ item.test }} <div class="ittext">投票</div>
</div> </div>
<div class="ittext">考试</div> <div class="linee"></div>
</div> <div class="it">
<div class="linee"></div> <div class="on" style="color: #a498ff">
<div class="itright"> {{ item.test }}
<span class="te">编辑</span> </div>
<div class="more"> <div class="ittext">考试</div>
<div class="te" style="margin-left: 20px">更多</div> </div>
<div class="moreArrow"></div> <div class="linee"></div>
<div class="moreItems"> <div class="itright">
<div class="roleItem">复制</div> <span class="te">编辑</span>
<div class="roleItem">删除</div> <div class="more">
<div class="te" style="margin-left: 20px">更多</div>
<div class="moreArrow"></div>
<div class="moreItems">
<div class="roleItem">复制</div>
<div class="roleItem">删除</div>
</div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div v-else>
<div class="create">
<div
class="taskbox"
style="
background: linear-gradient(180deg, #e5f6ec, #eef9f3);
"
>
<div class="leftt">
<img src="../../assets/images/taskpage/left3.png" />
</div>
<div class="photo">
<img src="../../assets/images/taskpage/picture3.png" />
</div>
<div class="rightt">
<img src="../../assets/images/taskpage/right3.png" />
</div>
<div
class="centerbox"
style="color: rgba(93, 201, 136, 1)"
>
发布
</div>
<div class="centermain">快速发布项目</div>
</div>
</div>
</div>
</div> </div>
</div> </div>
<div class="pad"></div> <div class="pad"></div>
@@ -159,8 +190,8 @@
</div> </div>
</div> </div>
<div class="xheadb"> <div class="xheadb">
<button class="addx">添加学员</button> <button class="addx" @click="showAddStu">添加学员</button>
<button class="addd">导入学员</button> <button class="addd" @click="showImpStu">导入学员</button>
<div class="select"> <div class="select">
<a-select <a-select
v-model:value="projectName" v-model:value="projectName"
@@ -289,7 +320,7 @@
" "
placeholder="请选择部门" placeholder="请选择部门"
:options="projectNameList" :options="projectNameList"
@change="selectProjectName" @change="selectProjectName3"
allowClear allowClear
showSearch showSearch
></a-select> ></a-select>
@@ -344,13 +375,14 @@
v-model:visible="visible" v-model:visible="visible"
:footer="null" :footer="null"
centered="true" centered="true"
wrapClassName="changeModal"
> >
<div class="con"> <div class="con">
<div class="header"> <div class="header">
<div class="inhe"> <div class="inhe">
<div class="mod"></div> <div class="mod"></div>
<div class="tz">调整关卡</div> <div class="tz">调整关卡</div>
<div class="mg"></div> <div class="mg" @click="closeChangeModal"></div>
</div> </div>
</div> </div>
<div class="mid"> <div class="mid">
@@ -375,39 +407,74 @@
</div> </div>
</div></a-modal </div></a-modal
> >
<!-- 批量删除学员弹窗 -->
<a-modal
v-model:visible="deleteAll"
:footer="null"
:closable="closeDeleteAll"
wrapClassName="CopyModal"
centered="true"
>
<div class="delete">
<div class="del_header"></div>
<div class="del_main">
<div class="header">
<div class="icon"></div>
<span>提示</span>
<div class="close_exit" @click="closeDeleteALLModal"></div>
</div>
<div class="body">
<span>请确认是否批量删除学员</span>
</div>
<div class="del_btnbox">
<div class="del_btn btn1">
<div class="btnText" @click="delete_exit">取消</div>
</div>
<div class="del_btn btn2">
<div class="btnText" @click="delete_exit">确定</div>
</div>
</div>
</div>
</div>
</a-modal>
<!-- 添加学员抽屉 -->
<add-stu v-model:AddSvisible="AddSvisible" />
<!-- 导入学员抽屉 -->
<imp-stu v-model:AddImpStuvisible="AddImpStuvisible" />
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { ref, reactive, toRefs } from "vue"; import { ref, reactive, toRefs } from "vue";
import AddStu from "../../components/drawers/AddLevelAddStu";
import ImpStu from "../../components/drawers/AddLevelImportStu";
export default { export default {
name: "LevelAdd", name: "LevelAdd",
components: {}, components: { AddStu, ImpStu },
methods: {}, methods: {},
setup() { setup() {
const state = reactive({ const state = reactive({
gatename: null, //关卡名称 gatename: null, //关卡名称
gatenamee: null, //学员管理关卡名称 gatenamee: null, //学员管理关卡名称
deleteAll: false, //批量删除学员弹窗
AddSvisible: false, //添加学员抽屉
AddImpStuvisible: false, //导入学员抽屉
projectNameListt: [ projectNameListt: [
{ {
id: 1, id: 1,
value: "项目一", value: "导出信息",
label: "项目一", label: "导出信息",
}, },
{ {
id: 2, id: 2,
value: "项目二", value: "批量调整关卡",
label: "项目二", label: "批量调整关卡",
}, },
{ {
id: 3, id: 3,
value: "项目三", value: "批量删除",
label: "项目三", label: "批量删除",
},
{
id: 4,
value: "项目四",
label: "项目四",
}, },
], ],
projectNameList: [ projectNameList: [
@@ -479,29 +546,31 @@ export default {
pageSize: 10, pageSize: 10,
visible: false, visible: false,
sh: false, sh: false,
closeDeleteAll: false,
//关卡的数据
level: [ level: [
{ // {
id: 1, // id: 1,
lev: "关卡2", // lev: "关卡2",
name: "中级产品经理", // name: "中级产品经理",
count: 3, // count: 3,
online: 5, // online: 5,
homework: 1, // homework: 1,
juan: 1, // juan: 1,
ballot: 1, // ballot: 1,
test: 1, // test: 1,
}, // },
{ // {
id: 2, // id: 2,
lev: "关卡2", // lev: "关卡2",
name: "初级产品经理", // name: "初级产品经理",
count: 3, // count: 3,
online: 5, // online: 5,
homework: 1, // homework: 1,
juan: 1, // juan: 1,
ballot: 1, // ballot: 1,
test: 1, // test: 1,
}, // },
], ],
tableData: [ tableData: [
{ {
@@ -580,6 +649,9 @@ export default {
}); });
const selectProjectName = (value, index) => { const selectProjectName = (value, index) => {
console.log("value", value, index); console.log("value", value, index);
if (value === "批量删除") {
showDeleteALLModal();
}
}; };
const selectProjectName2 = (value, index) => { const selectProjectName2 = (value, index) => {
console.log("value", value, index); console.log("value", value, index);
@@ -698,18 +770,38 @@ export default {
console.log("selectedRowKeys changed: ", selectedRowKeys); console.log("selectedRowKeys changed: ", selectedRowKeys);
state.selectedRowKeys = selectedRowKeys; state.selectedRowKeys = selectedRowKeys;
}; };
const showDeleteALLModal = () => {
state.deleteAll = true;
};
const closeDeleteALLModal = () => {
state.deleteAll = false;
};
const showModal = () => { const showModal = () => {
state.visible = true; state.visible = true;
}; };
const closeChangeModal = () => {
state.visible = false;
};
const showAddStu = () => {
state.AddSvisible = true;
};
const showImpStu = () => {
state.AddImpStuvisible = true;
};
return { return {
...toRefs(state), ...toRefs(state),
selectProjectName, selectProjectName,
selectProjectName2, selectProjectName2,
selectProjectName3, selectProjectName3,
selectProjectName4, selectProjectName4,
showDeleteALLModal,
closeDeleteALLModal,
tableDataFunc, tableDataFunc,
onSelectChange, onSelectChange,
showModal, showModal,
closeChangeModal,
showAddStu,
showImpStu,
}; };
}, },
}; };
@@ -721,96 +813,210 @@ export default {
display: block; display: block;
clear: both; clear: both;
} }
.ant-modal { .CopyModal {
width: 549px !important; .ant-modal {
height: 245px !important; width: 424px !important;
.ant-modal-content { height: 258px !important;
width: 549px !important; .ant-modal-content {
height: 245px !important; width: 424px !important;
.ant-modal-body { height: 258px !important;
padding: 0 !important; .ant-modal-body {
width: 549px !important; width: 424px !important;
height: 245px !important; height: 258px !important;
.con { padding: 0 !important;
// background-color: #bfa; .delete {
width: 100%; z-index: 999;
height: 100%; width: 424px;
height: 258px;
.header { background: #ffffff;
width: 100%; box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21);
display: flex; border-radius: 4px;
height: 68px; // position: absolute;
position: relative; // left: 50%;
justify-content: center; // top: 10%;
// transform: translate(-50%, -50%);
background: linear-gradient( .del_header {
rgba(78, 166, 255, 0.2) 0%, position: absolute;
rgba(78, 166, 255, 0) 100% width: calc(100%);
); height: 40px;
.inhe { background: linear-gradient(
width: 80%; rgba(78, 166, 255, 0.2) 0%,
height: 100%; rgba(78, 166, 255, 0) 100%
display: flex; );
justify-content: space-between; }
align-items: center; .del_main {
.mod { width: 100%;
left: 30px; position: relative;
top: 27px; .header {
position: absolute; display: flex;
width: 18px; align-items: center;
height: 17px; padding-top: 20px;
background-image: url(../../assets/images/leveladd/mod.png); padding-left: 26px;
}
.tz {
color: #000000;
font-weight: 400;
font-size: 16px; font-size: 16px;
.icon {
width: 16px;
height: 16px;
margin-right: 10px;
background-image: url(@/assets/images/coursewareManage/QR.png);
background-size: 100% 100%;
}
.close_exit {
position: absolute;
right: 42px;
cursor: pointer;
width: 20px;
height: 20px;
background-image: url(@/assets/images/coursewareManage/close.png);
background-size: 100% 100%;
}
} }
.mg { .body {
width: 20px; width: 100%;
height: 20px; margin: 34px auto 56px auto;
background-image: url(../../assets/images/basicinfo/close22.png); display: flex;
background-size: 100% 100%; justify-content: center;
align-items: center;
flex-direction: column;
// background-color: red;
position: relative;
.back {
position: absolute;
top: 30px;
font-size: 12px;
font-weight: 400;
color: #666666;
}
}
.del_btnbox {
display: flex;
margin: 30px auto;
justify-content: center;
.del_btn {
width: 100px;
height: 40px;
background: rgba(64, 158, 255, 0);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
cursor: pointer;
.btnText {
font-size: 14px;
font-weight: 400;
line-height: 40px;
}
}
.btn1 {
border: 1px solid rgba(64, 158, 255, 1);
color: #4ea6ff;
margin-right: 14px;
}
.btn2 {
background-color: #4ea6ff;
color: #ffffff;
}
} }
} }
} }
.mid { }
}
}
}
.changeModal {
.ant-modal {
width: 549px !important;
height: 245px !important;
.ant-modal-content {
width: 549px !important;
height: 245px !important;
.ant-modal-body {
padding: 0 !important;
width: 549px !important;
height: 245px !important;
.con {
// background-color: #bfa;
width: 100%; width: 100%;
display: flex;
height: 100%; height: 100%;
justify-content: center;
.inher {
width: 80%;
height: 100%;
.cur {
color: #6f6f6f;
font-size: 14px;
}
.select {
margin-top: 10px;
}
.btn {
width: 100%;
display: flex;
justify-content: center;
margin-top: 30px;
.sameb {
width: 100px;
height: 40px;
font-size: 14px;
border-radius: 8px; .header {
width: 100%;
display: flex;
height: 68px;
position: relative;
justify-content: center;
background: linear-gradient(
rgba(78, 166, 255, 0.2) 0%,
rgba(78, 166, 255, 0) 100%
);
.inhe {
width: 80%;
height: 100%;
display: flex;
justify-content: space-between;
align-items: center;
.mod {
left: 30px;
top: 27px;
position: absolute;
width: 18px;
height: 17px;
background-image: url(../../assets/images/leveladd/mod.png);
} }
.btn1 { .tz {
color: #4ea6ff; color: #000000;
background: #ffffff; font-weight: 400;
border: 1px solid #4ea6ff; font-size: 16px;
} }
.btn2 { .mg {
margin-left: 16px; width: 20px;
border: 0; height: 20px;
color: #ffffff; background-image: url(../../assets/images/basicinfo/close22.png);
background: #4ea6ff; background-size: 100% 100%;
cursor: pointer;
}
}
}
.mid {
width: 100%;
display: flex;
height: 100%;
justify-content: center;
.inher {
width: 80%;
height: 100%;
.cur {
color: #6f6f6f;
font-size: 14px;
}
.select {
margin-top: 10px;
}
.btn {
width: 100%;
display: flex;
justify-content: center;
margin-top: 30px;
.sameb {
width: 100px;
height: 40px;
font-size: 14px;
border-radius: 8px;
}
.btn1 {
color: #4ea6ff;
background: #ffffff;
border: 1px solid #4ea6ff;
}
.btn2 {
margin-left: 16px;
border: 0;
color: #ffffff;
background: #4ea6ff;
}
} }
} }
} }
@@ -1200,6 +1406,55 @@ export default {
} }
} }
} }
.show {
color: blue;
}
.noshow {
display: none;
}
}
.create {
margin-top: 40px;
.taskbox {
width: 412px;
height: 160px;
border-radius: 10px;
position: relative;
// margin-left: 68px;
margin-bottom: 40px;
cursor: pointer;
.leftt {
position: absolute;
top: 18px;
left: 0;
}
.photo {
position: absolute;
top: 42px;
left: 37px;
}
.rightt {
position: absolute;
top: 69px;
right: 26px;
}
.centerbox {
position: absolute;
top: 52px;
left: 145px;
font-size: 20px;
font-weight: 700;
//line-height: 36px;
}
.centermain {
color: rgba(135, 139, 146, 1);
font-size: 14px;
position: absolute;
left: 144px;
bottom: 49px;
}
}
} }
} }
} }

View File

@@ -292,9 +292,9 @@
</div> </div>
</div> </div>
<div class="operations"> <div class="operations">
<div class="operation">考勤</div> <div class="operation" style="cursor: pointer">考勤</div>
<div class="operation">管理</div> <div class="operation" style="cursor: pointer">管理</div>
<div class="operation">二维码</div> <div class="operation" style="cursor:pointer">二维码</div>
</div> </div>
</div> </div>
<div class="course"> <div class="course">
@@ -333,7 +333,7 @@
<div class="operation" style="cursor: pointer" @click="showFace"> <div class="operation" style="cursor: pointer" @click="showFace">
管理 管理
</div> </div>
<div class="operation">二维码</div> <div class="operation" style="cursor:pointer">二维码</div>
</div> </div>
</div> </div>
<div class="course"> <div class="course">
@@ -369,8 +369,8 @@
<div class="operation" style="cursor: pointer" @click="showAA"> <div class="operation" style="cursor: pointer" @click="showAA">
考勤 考勤
</div> </div>
<div class="operation">管理</div> <div class="operation" style="cursor: pointer">管理</div>
<div class="operation">二维码</div> <div class="operation" style="cursor:pointer">二维码</div>
</div> </div>
</div> </div>
<div class="course"> <div class="course">
@@ -1243,7 +1243,7 @@
<!-- 取消学员弹窗 --> <!-- 取消学员弹窗 -->
</div> </div>
</template> </template>
<script> <script>
import { reactive, toRefs } from "vue"; import { reactive, toRefs } from "vue";
import TimeManage from "../../components/drawers/TimeManage"; import TimeManage from "../../components/drawers/TimeManage";
import FaceManage from "../../components/drawers/FaceManage"; import FaceManage from "../../components/drawers/FaceManage";
@@ -3291,4 +3291,3 @@ export default {
} }
} }
</style> </style>