考试可指定试卷
This commit is contained in:
parent
2634d56036
commit
5be070932f
Binary file not shown.
After Width: | Height: | Size: 226 KiB |
|
@ -74,7 +74,10 @@
|
||||||
<template slot-scope="scope">{{ scope.row.type }}</template>
|
<template slot-scope="scope">{{ scope.row.type }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="left" label="用户">
|
<el-table-column align="left" label="用户">
|
||||||
<template slot-scope="scope">{{ scope.row.consumer_name }}</template>
|
<template slot-scope="scope">
|
||||||
|
<span v-if="scope.row.consumer_name==''">{{ scope.row.consumer_username }}</span>
|
||||||
|
<span v-else>{{ scope.row.consumer_name }}</span>
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="left" label="单位">
|
<el-table-column align="left" label="单位">
|
||||||
<template slot-scope="scope">{{ scope.row.consumer_company_name }}</template>
|
<template slot-scope="scope">{{ scope.row.consumer_company_name }}</template>
|
||||||
|
|
|
@ -126,7 +126,16 @@
|
||||||
<el-form-item label="监考人联系方式" prop="proctor_phone" label-width="120px">
|
<el-form-item label="监考人联系方式" prop="proctor_phone" label-width="120px">
|
||||||
<el-input v-model="exam.proctor_phone" placeholder="监考人联系方式" />
|
<el-input v-model="exam.proctor_phone" placeholder="监考人联系方式" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="选定试卷" prop="paper" >
|
||||||
|
<el-select v-model="exam.paper" placeholder="可指定试卷" style="width:100%" clearable>
|
||||||
|
<el-option
|
||||||
|
v-for="item in paperOptions"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.id"
|
||||||
|
></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="培训名称" prop="train_name">
|
<el-form-item label="培训名称" prop="train_name">
|
||||||
<el-input v-model="exam.train_name" placeholder="培训名称" />
|
<el-input v-model="exam.train_name" placeholder="培训名称" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -159,7 +168,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getexamlist, createexam, deleteexam, updateexam} from "@/api/exam";
|
import { getexamlist, createexam, deleteexam, updateexam} from "@/api/exam";
|
||||||
import { getWorkScopeAll } from "@/api/examtest"
|
import { getWorkScopeAll, getPaperList } from "@/api/examtest"
|
||||||
import { deepClone } from "@/utils";
|
import { deepClone } from "@/utils";
|
||||||
import checkPermission from "@/utils/permission";
|
import checkPermission from "@/utils/permission";
|
||||||
import Pagination from "@/components/Pagination"
|
import Pagination from "@/components/Pagination"
|
||||||
|
@ -194,6 +203,7 @@ export default {
|
||||||
dialogVisible: false,
|
dialogVisible: false,
|
||||||
dialogType: "new",
|
dialogType: "new",
|
||||||
workscopeOptions:[],
|
workscopeOptions:[],
|
||||||
|
paperOptions:[],
|
||||||
rule1: {
|
rule1: {
|
||||||
name: [{ required: true, message: "请输入", trigger: "blur" }],
|
name: [{ required: true, message: "请输入", trigger: "blur" }],
|
||||||
place: [{ required: true, message: "请输入", trigger: "change" }],
|
place: [{ required: true, message: "请输入", trigger: "change" }],
|
||||||
|
@ -210,6 +220,7 @@ export default {
|
||||||
created() {
|
created() {
|
||||||
this.getList();
|
this.getList();
|
||||||
this.getworkscopeOptions();
|
this.getworkscopeOptions();
|
||||||
|
this.getPaperOptions();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
checkPermission,
|
checkPermission,
|
||||||
|
@ -218,6 +229,11 @@ export default {
|
||||||
this.workscopeOptions = res.data
|
this.workscopeOptions = res.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
getPaperOptions(){
|
||||||
|
getPaperList({pageoff:true}).then(res=>{
|
||||||
|
this.paperOptions = res.data
|
||||||
|
})
|
||||||
|
},
|
||||||
getList() {
|
getList() {
|
||||||
this.listLoading = true
|
this.listLoading = true
|
||||||
getexamlist(this.listQuery).then(response => {
|
getexamlist(this.listQuery).then(response => {
|
||||||
|
|
|
@ -71,9 +71,9 @@ App({
|
||||||
globalData: {
|
globalData: {
|
||||||
userInfo: {},
|
userInfo: {},
|
||||||
userinfo: {}, // 服务器传回的消费者信息
|
userinfo: {}, // 服务器传回的消费者信息
|
||||||
host: 'https://apitest.ahctc.cn',
|
// host: 'https://apitest.ahctc.cn',
|
||||||
mediahost: 'https://apitest.ahctc.cn',
|
mediahost: 'https://apitest.ahctc.cn',
|
||||||
// host: 'http://127.0.0.1:8000',
|
host: 'http://127.0.0.1:8000',
|
||||||
//mediahost: 'http://127.0.0.1:8000',
|
//mediahost: 'http://127.0.0.1:8000',
|
||||||
token : '',
|
token : '',
|
||||||
rlogin:true
|
rlogin:true
|
||||||
|
|
Loading…
Reference in New Issue