班级信息bug和月计划
This commit is contained in:
@ -128,7 +128,14 @@
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['system:class:remove']"
|
||||
>删除</el-button>
|
||||
>删除班级</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleEditJs(scope.row)"
|
||||
v-hasPermi="['system:class:edit']"
|
||||
>清空教师</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@ -206,7 +213,8 @@ import {
|
||||
delClass,
|
||||
addClass,
|
||||
updateClass,
|
||||
exportClass
|
||||
exportClass,
|
||||
delJsClass
|
||||
} from "@/api/system/class";
|
||||
import { getUsersByRoleId } from "@/api/system/user";
|
||||
|
||||
@ -399,6 +407,22 @@ export default {
|
||||
})
|
||||
.catch(function() {});
|
||||
},
|
||||
handleEditJs(row) {
|
||||
const bjbhs = row.bjbh || this.ids;
|
||||
this.$confirm("是否确认清空选中的班级教师信息?", "警告", {
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning"
|
||||
})
|
||||
.then(function() {
|
||||
return delJsClass(bjbhs);
|
||||
})
|
||||
.then(() => {
|
||||
this.getList();
|
||||
this.msgSuccess("清空成功");
|
||||
})
|
||||
.catch(function() {});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
const queryParams = this.queryParams;
|
||||
|
@ -123,7 +123,7 @@
|
||||
|
||||
<!-- 添加或修改教师基本信息对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px" :disabled="flag">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px" :disabled="flag">
|
||||
<el-form-item label="id" prop="id" v-show="false">
|
||||
<el-input v-model="form.id" />
|
||||
</el-form-item>
|
||||
|
Reference in New Issue
Block a user