|
@@ -142,6 +142,11 @@ export default {
|
|
},
|
|
},
|
|
})
|
|
})
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
|
+ if (res.data.result.analysisStatus != 2) {
|
|
|
|
+ this.$message.warning("当前数据解析失败,请重新解析");
|
|
|
|
+ this.loading = false;
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
window.open(
|
|
window.open(
|
|
this.$router.resolve({
|
|
this.$router.resolve({
|
|
path: "/textanalysis/Result",
|
|
path: "/textanalysis/Result",
|
|
@@ -175,6 +180,10 @@ export default {
|
|
this.$message.warning("请先输入内容");
|
|
this.$message.warning("请先输入内容");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ if (this.txt.length > 1000) {
|
|
|
|
+ this.$message.warning("超出字数限制");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
this.loading = true;
|
|
this.loading = true;
|
|
postapi({
|
|
postapi({
|
|
url: "/GCLSTCServer/tools/TS/analys",
|
|
url: "/GCLSTCServer/tools/TS/analys",
|
|
@@ -184,11 +193,12 @@ export default {
|
|
},
|
|
},
|
|
})
|
|
})
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
|
+ this.txt = "";
|
|
if (res.data.result.analysisStatus != 2) {
|
|
if (res.data.result.analysisStatus != 2) {
|
|
this.$message.warning("当前数据解析失败,请重新解析");
|
|
this.$message.warning("当前数据解析失败,请重新解析");
|
|
|
|
+ this.loading = false;
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- this.txt = "";
|
|
|
|
window.open(
|
|
window.open(
|
|
this.$router.resolve({
|
|
this.$router.resolve({
|
|
path: "/textanalysis/Result",
|
|
path: "/textanalysis/Result",
|
|
@@ -271,7 +281,7 @@ export default {
|
|
.TextAnalysis {
|
|
.TextAnalysis {
|
|
min-height: 100%;
|
|
min-height: 100%;
|
|
.main {
|
|
.main {
|
|
- min-height: 100%;
|
|
|
|
|
|
+ min-height: 80.2vh;
|
|
background: #f6f6f6;
|
|
background: #f6f6f6;
|
|
padding-top: 54px;
|
|
padding-top: 54px;
|
|
padding-bottom: 24px;
|
|
padding-bottom: 24px;
|
|
@@ -289,7 +299,7 @@ export default {
|
|
width: 1168px;
|
|
width: 1168px;
|
|
margin-top: 17px;
|
|
margin-top: 17px;
|
|
padding: 16px;
|
|
padding: 16px;
|
|
- height: 295px;
|
|
|
|
|
|
+ min-height: 295px;
|
|
background: #ffffff;
|
|
background: #ffffff;
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
.text_btn {
|
|
.text_btn {
|