This commit is contained in:
parent
fd453eff89
commit
53d895161b
|
|
@ -41,19 +41,21 @@
|
|||
</el-table>
|
||||
|
||||
<!-- 分页 -->
|
||||
<pagination
|
||||
<!-- <pagination
|
||||
v-show="total > 0"
|
||||
:total="88"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
/> -->
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getDeptEquipmentApi } from '@/api/wsScreen'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
|
@ -65,9 +67,9 @@ export default {
|
|||
},
|
||||
|
||||
tableColumns: [
|
||||
{ label: '单位名称', prop: 'proName' },
|
||||
{ label: '在用率', prop: 'usageRate' },
|
||||
{ label: '周转率', prop: 'turnoverRate' },
|
||||
{ label: '单位名称', prop: 'name' },
|
||||
{ label: '在用率 (%)', prop: 'proportion' },
|
||||
{ label: '周转率 (次/年)', prop: 'turnoverRate' },
|
||||
],
|
||||
tableList: [],
|
||||
total: 0,
|
||||
|
|
@ -76,9 +78,18 @@ export default {
|
|||
created() {},
|
||||
methods: {
|
||||
openDialog() {
|
||||
this.getList()
|
||||
this.dialogVisible = true
|
||||
},
|
||||
getList() {},
|
||||
async getList() {
|
||||
try {
|
||||
const res = await getDeptEquipmentApi()
|
||||
console.log('🚀 ~ 各单位装备在用率情况 ~ res:', res)
|
||||
this.tableList = res.data || []
|
||||
} catch (error) {
|
||||
console.log('🚀 ~ 各单位装备在用率情况 ~ error:', error)
|
||||
}
|
||||
},
|
||||
// 查询
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1
|
||||
|
|
|
|||
Loading…
Reference in New Issue