|
@@ -291,7 +291,7 @@
|
|
size="mini"
|
|
size="mini"
|
|
type="danger"
|
|
type="danger"
|
|
icon="el-icon-refresh"
|
|
icon="el-icon-refresh"
|
|
- @click="unbindStudentCode(scope.row)"
|
|
|
|
|
|
+ @click="showUnbindStudentCode(scope.row)"
|
|
>解绑学号
|
|
>解绑学号
|
|
</el-button>
|
|
</el-button>
|
|
</el-dropdown-item>
|
|
</el-dropdown-item>
|
|
@@ -322,6 +322,34 @@
|
|
</el-pagination>
|
|
</el-pagination>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
+ <!-- 解绑学号-->
|
|
|
|
+ <el-dialog
|
|
|
|
+ title="解绑学号"
|
|
|
|
+ width="50%"
|
|
|
|
+ :visible.sync="unbindStudentCodeDialog"
|
|
|
|
+ >
|
|
|
|
+ <el-table
|
|
|
|
+ :data="unbindStudentCodeData.tableData"
|
|
|
|
+ border
|
|
|
|
+ style="width: 100%;text-align:center;"
|
|
|
|
+ >
|
|
|
|
+ <el-table-column prop="name" label="姓名" />
|
|
|
|
+ <el-table-column prop="identityNumber" label="身份证" />
|
|
|
|
+ <el-table-column prop="name" label="学号" />
|
|
|
|
+ <el-table-column label="操作" width="100">
|
|
|
|
+ <div slot-scope="scope">
|
|
|
|
+ <el-button
|
|
|
|
+ size="mini"
|
|
|
|
+ type="danger"
|
|
|
|
+ @click="unbindStudentCode(scope.row)"
|
|
|
|
+ icon="el-icon-delete"
|
|
|
|
+ >解绑
|
|
|
|
+ </el-button>
|
|
|
|
+ </div>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
|
|
+ </el-dialog>
|
|
|
|
+
|
|
<!-- 考试记录 -->
|
|
<!-- 考试记录 -->
|
|
<el-dialog
|
|
<el-dialog
|
|
title="学生考试记录"
|
|
title="学生考试记录"
|
|
@@ -516,6 +544,11 @@ export default {
|
|
photoDialog: false,
|
|
photoDialog: false,
|
|
photo: { url: "" },
|
|
photo: { url: "" },
|
|
|
|
|
|
|
|
+ unbindStudentCodeDialog: false,
|
|
|
|
+ unbindStudentCodeData: {
|
|
|
|
+ tableData: []
|
|
|
|
+ },
|
|
|
|
+
|
|
errMessages: [],
|
|
errMessages: [],
|
|
uploadAction: EXCHANGE_API + "/facepp/add",
|
|
uploadAction: EXCHANGE_API + "/facepp/add",
|
|
uploadData: {},
|
|
uploadData: {},
|
|
@@ -719,16 +752,31 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ showUnbindStudentCode(row) {
|
|
|
|
+ this.unbindStudentCodeData.tableData = [];
|
|
|
|
+ for (let cur of row.studentCodeList) {
|
|
|
|
+ this.unbindStudentCodeData.tableData.push({
|
|
|
|
+ studentCode: cur,
|
|
|
|
+ rootOrgId: row.rootOrgId,
|
|
|
|
+ name: row.name,
|
|
|
|
+ identityNumber: row.identityNumber
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ debugger;
|
|
|
|
+ this.unbindStudentCodeDialog = true;
|
|
|
|
+ },
|
|
unbindStudentCode(row) {
|
|
unbindStudentCode(row) {
|
|
- var stuIds = this.checkIds(row);
|
|
|
|
- if (!stuIds) return;
|
|
|
|
|
|
+ var params = new URLSearchParams({
|
|
|
|
+ studentCode: row.studentCode,
|
|
|
|
+ rootOrgId: row.rootOrgId
|
|
|
|
+ });
|
|
this.$confirm("是否解绑学号?", "提示", {
|
|
this.$confirm("是否解绑学号?", "提示", {
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
type: "warning"
|
|
type: "warning"
|
|
}).then(() => {
|
|
}).then(() => {
|
|
- var url = CORE_API + "/student/unbindStudentCode/" + stuIds;
|
|
|
|
- this.$httpWithMsg.put(url).then(response => {
|
|
|
|
|
|
+ var url = CORE_API + "/student/unbindStudentCode?" + params;
|
|
|
|
+ this.$httpWithMsg.post(url).then(response => {
|
|
console.log(response);
|
|
console.log(response);
|
|
this.$notify({
|
|
this.$notify({
|
|
type: "success",
|
|
type: "success",
|