diff --git a/src/components/page/articleProcess.vue b/src/components/page/articleProcess.vue index eed5317..69d1c3b 100644 --- a/src/components/page/articleProcess.vue +++ b/src/components/page/articleProcess.vue @@ -21,17 +21,14 @@
Status : {{ statetostr(artMes.laststate) }} Journal : {{ artMes.journalname }}
-
- Research areas +
+ Research areas -
-

- Field {{ i + 1 }}:{{ v.str - }} -

-
- - +
+

+ Field {{ i + 1 }}:{{ v.str }} +

+
@@ -237,12 +234,19 @@ export default { methods: { //初始化文章信息 initarticle() { + const loading = this.$loading({ + lock: true, + text: 'Loading...', + spinner: 'el-icon-loading', + background: 'rgba(0, 0, 0, 0.7)' + }); this.$api .post('api/Article/getArticleDetail', { articleId: this.articleId, human: 'author' }) .then((res) => { + loading.close() let back_num = 0; // 添加投递稿件条目 res.msg.unshift({ @@ -293,6 +297,7 @@ export default { this.prossMsgs = res.msg; }) .catch((err) => { + loading.close() console.log(err); }); @@ -351,6 +356,7 @@ export default { }, statetostr(mystate) { + let str = ''; switch (mystate) { case -1: @@ -383,9 +389,13 @@ export default { case 8: str = 'Final Decision'; + break; + case undefined: + str = ' '; + break; default: - str = 'error!!'; + str = ' '; } return str; },