feat:新增录入成绩弹窗 修复弹窗宽度不适应问题

This commit is contained in:
dongwug
2022-10-13 17:54:28 +08:00
parent adc6191e28
commit f128a0a389
5 changed files with 266 additions and 231 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 695 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 600 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 508 B

View File

@@ -1291,6 +1291,47 @@
</div>
</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>
</template>
<script>
@@ -1961,133 +2002,10 @@ export default defineComponent({
sm_hs: false,
QR_hs:false,
closableQR: false,
rg_hs:true,
value:"",
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 loading = ref(false);
const imageUrl = ref("");
@@ -2615,6 +2533,9 @@ export default defineComponent({
const qr_exit = () => {
state.QR_hs = false;
}
const rg_exit = () => {
state.rg_hs = false;
}
return {
onftvalue,
current,
@@ -2652,6 +2573,7 @@ export default defineComponent({
sm_exit,
clear_valueE,
qr_exit,
rg_exit
};
},
});
@@ -3134,118 +3056,125 @@ export default defineComponent({
}
}
}
.createschooltime {
z-index: 999;
width: 679px;
background: #ffffff;
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21);
position: absolute;
left: 50%;
top: 10%;
transform: translate(-50%, -50%);
.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 {
.ant-modal{
.ant-modal-content{
width:679px !important;
.ant-modal-body{
.createschooltime {
z-index: 999;
width: 100%;
background: #ffffff;
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21);
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;
left: 50%;
top: 10%;
transform: translate(-50%, -50%);
.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%
);
}
}
.b_input{
flex:1;
.upload_box {
display: flex;
cursor: pointer;
.upload_icon {
width: 16px;
height: 16px;
margin-right: 5px;
.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;
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-content{
@@ -3282,7 +3211,7 @@ export default defineComponent({
width: 16px;
height: 16px;
margin-right: 10px;
background-image: url(@/assets/images/coursewareManage/add1.png);
background-image: url(@/assets/images/coursewareManage/QR.png);
background-size: 100% 100%;
}
.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 {
.ant-modal{
.ant-modal-content{
width:1358px !important;
.ant-modal-body{
.modalHeader {
display: flex;
align-items: center;
@@ -3864,6 +3896,9 @@ export default defineComponent({
}
}
}
}
}
}
}
</style>