|
@@ -655,6 +655,18 @@ export default {
|
|
|
if (res.length <= 0) {
|
|
|
this.loadNum = 2;
|
|
|
this.loading = false;
|
|
|
+ let _copyData = JSON.parse(JSON.stringify(this.data));
|
|
|
+ _copyData.json_data = JSON.stringify(_copyData.jsonData);
|
|
|
+ if (this.historyResult.length == 0) {
|
|
|
+ this.historyResult.push(_copyData.jsonData);
|
|
|
+ } else {
|
|
|
+ this.historyResult.splice(
|
|
|
+ this.showIndex + 1,
|
|
|
+ 0,
|
|
|
+ _copyData.jsonData
|
|
|
+ );
|
|
|
+ }
|
|
|
+ this.changeShowIndex(1);
|
|
|
return this.$message.error("在正文中未找到表格数据");
|
|
|
}
|
|
|
|
|
@@ -735,6 +747,18 @@ export default {
|
|
|
if (res.length <= 0) {
|
|
|
this.loadNum = 2;
|
|
|
this.loading = false;
|
|
|
+ let _copyData = JSON.parse(JSON.stringify(this.data));
|
|
|
+ _copyData.json_data = JSON.stringify(_copyData.jsonData);
|
|
|
+ if (this.historyResult.length == 0) {
|
|
|
+ this.historyResult.push(_copyData.jsonData);
|
|
|
+ } else {
|
|
|
+ this.historyResult.splice(
|
|
|
+ this.showIndex + 1,
|
|
|
+ 0,
|
|
|
+ _copyData.jsonData
|
|
|
+ );
|
|
|
+ }
|
|
|
+ this.changeShowIndex(1);
|
|
|
return this.$message.error("在正文中未找到表格数据");
|
|
|
}
|
|
|
|
|
@@ -817,6 +841,18 @@ export default {
|
|
|
if (res.length <= 0) {
|
|
|
this.loadNum = 2;
|
|
|
this.loading = false;
|
|
|
+ let _copyData = JSON.parse(JSON.stringify(this.data));
|
|
|
+ _copyData.json_data = JSON.stringify(_copyData.jsonData);
|
|
|
+ if (this.historyResult.length == 0) {
|
|
|
+ this.historyResult.push(_copyData.jsonData);
|
|
|
+ } else {
|
|
|
+ this.historyResult.splice(
|
|
|
+ this.showIndex + 1,
|
|
|
+ 0,
|
|
|
+ _copyData.jsonData
|
|
|
+ );
|
|
|
+ }
|
|
|
+ this.changeShowIndex(1);
|
|
|
return this.$message.error("在正文中未找到表格数据");
|
|
|
}
|
|
|
|