|
@@ -49,7 +49,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import {active} from "@/api/wel";
|
|
|
+import {active, frequency} from "@/api/wel";
|
|
|
import {gaude, location} from "@/api/gaude";
|
|
|
import data from "@/views/util/data";
|
|
|
|
|
@@ -505,12 +505,14 @@ export default {
|
|
|
},
|
|
|
init() {
|
|
|
this.getsalesTrend();
|
|
|
- let this_ = this
|
|
|
- this_.entrustTimer = setInterval(function () {
|
|
|
- if (JSON.parse(localStorage.getItem("saber-token")).content) {
|
|
|
- this_.getsalesTrend();
|
|
|
- }
|
|
|
- }, 60000)
|
|
|
+ frequency().then(res=>{
|
|
|
+ let this_ = this
|
|
|
+ this_.entrustTimer = setInterval(function () {
|
|
|
+ if (JSON.parse(localStorage.getItem("saber-token")).content) {
|
|
|
+ this_.getsalesTrend();
|
|
|
+ }
|
|
|
+ }, Number(res.data.data[0].dictKey)*1000)
|
|
|
+ })
|
|
|
},
|
|
|
query(data) {
|
|
|
this.getsalesTrend(data)
|