|
|
@ -3,10 +3,16 @@
|
|
|
|
<el-row :gutter="20">
|
|
|
|
<el-row :gutter="20">
|
|
|
|
<!--育种基地/资源圃选择-->
|
|
|
|
<!--育种基地/资源圃选择-->
|
|
|
|
<el-col :span="4" :xs="24">
|
|
|
|
<el-col :span="4" :xs="24">
|
|
|
|
<base-selection></base-selection>
|
|
|
|
<base-selection v-model="currentBase"></base-selection>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<!--用户数据-->
|
|
|
|
<!--用户数据-->
|
|
|
|
<el-col :span="20" :xs="24">
|
|
|
|
<el-col :span="20" :xs="24">
|
|
|
|
|
|
|
|
<el-row class="base-title">
|
|
|
|
|
|
|
|
<el-col :span="6" class="current-base-name">当前基地:{{currentBase.baseName || '请选择基地'}}</el-col>
|
|
|
|
|
|
|
|
<el-col :span="6" class="current-base-total"><i-pound theme="filled" size="16" fill="#333"/>地块总数:{{currentBase.baseName || '请选择基地'}}</el-col>
|
|
|
|
|
|
|
|
<el-col :span="6" class="current-base-area"><i-chart-line-area size="16" fill="#333"/>地块面积:{{currentBase.area || '请选择基地'}}</el-col>
|
|
|
|
|
|
|
|
<el-col :span="6" class="handoff-model" @click="toBaseMap"><el-button type="text">切换地图模式</el-button></el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
|
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
|
<el-form-item label="用户名称" prop="userName">
|
|
|
|
<el-form-item label="用户名称" prop="userName">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
@ -315,7 +321,7 @@ import { changeUserStatus, listUser, resetUserPwd, delUser, getUser, updateUser,
|
|
|
|
const router = useRouter();
|
|
|
|
const router = useRouter();
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
|
const { sys_normal_disable, sys_user_sex } = proxy.useDict("sys_normal_disable", "sys_user_sex");
|
|
|
|
const { sys_normal_disable, sys_user_sex } = proxy.useDict("sys_normal_disable", "sys_user_sex");
|
|
|
|
|
|
|
|
const currentBase = ref({})
|
|
|
|
const userList = ref([]);
|
|
|
|
const userList = ref([]);
|
|
|
|
const open = ref(false);
|
|
|
|
const open = ref(false);
|
|
|
|
const loading = ref(false);
|
|
|
|
const loading = ref(false);
|
|
|
@ -579,4 +585,21 @@ function submitForm() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
// 切换地图模式
|
|
|
|
|
|
|
|
const toBaseMap = () => {
|
|
|
|
|
|
|
|
if (currentBase.value.id){
|
|
|
|
|
|
|
|
router.push('/system/base/massifMap/'+currentBase.value.id)
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
router.push('/system/base/mapMarkers')
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
|
|
|
.base-title{
|
|
|
|
|
|
|
|
margin: 10px 0;
|
|
|
|
|
|
|
|
.handoff-model{
|
|
|
|
|
|
|
|
padding-right: 20px;
|
|
|
|
|
|
|
|
text-align: right;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|
|
|
|