TraceabilityAPP/pages/poultry/allRecording.vue

84 lines
1.5 KiB
Vue
Raw Normal View History

2023-10-25 19:55:18 +08:00
<template>
<view class="content">
2023-10-30 19:09:40 +08:00
<farmersCard></farmersCard>
<view class="histroy">
<view class="tit" style="margin-bottom: 40rpx;">
历史操作记录
2023-10-25 19:55:18 +08:00
</view>
2023-10-30 19:09:40 +08:00
<myTable :dataList='dataList'></myTable>
2023-10-25 19:55:18 +08:00
</view>
</view>
2023-10-30 19:09:40 +08:00
<!-- -->
2023-10-25 19:55:18 +08:00
</template>
<script setup>
2023-10-30 19:09:40 +08:00
import farmersCard from "@/components/poultry/farmersCard.vue"
import {
ref,
reactive
} from "vue"
2023-10-25 19:55:18 +08:00
import myTable from "@/components/myTable/index.vue"
2023-10-30 19:09:40 +08:00
import {
actionsAPI
} from "@/api/animal.js"
import {
onLoad
} from "@dcloudio/uni-app"
const dataList = reactive({})
onLoad((option) => {
actionsAPI({
type: 2
}).then(res => {
for (let key in res.data[option.index].action_record) {
dataList[key] = res.data[option.index].action_record[key]
}
})
})
const navgo = (url) => {
uni.navigateTo({
url
})
}
2023-10-25 19:55:18 +08:00
</script>
<style lang="scss" scoped>
2023-10-30 19:09:40 +08:00
.circumstance {
width: 693.93rpx;
margin: 0 auto;
margin-bottom: 43rpx;
2023-10-25 19:55:18 +08:00
2023-10-30 19:09:40 +08:00
.card-tit {
2023-10-25 19:55:18 +08:00
display: flex;
justify-content: space-between;
2023-10-30 19:09:40 +08:00
margin-bottom: 28rpx;
2023-10-25 19:55:18 +08:00
}
2023-10-30 19:09:40 +08:00
.updata-btn {
font-size: 26.29rpx;
// width: 192.76rpx;
padding: 0 30rpx;
height: 57.83rpx;
border: 1px solid #00A15E;
color: #00A15E;
2023-10-25 19:55:18 +08:00
display: flex;
2023-10-30 19:09:40 +08:00
justify-content: center;
align-items: center;
border-radius: 31.54rpx 31.54rpx 31.54rpx 31.54rpx;
}
.check {
font-size: 29.79rpx;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
2023-10-25 19:55:18 +08:00
}
2023-10-30 19:09:40 +08:00
.tab {
height: 500rpx;
background-color: red;
}
2023-10-25 19:55:18 +08:00
}
</style>