工作台:频率

This commit is contained in:
guoyue 2022-06-30 12:03:21 +08:00
parent eb2ec69927
commit 0295f0b967
2 changed files with 77 additions and 0 deletions

View File

@ -84,3 +84,17 @@ export const getRequire = (data, success, fail) => {
fail && fail(err) fail && fail(err)
}) })
} }
// 频率top5
export const getFrequence = (data, success, fail) => {
Request({
methods: 'get',
url: '/resource/selectDeptResourceByApplyNum',
data
}).then(res => {
success && success(res)
}).catch(err => {
fail && fail(err)
})
}

View File

@ -1,11 +1,46 @@
<template> <template>
<div class="frequency"> <div class="frequency">
555 555
<div>标题</div>
<div class="no-box">
<div class="no2"></div>
<div class="no1"></div>
<div class="no3"></div>
</div>
<div></div>
</div> </div>
</template> </template>
<script> <script>
import * as Apis from '../api.js'
export default { export default {
data() {
return {
frequenceList: [],
noInfo: {}
}
},
mounted() {
this.getData()
},
methods: {
//
getData() {
let data = {
limit: 5,
page: 1,
}
Apis.getFrequence(data, res => {
if (res.data.code !== 0) {
return this.$message.error(res.data.msg)
}
console.log('res----频率-------->', res.data);
this.frequenceList = res.data.data.records || [];
}, err => {
this.$message.error(err)
})
},
}
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@ -15,4 +50,32 @@ export default {
background: pink; background: pink;
margin-right: 4px; margin-right: 4px;
} }
.no-box {
display: flex;
align-items: center;
justify-content: flex-start;
}
.no1 {
width: 170px;
height: 120px;
margin-top: -20px;
background-image: url("~@/assets/img/workBench/NO1.png");
}
.no2 {
width: 170px;
height: 120px;
margin-top: 10px;
background-image: url("~@/assets/img/workBench/NO2.png");
}
.no3 {
width: 170px;
height: 120px;
margin-top: 10px;
background-image: url("~@/assets/img/workBench/NO3.png");
}
</style> </style>