【判读】导入修改
parent
87a5010d9e
commit
659db6dcb1
|
|
@ -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 => {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Reference in New Issue