| | |
| | | @row-update="questionBankRowUpdate" |
| | | @row-del="questionBankRowDel" |
| | | > |
| | | <!-- 自定义按钮 --> |
| | | <!-- <template slot="menuLeft"> |
| | | <el-button type="danger" |
| | | size="mini" |
| | | icon="el-icon-delete" |
| | | plain |
| | | @click="handleDelete">新增 |
| | | </el-button> |
| | | <el-button type="danger" |
| | | size="mini" |
| | | icon="el-icon-delete" |
| | | plain |
| | | @click="handleDelete">删除 |
| | | </el-button> |
| | | <el-button type="danger" |
| | | size="mini" |
| | | icon="el-icon-delete" |
| | | plain |
| | | @click="handleDelete">导出 |
| | | </el-button> |
| | | </template> --> |
| | | |
| | | <template slot-scope="{ row }" slot="auditStatus"> |
| | | <el-tag class="dtype"> |
| | | {{ |
| | | row.auditStatus == 1 |
| | | ? "审核通过" |
| | | : row.auditStatus == 2 |
| | | ? "审核不通过" |
| | | : "待审核" |
| | | }} |
| | | <i class="zc" v-if="row.auditStatus == 1"></i> |
| | | <i class="yj" v-if="row.auditStatus == 2"></i> |
| | | <i class="gz" v-if="row.auditStatus == 3"></i> |
| | | </el-tag> |
| | | </template> |
| | | <template slot="menuLeft"> |
| | | <el-button |
| | | style="display: none" |
| | |
| | | @click="questionBankHandleDelete" |
| | | >删 除 |
| | | </el-button> |
| | | <!--图例 components--> |
| | | <span> |
| | | <Legend :datas="datalistLIU"></Legend> |
| | | </span> |
| | | </template> |
| | | |
| | | <template slot-scope="{ row }" slot="examStatus"> |
| | |
| | | } from "@/api/examapi/examination"; |
| | | import { auditColumn } from "./data"; |
| | | import { mapGetters } from "vuex"; |
| | | import Legend from "@/components/liu-legend/Legend"; |
| | | export default { |
| | | components: { |
| | | Legend, |
| | | }, |
| | | data() { |
| | | var validatePass = (rule, value, callback) => { |
| | | console.log(value); |
| | |
| | | |
| | | return { |
| | | form: {}, |
| | | //legend-liu数据 |
| | | datalistLIU: [ |
| | | { |
| | | color: "#29C093", |
| | | text: "审核通过", |
| | | }, |
| | | { |
| | | color: "#F34A4A", |
| | | text: "审核不通过", |
| | | }, |
| | | { |
| | | color: "#F48F57", |
| | | text: "待审核", |
| | | }, |
| | | ], |
| | | Audit: {}, |
| | | dialogFormVisible: false, |
| | | optionAudit: { |
| | |
| | | ], |
| | | span: 24, |
| | | width: 200, |
| | | overHidden:true |
| | | overHidden: true, |
| | | }, |
| | | { |
| | | label: "考试时间", |
| | |
| | | editDetail: false, |
| | | width: 120, |
| | | }, |
| | | |
| | | |
| | | // { |
| | | // label: "申请人", |
| | | // prop: "realName", |
| | |
| | | editDetail: false, |
| | | // hide: true, |
| | | display: false, |
| | | overHidden:true, |
| | | overHidden: true, |
| | | }, |
| | | { |
| | | label: "备注", |
| | |
| | | value: 3, |
| | | }, |
| | | ], |
| | | width: 80, |
| | | width: 110, |
| | | }, |
| | | { |
| | | label: "审核明细", |
| | | editDisplay: false, |
| | | addDisplay: false, |
| | | prop: "auditDetail", |
| | | width:90, |
| | | overHidden:true |
| | | width: 90, |
| | | overHidden: true, |
| | | }, |
| | | { |
| | | label: "距考试开始时间", |
| | | editDisplay: false, |
| | | addDisplay: false, |
| | | prop: "deadline", |
| | | width:110, |
| | | overHidden:true |
| | | width: 110, |
| | | overHidden: true, |
| | | }, |
| | | { |
| | | { |
| | | label: "考试名单确认人", |
| | | prop: "confirmUserName", |
| | | slot: true, |
| | |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .dtype { |
| | | width: 100%; |
| | | padding-left: 0px; |
| | | } |
| | | |
| | | .dx { |
| | | position: absolute; |
| | | top: 50%; |
| | | margin-top: -5px; |
| | | margin-left: 6px; |
| | | width: 10px; |
| | | height: 10px; |
| | | border-radius: 30%; |
| | | background: #dfdfdf; |
| | | } |
| | | .zc { |
| | | position: absolute; |
| | | top: 50%; |
| | | margin-top: -5px; |
| | | margin-left: 4px; |
| | | width: 10px; |
| | | height: 10px; |
| | | border-radius: 30%; |
| | | background: #29c093; |
| | | } |
| | | .yj { |
| | | position: absolute; |
| | | top: 50%; |
| | | margin-top: -5px; |
| | | margin-left: 4px; |
| | | width: 10px; |
| | | height: 10px; |
| | | border-radius: 30%; |
| | | background: #f34a4a; |
| | | } |
| | | .gz { |
| | | position: absolute; |
| | | top: 50%; |
| | | margin-top: -5px; |
| | | margin-left: 4px; |
| | | width: 10px; |
| | | height: 10px; |
| | | border-radius: 30%; |
| | | background: #f48f57; |
| | | } |
| | | </style> |