|
@@ -127,6 +127,7 @@
|
|
|
{{ scope.row.reviewStatus | reviewStatusFilter }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column prop="createName" label="创建人"></el-table-column>
|
|
|
<el-table-column
|
|
|
class-name="action-column"
|
|
|
label="操作"
|
|
@@ -135,7 +136,11 @@
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
- v-if="!scope.row.auditStatus && !scope.row.reviewStatus"
|
|
|
+ v-if="
|
|
|
+ !scope.row.auditStatus &&
|
|
|
+ !scope.row.reviewStatus &&
|
|
|
+ scope.row.createId === curUserId
|
|
|
+ "
|
|
|
class="btn-table-icon"
|
|
|
type="text"
|
|
|
icon="icon icon-edit"
|
|
@@ -145,7 +150,8 @@
|
|
|
<el-button
|
|
|
v-if="
|
|
|
scope.row.auditStatus === 'AUDITED' &&
|
|
|
- scope.row.reviewStatus === 'NOT_PASS'
|
|
|
+ scope.row.reviewStatus === 'NOT_PASS' &&
|
|
|
+ scope.row.createId === curUserId
|
|
|
"
|
|
|
class="btn-table-icon"
|
|
|
type="text"
|
|
@@ -156,7 +162,8 @@
|
|
|
<el-button
|
|
|
v-if="
|
|
|
scope.row.auditStatus === 'NOT_AUDITED' &&
|
|
|
- scope.row.status === 'SUBMIT'
|
|
|
+ scope.row.status === 'SUBMIT' &&
|
|
|
+ scope.row.createId === curUserId
|
|
|
"
|
|
|
class="btn-table-icon"
|
|
|
type="text"
|
|
@@ -193,7 +200,7 @@
|
|
|
ref="ModifyTaskApply"
|
|
|
:edit-type="editType"
|
|
|
:instance="curExamTask"
|
|
|
- @modified="getList"
|
|
|
+ @modified="taskModified"
|
|
|
></modify-task-apply>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -203,6 +210,7 @@ import ModifyTaskApply from "../components/ModifyTaskApply";
|
|
|
import { AUDITING_STATUS, AUDITING_RESULT } from "@/constants/enumerate";
|
|
|
import pickerOptions from "@/constants/datePickerOptions";
|
|
|
import { taskApplyListPage, cancelOrRestartTaskApply } from "../api";
|
|
|
+import { mapActions } from "vuex";
|
|
|
|
|
|
export default {
|
|
|
name: "task-apply-manage",
|
|
@@ -228,6 +236,7 @@ export default {
|
|
|
AUDITING_RESULT,
|
|
|
examTasks: [],
|
|
|
curExamTask: {},
|
|
|
+ curUserId: this.$ls.get("user", { id: "" }).id,
|
|
|
// date-picker
|
|
|
createTime: [],
|
|
|
pickerOptions
|
|
@@ -237,6 +246,7 @@ export default {
|
|
|
this.getList();
|
|
|
},
|
|
|
methods: {
|
|
|
+ ...mapActions("exam", ["updateWaitTaskCount"]),
|
|
|
async getList() {
|
|
|
const datas = {
|
|
|
...this.filter,
|
|
@@ -281,6 +291,10 @@ export default {
|
|
|
this.curExamTask = row;
|
|
|
this.editType = "PREVIEW";
|
|
|
this.$refs.ModifyTaskApply.open();
|
|
|
+ },
|
|
|
+ taskModified() {
|
|
|
+ this.getList();
|
|
|
+ this.updateWaitTaskCount();
|
|
|
}
|
|
|
}
|
|
|
};
|