|  | @@ -76,7 +76,6 @@
 | 
	
		
			
				|  |  |                icon="el-icon-plus"
 | 
	
		
			
				|  |  |                size="mini"
 | 
	
		
			
				|  |  |                @click="handleAdd"
 | 
	
		
			
				|  |  | -              v-hasPermi="['simulator:task:add']"
 | 
	
		
			
				|  |  |              >新增</el-button>
 | 
	
		
			
				|  |  |            </el-col>
 | 
	
		
			
				|  |  |            <el-col :span="1.5">
 | 
	
	
		
			
				|  | @@ -87,7 +86,6 @@
 | 
	
		
			
				|  |  |                size="mini"
 | 
	
		
			
				|  |  |                :disabled="single"
 | 
	
		
			
				|  |  |                @click="handleUpdate"
 | 
	
		
			
				|  |  | -              v-hasPermi="['simulator:user:edit']"
 | 
	
		
			
				|  |  |              >修改</el-button>
 | 
	
		
			
				|  |  |            </el-col>
 | 
	
		
			
				|  |  |            <el-col :span="1.5">
 | 
	
	
		
			
				|  | @@ -98,10 +96,9 @@
 | 
	
		
			
				|  |  |                size="mini"
 | 
	
		
			
				|  |  |                :disabled="multiple"
 | 
	
		
			
				|  |  |                @click="handleDelete"
 | 
	
		
			
				|  |  | -              v-hasPermi="['simulator:user:remove']"
 | 
	
		
			
				|  |  |              >删除</el-button>
 | 
	
		
			
				|  |  |            </el-col>
 | 
	
		
			
				|  |  | -          <el-col :span="1.5">
 | 
	
		
			
				|  |  | +          <!-- <el-col :span="1.5">
 | 
	
		
			
				|  |  |              <el-button
 | 
	
		
			
				|  |  |                type="warning"
 | 
	
		
			
				|  |  |                plain
 | 
	
	
		
			
				|  | @@ -110,7 +107,7 @@
 | 
	
		
			
				|  |  |                :disabled="single"
 | 
	
		
			
				|  |  |                @click="handleKaoshi"
 | 
	
		
			
				|  |  |              >当前考试</el-button>
 | 
	
		
			
				|  |  | -          </el-col>
 | 
	
		
			
				|  |  | +          </el-col> -->
 | 
	
		
			
				|  |  |            <right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
 | 
	
		
			
				|  |  |          </el-row>
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -263,9 +260,9 @@
 | 
	
		
			
				|  |  |                  v-hasPermi="['system:user:remove']"
 | 
	
		
			
				|  |  |                >删除</el-button>
 | 
	
		
			
				|  |  |              </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-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 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" />
 | 
	
	
		
			
				|  | @@ -299,7 +296,7 @@
 | 
	
		
			
				|  |  |              :total="total"
 | 
	
		
			
				|  |  |              :page.sync="queryParams.pageNum"
 | 
	
		
			
				|  |  |              :limit.sync="queryParams.pageSize"
 | 
	
		
			
				|  |  | -            @pagination="getList"
 | 
	
		
			
				|  |  | +            @pagination="getList1"
 | 
	
		
			
				|  |  |            /> 
 | 
	
		
			
				|  |  |          </el-col>
 | 
	
		
			
				|  |  |        </el-row>
 | 
	
	
		
			
				|  | @@ -396,7 +393,8 @@
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  </style>
 | 
	
		
			
				|  |  |  <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 Treeselect from "@riophae/vue-treeselect";
 | 
	
		
			
				|  |  |  import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 | 
	
	
		
			
				|  | @@ -585,6 +583,8 @@ export default {
 | 
	
		
			
				|  |  |        total: 0,
 | 
	
		
			
				|  |  |        // 用户表格数据
 | 
	
		
			
				|  |  |        userList: null,
 | 
	
		
			
				|  |  | +       // 用户表格数据
 | 
	
		
			
				|  |  | +      userList1: null,
 | 
	
		
			
				|  |  |        // 弹出层标题
 | 
	
		
			
				|  |  |        title: "",
 | 
	
		
			
				|  |  |        // 部门树选项
 | 
	
	
		
			
				|  | @@ -934,7 +934,7 @@ export default {
 | 
	
		
			
				|  |  |      /** 查询用户列表 */
 | 
	
		
			
				|  |  |      getList() {
 | 
	
		
			
				|  |  |        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.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() {
 | 
	
		
			
				|  |  |        deptTreeSelect().then(response => {
 | 
	
	
		
			
				|  | @@ -1015,29 +1025,29 @@ export default {
 | 
	
		
			
				|  |  |      /** 新增按钮操作 */
 | 
	
		
			
				|  |  |      handleAdd() {
 | 
	
		
			
				|  |  |        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.title = "新增考试";
 | 
	
		
			
				|  |  | -        this.form.password = this.initPassword;
 | 
	
		
			
				|  |  | -      });
 | 
	
		
			
				|  |  | +        // this.form.password = this.initPassword;
 | 
	
		
			
				|  |  | +      // });
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      /** 修改按钮操作 */
 | 
	
		
			
				|  |  |      handleUpdate(row) {
 | 
	
		
			
				|  |  |        this.reset();
 | 
	
		
			
				|  |  |        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.title = "修改用户";
 | 
	
		
			
				|  |  | +        this.title = "修改考试";
 | 
	
		
			
				|  |  |          this.form.password = "";
 | 
	
		
			
				|  |  | -      });
 | 
	
		
			
				|  |  | +      // });
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      /** 当前考试查询 */
 | 
	
	
		
			
				|  | @@ -1050,12 +1060,12 @@ export default {
 | 
	
		
			
				|  |  |      handleSelectType(row) {
 | 
	
		
			
				|  |  |        this.reset();
 | 
	
		
			
				|  |  |        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.open = false;
 | 
	
		
			
				|  |  |          this.title = "选择考题";
 | 
	
		
			
				|  |  | -      });
 | 
	
		
			
				|  |  | +      // });
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      
 | 
	
		
			
				|  |  |      /** 提交按钮 */
 |