update:修改单独提交计算内容
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user