|
@@ -166,11 +166,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import {
|
|
|
|
- MARKING_API,
|
|
|
|
- MARKING_LOGIC_API,
|
|
|
|
- QUESTION_API,
|
|
|
|
-} from "@/constants/constants";
|
|
|
|
|
|
+import { MARKING_API, MARKING_LOGIC_API } from "@/constants/constants";
|
|
import { mapState } from "vuex";
|
|
import { mapState } from "vuex";
|
|
import ECharts from "vue-echarts/components/ECharts";
|
|
import ECharts from "vue-echarts/components/ECharts";
|
|
import "echarts/lib/chart/pie";
|
|
import "echarts/lib/chart/pie";
|
|
@@ -331,22 +327,30 @@ export default {
|
|
type: "warning",
|
|
type: "warning",
|
|
}).then(() => {
|
|
}).then(() => {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
- this.$http.put(QUESTION_API + "/paper_storage/release/" + row.id).then(
|
|
|
|
- () => {
|
|
|
|
- this.$notify({
|
|
|
|
- message: "操作成功",
|
|
|
|
- type: "success",
|
|
|
|
- });
|
|
|
|
- this.searchBtnFn();
|
|
|
|
- },
|
|
|
|
- (response) => {
|
|
|
|
- this.$notify({
|
|
|
|
- message: response.response.data.desc,
|
|
|
|
- type: "error",
|
|
|
|
- });
|
|
|
|
- this.loading = false;
|
|
|
|
- }
|
|
|
|
- );
|
|
|
|
|
|
+ this.$http
|
|
|
|
+ .post(
|
|
|
|
+ MARKING_API +
|
|
|
|
+ "/markWorks/release?workId=" +
|
|
|
|
+ row.workId +
|
|
|
|
+ "&courseCode=" +
|
|
|
|
+ row.code
|
|
|
|
+ )
|
|
|
|
+ .then(
|
|
|
|
+ () => {
|
|
|
|
+ this.$notify({
|
|
|
|
+ message: "操作成功",
|
|
|
|
+ type: "success",
|
|
|
|
+ });
|
|
|
|
+ this.searchBtnFn();
|
|
|
|
+ },
|
|
|
|
+ (response) => {
|
|
|
|
+ this.$notify({
|
|
|
|
+ message: response.response.data.desc,
|
|
|
|
+ type: "error",
|
|
|
|
+ });
|
|
|
|
+ this.loading = false;
|
|
|
|
+ }
|
|
|
|
+ );
|
|
});
|
|
});
|
|
},
|
|
},
|
|
cleanMarkWork() {
|
|
cleanMarkWork() {
|