|
@@ -359,6 +359,12 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created: function () {
|
|
created: function () {
|
|
|
|
+ const loading = this.$loading({
|
|
|
|
+ lock: true,
|
|
|
|
+ text: "Loading",
|
|
|
|
+ spinner: "el-icon-loading",
|
|
|
|
+ background: "rgba(0, 0, 0, 0.7)"
|
|
|
|
+ });
|
|
const { isEdit, data, isCopy } = this.$route.params;
|
|
const { isEdit, data, isCopy } = this.$route.params;
|
|
if (isEdit || isCopy) {
|
|
if (isEdit || isCopy) {
|
|
this.showType = data.type; // 编辑页确认显示类型
|
|
this.showType = data.type; // 编辑页确认显示类型
|
|
@@ -432,8 +438,12 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ loading.close();
|
|
|
|
+ }, 200);
|
|
})
|
|
})
|
|
.catch((error) => {
|
|
.catch((error) => {
|
|
|
|
+ loading.close();
|
|
if (error.code === "900010001") {
|
|
if (error.code === "900010001") {
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|