|
@@ -69,7 +69,7 @@
|
|
icon="icon icon-confirm"
|
|
icon="icon icon-confirm"
|
|
@click="toConfirm(scope.row)"
|
|
@click="toConfirm(scope.row)"
|
|
title="确认"
|
|
title="确认"
|
|
- v-if="scope.row.revokeStatus === 0"
|
|
|
|
|
|
+ v-if="scope.row.revokeStatus === '0'"
|
|
></el-button>
|
|
></el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -91,7 +91,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { REVOKE_STATUS } from "@/constants/enumerate";
|
|
import { REVOKE_STATUS } from "@/constants/enumerate";
|
|
-import { printTaskListPage, examList } from "../api";
|
|
|
|
|
|
+import { printTaskListPage, examList, printRevokeAudit } from "../api";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "exam-manage",
|
|
name: "exam-manage",
|
|
@@ -150,9 +150,10 @@ export default {
|
|
};
|
|
};
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- toConfirm(row) {
|
|
|
|
- // TODO:
|
|
|
|
- console.log(row);
|
|
|
|
|
|
+ async toConfirm(row) {
|
|
|
|
+ await printRevokeAudit(row.id);
|
|
|
|
+ this.$message.success("确认成功!");
|
|
|
|
+ this.getList();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
beforeDestroy() {
|
|
beforeDestroy() {
|