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