|
@@ -76,7 +76,6 @@
|
|
icon="el-icon-plus"
|
|
icon="el-icon-plus"
|
|
size="mini"
|
|
size="mini"
|
|
@click="handleAdd"
|
|
@click="handleAdd"
|
|
- v-hasPermi="['simulator:task:add']"
|
|
|
|
>新增</el-button>
|
|
>新增</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
@@ -87,7 +86,6 @@
|
|
size="mini"
|
|
size="mini"
|
|
:disabled="single"
|
|
:disabled="single"
|
|
@click="handleUpdate"
|
|
@click="handleUpdate"
|
|
- v-hasPermi="['simulator:user:edit']"
|
|
|
|
>修改</el-button>
|
|
>修改</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
@@ -98,10 +96,9 @@
|
|
size="mini"
|
|
size="mini"
|
|
:disabled="multiple"
|
|
:disabled="multiple"
|
|
@click="handleDelete"
|
|
@click="handleDelete"
|
|
- v-hasPermi="['simulator:user:remove']"
|
|
|
|
>删除</el-button>
|
|
>删除</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="1.5">
|
|
|
|
|
|
+ <!-- <el-col :span="1.5">
|
|
<el-button
|
|
<el-button
|
|
type="warning"
|
|
type="warning"
|
|
plain
|
|
plain
|
|
@@ -110,7 +107,7 @@
|
|
:disabled="single"
|
|
:disabled="single"
|
|
@click="handleKaoshi"
|
|
@click="handleKaoshi"
|
|
>当前考试</el-button>
|
|
>当前考试</el-button>
|
|
- </el-col>
|
|
|
|
|
|
+ </el-col> -->
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
|
@@ -263,9 +260,9 @@
|
|
v-hasPermi="['system:user:remove']"
|
|
v-hasPermi="['system:user:remove']"
|
|
>删除</el-button>
|
|
>删除</el-button>
|
|
</el-col> -->
|
|
</el-col> -->
|
|
- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
|
|
|
|
|
|
+ <right-toolbar :showSearch.sync="showSearch" @queryTable="getList1" :columns="columns"></right-toolbar>
|
|
</el-row>
|
|
</el-row>
|
|
- <el-table v-loading="loading" :data="userList" @selection-change="handleSelectionChange">
|
|
|
|
|
|
+ <el-table v-loading="loading" :data="userList1" @selection-change="handleSelectionChange">
|
|
<el-table-column type="selection" width="50" align="center" />
|
|
<el-table-column type="selection" width="50" align="center" />
|
|
<el-table-column label="区队/班级" align="center" key="className" prop="className" v-if="columns[0].visible" :show-overflow-tooltip="true" />
|
|
<el-table-column label="区队/班级" align="center" key="className" prop="className" v-if="columns[0].visible" :show-overflow-tooltip="true" />
|
|
<el-table-column label="专业名称" align="center" key="majorName" prop="majorName" v-if="columns[1].visible" :show-overflow-tooltip="true" />
|
|
<el-table-column label="专业名称" align="center" key="majorName" prop="majorName" v-if="columns[1].visible" :show-overflow-tooltip="true" />
|
|
@@ -299,7 +296,7 @@
|
|
:total="total"
|
|
:total="total"
|
|
:page.sync="queryParams.pageNum"
|
|
:page.sync="queryParams.pageNum"
|
|
:limit.sync="queryParams.pageSize"
|
|
:limit.sync="queryParams.pageSize"
|
|
- @pagination="getList"
|
|
|
|
|
|
+ @pagination="getList1"
|
|
/>
|
|
/>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -396,7 +393,8 @@
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|
|
<script>
|
|
<script>
|
|
-import { listUser, getUser, delUser, addUser, updateUser, resetUserPwd, changeUserStatus, deptTreeSelect } from "@/api/system/user";
|
|
|
|
|
|
+import { listStudent, getStudent, delStudent, addStudent, updateStudent } from "@/api/sim/student";
|
|
|
|
+import { listMajor } from "@/api/sim/major";
|
|
import { getToken } from "@/utils/auth";
|
|
import { getToken } from "@/utils/auth";
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
@@ -585,6 +583,8 @@ export default {
|
|
total: 0,
|
|
total: 0,
|
|
// 用户表格数据
|
|
// 用户表格数据
|
|
userList: null,
|
|
userList: null,
|
|
|
|
+ // 用户表格数据
|
|
|
|
+ userList1: null,
|
|
// 弹出层标题
|
|
// 弹出层标题
|
|
title: "",
|
|
title: "",
|
|
// 部门树选项
|
|
// 部门树选项
|
|
@@ -934,7 +934,7 @@ export default {
|
|
/** 查询用户列表 */
|
|
/** 查询用户列表 */
|
|
getList() {
|
|
getList() {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
- listUser(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
|
|
|
|
|
|
+ listStudent(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
|
|
//将返回值注释
|
|
//将返回值注释
|
|
this.userList = response.rows;
|
|
this.userList = response.rows;
|
|
this.total = response.total;
|
|
this.total = response.total;
|
|
@@ -942,6 +942,16 @@ export default {
|
|
}
|
|
}
|
|
);
|
|
);
|
|
},
|
|
},
|
|
|
|
+ getList1() {
|
|
|
|
+ this.loading = true;
|
|
|
|
+ listMajor(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
|
|
|
|
+ //将返回值注释
|
|
|
|
+ this.userList1 = response.rows;
|
|
|
|
+ this.total = response.total;
|
|
|
|
+ this.loading = false;
|
|
|
|
+ }
|
|
|
|
+ );
|
|
|
|
+ },
|
|
/** 查询部门下拉树结构 */
|
|
/** 查询部门下拉树结构 */
|
|
getDeptTree() {
|
|
getDeptTree() {
|
|
deptTreeSelect().then(response => {
|
|
deptTreeSelect().then(response => {
|
|
@@ -1015,29 +1025,29 @@ export default {
|
|
/** 新增按钮操作 */
|
|
/** 新增按钮操作 */
|
|
handleAdd() {
|
|
handleAdd() {
|
|
this.reset();
|
|
this.reset();
|
|
- getUser().then(response => {
|
|
|
|
- this.postOptions = response.posts;
|
|
|
|
- this.roleOptions = response.roles;
|
|
|
|
|
|
+ // getUser().then(response => {
|
|
|
|
+ // this.postOptions = response.posts;
|
|
|
|
+ // this.roleOptions = response.roles;
|
|
this.open = true;
|
|
this.open = true;
|
|
this.title = "新增考试";
|
|
this.title = "新增考试";
|
|
- this.form.password = this.initPassword;
|
|
|
|
- });
|
|
|
|
|
|
+ // this.form.password = this.initPassword;
|
|
|
|
+ // });
|
|
},
|
|
},
|
|
|
|
|
|
/** 修改按钮操作 */
|
|
/** 修改按钮操作 */
|
|
handleUpdate(row) {
|
|
handleUpdate(row) {
|
|
this.reset();
|
|
this.reset();
|
|
const userId = row.userId || this.ids;
|
|
const userId = row.userId || this.ids;
|
|
- getUser(userId).then(response => {
|
|
|
|
- this.form = response.data;
|
|
|
|
- this.postOptions = response.posts;
|
|
|
|
- this.roleOptions = response.roles;
|
|
|
|
- this.$set(this.form, "postIds", response.postIds);
|
|
|
|
- this.$set(this.form, "roleIds", response.roleIds);
|
|
|
|
|
|
+ // getUser(userId).then(response => {
|
|
|
|
+ // this.form = response.data;
|
|
|
|
+ // this.postOptions = response.posts;
|
|
|
|
+ // this.roleOptions = response.roles;
|
|
|
|
+ // this.$set(this.form, "postIds", response.postIds);
|
|
|
|
+ // this.$set(this.form, "roleIds", response.roleIds);
|
|
this.open = true;
|
|
this.open = true;
|
|
- this.title = "修改用户";
|
|
|
|
|
|
+ this.title = "修改考试";
|
|
this.form.password = "";
|
|
this.form.password = "";
|
|
- });
|
|
|
|
|
|
+ // });
|
|
},
|
|
},
|
|
|
|
|
|
/** 当前考试查询 */
|
|
/** 当前考试查询 */
|
|
@@ -1050,12 +1060,12 @@ export default {
|
|
handleSelectType(row) {
|
|
handleSelectType(row) {
|
|
this.reset();
|
|
this.reset();
|
|
const userId = row.userId || this.ids;
|
|
const userId = row.userId || this.ids;
|
|
- getUser(userId).then(response => {
|
|
|
|
- this.form = response.data;
|
|
|
|
|
|
+ // getUser(userId).then(response => {
|
|
|
|
+ // this.form = response.data;
|
|
this.selectopen = true;
|
|
this.selectopen = true;
|
|
// this.open = false;
|
|
// this.open = false;
|
|
this.title = "选择考题";
|
|
this.title = "选择考题";
|
|
- });
|
|
|
|
|
|
+ // });
|
|
},
|
|
},
|
|
|
|
|
|
/** 提交按钮 */
|
|
/** 提交按钮 */
|