|
@@ -1,5 +1,8 @@
|
|
<template>
|
|
<template>
|
|
<div>
|
|
<div>
|
|
|
|
+ <LinkTitlesCustom
|
|
|
|
+ :currentPaths="['考试管理', '考试信息', '学习中心特殊设置']"
|
|
|
|
+ />
|
|
<section class="content">
|
|
<section class="content">
|
|
<div class="box-body">
|
|
<div class="box-body">
|
|
<el-form
|
|
<el-form
|
|
@@ -28,14 +31,27 @@
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item class="pull-right">
|
|
|
|
- <el-button type="primary" @click="search">查询</el-button>
|
|
|
|
- <el-button type="primary" @click="showAddOrgSetting"
|
|
|
|
|
|
+ <el-form-item class="d-block">
|
|
|
|
+ <el-button
|
|
|
|
+ size="small"
|
|
|
|
+ type="primary"
|
|
|
|
+ icon="el-icon-search"
|
|
|
|
+ @click="search"
|
|
|
|
+ >查询</el-button
|
|
|
|
+ >
|
|
|
|
+ <el-button
|
|
|
|
+ size="small"
|
|
|
|
+ type="primary"
|
|
|
|
+ icon="el-icon-plus"
|
|
|
|
+ @click="showAddOrgSetting"
|
|
>新增</el-button
|
|
>新增</el-button
|
|
>
|
|
>
|
|
- <el-button @click="back">返 回</el-button>
|
|
|
|
|
|
+ <el-button size="small" type="primary" @click="back"
|
|
|
|
+ >返 回</el-button
|
|
|
|
+ >
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
|
|
+
|
|
<!-- 页面列表 -->
|
|
<!-- 页面列表 -->
|
|
<el-table
|
|
<el-table
|
|
:data="tableData"
|
|
:data="tableData"
|
|
@@ -43,7 +59,7 @@
|
|
style="width: 100%;text-align:center;"
|
|
style="width: 100%;text-align:center;"
|
|
v-loading="loading4FormSearch"
|
|
v-loading="loading4FormSearch"
|
|
>
|
|
>
|
|
- <el-table-column prop="id" width="100" label="ID"></el-table-column>
|
|
|
|
|
|
+ <el-table-column prop="id" width="80" label="ID"></el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="orgCode"
|
|
prop="orgCode"
|
|
label="学习中心代码"
|
|
label="学习中心代码"
|
|
@@ -52,24 +68,16 @@
|
|
prop="orgName"
|
|
prop="orgName"
|
|
label="学习中心名称"
|
|
label="学习中心名称"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
- <el-table-column prop="beginTime" width="200" label="开始时间">
|
|
|
|
|
|
+ <el-table-column prop="beginTime" width="155" label="开始时间">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="endTime" width="200" label="结束时间">
|
|
|
|
|
|
+ <el-table-column prop="endTime" width="155" label="结束时间">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="updateTime" width="200" label="更新时间">
|
|
|
|
|
|
+ <el-table-column prop="updateTime" width="155" label="更新时间">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column width="100" label="上传附件">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <div>
|
|
|
|
- <span>
|
|
|
|
- <el-tag :type="getCanUploadTag(scope.row)">
|
|
|
|
- {{ getCanUpload(scope.row) }}
|
|
|
|
- </el-tag>
|
|
|
|
- </span>
|
|
|
|
- </div>
|
|
|
|
- </template>
|
|
|
|
|
|
+ <el-table-column width="80" label="上传附件">
|
|
|
|
+ <span slot-scope="scope"> {{ getCanUpload(scope.row) }} </span>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="操作" width="450">
|
|
|
|
|
|
+ <el-table-column label="操作" width="80">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div>
|
|
<div>
|
|
<el-button
|
|
<el-button
|
|
@@ -254,8 +262,10 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { CORE_API, EXAM_WORK_API } from "@/constants/constants.js";
|
|
import { CORE_API, EXAM_WORK_API } from "@/constants/constants.js";
|
|
|
|
+import LinkTitlesCustom from "@/components/LinkTitlesCustom.vue";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
|
+ components: { LinkTitlesCustom },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
examId: null,
|
|
examId: null,
|
|
@@ -361,13 +371,6 @@ export default {
|
|
back() {
|
|
back() {
|
|
this.$router.push({ path: "/examwork/examInfo" });
|
|
this.$router.push({ path: "/examwork/examInfo" });
|
|
},
|
|
},
|
|
- getCanUploadTag(row) {
|
|
|
|
- if (this.getCanUpload(row) === "允许") {
|
|
|
|
- return "success";
|
|
|
|
- } else {
|
|
|
|
- return "danger";
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
getCanUpload(row) {
|
|
getCanUpload(row) {
|
|
if (row.properties.CAN_UPLOAD_ATTACHMENT === null) {
|
|
if (row.properties.CAN_UPLOAD_ATTACHMENT === null) {
|
|
if (Date.now() > row.endTime) {
|
|
if (Date.now() > row.endTime) {
|