|
|
@@ -216,10 +216,10 @@
|
|
|
size="small"
|
|
|
@click="handleSaveArticle('articleForm')"
|
|
|
:loading="loading"
|
|
|
- >下一步</el-button
|
|
|
+ >保存文章</el-button
|
|
|
>
|
|
|
<el-button size="small" @click="onCancel('articleForm')"
|
|
|
- >取消</el-button
|
|
|
+ >返回上一页</el-button
|
|
|
>
|
|
|
</div>
|
|
|
<el-button
|
|
|
@@ -614,7 +614,7 @@ export default {
|
|
|
}
|
|
|
} else {
|
|
|
this.$message.success("文章保存成功");
|
|
|
- this.$router.go(-1);
|
|
|
+ // this.$router.go(-1);
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
@@ -905,6 +905,7 @@ export default {
|
|
|
if (res.data.art.page_no_in_pub === 0) {
|
|
|
this.articleForm.page_no_in_pub = null;
|
|
|
}
|
|
|
+ this.en_flag = res.data && res.data.art ? res.data.art.en_flag : 0;
|
|
|
this.subtitleLoading = false;
|
|
|
}
|
|
|
})
|
|
|
@@ -967,6 +968,7 @@ export default {
|
|
|
this.changeCnLoading = false;
|
|
|
if (res.status === 1) {
|
|
|
this.$message.success(res.msg);
|
|
|
+ this.getArticleInfo();
|
|
|
// this.handleSaveArticle("articleForm", "1");
|
|
|
}
|
|
|
})
|
|
|
@@ -998,8 +1000,27 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
} else if (res.data.code === 1) {
|
|
|
- this.$message.success("tts重新生成成功");
|
|
|
- this.getArticleInfo();
|
|
|
+ this.$confirm("tts数据已经就绪", "提示", {
|
|
|
+ confirmButtonText: "重新生成",
|
|
|
+ cancelButtonText: "刷新详情",
|
|
|
+ type: "success",
|
|
|
+ dangerouslyUseHTMLString: true,
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ let Mnames =
|
|
|
+ "/PaperServer/Manager/ArticleManager/ReqNewTtsTask";
|
|
|
+
|
|
|
+ getLogin(Mnames, data).then((res) => {
|
|
|
+ if (res.status === 1) {
|
|
|
+ this.$message.success(
|
|
|
+ "已成功发送tts重新生成请求,请稍后查看文章详情"
|
|
|
+ );
|
|
|
+ }
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.getArticleInfo();
|
|
|
+ });
|
|
|
} else if (res.data.code === 2) {
|
|
|
let str =
|
|
|
"已成功发送tts请求,等待tts服务器返回数据中,目前已等待" +
|