mes_mobile/pages/equipmentManage/equipmentManage.vue

88 lines
2.0 KiB
Vue
Raw Normal View History

2024-02-19 16:53:38 +08:00
<template>
2024-04-11 18:54:43 +08:00
<!-- 设备管理 -->
<view class="page_padding bot_padding">
2024-02-19 16:53:38 +08:00
<view class="" v-for="(item,index) in list" :key="index" >
2024-03-13 16:07:11 +08:00
<view class="page_list contentboxsty font13" @click="toDeviceDetail(item.id)">
2024-02-19 16:53:38 +08:00
<view class="list_row">
<view class="row_name">
设备名称
</view>
<view class="row_data">
{{item.name}}
</view>
2024-03-13 16:07:11 +08:00
<view class="iconfont icon-bianji font20" @click="toAddDevice()"></view>
2024-02-19 16:53:38 +08:00
</view>
<view class="list_row">
设备IP/端口
</view>
<view class="list_row">
<view class="row_name">
已绑定设备
</view>
<view class="row_data">
{{item.name}}
</view>
<view class="iconfont icon-bangding font20" @click="toBindingDevice()"></view>
</view>
</view>
</view>
2024-04-11 18:54:43 +08:00
</view>
2024-02-19 16:53:38 +08:00
<view class="page_bottom_button">
<view class="page_add" @click="toAddDevice()">
<!-- <view class="name_left font14">
系统设备管理
</view> -->
<view class="iconfont icon-tianjia font24"></view>
<text>添加</text>
</view>
2024-04-11 18:54:43 +08:00
</view>
</template>
<script>
2024-02-19 16:53:38 +08:00
export default {
data() {
return {
2024-03-13 16:07:11 +08:00
list:[]
2024-02-19 16:53:38 +08:00
}
},
2024-03-13 16:07:11 +08:00
onLoad() {
this.getList();
},
2024-02-19 16:53:38 +08:00
methods: {
2024-03-13 16:07:11 +08:00
getList(){
// this.$api.postFuncLoading('/equipment.mag',{}).then(res=>{
// console.log(res)
// this.list = res.data.rows;
// })
},
//详情
toDeviceDetail(id){
console.log(id)
uni.navigateTo({
url:'/pages/equipmentManage/deviceDetail?id='+id
})
},
2024-02-19 16:53:38 +08:00
toAddDevice(){
uni.navigateTo({
url:'/pages/equipmentManage/editDevice'
})
},
toBindingDevice(){
uni.navigateTo({
url:'/pages/equipmentManage/bindingDevice'
})
}
}
2024-04-11 18:54:43 +08:00
}
</script>
2024-02-19 16:53:38 +08:00
<style>
/* .page_name{display: flex;margin-bottom: 10px;align-items: center;} */
/* .name_left{flex: 1;} */
2024-04-11 18:54:43 +08:00
.page_list{padding: 6px 12px;}
2024-02-19 16:53:38 +08:00
.list_row{display: flex;padding: 6px 0;align-items: center;}
.row_name{width:30%;}
2024-04-11 18:54:43 +08:00
.row_data{width: 65%;}
</style>