|
|
|
@ -158,7 +158,8 @@
|
|
|
|
|
<script setup name="User">
|
|
|
|
|
import { changeUserStatus, listUser, resetUserPwd, delUser, getUser, updateUser, addUser, deptTreeSelect } from "@/api/system/user";
|
|
|
|
|
import MassifForm from "@/views/system/base/massifForm.vue";
|
|
|
|
|
import {ElMessageBox} from "element-plus";
|
|
|
|
|
import {ElMessage, ElMessageBox} from "element-plus";
|
|
|
|
|
import {selSeasonInfo} from "@/api/basicData/breedingBaseApi.js";
|
|
|
|
|
const massifFormRef = ref(null)
|
|
|
|
|
const router = useRouter();
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
|
@ -222,14 +223,11 @@ const data = reactive({
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
userName: undefined,
|
|
|
|
|
plantingSeason: 2023,
|
|
|
|
|
plantingSeason: 1,
|
|
|
|
|
status: undefined,
|
|
|
|
|
deptId: undefined
|
|
|
|
|
},
|
|
|
|
|
plantingSeasonList:[
|
|
|
|
|
{value: 2023, label: '2023年种植季'},
|
|
|
|
|
{value: 2024, label: '2024年种植季'},
|
|
|
|
|
],
|
|
|
|
|
plantingSeasonList:[],
|
|
|
|
|
// 地块性质
|
|
|
|
|
massifType: [
|
|
|
|
|
{label: '旱地', value: 1},
|
|
|
|
@ -248,7 +246,19 @@ const submitSuccess = (value) =>{
|
|
|
|
|
}
|
|
|
|
|
const { queryParams, form, rules ,
|
|
|
|
|
plantingSeasonList,massifType,cropClass} = toRefs(data);
|
|
|
|
|
|
|
|
|
|
const initData = () => {
|
|
|
|
|
selSeasonInfo({}).then(res =>{
|
|
|
|
|
data.plantingSeasonList = res.data.map(item =>{
|
|
|
|
|
return {
|
|
|
|
|
label:item.seasonName,
|
|
|
|
|
value:item.id
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
onMounted(()=>{
|
|
|
|
|
initData()
|
|
|
|
|
})
|
|
|
|
|
/** 查询用户列表 */
|
|
|
|
|
function getList() {
|
|
|
|
|
loading.value = true;
|
|
|
|
|