【判读】导入修改

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,
qianshixiang: beforeTime.value,
houshixiang: afterTime.value,
caseinfoids: props.selectKeys().join(','),
// caseinfoids: props.selectKeys().join(','),
caseinfoids: '0',
shplayerids: layer.value.join(','),
}
AddCaseInfoTask(params).then(res => {

View File

@ -1,10 +1,14 @@
<template>
<div style="padding: 10px;">
<BasicTable @register="registerTable" class="import-data-table">
<template #toolbar>
<!-- <template #toolbar>
<a-button type="primary" @click="openCloudQuery"></a-button>
</template>
</template> -->
</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">
<AllocationModal :picihao="props.picihao" :selectKeys="getSelectRowKeys" @closeCloudQuery="closeCloudQuery"/>
</a-modal>
@ -12,13 +16,14 @@
</template>
<script setup lang="ts">
import { defineProps, ref } from "vue"
import { defineProps, ref, defineEmits } from "vue"
import { BasicTable, useTable } from "@/components/Table";
import AllocationModal from './AllocationModal/index.vue';
import { LoadDataBaseInfo } from '@/api/audit/index'
const openAllocationModal = ref(false)
const props = defineProps(["picihao"])
const emits = defineEmits(["closeImportModal"])
const columns = [
{
title: "图斑编号",
@ -67,11 +72,10 @@ const [registerTable, { getSelectRowKeys }] = useTable({
console.log(info)
return info;
},
rowSelection: {
//
type: 'checkbox',
// type: 'radio',
},
// rowSelection: {
// //
// type: 'checkbox',
// },
// actionColumn: {
// width: 80,
// title: "",
@ -85,13 +89,14 @@ const openCloudQuery = () => {
}
const closeCloudQuery = () => {
openAllocationModal.value = false
emits("closeImportModal")
}
</script>
<style lang="scss" scoped>
.import-data-table{
:deep(.ant-table-body){
height: 560px !important;
height: 530px !important;
}
}

View File

@ -43,7 +43,7 @@
@reSubmit="reSubmit"/>
</a-modal>
<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>
</PageWrapper>
</template>
@ -241,6 +241,9 @@ const customRequest = (file) => {
const downloadTemplate = () => {
window.open('http://120.222.154.7:6050/templates/shptest.zip')
}
const closeImportModal = () => {
openImportModal.value = false
}
</script>
<style lang="scss">

View File

@ -42,7 +42,7 @@
@reSubmit="reSubmit"/>
</a-modal>
<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>
</PageWrapper>
</template>
@ -233,6 +233,9 @@ const customRequest = (file) => {
const downloadTemplate = () => {
window.open('http://120.222.154.7:6050/templates/shptest.zip')
}
const closeImportModal = () => {
openImportModal.value = false
}
</script>
<style lang="scss">