|
@@ -213,6 +213,20 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<!--添加成员dialog对话框结束 -->
|
|
|
+ <!-- 删除指导老师开始 -->
|
|
|
+ <el-dialog
|
|
|
+ title="提示"
|
|
|
+ :visible.sync="DelTeacherDialog"
|
|
|
+ width="600px"
|
|
|
+ class="MAputIn AddMember">
|
|
|
+ <div class="addDialogLogo">LOGO</div>
|
|
|
+ <div class="deleteContent">是否删除“{{ delTeacherTable.Name}}”指导老师?</div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="DelTeacherYes" class="btn5" size="small">确认删除</el-button>
|
|
|
+ <el-button @click="DelTeacherDialog=false;" class="btn5" style="background:#cccccc" size="small">取消</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
+ <!-- 删除指导老师结束 -->
|
|
|
|
|
|
|
|
|
</div>
|
|
@@ -231,6 +245,11 @@
|
|
|
takeCharge:''
|
|
|
},
|
|
|
isAddTeacher:true,
|
|
|
+ delTeacherTable:{
|
|
|
+ index:"",
|
|
|
+ Name:"",
|
|
|
+ },
|
|
|
+ DelTeacherDialog:false,
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
@@ -279,8 +298,15 @@
|
|
|
this.isAddTeacher = true;
|
|
|
},
|
|
|
deleteRow(index){
|
|
|
- this.data.select.teacher.splice(index,1);
|
|
|
- this.$message({message:"删除成功",type:"success"})
|
|
|
+ this.delTeacherTable = this.data.select.teacher[index];
|
|
|
+ this.delTeacherTable["index"] = index;
|
|
|
+ this.DelTeacherDialog = true;
|
|
|
+ },
|
|
|
+ DelTeacherYes(){
|
|
|
+ // console.log(this.delTeacherTable)
|
|
|
+ this.data.select.teacher.splice(this.delTeacherTable["index"],1);
|
|
|
+ this.DelTeacherDialog = false;
|
|
|
+ this.$message.success("删除成功")
|
|
|
},
|
|
|
toPage(val){
|
|
|
if (val==1) {
|
|
@@ -302,6 +328,41 @@
|
|
|
width: 100%;
|
|
|
position: relative;
|
|
|
}
|
|
|
-
|
|
|
+ .MAputIn{ //提交对话框样式
|
|
|
+ .deleteContent{
|
|
|
+ width: 100%;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 25px;
|
|
|
+ color: #000;
|
|
|
+ }
|
|
|
+ .addDialogLogo{
|
|
|
+ width: 60px;
|
|
|
+ height: 30px;
|
|
|
+ line-height: 30px;
|
|
|
+ background: #f2f2f2;
|
|
|
+ position: absolute;
|
|
|
+ left: 10px;
|
|
|
+ top: 10px;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-dialog__title{
|
|
|
+ // margin-left:250px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ color:rgb(246, 247, 246);
|
|
|
+ }
|
|
|
+
|
|
|
+ .dialog-footer{
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ .btn5{
|
|
|
+ // background: #0e72e6;
|
|
|
+ height: 40px;
|
|
|
+ width: 200px;
|
|
|
+ font-size: 16px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
</style>
|