...
|
...
|
@@ -298,7 +298,7 @@ export default { |
|
|
const tableData = this.optionsData;
|
|
|
tableData.dataType == "staticData"
|
|
|
? this.handlerStaticData(tableData.staticData)
|
|
|
: this.handlerDynamicData(tableData.dynamicData, tableData.refreshTime);
|
|
|
: this.handlerDynamicData(tableData.dynamicData, tableData.refreshTime,tableData.isRefresh);
|
|
|
},
|
|
|
handlerStaticData(data) {
|
|
|
this.list = data;
|
...
|
...
|
@@ -306,9 +306,9 @@ export default { |
|
|
this.loading = false;
|
|
|
this.loadingAll = false;
|
|
|
},
|
|
|
handlerDynamicData(data, refreshTime) {
|
|
|
handlerDynamicData(data, refreshTime,isRefresh) {
|
|
|
if (!data) return;
|
|
|
if (this.ispreview) {
|
|
|
if (this.ispreview && isRefresh) {
|
|
|
this.getEchartData(data);
|
|
|
this.flagInter = setInterval(() => {
|
|
|
this.getEchartData(data);
|
...
|
...
|
|