|
@@ -145,7 +145,14 @@ import IndexSmallPie from "../../echarts/IndexSmallPie.vue"
|
|
|
import IndexSmoothLine from "../../echarts/IndexSmoothLine.vue"
|
|
|
import IndexBar from "../../echarts/IndexBar.vue"
|
|
|
import { roundToFixed } from "../../../utils/utils"
|
|
|
-
|
|
|
+import autofit from 'autofit.js'
|
|
|
+// autofit.init({
|
|
|
+// // designHeight: 1080,
|
|
|
+// // designWidth: 988,
|
|
|
+// renderDom: "#app",
|
|
|
+// resize: true,
|
|
|
+// // ignore: [".el-select"],
|
|
|
+// })
|
|
|
export default {
|
|
|
name: "AdminHome",
|
|
|
components: {
|
|
@@ -200,6 +207,13 @@ export default {
|
|
|
async mounted() {
|
|
|
let tempDom = document.querySelector('#bottomTableOutline')
|
|
|
this.$nextTick(() => {
|
|
|
+ autofit.init({
|
|
|
+ // designHeight: 1080,
|
|
|
+ // designWidth: 988,
|
|
|
+ renderDom: ".app-container",
|
|
|
+ resize: true,
|
|
|
+ // ignore: [".el-select"],
|
|
|
+ })
|
|
|
this.tableHeight = tempDom.offsetHeight - 62
|
|
|
})
|
|
|
|
|
@@ -349,8 +363,8 @@ export default {
|
|
|
riskChangeChart() {
|
|
|
return new Promise((resolve, reject) => {
|
|
|
this.$http.get(`/index/riskChangeChart?institutionNo=${this.institutionNo}`, {}, (res) => {
|
|
|
- console.log(res,'=====================================res教育局');
|
|
|
-
|
|
|
+ console.log(res, '=====================================res教育局');
|
|
|
+
|
|
|
resolve(res.data)
|
|
|
})
|
|
|
})
|
|
@@ -364,7 +378,11 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
+destroyed(){
|
|
|
+ console.log('销毁');
|
|
|
+ autofit.off()
|
|
|
+}
|
|
|
}
|
|
|
</script>
|
|
|
|