zhangtao
laozt 1 year ago
parent 3f488360b0
commit 7ab66c943a

@ -37,6 +37,7 @@
}, },
"dependencies": { "dependencies": {
"@riophae/vue-treeselect": "0.4.0", "@riophae/vue-treeselect": "0.4.0",
"autofit.js": "^2.0.1",
"axios": "0.24.0", "axios": "0.24.0",
"clipboard": "2.0.8", "clipboard": "2.0.8",
"core-js": "3.25.3", "core-js": "3.25.3",

@ -1,3 +1,11 @@
<!--
* @Author: laozt 2721205210@qq.com
* @Date: 2023-12-20 13:07:20
* @LastEditors: laozt 2721205210@qq.com
* @LastEditTime: 2024-01-12 18:05:29
* @FilePath: \suzhouyingjiPC\src\App.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template> <template>
<div id="app"> <div id="app">
<router-view /> <router-view />
@ -9,6 +17,7 @@
import ThemePicker from "@/components/ThemePicker"; import ThemePicker from "@/components/ThemePicker";
import { xzTree } from "@/api/yingji/keyEnterprise.js"; import { xzTree } from "@/api/yingji/keyEnterprise.js";
// import { mapState } from "vuex"; // import { mapState } from "vuex";
// import autofit from "autofit.js";
export default { export default {
name: "App", name: "App",
@ -34,6 +43,17 @@ export default {
localStorage.setItem("TREE_DATA", JSON.stringify(res.data)); localStorage.setItem("TREE_DATA", JSON.stringify(res.data));
}); });
}, },
mounted() {
// autofit.init(
// {
// designHeight: 1080,
// designWidth: 1920,
// renderDom: "#app",
// resize: true,
// },
// false
// );
},
computed: { computed: {
// ...mapState({ // ...mapState({
// isorgpwd: (state) => state.user.isorgpwd, // isorgpwd: (state) => state.user.isorgpwd,

@ -16,5 +16,4 @@ if (ratio) {
} }
// ratio 就是获取到的百分比 // ratio 就是获取到的百分比
// console.log(ratio); // console.log(ratio);
export default ratio export default ratio

@ -99,7 +99,6 @@
label="企业名称" label="企业名称"
align="center" align="center"
prop="enterpriseName" prop="enterpriseName"
width="200"
show-overflow-tooltip show-overflow-tooltip
/> />
<el-table-column <el-table-column
@ -111,7 +110,6 @@
<el-table-column <el-table-column
prop="district" prop="district"
label="行政区划" label="行政区划"
width="130"
header-align="center" header-align="center"
show-overflow-tooltip show-overflow-tooltip
> >
@ -134,13 +132,21 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="安全风险等级" align="center" prop="riskLevel" /> <el-table-column
<el-table-column label="标准化等级" align="center" prop="standLevel" /> label="安全风险等级"
align="center"
prop="riskLevel"
/>
<el-table-column
label="标准化等级"
align="center"
prop="standLevel"
/>
<el-table-column <el-table-column
label="上次检查时间" label="上次检查时间"
align="center" align="center"
prop="examineEndTime" prop="examineEndTime"
width="180" width="120"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ <span>{{
@ -149,7 +155,12 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" header-align="center"> <el-table-column
width="100"
fixed="right"
label="操作"
header-align="center"
>
<template slot-scope="scope"> <template slot-scope="scope">
<div class="tabs-btns"> <div class="tabs-btns">
<div class="look" @click="handleAddDrafts(scope.row)"> <div class="look" @click="handleAddDrafts(scope.row)">

@ -445,7 +445,14 @@ export default {
this.getList(); this.getList();
// 100% 125% // 100% 125%
this.tableHeight = detectZoom == 100 ? 700 : 480; let screen = window.screen;
let screenWidth = window.screen.width;
let screenHeight = window.screen.height;
if (screenWidth == 1366) {
this.tableHeight = 440;
} else {
this.tableHeight = detectZoom == 100 ? 700 : 480;
}
}, },
dicts: ["inspection_method", "check_source", "document_type"], dicts: ["inspection_method", "check_source", "document_type"],
methods: { methods: {

@ -365,7 +365,14 @@ export default {
created() { created() {
this.getList(); this.getList();
// 100% 125% // 100% 125%
this.tableHeight = detectZoom == 100 ? 700: 480; let screen = window.screen;
let screenWidth = window.screen.width;
let screenHeight = window.screen.height;
if (screenWidth == 1366) {
this.tableHeight = 440;
} else {
this.tableHeight = detectZoom == 100 ? 700 : 480;
}
}, },
methods: { methods: {
/** 查询企业新列表 */ /** 查询企业新列表 */

@ -548,7 +548,14 @@ export default {
// //
this.getList(); this.getList();
// 100% 125% // 100% 125%
this.tableHeight = detectZoom == 100 ? 650 : 450; let screen = window.screen;
let screenWidth = window.screen.width;
let screenHeight = window.screen.height;
if (screenWidth == 1366) {
this.tableHeight = 420;
} else {
this.tableHeight = detectZoom == 100 ? 650 : 450;
}
}, },
}; };
</script> </script>

@ -65,9 +65,9 @@ module.exports = {
sassOptions: { outputStyle: "expanded" }, sassOptions: { outputStyle: "expanded" },
}, },
// px to rem // px to rem
// postcss: { postcss: {
// plugins: [postcss], plugins: [postcss],
// }, },
}, },
}, },
configureWebpack: { configureWebpack: {

Loading…
Cancel
Save