diff --git a/project/qujing/app/AppExaminationManage/components/Add.vue b/project/qujing/app/AppExaminationManage/components/Add.vue
index 67eac6ac..a2efc5ca 100644
--- a/project/qujing/app/AppExaminationManage/components/Add.vue
+++ b/project/qujing/app/AppExaminationManage/components/Add.vue
@@ -19,26 +19,17 @@
{{ dict.getLabel('qjEAType', item.assessmentType) }}
- 且
-
-
-
-
+
{{ item.dictName }}
@@ -53,7 +44,7 @@
每题分数
-
+
@@ -65,6 +56,7 @@
@@ -105,7 +97,7 @@
:page-size="search.size"
:page-sizes="[10, 20, 50, 100]"
layout="slot,->, prev, pager, next, sizes, jumper"
- :pager-count="search.current"
+ :pager-count="7"
@size-change="getList"
@current-change="getList">
+
+
+
+
+ 否
+ 是
+
+
+
+
+
+
+
@@ -64,19 +84,25 @@
search: {
current: 1,
size: 10,
- title: '',
+ examinationName: '',
status: ''
},
+ isShow: false,
total: 10,
colConfigs: [
{ prop: 'examinationName', label: '考试名称', align: 'left' },
{ prop: 'allSubjectNumber', label: '试题总数', align: 'center' },
{ prop: 'beginTime', label: '通过分数', align: 'center' },
- { prop: 'status', label: '状态', align: 'center', format: v => this.dict.getLable('qjEIStatus', v) },
+ { prop: 'status', label: '状态', align: 'center', format: v => this.dict.getLabel('qjEIStatus', v) },
{ prop: 'examinationNumber', label: '考试人数', align: 'center' },
{ prop: 'passNumber', label: '通过人数', align: 'center' }
],
tableData: [],
+ form: {
+ opinion: '',
+ pass: ''
+ },
+ id: '',
statusList: [
{
dictValue: '0',
@@ -114,6 +140,43 @@
})
},
+
+ onClose () {
+ this.id = ''
+ this.form.opinion = ''
+ this.form.pass = ''
+ },
+
+ onConfirm () {
+ this.$refs.form.validate((valid) => {
+ if (valid) {
+ this.instance.post(`/app/appexaminationinfo/examine`, null, {
+ params: {
+ ...this.form,
+ id: this.id
+ }
+ }).then(res => {
+ if (res.code == 0) {
+ this.$message.success('审核成功!')
+ this.isShow = false
+ this.getList()
+ }
+ })
+ }
+ })
+ },
+
+ unshelf (id) {
+ this.$confirm('确定下架该活动?').then(() => {
+ this.instance.post(`/app/appexaminationinfo/revoke?id=${id}`).then(res => {
+ if (res.code == 0) {
+ this.$message.success('下架成功!')
+ this.getList()
+ }
+ })
+ })
+ },
+
remove (id) {
this.$confirm('确定删除该活动?').then(() => {
this.instance.post(`/app/appexaminationinfo/delete?id=${id}`).then(res => {