|
@@ -78,11 +78,11 @@
|
|
<el-table-column align="center" prop="count" label="测试人次">
|
|
<el-table-column align="center" prop="count" label="测试人次">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
- <el-pagination :current-page.sync="currentPage1" :page-size="10"
|
|
|
|
|
|
+ <!-- <el-pagination :current-page.sync="currentPage1" :page-size="10"
|
|
@current-change="handleCurrentChange(currentPage1, '1')"
|
|
@current-change="handleCurrentChange(currentPage1, '1')"
|
|
style="position: absolute;left: 48%;transform: translate(-50%, -50%);margin-top: 2vh;" background small
|
|
style="position: absolute;left: 48%;transform: translate(-50%, -50%);margin-top: 2vh;" background small
|
|
layout="prev, pager, next" :total="total1">
|
|
layout="prev, pager, next" :total="total1">
|
|
- </el-pagination>
|
|
|
|
|
|
+ </el-pagination> -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="EvaluationR32" id="bottomTableOutline">
|
|
<div class="EvaluationR32" id="bottomTableOutline">
|
|
@@ -99,11 +99,11 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
- <el-pagination :current-page.sync="currentPage2" :page-size="10"
|
|
|
|
|
|
+ <!-- <el-pagination :current-page.sync="currentPage2" :page-size="10"
|
|
@current-change="handleCurrentChange(currentPage2, '2')"
|
|
@current-change="handleCurrentChange(currentPage2, '2')"
|
|
style="position: absolute;left: 82%;transform: translate(-50%, -50%);margin-top: 2vh;" background small
|
|
style="position: absolute;left: 82%;transform: translate(-50%, -50%);margin-top: 2vh;" background small
|
|
layout="prev, pager, next" :total="total2">
|
|
layout="prev, pager, next" :total="total2">
|
|
- </el-pagination>
|
|
|
|
|
|
+ </el-pagination> -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -194,16 +194,20 @@ export default {
|
|
|
|
|
|
// this.setScale();
|
|
// this.setScale();
|
|
// window.addEventListener("resize", this.debounce(this.setScale));
|
|
// window.addEventListener("resize", this.debounce(this.setScale));
|
|
|
|
+ // this.setScreenCompatibility()
|
|
let tempDom = document.querySelector('#bottomTableOutline')
|
|
let tempDom = document.querySelector('#bottomTableOutline')
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
- console.log(tempDom.offsetHeight);
|
|
|
|
- autofit.init({
|
|
|
|
- // designHeight: 1080,
|
|
|
|
- // designWidth: 1920,
|
|
|
|
- renderDom: "#homeapp",
|
|
|
|
- resize: true
|
|
|
|
- })
|
|
|
|
- this.tableHeight = tempDom.offsetHeight
|
|
|
|
|
|
+ console.log(tempDom.offsetHeight, '高度');
|
|
|
|
+ // autofit.init({
|
|
|
|
+ // // designHeight: 1080,
|
|
|
|
+ // // designWidth: 1920,
|
|
|
|
+ // renderDom: "#homeapp",
|
|
|
|
+ // resize: true
|
|
|
|
+ // })
|
|
|
|
+ // console.log();
|
|
|
|
+
|
|
|
|
+ // this.tableHeight = tempDom.offsetHeight
|
|
|
|
+ this.tableHeight = 250
|
|
this.$forceUpdate()
|
|
this.$forceUpdate()
|
|
})
|
|
})
|
|
|
|
|
|
@@ -264,9 +268,10 @@ export default {
|
|
},
|
|
},
|
|
destroyed() {
|
|
destroyed() {
|
|
console.log('组件销毁');
|
|
console.log('组件销毁');
|
|
- autofit.off()
|
|
|
|
|
|
+ // autofit.off()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+
|
|
// debounce(fn, delay) {
|
|
// debounce(fn, delay) {
|
|
// const delays = delay || 500;
|
|
// const delays = delay || 500;
|
|
// let timer;
|
|
// let timer;
|
|
@@ -283,52 +288,52 @@ export default {
|
|
// };
|
|
// };
|
|
// },
|
|
// },
|
|
|
|
|
|
- // getScale() {
|
|
|
|
- // // 固定好16:9的宽高比,计算出最合适的缩放比
|
|
|
|
- // const { width, height } = this;
|
|
|
|
- // const wh = window.innerHeight / height;
|
|
|
|
- // const ww = window.innerWidth / width;
|
|
|
|
- // console.log(ww < wh ? ww : wh);
|
|
|
|
- // return ww < wh ? ww : wh;
|
|
|
|
- // },
|
|
|
|
- // setScale() {
|
|
|
|
- // // 获取到缩放比例,设置它
|
|
|
|
- // this.scale = this.getScale();
|
|
|
|
- // if (this.$refs.ScaleBox) {
|
|
|
|
- // this.$refs.ScaleBox.style.setProperty("--scale", this.scale);
|
|
|
|
- // }
|
|
|
|
- // },
|
|
|
|
- // /**
|
|
|
|
- // * 设置屏幕兼容性
|
|
|
|
- // */
|
|
|
|
- // setScreenCompatibility() {
|
|
|
|
- // const sketch = {
|
|
|
|
- // width: 1920,
|
|
|
|
- // height: 1080,
|
|
|
|
- // }
|
|
|
|
- // // 计算屏幕实际分辨率宽高比例为 R
|
|
|
|
- // const R = window.innerWidth / window.innerHeight;
|
|
|
|
- // // 计算设计稿分辨率宽度与屏幕实际分辨率宽度比 Rw
|
|
|
|
- // const Rw = sketch.width / window.innerWidth;
|
|
|
|
- // // 计算设计稿分辨率高度与屏幕实际分辨率高度比 为 Rh
|
|
|
|
- // const Rh = sketch.height / window.innerHeight;
|
|
|
|
- // let width = sketch.width;
|
|
|
|
- // let height = (sketch.width / R);
|
|
|
|
- // let scale = 1 / Rw;
|
|
|
|
- // if (Rw < Rh) {
|
|
|
|
- // width = (sketch.height * R);
|
|
|
|
- // height = sketch.height;
|
|
|
|
- // scale = 1 / Rh;
|
|
|
|
- // }
|
|
|
|
- // // 设置body拉伸(尺寸)
|
|
|
|
- // document.body.style.width = width + "px";
|
|
|
|
- // document.body.style.height = height + "px";
|
|
|
|
- // // 设置body缩放
|
|
|
|
- // document.body.style.transform = `scale(${scale})`;
|
|
|
|
- // document.body.style.transformOrigin = '0 0';
|
|
|
|
- // document.body.style.MozTransform = `scale(${scale})`;
|
|
|
|
- // document.body.style.MozTransformOrigin = '0 0';
|
|
|
|
- // },
|
|
|
|
|
|
+ // getScale() {
|
|
|
|
+ // // 固定好16:9的宽高比,计算出最合适的缩放比
|
|
|
|
+ // const { width, height } = this;
|
|
|
|
+ // const wh = window.innerHeight / height;
|
|
|
|
+ // const ww = window.innerWidth / width;
|
|
|
|
+ // console.log(ww < wh ? ww : wh);
|
|
|
|
+ // return ww < wh ? ww : wh;
|
|
|
|
+ // },
|
|
|
|
+ // setScale() {
|
|
|
|
+ // // 获取到缩放比例,设置它
|
|
|
|
+ // this.scale = this.getScale();
|
|
|
|
+ // if (this.$refs.ScaleBox) {
|
|
|
|
+ // this.$refs.ScaleBox.style.setProperty("--scale", this.scale);
|
|
|
|
+ // }
|
|
|
|
+ // },
|
|
|
|
+ /**
|
|
|
|
+ * 设置屏幕兼容性
|
|
|
|
+ */
|
|
|
|
+ // setScreenCompatibility() {
|
|
|
|
+ // const sketch = {
|
|
|
|
+ // width: 1920,
|
|
|
|
+ // height: 1080,
|
|
|
|
+ // }
|
|
|
|
+ // // 计算屏幕实际分辨率宽高比例为 R
|
|
|
|
+ // const R = window.innerWidth / window.innerHeight;
|
|
|
|
+ // // 计算设计稿分辨率宽度与屏幕实际分辨率宽度比 Rw
|
|
|
|
+ // const Rw = sketch.width / window.innerWidth;
|
|
|
|
+ // // 计算设计稿分辨率高度与屏幕实际分辨率高度比 为 Rh
|
|
|
|
+ // const Rh = sketch.height / window.innerHeight;
|
|
|
|
+ // let width = sketch.width;
|
|
|
|
+ // let height = (sketch.width / R);
|
|
|
|
+ // let scale = 1 / Rw;
|
|
|
|
+ // if (Rw < Rh) {
|
|
|
|
+ // width = (sketch.height * R);
|
|
|
|
+ // height = sketch.height;
|
|
|
|
+ // scale = 1 / Rh;
|
|
|
|
+ // }
|
|
|
|
+ // // 设置body拉伸(尺寸)
|
|
|
|
+ // document.body.style.width = width + "px";
|
|
|
|
+ // document.body.style.height = height + "px";
|
|
|
|
+ // // 设置body缩放
|
|
|
|
+ // document.body.style.transform = `scale(${scale})`;
|
|
|
|
+ // document.body.style.transformOrigin = '0 0';
|
|
|
|
+ // document.body.style.MozTransform = `scale(${scale})`;
|
|
|
|
+ // document.body.style.MozTransformOrigin = '0 0';
|
|
|
|
+ // },
|
|
// 查询分页数据方法
|
|
// 查询分页数据方法
|
|
handleCurrentChange(current, falg) {
|
|
handleCurrentChange(current, falg) {
|
|
console.log(current, falg, '查询');
|
|
console.log(current, falg, '查询');
|
|
@@ -520,6 +525,8 @@ export default {
|
|
// height: 894px;
|
|
// height: 894px;
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
|
|
+ // width: 100vw;
|
|
|
|
+ // height: 100vh;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
background-image: url('/static/assets/index/bg-pic1.png');
|
|
background-image: url('/static/assets/index/bg-pic1.png');
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
@@ -530,7 +537,7 @@ export default {
|
|
.top-header {
|
|
.top-header {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 56px;
|
|
height: 56px;
|
|
- background-image: url('/static/assets/index/bg-header1.png');
|
|
|
|
|
|
+ background-image: url('/static/assets/index/bg-header2.png');
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
background-repeat: no-repeat;
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
background-position: center;
|