|
@@ -28,8 +28,17 @@
|
|
|
{{ item.firstSentence }}
|
|
|
</div>
|
|
|
<div class="time">{{ item.createDate }}</div>
|
|
|
- <div class="cxjx" @click="anewSubmit(item)">重新解析</div>
|
|
|
- <el-popconfirm title="确定删除这一条记录吗?" @confirm='deleteOne(item.id, i)'>
|
|
|
+ <div
|
|
|
+ class="cxjx"
|
|
|
+ @click="anewSubmit(item)"
|
|
|
+ v-if="item.analysisStatus == 3"
|
|
|
+ >
|
|
|
+ 重新解析
|
|
|
+ </div>
|
|
|
+ <el-popconfirm
|
|
|
+ title="确定删除这一条记录吗?"
|
|
|
+ @confirm="deleteOne(item.id, i)"
|
|
|
+ >
|
|
|
<img
|
|
|
slot="reference"
|
|
|
src="../../assets/teacherdev/delete-one.png"
|
|
@@ -74,6 +83,10 @@ export default {
|
|
|
methods: {
|
|
|
// 分析结果统计
|
|
|
goresult(item) {
|
|
|
+ if (item.analysisStatus != 2) {
|
|
|
+ this.$message.warning("当前数据解析失败,请重新解析");
|
|
|
+ return;
|
|
|
+ }
|
|
|
window.open(
|
|
|
this.$router.resolve({
|
|
|
path: "/textanalysis/Result",
|
|
@@ -165,6 +178,10 @@ export default {
|
|
|
},
|
|
|
})
|
|
|
.then((res) => {
|
|
|
+ if (res.data.result.analysisStatus != 2) {
|
|
|
+ this.$message.warning("当前数据解析失败,请重新解析");
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.txt = "";
|
|
|
window.open(
|
|
|
this.$router.resolve({
|
|
@@ -248,7 +265,7 @@ export default {
|
|
|
.TextAnalysis {
|
|
|
height: 100%;
|
|
|
.main {
|
|
|
- height: 100%;
|
|
|
+ min-height: 100%;
|
|
|
background: #f6f6f6;
|
|
|
padding-top: 54px;
|
|
|
padding-bottom: 24px;
|