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