【接收办理】乡镇下拉选单获取

dianlixunjian
Zhufu 2024-07-10 17:28:50 +08:00
parent 679010b228
commit 3f516eb508
2 changed files with 22 additions and 4 deletions

View File

@ -35,6 +35,8 @@ enum Api {
AddtaskFavorite = '/api/DroneCaseInfoSingle/AddtaskFavorite',
// 审核列表删除收藏
DeleteTaskCase = '/api/DroneCaseInfoSingle/DeleteTaskCase',
// 获取当前账号可以看见的乡镇
loadStreet = '/api/DroneCaseInfoSingle/loadStreet'
}
/**
@ -43,6 +45,9 @@ enum Api {
export function getLoadTaskCount(params?: taskCountParams) {
return defHttp.get<countModel>({ url: Api.LoadTaskCount, params });
}
export function getLoadStreet() {
return defHttp.get({ url: Api.loadStreet });
}
/**
* @description: getCaseFlowLog

View File

@ -66,12 +66,13 @@
allowClear
style="flex: 1;"
v-model:value="props.infoScreenData.streetId"
:options="props.streetsAreaOptions"
:options="streetsAreaOptions"
@change="(value) => emits('mapListScreenChange',value,'streetId')"
/>
</div>
<div class="screen-item" style="width:40%">
<a-input
<a-input
placeholder="请输入图斑编号"
style="flex:1;margin-left: 10px;"
v-model:value="props.infoScreenData.mapNo"
@change="(value) => emits('mapListScreenChange',value.target.value,'mapNo')"
@ -288,7 +289,7 @@
import { ref, onMounted, defineEmits, defineProps, computed, h } from "vue"
import { StarOutlined, StarFilled, SearchOutlined, RollbackOutlined } from '@ant-design/icons-vue';
import Icon from '@/components/Icon/Icon.vue';
import { addCaseFavorite,addTaskFavorite,getCaseInfoById, deleteFavoriteCase,deleteTaskCase } from '@/api/tiankongdi/index.ts';
import { addCaseFavorite,addTaskFavorite,getCaseInfoById, deleteFavoriteCase,deleteTaskCase,getLoadStreet, } from '@/api/tiankongdi/index.ts';
import {
batchOptions,
yearOptions,
@ -323,7 +324,6 @@ const props = defineProps([
"cityType",
"municipalAreaOptions",
"countiesAreaOptions",
"streetsAreaOptions",
"communitiesAreaOptions",
"pageNo",
"pageSize",
@ -355,7 +355,20 @@ const openCollect = computed(() => {
return true
})
const showInfoData = ref()
const streetsAreaOptions = ref([
{ label: '全部', value: '' },
])
onMounted(() => {
getLoadStreet().then(res => {
console.log(res)
res.forEach(item => {
streetsAreaOptions.value.push({
label: item.Name,
value: item.Id,
})
})
})
console.log('onMounted')
})