新增羊只性别字典

This commit is contained in:
wyt 2025-07-17 10:18:25 +08:00
parent 72fddd06e5
commit e19d1e4fba

View File

@ -222,8 +222,11 @@
width="120" width="120"
sortable sortable
> >
<template #header> <!-- <template #header>
<span style="font-weight: bold; color: #333;">性别</span> <span style="font-weight: bold; color: #333;">性别</span>
</template> -->
<template #default="scope">
<dict-tag :options="sheep_gender" :value="scope.row.gender"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -979,8 +982,11 @@
<script setup name="Sheep_file"> <script setup name="Sheep_file">
import { listSheep_file, getSheep_file } from "@/api/fileManagement/sheep_file" import { listSheep_file, getSheep_file } from "@/api/fileManagement/sheep_file"
const { proxy } = getCurrentInstance()
const { proxy } = getCurrentInstance()
const { sheep_gender } = proxy.useDict('sheep_gender')
const sheep_fileList = ref([]) const sheep_fileList = ref([])
const open = ref(false) const open = ref(false)
const loading = ref(true) const loading = ref(true)