|
@@ -264,28 +264,41 @@ export default {
|
|
|
spinner: "el-icon-loading",
|
|
|
background: "rgba(0, 0, 0, 0.7)"
|
|
|
});
|
|
|
- analysSubmit({
|
|
|
- app_user_id: "",
|
|
|
- text: this.curQue.article
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- if (this.tokenData && this.tokenData.user_type === "APP") {
|
|
|
+ if (this.tokenData && this.tokenData.user_type === "APP") {
|
|
|
+ analysSubmit(
|
|
|
+ {
|
|
|
+ app_user_id: "",
|
|
|
+ text: this.curQue.article
|
|
|
+ },
|
|
|
+ { AccessToken: this.$route.query.AccessToken }
|
|
|
+ )
|
|
|
+ .then(res => {
|
|
|
window.open(
|
|
|
window.location.origin +
|
|
|
`/GCLS-TC/#/textanalysis/Result?id=${res.record.id}&type=文本分析&AppID=${this.$route.query.AppID}&AccessToken=${this.$route.query.AccessToken}&UserID=${this.$route.query.UserID}`
|
|
|
);
|
|
|
- } else {
|
|
|
+
|
|
|
+ loading.close();
|
|
|
+ })
|
|
|
+ .catch(res => {
|
|
|
+ loading.close();
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ analysSubmit({
|
|
|
+ app_user_id: "",
|
|
|
+ text: this.curQue.article
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
window.open(
|
|
|
window.location.origin +
|
|
|
`/GCLS-TC/#/textanalysis/Result?id=${res.record.id}&type=文本分析`
|
|
|
);
|
|
|
- }
|
|
|
-
|
|
|
- loading.close();
|
|
|
- })
|
|
|
- .catch(res => {
|
|
|
- loading.close();
|
|
|
- });
|
|
|
+ loading.close();
|
|
|
+ })
|
|
|
+ .catch(res => {
|
|
|
+ loading.close();
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
goFullscreen() {
|
|
|
var element = document.getElementById("articleBoby");
|