|
@@ -242,6 +242,7 @@ const onCancel = () => {
|
|
|
* 上传或编辑文件
|
|
|
*/
|
|
|
const submitData = async () => {
|
|
|
+ // @ts-ignore
|
|
|
proxy.$loading.start();
|
|
|
const formData = JSON.parse(JSON.stringify({ ...form.value, file: [] }));
|
|
|
|
|
@@ -250,6 +251,7 @@ const submitData = async () => {
|
|
|
if (res.code === 200) {
|
|
|
isVisible.value = false;
|
|
|
pageInit();
|
|
|
+ // @ts-ignore
|
|
|
proxy.$loading.stop();
|
|
|
ElMessage({
|
|
|
message: "编辑成功",
|
|
@@ -265,6 +267,7 @@ const submitData = async () => {
|
|
|
};
|
|
|
const fileRes = (await uploadFile(data)) as unknown as any;
|
|
|
if (fileRes.code === 1) {
|
|
|
+ // @ts-ignore
|
|
|
proxy.$loading.stop();
|
|
|
pageInit();
|
|
|
ElMessage({
|
|
@@ -298,8 +301,10 @@ const viewDetails = (data: any) => {
|
|
|
* @param data 传递的数据
|
|
|
*/
|
|
|
const toRpc = async (row: any) => {
|
|
|
+ // @ts-ignore
|
|
|
proxy.$loading.start();
|
|
|
await recordAssessmentResult({ source: 2, fileId: row.id });
|
|
|
+ // @ts-ignore
|
|
|
proxy.$loading.stop();
|
|
|
router.push({
|
|
|
path: "/OperationalReliabilityPrediction",
|