|
@@ -2501,6 +2501,12 @@ export default {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // 优先恢复缓存数据
|
|
|
|
|
+ if (acupointTable.restoreCachedData()) {
|
|
|
|
|
+ loading.close();
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
// 兼容数组和对象两种格式,处理数组时合并所有treatmentList
|
|
// 兼容数组和对象两种格式,处理数组时合并所有treatmentList
|
|
|
const dataArray = Array.isArray(data) ? data : [data];
|
|
const dataArray = Array.isArray(data) ? data : [data];
|
|
|
if (!dataArray.length) {
|
|
if (!dataArray.length) {
|
|
@@ -2995,14 +3001,19 @@ export default {
|
|
|
},
|
|
},
|
|
|
// 顶部tab 改变
|
|
// 顶部tab 改变
|
|
|
async changeContainer(item, type) {
|
|
async changeContainer(item, type) {
|
|
|
|
|
+ // 切离适宜技术tab时,缓存当前数据
|
|
|
|
|
+ if (this.container_i === 2 && type !== 2) {
|
|
|
|
|
+ this.$refs.suitScience && this.$refs.suitScience.cacheCurrentData();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
this.container_i = type;
|
|
this.container_i = type;
|
|
|
item.check = true;
|
|
item.check = true;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 切换到适宜技术tab时,重置标志位以允许重新获取数据
|
|
// 切换到适宜技术tab时,重置标志位以允许重新获取数据
|
|
|
if (type === 2) {
|
|
if (type === 2) {
|
|
|
this.isTuiDaoSuit = false;
|
|
this.isTuiDaoSuit = false;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
await this.inferRecipe(3, item.businesstype);
|
|
await this.inferRecipe(3, item.businesstype);
|
|
|
|
|
|
|
|
const child = this.$children.find(child => child.name === item.name);
|
|
const child = this.$children.find(child => child.name === item.name);
|