|
@@ -141,7 +141,8 @@ import {
|
|
|
analysisBatchList,
|
|
|
deleteAnalysisBatch,
|
|
|
analysisBatchTemplateExport,
|
|
|
- analysisDataImport
|
|
|
+ analysisDataImport,
|
|
|
+ analysisBatchCalc
|
|
|
} from "../api";
|
|
|
import ModifyAnalysisBatch from "../components/ModifyAnalysisBatch.vue";
|
|
|
import ModifyAnalysisBatchPaper from "../components/ModifyAnalysisBatchPaper.vue";
|
|
@@ -220,8 +221,16 @@ export default {
|
|
|
this.curRow = row;
|
|
|
this.$refs.ModifyAnalysisBatchPaper.open();
|
|
|
},
|
|
|
- toCalc(row) {
|
|
|
- console.log(row);
|
|
|
+ async toCalc(row) {
|
|
|
+ if (row.loading) return;
|
|
|
+ row.loading = true;
|
|
|
+
|
|
|
+ const res = await analysisBatchCalc({ batchId: row.id }).catch(() => {});
|
|
|
+ row.loading = false;
|
|
|
+ if (!res) return;
|
|
|
+
|
|
|
+ this.$message.success("操作成功!");
|
|
|
+ this.getList();
|
|
|
},
|
|
|
async toImportAnalysisData(row) {
|
|
|
if (row.loading) return;
|