|
|
@@ -98,13 +98,16 @@
|
|
|
</div>
|
|
|
<div class="search_stu_box_footer">
|
|
|
<div>输入学生共{{ searchStuData.length }}人</div>
|
|
|
- <div>
|
|
|
- <el-button size="small" @click="selectNoneStu"
|
|
|
+ <div class="dialog-footer">
|
|
|
+ <!-- <el-button size="small" @click="selectNoneStu"
|
|
|
>取消</el-button
|
|
|
- >
|
|
|
- <el-button size="small" type="primary" @click="selectStu"
|
|
|
+ > -->
|
|
|
+ <div @click="selectNoneStu" class="kbtn">取消</div>
|
|
|
+ <div @click="selectStu" class="kbtn" style="background: #3681FC; color: #E6FFFFFF;">确认</div>
|
|
|
+
|
|
|
+ <!-- <el-button size="small" type="primary" @click="selectStu"
|
|
|
>确定</el-button
|
|
|
- >
|
|
|
+ > -->
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -180,10 +183,14 @@
|
|
|
</div>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<template v-if="addStuType == 1">
|
|
|
- <el-button size="small" @click="closeAllClaAddStu">取消</el-button>
|
|
|
- <el-button size="small" type="primary" @click="addStu"
|
|
|
- >确定</el-button
|
|
|
- >
|
|
|
+ <!-- <el-button size="small" @click="closeAllClaAddStu">取消</el-button> -->
|
|
|
+ <div @click="closeAllClaAddStu" class="kbtn">取消</div>
|
|
|
+
|
|
|
+ <div @click="addStu" class="kbtn" style="background: #3681FC; color: #E6FFFFFF;">确认</div>
|
|
|
+
|
|
|
+ <!-- <el-button size="small" type="primary" @click="addStu"
|
|
|
+ >确认</el-button
|
|
|
+ > -->
|
|
|
</template>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
@@ -194,15 +201,21 @@
|
|
|
:show-close="false"
|
|
|
>
|
|
|
<div class="msgCon">
|
|
|
- <img style="width: 20px;" src="../../../../assets/stuImg/duil.svg" alt="">
|
|
|
+ <img v-if="deltypy == 0" style="width: 20px;" src="../../../../assets/stuImg/duil.svg" alt="">
|
|
|
+ <img v-if="deltypy == 1" style="width: 20px;" src="../../../../assets/stuImg/tishi.svg" alt="">
|
|
|
+
|
|
|
<div class="msgContxt">
|
|
|
- <div>{{impbox.length ? impbox[0].name : ''}}等{{impbox.length}} 名同学已添加成功</div>
|
|
|
+ <div v-if="deltypy == 0">{{impbox.length ? impbox[0].name : ''}}等{{impbox.length}} 名同学已添加成功</div>
|
|
|
+ <div v-if="deltypy == 1">是否确认上传?</div>
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button type="primary" @click="confirmDelStu"
|
|
|
+ <!-- <el-button type="primary" @click="confirmDelStu"
|
|
|
>确 认</el-button
|
|
|
- >
|
|
|
+ > -->
|
|
|
+ <div @click="closePop" class="kbtn" v-if="deltypy == 1">取消</div>
|
|
|
+ <div @click="confirmDelStu" class="kbtn" style="background: #3681FC; color: #E3EDFF;height: 32px;">确认</div>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
@@ -253,6 +266,8 @@ export default {
|
|
|
role: this.$route.query.role,
|
|
|
cascaderDataPath: [],
|
|
|
|
|
|
+ deltypy:0,
|
|
|
+ stuexcel:[],
|
|
|
impbox:[],
|
|
|
addpopStuList:[],
|
|
|
popBoxdia:false,
|
|
|
@@ -464,17 +479,23 @@ export default {
|
|
|
);
|
|
|
return;
|
|
|
}
|
|
|
- _this.$confirm('是否确认上传?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning',
|
|
|
- }).then(() => {
|
|
|
- _this.uploadfileLoading = true;
|
|
|
- _this.accUpdate(arr);
|
|
|
- }).catch(() => {
|
|
|
- _this.uploadfileLoading = false;
|
|
|
- _this.$message.info('已取消');
|
|
|
- });
|
|
|
+ _this.deltypy = 1;
|
|
|
+ _this.popBoxdia= true;
|
|
|
+ _this.stuexcel = arr;
|
|
|
+ // _this.$confirm('是否确认上传?', '提示', {
|
|
|
+ // confirmButtonText: '确定',
|
|
|
+ // cancelButtonText: '取消',
|
|
|
+ // type: 'warning',
|
|
|
+ // }).then(() => {
|
|
|
+
|
|
|
+ // _this.uploadfileLoading = true;
|
|
|
+ // _this.accUpdate(arr);
|
|
|
+
|
|
|
+
|
|
|
+ // }).catch(() => {
|
|
|
+ // _this.uploadfileLoading = false;
|
|
|
+ // _this.$message.info('已取消');
|
|
|
+ // });
|
|
|
};
|
|
|
|
|
|
reader.readAsArrayBuffer(f);
|
|
|
@@ -566,6 +587,7 @@ export default {
|
|
|
message: "添加成功",
|
|
|
type: "success",
|
|
|
});
|
|
|
+ this.deltypy = 0;
|
|
|
this.popBoxdia= true;
|
|
|
// this.addStuVisible = false;
|
|
|
console.log('this.selectedStuData',this.selectedStuData);
|
|
|
@@ -581,9 +603,20 @@ export default {
|
|
|
},
|
|
|
confirmDelStu(){
|
|
|
// this.addStuVisible = false;
|
|
|
+ if (this.deltypy == 0) {
|
|
|
+ this.impbox = []
|
|
|
+ this.selectedStuData = [];
|
|
|
+ }else if (this.deltypy == 1) {
|
|
|
+ this.uploadfileLoading = true;
|
|
|
+ this.accUpdate(this.stuexcel);
|
|
|
+ }
|
|
|
this.popBoxdia= false;
|
|
|
- this.impbox = []
|
|
|
- this.selectedStuData = [];
|
|
|
+ },
|
|
|
+ closePop(){
|
|
|
+ this.popBoxdia= false;
|
|
|
+ if (this.deltypy == 1) {
|
|
|
+ this.stuexcel = []
|
|
|
+ }
|
|
|
},
|
|
|
// 修改账号
|
|
|
updateAccount(arr) {
|
|
|
@@ -866,6 +899,8 @@ export default {
|
|
|
height: 100%;
|
|
|
padding: 0 8px;
|
|
|
box-sizing: border-box;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
}
|
|
|
|
|
|
.tagtit{
|
|
|
@@ -881,6 +916,7 @@ export default {
|
|
|
padding: 10px;
|
|
|
float: left;
|
|
|
box-sizing: border-box;
|
|
|
+ box-shadow: 0px 8px 10px -5px rgba(0,0,0,0.08), 0px 16px 24px 2px rgba(0,0,0,0.04), 0px 6px 30px 5px rgba(0,0,0,0.05);
|
|
|
}
|
|
|
.poptag{
|
|
|
display: flex !important;
|
|
|
@@ -896,8 +932,9 @@ export default {
|
|
|
display: block !important;
|
|
|
}
|
|
|
.tagitem2{
|
|
|
- background: #FEF0F0;
|
|
|
- border: 1px #FEF0F0 solid;
|
|
|
+ background: #F7D9CF;
|
|
|
+ border: none;
|
|
|
+ color: #FE6331;
|
|
|
}
|
|
|
.pop-upBox >>> .el-dialog{
|
|
|
border-radius: 8px !important;
|
|
|
@@ -906,6 +943,10 @@ export default {
|
|
|
.pop-upBox >>> .el-dialog__body{
|
|
|
padding: 12px 23px;
|
|
|
}
|
|
|
+/* .addstudia >>> .el-dialog__body{
|
|
|
+ padding: 10px 20px;
|
|
|
+
|
|
|
+} */
|
|
|
.msgCon{
|
|
|
display: flex;
|
|
|
gap: 10px;
|
|
|
@@ -919,4 +960,17 @@ export default {
|
|
|
font-size: 16px;
|
|
|
color: #000000;
|
|
|
}
|
|
|
+.kbtn{
|
|
|
+ text-align: center;
|
|
|
+ padding: 8px 14px;
|
|
|
+ cursor: pointer;
|
|
|
+ border-radius: 3px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ font-size: 14px;
|
|
|
+}
|
|
|
+.dialog-footer {
|
|
|
+ display: flex;
|
|
|
+ justify-content: flex-end;
|
|
|
+ gap: 10px;
|
|
|
+}
|
|
|
</style>
|