mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-08 10:26:44 +08:00
feat:新增录入成绩弹窗 修复弹窗宽度不适应问题
This commit is contained in:
BIN
src/assets/images/coursewareManage/QR.png
Normal file
BIN
src/assets/images/coursewareManage/QR.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 695 B |
BIN
src/assets/images/coursewareManage/grade.png
Normal file
BIN
src/assets/images/coursewareManage/grade.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 427 B |
BIN
src/assets/images/coursewareManage/graduate.png
Normal file
BIN
src/assets/images/coursewareManage/graduate.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 600 B |
BIN
src/assets/images/coursewareManage/notice.png
Normal file
BIN
src/assets/images/coursewareManage/notice.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 508 B |
@@ -1291,6 +1291,47 @@
|
|||||||
</div>
|
</div>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
<!--新建二维码页面 -->
|
<!--新建二维码页面 -->
|
||||||
|
<!--新建录入成绩页面 -->
|
||||||
|
<a-modal v-model:visible="rg_hs" :footer="null" :closable="closableQR" style="margin-top: 400px">
|
||||||
|
<div
|
||||||
|
class="recordgrade"
|
||||||
|
:style="{ display: rg_hs ? 'block' : 'none' }"
|
||||||
|
>
|
||||||
|
<div class="rg_header"></div>
|
||||||
|
<div class="rg_main">
|
||||||
|
<div class="rgm_header">
|
||||||
|
<div class="rg_icon"></div>
|
||||||
|
<span>录入成绩</span>
|
||||||
|
<div class="close_exit" @click="rg_exit"></div>
|
||||||
|
</div>
|
||||||
|
<div class="rgm_body">
|
||||||
|
<div class="rgmb_items">
|
||||||
|
<div class="items_left">
|
||||||
|
<div class="sign"><img src="@/assets/images/coursewareManage/asterisk.png" alt=""></div>
|
||||||
|
<span >得分</span>
|
||||||
|
</div>
|
||||||
|
<div class="rgmb_input">
|
||||||
|
<a-input
|
||||||
|
v-model:value="value"
|
||||||
|
maxlength="20"
|
||||||
|
style="width: 440px; height: 40px; border-radius: 8px"
|
||||||
|
placeholder=""
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="qrm_btnbox">
|
||||||
|
<div class="qrm_btn btn1">
|
||||||
|
<div class="btnText">取消</div>
|
||||||
|
</div>
|
||||||
|
<div class="qrm_btn btn2">
|
||||||
|
<div class="btnText" @click="rg_exit">确定</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a-modal>
|
||||||
|
<!--新建录入成绩页面 -->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@@ -1961,133 +2002,10 @@ export default defineComponent({
|
|||||||
sm_hs: false,
|
sm_hs: false,
|
||||||
QR_hs:false,
|
QR_hs:false,
|
||||||
closableQR: false,
|
closableQR: false,
|
||||||
|
rg_hs:true,
|
||||||
value:"",
|
value:"",
|
||||||
valueE:"",
|
valueE:"",
|
||||||
});
|
});
|
||||||
// const tableDataFunc = () => {
|
|
||||||
// const columns = [
|
|
||||||
// {
|
|
||||||
// title: '序号',
|
|
||||||
// width: 200,
|
|
||||||
// dataIndex: 'num',
|
|
||||||
// key: 'num',
|
|
||||||
// align: "center",
|
|
||||||
// }, {
|
|
||||||
// title: '名称',
|
|
||||||
// width: 200,
|
|
||||||
// dataIndex: 'name',
|
|
||||||
// key: 'name',
|
|
||||||
// }, {
|
|
||||||
// title: '内容分类',
|
|
||||||
// width: 200,
|
|
||||||
// dataIndex: 'content',
|
|
||||||
// key: '1',
|
|
||||||
// align: "center",
|
|
||||||
// }, {
|
|
||||||
// title: '课程形式',
|
|
||||||
// width: 200,
|
|
||||||
// dataIndex: 'courseform',
|
|
||||||
// key: '2',
|
|
||||||
// align: "center",
|
|
||||||
// }, {
|
|
||||||
// title: ' 所属项目',
|
|
||||||
// width: 300,
|
|
||||||
// dataIndex: 'project',
|
|
||||||
// key: '3',
|
|
||||||
// align: "center",
|
|
||||||
// }, {
|
|
||||||
// title: '学习人数',
|
|
||||||
// width: 200,
|
|
||||||
// dataIndex: 'stunum',
|
|
||||||
// key: '4',
|
|
||||||
// align: "center",
|
|
||||||
// }, {
|
|
||||||
// title: '评分',
|
|
||||||
// width: 200,
|
|
||||||
// dataIndex: 'grade',
|
|
||||||
// key: '5',
|
|
||||||
// align: "center",
|
|
||||||
// }, {
|
|
||||||
// title: '状态',
|
|
||||||
// width: 200,
|
|
||||||
// dataIndex: 'status',
|
|
||||||
// key: '6',
|
|
||||||
// align: "center",
|
|
||||||
// }, {
|
|
||||||
// title: '是否发布',
|
|
||||||
// width: 200,
|
|
||||||
// dataIndex: 'ynpub',
|
|
||||||
// key: '7',
|
|
||||||
// align: "center",
|
|
||||||
// }, {
|
|
||||||
// title: '创建人',
|
|
||||||
// width: 200,
|
|
||||||
// dataIndex: 'creator',
|
|
||||||
// key: '8',
|
|
||||||
// align: "center",
|
|
||||||
// }, {
|
|
||||||
// title: '创建时间',
|
|
||||||
// width: 280,
|
|
||||||
// dataIndex: 'createtime',
|
|
||||||
// key: '9',
|
|
||||||
// align: "center",
|
|
||||||
// }, {
|
|
||||||
// title: '上线时间',
|
|
||||||
// width: 280,
|
|
||||||
// dataIndex: 'pubtime',
|
|
||||||
// key: '10',
|
|
||||||
// align: "center",
|
|
||||||
// }, {
|
|
||||||
// title: '是否停用',
|
|
||||||
// width: 200,
|
|
||||||
// key: 'either',
|
|
||||||
// dataIndex: 'ynuse',
|
|
||||||
// align: "center",
|
|
||||||
// }, {
|
|
||||||
// title: '操作',
|
|
||||||
// width: 400,
|
|
||||||
// className: "h",
|
|
||||||
// dataIndex: "opacation",
|
|
||||||
// key: 'operation',
|
|
||||||
// fixed: 'right',
|
|
||||||
// align: "center",
|
|
||||||
// scopedSlots: { customRender: "action" },
|
|
||||||
// customRender: (text) => {
|
|
||||||
// // console.log('111',text);
|
|
||||||
// return (
|
|
||||||
// <div class="op_box">
|
|
||||||
// <div class="opacation">
|
|
||||||
// <span class={text.record.courseform === '面授' ? "activecls" : "errorCls"} style={{ "margin-left": "25px" }} >开课</span>
|
|
||||||
// <span class={text.record.ynuse === '停用' ? "activecls" : "errorCls"} style={{ "margin-left": "25px" }} >停用</span>
|
|
||||||
// <span class={text.record.status === '未提交' || text.record.status === '审核未通过' ? "activecls" : "errorCls"} style={{ "margin-left": "25px" }} >编辑</span>
|
|
||||||
// <span onClick={() => {}} class={text.record.status === '已审核' ? "activecls" : "errorCls"} style={{ "margin-left": "25px" }} >管理</span>
|
|
||||||
// <span class={text.record.status === '待审核' ? "errorCls" : "activecls"} style={{ "margin-left": "25px" }} >复制</span>
|
|
||||||
// <span style={{ "margin-left": "25px" }} class="more">
|
|
||||||
// <span>授权</span>
|
|
||||||
// <div class="moreArrow"></div>
|
|
||||||
// <div class="moreItems">
|
|
||||||
// <span style="color:#4EA6FF;">权限名单</span>
|
|
||||||
// <div class="mitems1">归属权</div>
|
|
||||||
// <div class="mitems2">管理权</div>
|
|
||||||
// <div class="mitems3">查看权</div>
|
|
||||||
// </div>
|
|
||||||
// </span>
|
|
||||||
// <span
|
|
||||||
// style={{ "margin-left": "21px", "margin-right": "30px" }}
|
|
||||||
// class="more"
|
|
||||||
// >
|
|
||||||
// <span>更多</span>
|
|
||||||
// <div class="moreArrow"></div>
|
|
||||||
// <div class="moreItems"></div>
|
|
||||||
// </span>
|
|
||||||
// </div>
|
|
||||||
// </div>
|
|
||||||
// );
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
// ];
|
|
||||||
// return columns;
|
|
||||||
// };
|
|
||||||
const fileList = ref([]);
|
const fileList = ref([]);
|
||||||
const loading = ref(false);
|
const loading = ref(false);
|
||||||
const imageUrl = ref("");
|
const imageUrl = ref("");
|
||||||
@@ -2615,6 +2533,9 @@ export default defineComponent({
|
|||||||
const qr_exit = () => {
|
const qr_exit = () => {
|
||||||
state.QR_hs = false;
|
state.QR_hs = false;
|
||||||
}
|
}
|
||||||
|
const rg_exit = () => {
|
||||||
|
state.rg_hs = false;
|
||||||
|
}
|
||||||
return {
|
return {
|
||||||
onftvalue,
|
onftvalue,
|
||||||
current,
|
current,
|
||||||
@@ -2652,6 +2573,7 @@ export default defineComponent({
|
|||||||
sm_exit,
|
sm_exit,
|
||||||
clear_valueE,
|
clear_valueE,
|
||||||
qr_exit,
|
qr_exit,
|
||||||
|
rg_exit
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@@ -3134,118 +3056,125 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.createschooltime {
|
.ant-modal{
|
||||||
z-index: 999;
|
.ant-modal-content{
|
||||||
width: 679px;
|
width:679px !important;
|
||||||
background: #ffffff;
|
.ant-modal-body{
|
||||||
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21);
|
.createschooltime {
|
||||||
position: absolute;
|
z-index: 999;
|
||||||
left: 50%;
|
width: 100%;
|
||||||
top: 10%;
|
background: #ffffff;
|
||||||
transform: translate(-50%, -50%);
|
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21);
|
||||||
.cst_header {
|
|
||||||
position: absolute;
|
|
||||||
width: calc(100%);
|
|
||||||
height: 40px;
|
|
||||||
background: linear-gradient(
|
|
||||||
rgba(78, 166, 255, 0.2) 0%,
|
|
||||||
rgba(78, 166, 255, 0) 100%
|
|
||||||
);
|
|
||||||
}
|
|
||||||
.cst_main {
|
|
||||||
width: calc(100%);
|
|
||||||
position: relative;
|
|
||||||
.cstm_header {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
padding-top: 20px;
|
|
||||||
padding-left: 26px;
|
|
||||||
font-size: 16px;
|
|
||||||
.add_icon {
|
|
||||||
width: 16px;
|
|
||||||
height: 16px;
|
|
||||||
margin-right: 10px;
|
|
||||||
background-image: url(@/assets/images/coursewareManage/add1.png);
|
|
||||||
background-size: 100% 100%;
|
|
||||||
}
|
|
||||||
.close_exit {
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 42px;
|
left: 50%;
|
||||||
cursor: pointer;
|
top: 10%;
|
||||||
width: 20px;
|
transform: translate(-50%, -50%);
|
||||||
height: 20px;
|
.cst_header {
|
||||||
background-image: url(@/assets/images/coursewareManage/close.png);
|
position: absolute;
|
||||||
background-size: 100% 100%;
|
width: calc(100%);
|
||||||
}
|
height: 40px;
|
||||||
}
|
background: linear-gradient(
|
||||||
.cstm_title {
|
rgba(78, 166, 255, 0.2) 0%,
|
||||||
margin: 10px auto 20px 51px;
|
rgba(78, 166, 255, 0) 100%
|
||||||
font-weight: bold;
|
);
|
||||||
}
|
|
||||||
.cstm_items {
|
|
||||||
display: flex;
|
|
||||||
width: 80%;
|
|
||||||
margin:auto;
|
|
||||||
align-items: center;
|
|
||||||
margin-bottom: 23px;
|
|
||||||
.signbox{
|
|
||||||
display:flex;
|
|
||||||
justify-content: end;
|
|
||||||
width:100px;
|
|
||||||
margin-right:6px;
|
|
||||||
.sign{
|
|
||||||
margin-top:-5px;
|
|
||||||
margin-right:4px;
|
|
||||||
}
|
}
|
||||||
}
|
.cst_main {
|
||||||
.b_input{
|
width: calc(100%);
|
||||||
flex:1;
|
position: relative;
|
||||||
.upload_box {
|
.cstm_header {
|
||||||
display: flex;
|
display: flex;
|
||||||
cursor: pointer;
|
align-items: center;
|
||||||
.upload_icon {
|
padding-top: 20px;
|
||||||
width: 16px;
|
padding-left: 26px;
|
||||||
height: 16px;
|
font-size: 16px;
|
||||||
margin-right: 5px;
|
.add_icon {
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
margin-right: 10px;
|
||||||
|
background-image: url(@/assets/images/coursewareManage/add1.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%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.cstm_title {
|
||||||
|
margin: 10px auto 20px 51px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.cstm_items {
|
||||||
|
display: flex;
|
||||||
|
width: 80%;
|
||||||
|
margin:auto;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 23px;
|
||||||
|
.signbox{
|
||||||
|
display:flex;
|
||||||
|
justify-content: end;
|
||||||
|
width:100px;
|
||||||
|
margin-right:6px;
|
||||||
|
.sign{
|
||||||
|
margin-top:-5px;
|
||||||
|
margin-right:4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.b_input{
|
||||||
|
flex:1;
|
||||||
|
.upload_box {
|
||||||
|
display: flex;
|
||||||
|
cursor: pointer;
|
||||||
|
.upload_icon {
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.items_fj{
|
||||||
|
margin-bottom:1px;
|
||||||
|
}
|
||||||
|
.items_btn {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
margin-top: 20px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
.cstm_btn {
|
||||||
|
width: 100px;
|
||||||
|
height: 40px;
|
||||||
|
background: rgba(64, 158, 255, 0);
|
||||||
|
border-radius: 8px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
margin-right: 14px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
cursor: pointer;
|
||||||
|
.btnText {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: 40px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.btn5 {
|
||||||
|
border: 1px solid rgba(64, 158, 255, 1);
|
||||||
|
color: #4ea6ff;
|
||||||
|
}
|
||||||
|
.btn6 {
|
||||||
|
background-color: #4ea6ff;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
.items_fj{
|
|
||||||
margin-bottom:1px;
|
|
||||||
}
|
|
||||||
.items_btn {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
margin-top: 20px;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
.cstm_btn {
|
|
||||||
width: 100px;
|
|
||||||
height: 40px;
|
|
||||||
background: rgba(64, 158, 255, 0);
|
|
||||||
border-radius: 8px;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
margin-right: 14px;
|
|
||||||
flex-shrink: 0;
|
|
||||||
cursor: pointer;
|
|
||||||
.btnText {
|
|
||||||
font-size: 14px;
|
|
||||||
font-weight: 400;
|
|
||||||
line-height: 40px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.btn5 {
|
|
||||||
border: 1px solid rgba(64, 158, 255, 1);
|
|
||||||
color: #4ea6ff;
|
|
||||||
}
|
|
||||||
.btn6 {
|
|
||||||
background-color: #4ea6ff;
|
|
||||||
color: #ffffff;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.ant-modal{
|
.ant-modal{
|
||||||
.ant-modal-content{
|
.ant-modal-content{
|
||||||
@@ -3282,7 +3211,7 @@ export default defineComponent({
|
|||||||
width: 16px;
|
width: 16px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
background-image: url(@/assets/images/coursewareManage/add1.png);
|
background-image: url(@/assets/images/coursewareManage/QR.png);
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
}
|
}
|
||||||
.close_exit {
|
.close_exit {
|
||||||
@@ -3339,8 +3268,111 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.ant-modal{
|
||||||
|
.ant-modal-content{
|
||||||
|
width:679px !important;
|
||||||
|
.ant-modal-body{
|
||||||
|
.recordgrade{
|
||||||
|
z-index: 999;
|
||||||
|
width: 100%;
|
||||||
|
background: #ffffff;
|
||||||
|
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21);
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
top: 10%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
.rg_header {
|
||||||
|
position: absolute;
|
||||||
|
width: calc(100%);
|
||||||
|
height: 40px;
|
||||||
|
background: linear-gradient(
|
||||||
|
rgba(78, 166, 255, 0.2) 0%,
|
||||||
|
rgba(78, 166, 255, 0) 100%
|
||||||
|
);
|
||||||
|
}
|
||||||
|
.rg_main {
|
||||||
|
width: 100%;
|
||||||
|
position: relative;
|
||||||
|
.rgm_header {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
padding-top: 20px;
|
||||||
|
padding-left: 26px;
|
||||||
|
font-size: 16px;
|
||||||
|
.rg_icon {
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
margin-right: 10px;
|
||||||
|
background-image: url(@/assets/images/coursewareManage/grade.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%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.rgm_body{
|
||||||
|
width: 100%;
|
||||||
|
.rgmb_items{
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items:center;
|
||||||
|
width:80%;
|
||||||
|
margin:21px auto 10px auto;
|
||||||
|
.items_left{
|
||||||
|
display:flex;
|
||||||
|
margin-right:14px;
|
||||||
|
.sign{
|
||||||
|
margin-right:7px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.qrm_btnbox{
|
||||||
|
display:flex;
|
||||||
|
margin:30px auto;
|
||||||
|
justify-content: center;
|
||||||
|
.qrm_btn {
|
||||||
|
width: 100px;
|
||||||
|
height: 40px;
|
||||||
|
background: rgba(64, 158, 255, 0);
|
||||||
|
border-radius: 8px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
margin-right: 14px;
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
.btn2 {
|
||||||
|
background-color: #4ea6ff;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
.modalStyle {
|
.modalStyle {
|
||||||
.ant-modal{
|
.ant-modal{
|
||||||
|
.ant-modal-content{
|
||||||
|
width:1358px !important;
|
||||||
|
.ant-modal-body{
|
||||||
.modalHeader {
|
.modalHeader {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -3864,6 +3896,9 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user