【判读】通过后更新案件编号
parent
2035335bc6
commit
87a5010d9e
|
|
@ -20,7 +20,9 @@ enum Api {
|
|||
// 判读-更新案件信息
|
||||
UpdateCaseInfoBySubject = '/api/DroneCaseInfoSingle/UpdateCaseInfoBySubject',
|
||||
// 判读-获取前后时像信息
|
||||
LoadTuBanshixiang = '/api/DroneCaseInfoTask/LoadTuBanshixiang'
|
||||
LoadTuBanshixiang = '/api/DroneCaseInfoTask/LoadTuBanshixiang',
|
||||
// 判读-根据专题更新案件编号
|
||||
UpdateCaseNoBySubject = '/api/DroneCaseInfoSingle/UpdateCaseNoBySubject',
|
||||
}
|
||||
|
||||
const typeObj = {
|
||||
|
|
@ -108,4 +110,10 @@ export function LoadTuBanshixiang(){
|
|||
return defHttp.get({
|
||||
url: Api.LoadTuBanshixiang,
|
||||
})
|
||||
}
|
||||
export function UpdateCaseNoBySubject (params:{ subject: string, id: string }) {
|
||||
return defHttp.post({
|
||||
url: Api.UpdateCaseNoBySubject,
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
|
@ -1,84 +0,0 @@
|
|||
<template>
|
||||
<div style="padding: 20px;">
|
||||
<div style="margin-bottom: 10px;display:flex">
|
||||
<div style="flex: 1;padding-right: 5px">
|
||||
<div>前时像</div>
|
||||
<a-select
|
||||
v-model:value="beforeTime"
|
||||
:options="timeOptions"
|
||||
style="width: 100%" />
|
||||
</div>
|
||||
<div style="flex: 1;padding-left: 5px">
|
||||
<div>后时像</div>
|
||||
<a-select
|
||||
v-model:value="afterTime"
|
||||
:options="timeOptions"
|
||||
style="width: 100%" />
|
||||
</div>
|
||||
</div>
|
||||
<div style="margin-bottom: 10px;">
|
||||
<div>图层</div>
|
||||
<a-select
|
||||
mode="multiple"
|
||||
max-tag-count="responsive"
|
||||
v-model:value="layer"
|
||||
:options="layerOptions"
|
||||
style="width: 100%" />
|
||||
</div>
|
||||
<a-button style="width:100%" type="primary" @click="submit">提交</a-button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { defineProps,ref, onMounted, defineEmits } from "vue"
|
||||
import { LoadLayerInfo, AddCaseInfoTask, LoadTuBanshixiang } from '@/api/audit/index'
|
||||
import { message } from 'ant-design-vue'
|
||||
|
||||
onMounted(() => {
|
||||
LoadLayerInfo().then(res => {
|
||||
console.log(res)
|
||||
layerOptions.value = res.map(item => {
|
||||
return {
|
||||
label: item.layername,
|
||||
value: item.string
|
||||
}
|
||||
})
|
||||
})
|
||||
LoadTuBanshixiang().then(res => {
|
||||
timeOptions.value = res.map(item => {
|
||||
return {
|
||||
label: item.name,
|
||||
value: item.time
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
const props = defineProps(["picihao","selectKeys"])
|
||||
const emits = defineEmits(["closeCloudQuery"])
|
||||
const beforeTime = ref()
|
||||
const afterTime = ref()
|
||||
const layer = ref([])
|
||||
const layerOptions = ref([])
|
||||
const timeOptions = ref([])
|
||||
|
||||
const submit = () => {
|
||||
console.log(props.selectKeys())
|
||||
let params = {
|
||||
picihao: props.picihao,
|
||||
qianshixiang: beforeTime.value,
|
||||
houshixiang: afterTime.value,
|
||||
caseinfoids: props.selectKeys().join(','),
|
||||
shplayerids: layer.value.join(','),
|
||||
}
|
||||
AddCaseInfoTask(params).then(res => {
|
||||
console.log(res)
|
||||
if(res){
|
||||
message.success('提交成功')
|
||||
emits("closeCloudQuery")
|
||||
}
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
|
|
@ -1,98 +0,0 @@
|
|||
<template>
|
||||
<div style="padding: 10px;">
|
||||
<BasicTable @register="registerTable" class="import-data-table">
|
||||
<template #toolbar>
|
||||
<a-button type="primary" @click="openCloudQuery">云查询</a-button>
|
||||
</template>
|
||||
</BasicTable>
|
||||
<a-modal v-model:open="openAllocationModal" title="导入数据配置" :destroyOnClose="true" :footer="null">
|
||||
<AllocationModal :picihao="props.picihao" :selectKeys="getSelectRowKeys" @closeCloudQuery="closeCloudQuery"/>
|
||||
</a-modal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { defineProps, ref } 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 columns = [
|
||||
{
|
||||
title: "图斑编号",
|
||||
dataIndex: "case_no",
|
||||
},
|
||||
{
|
||||
title: "图斑描述",
|
||||
dataIndex: "case_description",
|
||||
},
|
||||
{
|
||||
title: "图斑类型",
|
||||
dataIndex: "typename",
|
||||
},
|
||||
{
|
||||
title: "图斑面积",
|
||||
dataIndex: "area",
|
||||
},
|
||||
]
|
||||
const [registerTable, { getSelectRowKeys }] = useTable({
|
||||
columns,
|
||||
rowKey: "id",
|
||||
api: LoadDataBaseInfo,
|
||||
beforeFetch(params) {
|
||||
params.picihao = props.picihao
|
||||
return params
|
||||
},
|
||||
showIndexColumn: false,
|
||||
showTableSetting: false,
|
||||
pagination: { pageSize: 10 },
|
||||
useSearchForm: false,
|
||||
formConfig: {
|
||||
labelWidth: 120,
|
||||
schemas: [
|
||||
{
|
||||
field: 'typename',
|
||||
label: '原始图斑编号',
|
||||
component: 'Input',
|
||||
colProps: { span: 5 },
|
||||
componentProps: {
|
||||
placeholder: '请输入原始编号',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
handleSearchInfoFn(info) {
|
||||
console.log(info)
|
||||
return info;
|
||||
},
|
||||
rowSelection: {
|
||||
//多选框
|
||||
type: 'checkbox',
|
||||
// type: 'radio',
|
||||
},
|
||||
// actionColumn: {
|
||||
// width: 80,
|
||||
// title: "操作",
|
||||
// dataIndex: "action",
|
||||
// slots: { customRender: "action" },
|
||||
// },
|
||||
})
|
||||
|
||||
const openCloudQuery = () => {
|
||||
openAllocationModal.value = true
|
||||
}
|
||||
const closeCloudQuery = () => {
|
||||
openAllocationModal.value = false
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.import-data-table{
|
||||
:deep(.ant-table-body){
|
||||
height: 560px !important;
|
||||
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
@ -61,7 +61,7 @@ import { create, saveDraft, GetDraft } from '@/api/sys/WFProcess';
|
|||
import { message, Modal, Input } from 'ant-design-vue';
|
||||
import { SaveReSubmitInfo } from '@/api/demo/resubmit';
|
||||
import { uploadFile } from '@/api/formrender/index';
|
||||
import { LoadCaseInfoLists, GetCaseInfo, CloseCaseInfo, ImportCaseInfoShpData } from '@/api/audit/index';
|
||||
import { LoadCaseInfoLists, GetCaseInfo, CloseCaseInfo, ImportCaseInfoShpData, UpdateCaseNoBySubject } from '@/api/audit/index';
|
||||
import { useRouter } from 'vue-router';
|
||||
|
||||
const router = useRouter()
|
||||
|
|
@ -160,6 +160,7 @@ const handleOk = async () => {
|
|||
resultQuery.schemeCode = '';
|
||||
const result = await create(resultQuery);
|
||||
if(result){
|
||||
await UpdateCaseNoBySubject({subject: type, id})
|
||||
message.success('发起流程成功');
|
||||
reload()
|
||||
openModal.value = false
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@ import { SaveReSubmitInfo } from '@/api/demo/resubmit';
|
|||
import { uploadFile } from '@/api/formrender/index';
|
||||
import { MainLoadCaseInfoLists, MainGetCaseInfo, MainCloseCaseInfo, MainUpdateCaseInfoShpData } from '@/api/illegalmining/index';
|
||||
import ImportDataModal from '@/components/Audit/ImportDataModal/index.vue'
|
||||
import { UpdateCaseNoBySubject } from '@/api/audit/index';
|
||||
|
||||
const userStore = useUserStore();
|
||||
const userInfo = userStore.getUserInfo;
|
||||
|
|
@ -152,6 +153,7 @@ const handleOk = async () => {
|
|||
resultQuery.schemeCode = '';
|
||||
const result = await create(resultQuery);
|
||||
if(result){
|
||||
await UpdateCaseNoBySubject({id, subject: '非法采矿'})
|
||||
message.success('发起流程成功');
|
||||
reload()
|
||||
openModal.value = false
|
||||
|
|
|
|||
Loading…
Reference in New Issue