update:修改单独提交计算内容

This commit is contained in:
2026-04-10 13:51:48 +08:00
parent 4c128608c2
commit 90e877a15e

View File

@@ -137,6 +137,7 @@
<div class="page-footer">
<el-button type="primary" @click="submitFun" :disabled="isLoading">提交</el-button>
<el-button type="" @click="resetFormFun" :disabled="isLoading">重置</el-button>
<el-button type="" @click="testSubmitFun">测试提交</el-button>
</div>
</div>
</template>
@@ -284,6 +285,27 @@ const uploadFinishedFun = async (data: any) => {
}
};
const testSubmitFun = async () => {
const params = JSON.parse(localStorage.getItem('SUBMIT_JOB_INFO') as string) || null;
if (params) {
let res: any;
try {
if (params.type === 'single') {
res = await webSubmitApi(params);
} else {
res = await batchWebSubmitApi(params);
}
if (res && res.code === 200) {
ElMessage.success('提交成功');
}
} catch {}
} else {
ElMessage.warning('执行参数丢失,请重新提交');
}
};
// 切换批量或者单个提交计算模式
const typeChangeFun = () => {
formData.masterFile = [];