|
@@ -18,7 +18,16 @@
|
|
>
|
|
>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
- <div class="part-box-action"></div>
|
|
|
|
|
|
+ <div class="part-box-action">
|
|
|
|
+ <el-button
|
|
|
|
+ v-if="checkPrivilege('button', 'ObjectiveCalculate')"
|
|
|
|
+ type="primary"
|
|
|
|
+ :loading="loading"
|
|
|
|
+ :disabled="!multipleSelection.length"
|
|
|
|
+ @click="toObjectiveCalculate"
|
|
|
|
+ >客观题统分</el-button
|
|
|
|
+ >
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="part-box part-box-pad">
|
|
<div class="part-box part-box-pad">
|
|
@@ -98,7 +107,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { scoreCheckListPage } from "../api";
|
|
|
|
|
|
+import { scoreCheckListPage, objectiveScoreBatchCalculate } from "../api";
|
|
import ScoreCheckDetail from "../components/ScoreCheckDetail.vue";
|
|
import ScoreCheckDetail from "../components/ScoreCheckDetail.vue";
|
|
import ScoreCheckSign from "../components/ScoreCheckSign.vue";
|
|
import ScoreCheckSign from "../components/ScoreCheckSign.vue";
|
|
|
|
|
|
@@ -121,6 +130,7 @@ export default {
|
|
curRow: {},
|
|
curRow: {},
|
|
multipleSelection: [],
|
|
multipleSelection: [],
|
|
downloading: false,
|
|
downloading: false,
|
|
|
|
+ loading: false,
|
|
// img view
|
|
// img view
|
|
curImage: {},
|
|
curImage: {},
|
|
curImageIndex: 0,
|
|
curImageIndex: 0,
|
|
@@ -150,8 +160,21 @@ export default {
|
|
search() {
|
|
search() {
|
|
this.toPage(1);
|
|
this.toPage(1);
|
|
},
|
|
},
|
|
|
|
+ async toObjectiveCalculate() {
|
|
|
|
+ if (this.loading) return;
|
|
|
|
+ this.loading = true;
|
|
|
|
+
|
|
|
|
+ const res = await objectiveScoreBatchCalculate({
|
|
|
|
+ ids: this.multipleSelection.join(),
|
|
|
|
+ }).catch(() => {});
|
|
|
|
+ this.loading = false;
|
|
|
|
+
|
|
|
|
+ if (!res) return;
|
|
|
|
+ this.$message.success("操作成功!");
|
|
|
|
+ this.getList();
|
|
|
|
+ },
|
|
handleSelectionChange(val) {
|
|
handleSelectionChange(val) {
|
|
- this.multipleSelection = val;
|
|
|
|
|
|
+ this.multipleSelection = val.map((item) => item.markPaperId);
|
|
},
|
|
},
|
|
toDetail(row) {
|
|
toDetail(row) {
|
|
this.curRow = row;
|
|
this.curRow = row;
|