Merge branch 'dev-yjl' into 'shenzhen-dev'

中建四局-(安全管理页面)-注释无用接口

See merge request !62
This commit is contained in:
yjlHub 2022-11-22 16:56:53 +08:00
commit ff9b98d091
2 changed files with 24 additions and 12 deletions

View File

@ -213,6 +213,15 @@ export default {
font-size: 20px;
}
::v-deep .el-tree__empty-text {
width: 200px;
position: absolute;
left: 315%;
top: 600%;
transform: translate(-50%, -50%);
color: #737996;
font-size: 20px;
}
}
</style>

View File

@ -86,7 +86,10 @@
</template>
<script>
import { getSafetyPerilInfo, getTodayInspectionInfo } from '@/assets/js/api/zhongjianFourth'
import {
// getSafetyPerilInfo,
getTodayInspectionInfo
} from '@/assets/js/api/zhongjianFourth'
import { mapState } from 'vuex'
import Card from '../components/Card.vue'
@ -121,23 +124,23 @@ export default {
}
},
created() {
this.getSafetyPerilInfo()
// this.getSafetyPerilInfo()
this.getTodayInspectionInfo()
},
computed: {
...mapState(['projectSn']),
},
methods: {
/** 查询安全隐患数据 */
getSafetyPerilInfo() {
getSafetyPerilInfo({ projectSn: this.projectSn }).then(res => {
console.log('查询安全隐患数据: ', res);
const safetyPeril = this.safetyPeril;
Object.keys(safetyPeril).forEach(key => {
safetyPeril[key] = res.result[key];
})
})
},
// /** */
// getSafetyPerilInfo() {
// getSafetyPerilInfo({ projectSn: this.projectSn }).then(res => {
// console.log(': ', res);
// const safetyPeril = this.safetyPeril;
// Object.keys(safetyPeril).forEach(key => {
// safetyPeril[key] = res.result[key];
// })
// })
// },
/** 查询今日巡检数据 */
getTodayInspectionInfo() {
getTodayInspectionInfo({ projectSn: this.projectSn }).then(res => {