|
@@ -133,14 +133,12 @@
|
|
|
class="item"
|
|
|
effect="dark"
|
|
|
:content="
|
|
|
- scope.row.run ==1 || scope.row.run ==5
|
|
|
- ? '解析中'
|
|
|
- : '解析'
|
|
|
+ scope.row.run == 1 || scope.row.run == 5 ? '解析中' : '解析'
|
|
|
"
|
|
|
placement="top"
|
|
|
>
|
|
|
<el-button
|
|
|
- v-if="scope.row.run !=1 && scope.row.run !=5"
|
|
|
+ v-if="scope.row.run != 1 && scope.row.run != 5"
|
|
|
type="text"
|
|
|
icon="el-icon-caret-right"
|
|
|
circle
|
|
@@ -787,7 +785,7 @@ export default {
|
|
|
},
|
|
|
/* 解析 */
|
|
|
analysis(row) {
|
|
|
- if (row.run ==1 || row.run ==5) return;
|
|
|
+ if (row.run == 1 || row.run == 5) return;
|
|
|
|
|
|
// Set the status to "解析中" (1) immediately
|
|
|
this.$set(row, "run", 1);
|
|
@@ -830,6 +828,8 @@ export default {
|
|
|
if (newStatus === 3) {
|
|
|
this.$message.success("解析成功");
|
|
|
delete this.analysisStatusCheckers[row.id];
|
|
|
+ // 在这里添加刷新列表的逻辑
|
|
|
+ this.refreshCurrentList();
|
|
|
} else if (newStatus === 4) {
|
|
|
this.$message.error("解析失败");
|
|
|
delete this.analysisStatusCheckers[row.id];
|
|
@@ -856,6 +856,20 @@ export default {
|
|
|
checkStatus();
|
|
|
},
|
|
|
|
|
|
+ // 添加新方法来刷新当前列表
|
|
|
+ refreshCurrentList() {
|
|
|
+ // 保存当前页码和每页显示数量
|
|
|
+ const currentPage = this.queryForm.page;
|
|
|
+ const currentPageSize = this.queryForm.pageSize;
|
|
|
+
|
|
|
+ // 重新获取数据
|
|
|
+ this.search().then(() => {
|
|
|
+ // 恢复之前的页码和每页显示数量
|
|
|
+ this.queryForm.page = currentPage;
|
|
|
+ this.queryForm.pageSize = currentPageSize;
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
handleAnalClose() {
|
|
|
this.anaDialogVisible = false;
|
|
|
},
|
|
@@ -1046,7 +1060,7 @@ export default {
|
|
|
|
|
|
// Initialize the analysis status for each row
|
|
|
_this.dataList.forEach((row) => {
|
|
|
- if (row.run == 1 || row.run ==5) {
|
|
|
+ if (row.run == 1 || row.run == 5) {
|
|
|
_this.startAnalysisStatusChecker(row);
|
|
|
}
|
|
|
});
|