| | |
| | | const handleSizeChange = () => {}; |
| | | const handleCurrentChange = () => {}; |
| | | const tableData = ref([]); |
| | | const polygonSearch = ref({ |
| | | investigate: '', |
| | | isPush: '', |
| | | isException: '', |
| | | inRange: '1', |
| | | dkbh: '', |
| | | dkmj: '', |
| | | page: 1, |
| | | page_size: 1000, |
| | | total: 0, |
| | | workspaceId: 'ede19ef4-2e92-42f3-83cc-89afb54e95a7', |
| | | area_code: '360000000000', |
| | | device_sn: '', |
| | | }); |
| | | // 获取列表数据 |
| | | // const getTableList = async () => { |
| | | // tableData.value = []; |
| | | // const res = await getPatchesSpotList(polygonSearch.value); |
| | | // if (res.data.code !== 0) return; |
| | | // console.log('rrrrr',res.data.data); |
| | | |
| | | // tableData.value = res.data.data.list.map(item => ({ |
| | | // ...item, |
| | | // dkfw: item.sdfw && item.is_exception == 1 ? item.sdfw : item.dkfw, |
| | | // })); |
| | | // total.value = res.data.data.pagination.total; |
| | | // // 先清空地图现有图斑 |
| | | // tbJwdList = []; |
| | | // viewer.entities.removeAll(); // 清除所有实体 |
| | | // // 加载图斑 |
| | | // entitiesAddSpot(); |
| | | // }; |
| | | |
| | | // 地图 |
| | | const initMap = () => { |
| | | if (!document.getElementById('spotMap')) { |
| | |
| | | pageSize: 20, |
| | | currentPage: 1, |
| | | total: 0, |
| | | lotValue: '', |
| | | createUser: '', |
| | | lotTypeId: '', |
| | | updateUser: '', |
| | | areaCode:'', |
| | | fileName:'' |
| | | }); |
| | | |
| | | const selectionList = ref([]); |
| | |
| | | }; |
| | | |
| | | const searchReset = () => { |
| | | page.value.lotValue ='' |
| | | page.value.lotTypeId ='' |
| | | page.value.currentPage=1 |
| | | page.value.pageSize=20 |
| | | onLoad(page.value); |
| | |
| | | |
| | | const searchChange = (params, done) => { |
| | | page.value.currentPage = 1; |
| | | page.value.lotValue = params.patches_type_desc; |
| | | page.value.lotTypeId = params.patches_type_desc; |
| | | page.value.createUser = params.user_name; |
| | | |
| | | onLoad(page.value); |
| | |
| | | const searchparams = { |
| | | current: pageInfo.currentPage, |
| | | size: pageInfo.pageSize, |
| | | lotValue: pageInfo.lotValue, |
| | | createUser: pageInfo.createUser, |
| | | lotTypeId: pageInfo.lotTypeId, |
| | | |
| | | }; |
| | | loading.value = true; |
| | | spotManagementTableApi(searchparams).then(res => { |
| | |
| | | </template> |
| | | |
| | | <script setup> |
| | | import {listOfSpotTypesApi,spotTypesCreateApi,editSpotTypeApi,deleteSpotTypeApi} from '@/api/patchManagement/index' |
| | | import {searchManagementApi,listOfSpotTypesApi,spotTypesCreateApi,editSpotTypeApi,deleteSpotTypeApi} from '@/api/patchManagement/index' |
| | | import { ref, computed, watch } from 'vue' |
| | | import { enable, disable } from '@/api/resource/oss' |
| | | import { useStore } from 'vuex' |
| | |
| | | // ---------------- data ---------------- |
| | | const form = ref({}) |
| | | const query = ref({}) |
| | | const creatorOption = ref([]); |
| | | const loading = ref(true) |
| | | const page = ref({ |
| | | pageSize: 20, |
| | |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | searchSpan: 4, |
| | | type: 'select', |
| | | dicData: creatorOption, |
| | | props: { |
| | | label: 'label', |
| | | value: 'value', |
| | | }, |
| | | rules: [ |
| | | { required: true, message: '请输入创建人', trigger: 'blur' }, |
| | | ], |
| | |
| | | }) |
| | | |
| | | const data = ref([]) |
| | | |
| | | // 获取搜索数据 |
| | | const getsearchManagementApi = () => { |
| | | searchManagementApi().then(res => { |
| | | creatorOption.value = res.data.data.user_names.map(item => ({ |
| | | label: item, |
| | | value: item, |
| | | })); |
| | | |
| | | }); |
| | | }; |
| | | |
| | | |
| | | // ---------------- watch ---------------- |
| | |
| | | router.push({ path: '/resource/patchManagement' }) |
| | | } |
| | | |
| | | const addPatchType = () => { |
| | | // TODO: 新增图斑类型逻辑 |
| | | } |
| | | |
| | | // ---------------- utils ---------------- |
| | | function validData (value) { |
| | | return value !== undefined && value !== null && value !== false |
| | | } |
| | | |
| | | function findObject (list, prop) { |
| | | return list.find(item => item.prop === prop) |
| | | } |
| | | |
| | | const crudRef = ref(null) |
| | | onMounted(() => { |
| | | getsearchManagementApi(); |
| | | }); |
| | | </script> |
| | | |
| | | <style scoped lang="scss"></style> |