【判读】导入修改

dianlixunjian
Zhufu 2024-10-31 10:12:21 +08:00
parent 87a5010d9e
commit 659db6dcb1
4 changed files with 24 additions and 12 deletions

View File

@ -68,7 +68,8 @@ const submit = () => {
picihao: props.picihao, picihao: props.picihao,
qianshixiang: beforeTime.value, qianshixiang: beforeTime.value,
houshixiang: afterTime.value, houshixiang: afterTime.value,
caseinfoids: props.selectKeys().join(','), // caseinfoids: props.selectKeys().join(','),
caseinfoids: '0',
shplayerids: layer.value.join(','), shplayerids: layer.value.join(','),
} }
AddCaseInfoTask(params).then(res => { AddCaseInfoTask(params).then(res => {

View File

@ -1,10 +1,14 @@
<template> <template>
<div style="padding: 10px;"> <div style="padding: 10px;">
<BasicTable @register="registerTable" class="import-data-table"> <BasicTable @register="registerTable" class="import-data-table">
<template #toolbar> <!-- <template #toolbar>
<a-button type="primary" @click="openCloudQuery"></a-button> <a-button type="primary" @click="openCloudQuery"></a-button>
</template> </template> -->
</BasicTable> </BasicTable>
<div style="display: flex; justify-content: flex-end; margin-top: 30px;margin-bottom:10px">
<a-button type="primary" @click="openCloudQuery"></a-button>
</div>
<a-modal v-model:open="openAllocationModal" title="导入数据配置" :destroyOnClose="true" :footer="null"> <a-modal v-model:open="openAllocationModal" title="导入数据配置" :destroyOnClose="true" :footer="null">
<AllocationModal :picihao="props.picihao" :selectKeys="getSelectRowKeys" @closeCloudQuery="closeCloudQuery"/> <AllocationModal :picihao="props.picihao" :selectKeys="getSelectRowKeys" @closeCloudQuery="closeCloudQuery"/>
</a-modal> </a-modal>
@ -12,13 +16,14 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { defineProps, ref } from "vue" import { defineProps, ref, defineEmits } from "vue"
import { BasicTable, useTable } from "@/components/Table"; import { BasicTable, useTable } from "@/components/Table";
import AllocationModal from './AllocationModal/index.vue'; import AllocationModal from './AllocationModal/index.vue';
import { LoadDataBaseInfo } from '@/api/audit/index' import { LoadDataBaseInfo } from '@/api/audit/index'
const openAllocationModal = ref(false) const openAllocationModal = ref(false)
const props = defineProps(["picihao"]) const props = defineProps(["picihao"])
const emits = defineEmits(["closeImportModal"])
const columns = [ const columns = [
{ {
title: "图斑编号", title: "图斑编号",
@ -67,11 +72,10 @@ const [registerTable, { getSelectRowKeys }] = useTable({
console.log(info) console.log(info)
return info; return info;
}, },
rowSelection: { // rowSelection: {
// // //
type: 'checkbox', // type: 'checkbox',
// type: 'radio', // },
},
// actionColumn: { // actionColumn: {
// width: 80, // width: 80,
// title: "", // title: "",
@ -85,13 +89,14 @@ const openCloudQuery = () => {
} }
const closeCloudQuery = () => { const closeCloudQuery = () => {
openAllocationModal.value = false openAllocationModal.value = false
emits("closeImportModal")
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.import-data-table{ .import-data-table{
:deep(.ant-table-body){ :deep(.ant-table-body){
height: 560px !important; height: 530px !important;
} }
} }

View File

@ -43,7 +43,7 @@
@reSubmit="reSubmit"/> @reSubmit="reSubmit"/>
</a-modal> </a-modal>
<a-modal width="75%" style="top: 33px;" v-model:open="openImportModal" title="导入" :destroyOnClose="true" :footer="null"> <a-modal width="75%" style="top: 33px;" v-model:open="openImportModal" title="导入" :destroyOnClose="true" :footer="null">
<ImportDataModal :picihao="picihao"/> <ImportDataModal :picihao="picihao" @closeImportModal="closeImportModal"/>
</a-modal> </a-modal>
</PageWrapper> </PageWrapper>
</template> </template>
@ -241,6 +241,9 @@ const customRequest = (file) => {
const downloadTemplate = () => { const downloadTemplate = () => {
window.open('http://120.222.154.7:6050/templates/shptest.zip') window.open('http://120.222.154.7:6050/templates/shptest.zip')
} }
const closeImportModal = () => {
openImportModal.value = false
}
</script> </script>
<style lang="scss"> <style lang="scss">

View File

@ -42,7 +42,7 @@
@reSubmit="reSubmit"/> @reSubmit="reSubmit"/>
</a-modal> </a-modal>
<a-modal width="75%" style="top: 33px;" v-model:open="openImportModal" title="导入" :destroyOnClose="true" :footer="null"> <a-modal width="75%" style="top: 33px;" v-model:open="openImportModal" title="导入" :destroyOnClose="true" :footer="null">
<ImportDataModal :picihao="picihao"/> <ImportDataModal :picihao="picihao" @closeImportModal="closeImportModal"/>
</a-modal> </a-modal>
</PageWrapper> </PageWrapper>
</template> </template>
@ -233,6 +233,9 @@ const customRequest = (file) => {
const downloadTemplate = () => { const downloadTemplate = () => {
window.open('http://120.222.154.7:6050/templates/shptest.zip') window.open('http://120.222.154.7:6050/templates/shptest.zip')
} }
const closeImportModal = () => {
openImportModal.value = false
}
</script> </script>
<style lang="scss"> <style lang="scss">