97 lines
1.5 KiB
Vue
Raw Normal View History

2025-03-07 14:36:54 +08:00
<template>
2025-03-12 11:35:36 +08:00
<CustomCard>
2025-03-14 17:33:44 +08:00
<h2>农药基本信息</h2>
<TypeMenu v-model:type="type" />
<br />
<avue-crud ref="crud" v-model:page="pageData" :data="data" :option="option"></avue-crud>
2025-03-12 11:35:36 +08:00
</CustomCard>
2025-03-07 14:36:54 +08:00
</template>
<script setup>
2025-03-14 17:33:44 +08:00
import { ref, watch } from 'vue';
2025-03-07 14:36:54 +08:00
import CustomCard from '@/components/CustomCard.vue';
2025-03-14 17:33:44 +08:00
import TypeMenu from '../../common/TypeMenu.vue';
import { CRUD_OPTIONS } from '@/config';
2025-03-07 14:36:54 +08:00
/* --------------- data --------------- */
// #region
2025-03-14 17:33:44 +08:00
const type = ref('');
watch(
() => type.value,
() => {
console.log(type.value);
},
{
deep: true,
}
);
2025-03-07 14:36:54 +08:00
2025-03-14 17:33:44 +08:00
const crud = ref();
const data = ref([]);
const pageData = ref({
total: 0,
currentPage: 1,
pageSize: 10,
});
const option = ref({
CRUD_OPTIONS,
selection: false,
column: [
{
prop: '',
label: '农药编号',
},
{
prop: '',
label: '名称',
},
{
prop: '',
label: '厂家',
},
{
prop: '',
label: '经销商',
},
{
prop: '',
label: '防治对象',
},
{
prop: '',
label: '化学成分',
},
{
prop: '',
label: '加工剂型',
},
{
prop: '',
label: '产品规格',
},
{
prop: '',
label: '毒性',
},
{
prop: '',
label: '保质期',
},
],
});
2025-03-07 14:36:54 +08:00
// #endregion
/* --------------- methods --------------- */
// #region
// #endregion
</script>
2025-03-14 17:33:44 +08:00
<style lang="scss" scoped>
h2 {
font-size: 24px;
font-weight: bold;
font-family: '黑体';
}
</style>