|
@@ -1,7 +1,7 @@
|
|
<template>
|
|
<template>
|
|
<el-row class="menu5-1" :gutter="10" v-loading="loading">
|
|
<el-row class="menu5-1" :gutter="10" v-loading="loading">
|
|
<!-- <el-col :span="5" class="left"> -->
|
|
<!-- <el-col :span="5" class="left"> -->
|
|
- <!-- <el-row :gutter="20">
|
|
|
|
|
|
+ <!-- <el-row :gutter="20">
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-select v-model="leftQuery.period" placeholder="请选择学段">
|
|
<el-select v-model="leftQuery.period" placeholder="请选择学段">
|
|
<el-option
|
|
<el-option
|
|
@@ -23,10 +23,10 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row> -->
|
|
</el-row> -->
|
|
- <!-- <el-row style="padding: 20px 6px 0; text-align: right">
|
|
|
|
|
|
+ <!-- <el-row style="padding: 20px 6px 0; text-align: right">
|
|
<el-button class="add" size="small" @click="open1">新增</el-button>
|
|
<el-button class="add" size="small" @click="open1">新增</el-button>
|
|
</el-row> -->
|
|
</el-row> -->
|
|
- <!-- <div class="tree" ref="tree">
|
|
|
|
|
|
+ <!-- <div class="tree" ref="tree">
|
|
<el-tree
|
|
<el-tree
|
|
ref="treeInner"
|
|
ref="treeInner"
|
|
:data="treeData"
|
|
:data="treeData"
|
|
@@ -75,6 +75,14 @@
|
|
<template v-slot:customOpt="data">
|
|
<template v-slot:customOpt="data">
|
|
<el-button
|
|
<el-button
|
|
class="operation"
|
|
class="operation"
|
|
|
|
+ :disabled="data.row.uploaded ? false : true"
|
|
|
|
+ :style="data.row.cut || data.row.uploaded ? '' : 'color:#E8EBF3'"
|
|
|
|
+ @click="answerPaper(data.row)"
|
|
|
|
+ >
|
|
|
|
+ 答题卡
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ class="operation"
|
|
:disabled="data.row.cut || data.row.uploaded ? false : true"
|
|
:disabled="data.row.cut || data.row.uploaded ? false : true"
|
|
:style="data.row.cut || data.row.uploaded ? '' : 'color:#E8EBF3'"
|
|
:style="data.row.cut || data.row.uploaded ? '' : 'color:#E8EBF3'"
|
|
@click="setScore(data.row)"
|
|
@click="setScore(data.row)"
|
|
@@ -152,6 +160,26 @@
|
|
label-width="80px"
|
|
label-width="80px"
|
|
:rules="dialogFormRules"
|
|
:rules="dialogFormRules"
|
|
>
|
|
>
|
|
|
|
+ <el-form-item label="科目" prop="subject">
|
|
|
|
+ <el-select v-model="dialogForm.subject" placeholder="请选择科目">
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in metaData['subjects']"
|
|
|
|
+ :key="item.name"
|
|
|
|
+ :label="item.name"
|
|
|
|
+ :value="item.name"
|
|
|
|
+ ></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="试卷大小" prop="size">
|
|
|
|
+ <el-select v-model="dialogForm.subject" placeholder="请选择试卷大小">
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in ['A3', 'A4']"
|
|
|
|
+ :key="item"
|
|
|
|
+ :label="item"
|
|
|
|
+ :value="item"
|
|
|
|
+ ></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
<el-form-item label="试卷名称" prop="name">
|
|
<el-form-item label="试卷名称" prop="name">
|
|
<el-input
|
|
<el-input
|
|
v-model="dialogForm.name"
|
|
v-model="dialogForm.name"
|
|
@@ -182,6 +210,7 @@
|
|
></el-option>
|
|
></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+
|
|
<!--
|
|
<!--
|
|
<el-form-item label="年份">
|
|
<el-form-item label="年份">
|
|
<el-date-picker v-model="dialogForm.year" type="year" value-format="yyyy" placeholder="请输入年份">
|
|
<el-date-picker v-model="dialogForm.year" type="year" value-format="yyyy" placeholder="请输入年份">
|
|
@@ -277,7 +306,7 @@ import axios from "axios";
|
|
import Clickoutside from "element-ui/src/utils/clickoutside";
|
|
import Clickoutside from "element-ui/src/utils/clickoutside";
|
|
export default {
|
|
export default {
|
|
name: "menu5-1",
|
|
name: "menu5-1",
|
|
- metaDataType: ["periodsR", "subjectsR", "regions"],
|
|
|
|
|
|
+ metaDataType: ["periodsR", "subjectsR", "regions", "subjects"],
|
|
directives: { Clickoutside },
|
|
directives: { Clickoutside },
|
|
computed: {},
|
|
computed: {},
|
|
data() {
|
|
data() {
|
|
@@ -328,20 +357,21 @@ export default {
|
|
prop: "score",
|
|
prop: "score",
|
|
show: true,
|
|
show: true,
|
|
},
|
|
},
|
|
- {
|
|
|
|
- id: "4",
|
|
|
|
- label: "标准卷上传状态",
|
|
|
|
- prop: "uploaded",
|
|
|
|
- show: true,
|
|
|
|
- filter: "boolean",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- id: "5",
|
|
|
|
- label: "标准卷切割状态",
|
|
|
|
- prop: "cut",
|
|
|
|
- show: true,
|
|
|
|
- filter: "boolean",
|
|
|
|
- },
|
|
|
|
|
|
+
|
|
|
|
+ // {
|
|
|
|
+ // id: "4",
|
|
|
|
+ // label: "标准卷上传状态",
|
|
|
|
+ // prop: "uploaded",
|
|
|
|
+ // show: true,
|
|
|
|
+ // filter: "boolean",
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // id: "5",
|
|
|
|
+ // label: "标准卷切割状态",
|
|
|
|
+ // prop: "cut",
|
|
|
|
+ // show: true,
|
|
|
|
+ // filter: "boolean",
|
|
|
|
+ // },
|
|
{
|
|
{
|
|
id: "6",
|
|
id: "6",
|
|
label: "电子版试卷上传状态",
|
|
label: "电子版试卷上传状态",
|
|
@@ -358,13 +388,13 @@ export default {
|
|
label: "操作",
|
|
label: "操作",
|
|
width: "280",
|
|
width: "280",
|
|
data: [
|
|
data: [
|
|
- {
|
|
|
|
- id: "1",
|
|
|
|
- label: "切割",
|
|
|
|
- FunName: "cutPaper",
|
|
|
|
- size: "mini",
|
|
|
|
- show: true,
|
|
|
|
- },
|
|
|
|
|
|
+ // {
|
|
|
|
+ // id: "1",
|
|
|
|
+ // label: "答题卡",
|
|
|
|
+ // FunName: "answerPaper",
|
|
|
|
+ // size: "mini",
|
|
|
|
+ // show: true,
|
|
|
|
+ // },
|
|
{
|
|
{
|
|
id: "2",
|
|
id: "2",
|
|
label: "编辑",
|
|
label: "编辑",
|
|
@@ -455,6 +485,7 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
dialogFormRules: {
|
|
dialogFormRules: {
|
|
|
|
+ subject: [{ required: true, message: "请选择科目", trigger: "change" }],
|
|
name: [{ required: true, message: "请输入名称", trigger: "blur" }],
|
|
name: [{ required: true, message: "请输入名称", trigger: "blur" }],
|
|
pno: [{ required: true, message: "请输入编号", trigger: "blur" }],
|
|
pno: [{ required: true, message: "请输入编号", trigger: "blur" }],
|
|
pages: [{ required: true, message: "请输入试卷页数", trigger: "blur" }],
|
|
pages: [{ required: true, message: "请输入试卷页数", trigger: "blur" }],
|
|
@@ -660,7 +691,7 @@ export default {
|
|
ctgid: this.curID,
|
|
ctgid: this.curID,
|
|
page: this.dataTable.paginationOpt.pageIndex,
|
|
page: this.dataTable.paginationOpt.pageIndex,
|
|
size: this.dataTable.paginationOpt.pageRows,
|
|
size: this.dataTable.paginationOpt.pageRows,
|
|
- ptype:'exam'
|
|
|
|
|
|
+ ptype: "exam",
|
|
};
|
|
};
|
|
paperApi.getPapers(params).then((res) => {
|
|
paperApi.getPapers(params).then((res) => {
|
|
this.dataTable.data = res.data;
|
|
this.dataTable.data = res.data;
|
|
@@ -690,7 +721,7 @@ export default {
|
|
let params = {
|
|
let params = {
|
|
ctgid: 0,
|
|
ctgid: 0,
|
|
ctype: "exam",
|
|
ctype: "exam",
|
|
- ptype:'exam'
|
|
|
|
|
|
+ ptype: "exam",
|
|
// imgs: this.dialogForm.imgs,
|
|
// imgs: this.dialogForm.imgs,
|
|
};
|
|
};
|
|
this.$refs.dialog.open((cancel) => {
|
|
this.$refs.dialog.open((cancel) => {
|
|
@@ -713,14 +744,14 @@ export default {
|
|
"http://osscache.scxjc.club/static/say365/eques_template.docx";
|
|
"http://osscache.scxjc.club/static/say365/eques_template.docx";
|
|
link.click();
|
|
link.click();
|
|
},
|
|
},
|
|
|
|
+ answerPaper() {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: "info",
|
|
|
|
+ message: "功能待开发!",
|
|
|
|
+ });
|
|
|
|
+ },
|
|
handle(name, index, row) {
|
|
handle(name, index, row) {
|
|
switch (name) {
|
|
switch (name) {
|
|
- case "cutPaper":
|
|
|
|
- this.$router.push({
|
|
|
|
- path: "cutPage",
|
|
|
|
- query: { paperId: row.id },
|
|
|
|
- });
|
|
|
|
- break;
|
|
|
|
case "edit":
|
|
case "edit":
|
|
this.$refs.dialog.config.title = "编辑试卷信息";
|
|
this.$refs.dialog.config.title = "编辑试卷信息";
|
|
row.ctype = "work";
|
|
row.ctype = "work";
|
|
@@ -740,25 +771,25 @@ export default {
|
|
// this.dialogForm.imgs = this.dialogForm.imgs.map((item) =>
|
|
// this.dialogForm.imgs = this.dialogForm.imgs.map((item) =>
|
|
// item.url ? item.url : item
|
|
// item.url ? item.url : item
|
|
// );
|
|
// );
|
|
- this.$refs["dialogForm"].validate((valid)=>{
|
|
|
|
- if(valid){
|
|
|
|
|
|
+ this.$refs["dialogForm"].validate((valid) => {
|
|
|
|
+ if (valid) {
|
|
paperApi.edit(this.dialogForm).then((res) => {
|
|
paperApi.edit(this.dialogForm).then((res) => {
|
|
- if(res.mess=="success"){
|
|
|
|
|
|
+ if (res.mess == "success") {
|
|
this.$message({
|
|
this.$message({
|
|
- type:"success",
|
|
|
|
- message:"修改成功"
|
|
|
|
- })
|
|
|
|
|
|
+ type: "success",
|
|
|
|
+ message: "修改成功",
|
|
|
|
+ });
|
|
this.getItems(this.curTree);
|
|
this.getItems(this.curTree);
|
|
cancel();
|
|
cancel();
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
Message({
|
|
Message({
|
|
- type:"error",
|
|
|
|
- message:res.message
|
|
|
|
- })
|
|
|
|
|
|
+ type: "error",
|
|
|
|
+ message: res.message,
|
|
|
|
+ });
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
- })
|
|
|
|
|
|
+ });
|
|
});
|
|
});
|
|
});
|
|
});
|
|
break;
|
|
break;
|