提交 3d54137b authored 作者: gjx's avatar gjx

添加清单名录新增编辑的京津翼 添加建设用地统计分析大模块里面的接口调用,填报信息模块写到风险评估填报情况

上级 0ad491d2
......@@ -619,6 +619,10 @@ export const formSchema: FormSchema[] = [
required: true,
componentProps: {
options: [
{
label: '京津冀',
value: '5'
},
{
label: '长江经济带',
value: '1'
......
......@@ -4,13 +4,25 @@
<BasicTable @register="registerTable" :rowSelection="rowSelection">
<!-- 行业分类 -->
<template #form-suspect="{ model, field }">
<a-select v-model:value="model[field]" placeholder="请选择行业分类" :fieldNames="{ label: 'text', value: 'value' }"
:options="isSuspectOptions" @change="changeSuspect"></a-select>
<a-select
v-model:value="model[field]"
placeholder="请选择行业分类"
:fieldNames="{ label: 'text', value: 'value' }"
:options="isSuspectOptions"
@change="changeSuspect"
></a-select>
</template>
<template #form-category="{ model, field }">
<a-tree-select v-model:value="model[field]" show-search placeholder="请选择二级" allow-clear tree-default-expand-all
:field-names="{ label: 'name', value: 'id', children: 'children' }" :tree-data="treeData"
tree-node-filter-prop="label">
<a-tree-select
v-model:value="model[field]"
show-search
placeholder="请选择二级"
allow-clear
tree-default-expand-all
:field-names="{ label: 'name', value: 'id', children: 'children' }"
:tree-data="treeData"
tree-node-filter-prop="label"
>
<template #suffixIcon>
<SmileOutlined />
</template>
......@@ -27,83 +39,79 @@
</template>
<script lang="ts" name="dkgl-fxpg-Filling" setup>
import { ref } from 'vue';
import { BasicTable } from '/@/components/Table';
import { useListPage } from '/@/hooks/system/useListPage';
import { useRouter } from 'vue-router';
import { useMessage } from '/@/hooks/web/useMessage';
import { columns, searchFormSchema, useSuspectsData, useCategoryData } from './data';
import { fillingList, getImportUrl, getExportUrl, submitFxpg } from './api';
import { ref } from 'vue';
import { BasicTable } from '/@/components/Table';
import { useListPage } from '/@/hooks/system/useListPage';
import { useRouter } from 'vue-router';
import { useMessage } from '/@/hooks/web/useMessage';
import { columns, searchFormSchema, useSuspectsData, useCategoryData } from './data';
import { fillingList, getImportUrl, getExportUrl, submitFxpg } from './api';
//注册table数据
const { tableContext } = useListPage({
tableProps: {
title: '风险评估-填报中',
api: fillingList,
columns,
canResize: false,
//定义rowSelection的类型,默认是checkbox多选,可以设置成radio单选
rowKey: 'wrdkid',
rowSelection: { type: 'radio' },
clickToRowSelect: true,
showActionColumn: false,
formConfig: {
labelWidth: 120,
schemas: searchFormSchema,
autoSubmitOnEnter: true,
showAdvancedButton: false,
//注册table数据
const { tableContext } = useListPage({
tableProps: {
title: '风险评估-填报中',
api: fillingList,
columns,
canResize: false,
//定义rowSelection的类型,默认是checkbox多选,可以设置成radio单选
rowKey: 'wrdkid',
rowSelection: { type: 'radio' },
clickToRowSelect: true,
showActionColumn: false,
formConfig: {
labelWidth: 120,
schemas: searchFormSchema,
autoSubmitOnEnter: true,
showAdvancedButton: false,
},
actionColumn: {
width: 120,
},
},
actionColumn: {
width: 120,
exportConfig: {
name: '风险评估-填报中',
url: getExportUrl,
},
},
exportConfig: {
name: '风险评估-填报中',
url: getExportUrl,
},
importConfig: {
url: getImportUrl,
},
});
const isSuspectOptions = useSuspectsData().data; // 行业分类
const useCategory = useCategoryData();
const treeData = useCategory.data; // 行业类别-数据
const changeSuspect = useCategory.changeIsSuspect; // 行业类别-方法
const [registerTable, { reload }, { rowSelection, selectedRowKeys }] = tableContext;
let router = useRouter();
const { createMessage } = useMessage();
importConfig: {
url: getImportUrl,
},
});
const isSuspectOptions = useSuspectsData().data; // 行业分类
const useCategory = useCategoryData();
const treeData = useCategory.data; // 行业类别-数据
const changeSuspect = useCategory.changeIsSuspect; // 行业类别-方法
const [registerTable, { reload }, { rowSelection, selectedRowKeys }] = tableContext;
function filling() {
if (selectedRowKeys.value.length == 0) {
createMessage.info('请选择需要处理的内容,每次只能选中一条');
return
}
let router = useRouter();
const { createMessage } = useMessage();
router.push(`/dkgl/fxpg/UpFilling?wrdkid=${selectedRowKeys.value[0]}`)
function filling() {
if (selectedRowKeys.value.length == 0) {
createMessage.info('请选择需要处理的内容,每次只能选中一条');
return;
}
}
// 查看基本信息
function handleView() {
if (selectedRowKeys.value.length == 0) {
createMessage.info('请选择需要处理的内容,每次只能选中一条');
return
router.push(`/dkgl/fxpg/UpFilling?wrdkid=${selectedRowKeys.value[0]}`);
}
router.push(`/dkgl/fxpg/ViewDetail?wrdkid=${selectedRowKeys.value[0]}`)
}
// 点击提交
async function submit() {
if (selectedRowKeys.value.length == 0) {
createMessage.info('请选择需要处理的内容,每次只能选中一条');
return
// 查看基本信息
function handleView() {
if (selectedRowKeys.value.length == 0) {
createMessage.info('请选择需要处理的内容,每次只能选中一条');
return;
}
router.push(`/dkgl/fxpg/ViewDetail?wrdkid=${selectedRowKeys.value[0]}`);
}
// 点击提交
async function submit() {
if (selectedRowKeys.value.length == 0) {
createMessage.info('请选择需要处理的内容,每次只能选中一条');
return;
}
submitFxpg({ wrdkid: selectedRowKeys.value[0] }, handleSuccess);
}
function handleSuccess() {
reload();
}
submitFxpg({ wrdkid: selectedRowKeys.value[0] }, handleSuccess)
}
function handleSuccess() {
reload()
}
</script>
<style scoped></style>
<template>
<BasicTable @register="registerTable">
<template #tableTitle>
<a-button type="primary" preIcon="ant-design:export-outlined" v-auth="'yhhyd-dc'" @click="onExportXls"> 导出</a-button>
</template>
</BasicTable>
</template>
<script setup lang="ts">
import { BasicTable } from '@/components/Table';
import { useMessage } from '/@/hooks/web/useMessage';
import { useListPage } from '/@/hooks/system/useListPage';
import { YhhyColumns, YhhyseachFormSchema } from './data';
import { yhhydfx, yhhydfxExcel } from './api';
const { createMessage } = useMessage();
const { tableContext, onExportXls } = useListPage({
tableProps: {
title: '',
api: yhhydfx,
columns: YhhyColumns,
beforeFetch(params) {
if (new Date(params.startTime) > new Date(params.endTime)) {
createMessage.error('开始日期不能大于结束日期');
return false;
}
},
canResize: false,
//定义rowSelection的类型,默认是checkbox多选,可以设置成radio单选
rowKey: 'wrdkid',
clickToRowSelect: true,
showActionColumn: false,
formConfig: {
labelWidth: 120,
schemas: YhhyseachFormSchema,
autoSubmitOnEnter: true,
showAdvancedButton: false,
},
actionColumn: {
width: 120,
fixed: 'right',
},
},
exportConfig: {
name: '用户活跃度分析',
url: yhhydfxExcel,
},
});
const [registerTable, {}, {}] = tableContext;
</script>
<template>
<BasicTable @register="registerTable">
<template #tableTitle>
<a-button type="primary" preIcon="ant-design:export-outlined" v-auth="'fgl-dc'" @click="onExportXls"> 导出</a-button>
</template>
</BasicTable>
</template>
<script setup lang="ts">
import { BasicTable } from '@/components/Table';
import { useListPage } from '/@/hooks/system/useListPage';
import { FglColumns, FglseachFormSchema } from './data';
import { fglfx, fglfxExcel } from './api';
const { tableContext, onExportXls } = useListPage({
tableProps: {
title: '',
api: fglfx,
columns: FglColumns,
canResize: false,
//定义rowSelection的类型,默认是checkbox多选,可以设置成radio单选
rowKey: 'wrdkid',
clickToRowSelect: true,
showActionColumn: false,
formConfig: {
labelWidth: 120,
schemas: FglseachFormSchema,
autoSubmitOnEnter: true,
showAdvancedButton: false,
},
actionColumn: {
width: 120,
fixed: 'right',
},
},
exportConfig: {
name: '覆盖率分析',
url: fglfxExcel,
},
});
const [registerTable, {}, {}] = tableContext;
</script>
<template>
<BasicTable @register="registerTable">
<template #tableTitle>
<a-button type="primary" preIcon="ant-design:export-outlined" v-auth="'scdk-dc'" @click="onExportXls"> 导出</a-button>
</template>
</BasicTable>
</template>
<script setup lang="ts">
import { BasicTable } from '@/components/Table';
import { useMessage } from '/@/hooks/web/useMessage';
import { useListPage } from '/@/hooks/system/useListPage';
import { DcColumns, DcseachFormSchema } from './data';
import { scdk, scdkExcel } from './api';
const { createMessage } = useMessage();
const { tableContext, onExportXls } = useListPage({
tableProps: {
title: '',
api: scdk,
columns: DcColumns,
beforeFetch(params) {
if (new Date(params.startTime) > new Date(params.endTime)) {
createMessage.error('开始日期不能大于结束日期');
return false;
}
},
canResize: false,
//定义rowSelection的类型,默认是checkbox多选,可以设置成radio单选
rowKey: 'wrdkid',
clickToRowSelect: true,
showActionColumn: false,
formConfig: {
labelWidth: 120,
schemas: DcseachFormSchema,
autoSubmitOnEnter: true,
showAdvancedButton: false,
},
actionColumn: {
width: 120,
fixed: 'right',
},
},
exportConfig: {
name: '导出删除地块',
url: scdkExcel,
},
});
const [registerTable, {}, {}] = tableContext;
</script>
<template>
<BasicTable @register="registerTable">
<template #form-userLevle="{ model, field }">
<a-select v-model:value="model[field]" placeholder="请选择" :fieldNames="{ label: 'text', value: 'value' }" :options="Options"></a-select>
<a-select
v-model:value="model[field]"
placeholder="请选择"
@change="change(model)"
:fieldNames="{ label: 'text', value: 'value' }"
:options="Options"
></a-select>
</template>
<template #tableTitle>
<a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button>
<a-button type="primary" preIcon="ant-design:export-outlined" v-auth="'dqcb-dc'" @click="onExportXls"> 导出</a-button>
</template>
</BasicTable>
</template>
<script setup lang="ts">
import { ref } from 'vue';
import { BasicTable } from '@/components/Table';
import { useListPage } from '/@/hooks/system/useListPage';
import { excedColumns, searchExcedFormSchema, getUserLevel } from './data';
import { excedList } from './api';
import { excedList, dqcbfxExcel } from './api';
const { tableContext, onExportXls } = useListPage({
tableProps: {
......@@ -37,7 +42,15 @@
fixed: 'right',
},
},
exportConfig: {
name: '地区超标分析',
url: dqcbfxExcel,
},
});
const [registerTable, { reload }, { rowSelection, selectedRows, selectedRowKeys }] = tableContext;
const [registerTable, {}, {}] = tableContext;
const Options = getUserLevel().data;
function change(model) {
model.cityCode = '';
}
</script>
<template>
<BasicTable @register="registerTable">
<template #tableTitle>
<a-button type="primary" preIcon="ant-design:export-outlined" v-auth="'hycb-dc'" @click="onExportXls"> 导出</a-button>
</template>
</BasicTable>
</template>
<script setup lang="ts">
import { BasicTable } from '@/components/Table';
import { useListPage } from '/@/hooks/system/useListPage';
import { HyColumns, HyseachFormSchema } from './data';
import { hycbfx, hycbfxExcel } from './api';
const { tableContext, onExportXls } = useListPage({
tableProps: {
title: '',
api: hycbfx,
columns: HyColumns,
canResize: false,
//定义rowSelection的类型,默认是checkbox多选,可以设置成radio单选
rowKey: 'wrdkid',
clickToRowSelect: true,
showActionColumn: false,
formConfig: {
labelWidth: 120,
schemas: HyseachFormSchema,
autoSubmitOnEnter: true,
showAdvancedButton: false,
},
actionColumn: {
width: 120,
fixed: 'right',
},
},
exportConfig: {
name: '行业超标分析',
url: hycbfxExcel,
},
});
const [registerTable, {}, {}] = tableContext;
</script>
<template>
<BasicTable @register="registerTable">
<template #bodyCell="{ column, text }">
<template v-if="column.dataIndex === 'yqsc'">
<div v-if="text == '用户尚未登录'" class="text-red">{{ text }}</div>
<div v-if="text.includes('未逾期')" class="text-[#84CDFF]">{{ text }}</div>
<div v-if="text.includes('逾期')" class="text-[#FFA584]">{{ text }}</div>
</template>
</template>
<template #tableTitle>
<a-button type="primary" preIcon="ant-design:export-outlined" v-auth="'yqqkjc-dc'" @click="onExportXls"> 导出</a-button>
</template>
</BasicTable>
</template>
<script setup lang="ts">
import { BasicTable } from '@/components/Table';
import { useListPage } from '/@/hooks/system/useListPage';
import { YqColumns, YqseachFormSchema } from './data';
import { yqqkjc, yqqkjcExcel } from './api';
const { tableContext, onExportXls } = useListPage({
tableProps: {
title: '',
api: yqqkjc,
columns: YqColumns,
canResize: false,
//定义rowSelection的类型,默认是checkbox多选,可以设置成radio单选
rowKey: 'wrdkid',
clickToRowSelect: true,
showActionColumn: false,
formConfig: {
labelWidth: 120,
schemas: YqseachFormSchema,
autoSubmitOnEnter: true,
showAdvancedButton: false,
},
actionColumn: {
width: 120,
fixed: 'right',
},
},
exportConfig: {
name: '逾期情况监测',
url: yqqkjcExcel,
},
});
const [registerTable, {}, {}] = tableContext;
</script>
<template>
<BasicTable @register="registerTable">
<template #tableTitle>
<a-button type="primary" preIcon="ant-design:export-outlined" v-auth="'qbdk-dc'" @click="onExportXls"> 导出</a-button>
</template>
</BasicTable>
</template>
<script setup lang="ts">
import { BasicTable } from '@/components/Table';
import { useListPage } from '/@/hooks/system/useListPage';
import { QbdkColumns, QbdkseachFormSchema } from './data';
import { qbdkbb, qbdkbbExcel } from './api';
const { tableContext, onExportXls } = useListPage({
tableProps: {
title: '',
api: qbdkbb,
columns: QbdkColumns,
canResize: false,
//定义rowSelection的类型,默认是checkbox多选,可以设置成radio单选
rowKey: 'wrdkid',
clickToRowSelect: true,
showActionColumn: false,
formConfig: {
labelWidth: 120,
schemas: QbdkseachFormSchema,
autoSubmitOnEnter: true,
showAdvancedButton: false,
},
actionColumn: {
width: 120,
fixed: 'right',
},
},
exportConfig: {
name: '全部地块报表',
url: qbdkbbExcel,
},
});
const [registerTable, {}, {}] = tableContext;
</script>
<template>
<BasicTable @register="registerTable">
<template #tableTitle>
<a-button type="primary" preIcon="ant-design:export-outlined" v-auth="'jzsjtj-dc'" @click="onExportXls"> 导出</a-button>
</template>
</BasicTable>
</template>
<script setup lang="ts">
import { BasicTable } from '@/components/Table';
import { useListPage } from '/@/hooks/system/useListPage';
import { JzsjColumns, JzsjseachFormSchema } from './data';
import { jzsjtjfx, jzsjtjfxExcel } from './api';
const { tableContext, onExportXls } = useListPage({
tableProps: {
title: '',
api: jzsjtjfx,
columns: JzsjColumns,
canResize: false,
//定义rowSelection的类型,默认是checkbox多选,可以设置成radio单选
rowKey: 'wrdkid',
clickToRowSelect: true,
showActionColumn: false,
formConfig: {
labelWidth: 120,
schemas: JzsjseachFormSchema,
autoSubmitOnEnter: true,
showAdvancedButton: false,
},
actionColumn: {
width: 120,
fixed: 'right',
},
},
exportConfig: {
name: '截止时间统计分析',
url: jzsjtjfxExcel,
},
});
const [registerTable, {}, {}] = tableContext;
</script>
......@@ -2,4 +2,50 @@ import { defHttp } from '/@/utils/http/axios';
// 地区超标分析
export const excedList = (params) => {
return defHttp.get({ url: `/jsyd/dqcbfx`, params });
}
\ No newline at end of file
}
// 地块超标导出
export const dqcbfxExcel = '/jsyd/dqcbfxExcel'
// 行业超标分析
export const hycbfx = (params) => {
return defHttp.get({ url: `/jsyd/hycbfx`, params });
}
// 行业超标分析导出
export const hycbfxExcel = '/jsyd/hycbfxExcel'
// 逾期情况监测
export const yqqkjc = (params) => {
return defHttp.get({ url: `/jsyd/yqqkjc`, params });
}
// 逾期情况监测导出
export const yqqkjcExcel = '/jsyd/yqqkjcExcel'
// 全部地块报表
export const qbdkbb = (params) => {
return defHttp.get({ url: `/jsyd/qbdkbb`, params });
}
// 导出
export const qbdkbbExcel = '/jsyd/qbdkbbExcel'
//截止时间统计分析
export const jzsjtjfx = (params) => {
return defHttp.get({ url: `/jsyd/jzsjtjfx`, params });
}
// 导出
export const jzsjtjfxExcel = '/jsyd/jzsjtjfxExcel'
//覆盖率
export const fglfx = (params) => {
return defHttp.get({ url: `/jsyd/fglfx`, params });
}
// 导出
export const fglfxExcel = '/jsyd/fglfxExcel'
//覆盖率
export const yhhydfx = (params) => {
return defHttp.get({ url: `/jsyd/yhhydfx`, params });
}
// 导出
export const yhhydfxExcel = '/jsyd/yhhydfxExcel'
//导出删除地块
export const scdk = (params) => {
return defHttp.get({ url: `/jsyd/scdk`, params });
}
// 导出
export const scdkExcel = '/jsyd/scdkExcel'
\ No newline at end of file
<template>
<BasicTable @register="registerTable">
<template #form-userLevle="{ model, field }">
<a-select
v-model:value="model[field]"
placeholder="请选择"
@change="change(model)"
:fieldNames="{ label: 'text', value: 'value' }"
:options="Options"
></a-select>
</template>
<template #tableTitle>
<a-button type="primary" preIcon="ant-design:export-outlined" v-auth="'tbxx-dc'" @click="onExportXls"> 导出</a-button>
</template>
</BasicTable>
</template>
<script setup lang="ts">
import { BasicTable } from '@/components/Table';
import { useListPage } from '/@/hooks/system/useListPage';
import { DktbColumns, DktbsearchFormSchema, getUserLevel } from './data';
import { dkdctbqktj, dkdctbqktjExcel } from './api';
const { tableContext, onExportXls } = useListPage({
tableProps: {
title: '',
api: dkdctbqktj,
columns: DktbColumns,
canResize: false,
//定义rowSelection的类型,默认是checkbox多选,可以设置成radio单选
rowKey: 'wrdkid',
clickToRowSelect: true,
showActionColumn: false,
formConfig: {
labelWidth: 120,
schemas: DktbsearchFormSchema,
autoSubmitOnEnter: true,
showAdvancedButton: false,
},
actionColumn: {
width: 120,
fixed: 'right',
},
},
exportConfig: {
name: '地块调查填报情况统计',
url: dkdctbqktjExcel,
},
});
const [registerTable, {}, {}] = tableContext;
const Options = getUserLevel().data;
function change(model) {
model.cityCode = '';
}
</script>
<template>
<BasicTable @register="registerTable">
<template #form-userLevle="{ model, field }">
<a-select
v-model:value="model[field]"
placeholder="请选择"
@change="change(model)"
:fieldNames="{ label: 'text', value: 'value' }"
:options="Options"
></a-select>
</template>
<template #form-category="{ model, field }">
<a-tree-select
v-model:value="model[field]"
show-search
placeholder="请选择"
allow-clear
tree-default-expand-all
:field-names="{ label: 'name', value: 'id', children: 'children' }"
:tree-data="treeData"
tree-node-filter-prop="label"
>
<template #suffixIcon>
<SmileOutlined />
</template>
</a-tree-select>
</template>
<template #tableTitle>
<a-button type="primary" preIcon="ant-design:export-outlined" v-auth="'tbxx-dc'" @click="onExportXls"> 导出</a-button>
</template>
</BasicTable>
</template>
<script setup lang="ts">
import { BasicTable } from '@/components/Table';
import { useListPage } from '/@/hooks/system/useListPage';
import { FlColumns, FlsearchFormSchema, useCategoryData, getUserLevel } from './data';
import { dkflyjqktj, dkflyjqktjExcel } from './api';
const { tableContext, onExportXls } = useListPage({
tableProps: {
title: '',
api: dkflyjqktj,
columns: FlColumns,
canResize: false,
beforeFetch(params: any) {
if (params.hylb) {
if (params.hylb.length == 1) {
params.hyml = params.hylb;
} else if (params.hylb.length == 2) {
params.hydl = params.hylb;
} else if (params.hylb.length == 3) {
params.hyzl = params.hylb;
} else if (params.hylb.length == 4) {
params.hyxl = params.hylb;
}
}
},
rowKey: 'wrdkid',
clickToRowSelect: true,
showActionColumn: false,
formConfig: {
labelWidth: 120,
schemas: FlsearchFormSchema,
autoSubmitOnEnter: true,
showAdvancedButton: false,
},
actionColumn: {
width: 120,
fixed: 'right',
},
},
exportConfig: {
name: '地块法理依据情况统计',
url: dkflyjqktjExcel,
},
});
const [registerTable, {}, {}] = tableContext;
const useCategory = useCategoryData();
const treeData = useCategory.data; // 行业类别-数据
const Options = getUserLevel().data;
function change(model) {
model.cityCode = '';
}
</script>
<template>
<BasicTable @register="registerTable">
<template #form-userLevle="{ model, field }">
<a-select
v-model:value="model[field]"
placeholder="请选择"
@change="change(model)"
:fieldNames="{ label: 'text', value: 'value' }"
:options="Options"
></a-select>
</template>
<template #form-category="{ model, field }">
<a-tree-select
v-model:value="model[field]"
show-search
placeholder="请选择"
allow-clear
tree-default-expand-all
:field-names="{ label: 'name', value: 'id', children: 'children' }"
:tree-data="treeData"
tree-node-filter-prop="label"
>
<template #suffixIcon>
<SmileOutlined />
</template>
</a-tree-select>
</template>
<template #tableTitle>
<a-button type="primary" v-auth="'tbxx-jbxx'" @click="view">查看基本信息</a-button>
<a-button type="primary" preIcon="ant-design:export-outlined" v-auth="'tbxx-dc'" @click="onExportXls"> 导出</a-button>
</template>
</BasicTable>
</template>
<script setup lang="ts">
import { BasicTable } from '@/components/Table';
import { useListPage } from '/@/hooks/system/useListPage';
import { useMessage } from '/@/hooks/web/useMessage';
import { useRouter } from 'vue-router';
import { DkfxpgColumns, DkfxpgsearchFormSchema, useCategoryData, getUserLevel } from './data';
import { dkfxpgtbqk, dkfxpgtbqkExcel } from './api';
const { createMessage } = useMessage();
let router = useRouter();
const { tableContext, onExportXls } = useListPage({
tableProps: {
title: '',
api: dkfxpgtbqk,
columns: DkfxpgColumns,
canResize: false,
beforeFetch(params: any) {
if (params.hylb) {
if (params.hylb.length == 1) {
params.hyml = params.hylb;
} else if (params.hylb.length == 2) {
params.hydl = params.hylb;
} else if (params.hylb.length == 3) {
params.hyzl = params.hylb;
} else if (params.hylb.length == 4) {
params.hyxl = params.hylb;
}
}
},
rowSelection: { type: 'radio' },
rowKey: 'wrdkid',
clickToRowSelect: true,
showActionColumn: false,
formConfig: {
labelWidth: 120,
schemas: DkfxpgsearchFormSchema,
autoSubmitOnEnter: true,
showAdvancedButton: false,
},
actionColumn: {
width: 120,
fixed: 'right',
},
},
exportConfig: {
name: '地块风险评估填报情况',
url: dkfxpgtbqkExcel,
},
});
const [registerTable, {}, { rowSelection, selectedRows, selectedRowKeys }] = tableContext;
const useCategory = useCategoryData();
const treeData = useCategory.data; // 行业类别-数据
const Options = getUserLevel().data;
function change(model) {
model.cityCode = '';
}
// 点击查看基本信息
function view() {
if (selectedRowKeys.value.length == 0) {
createMessage.info('请选择需要查看的内容,每次只能选中一条');
return;
}
router.push(`/dkgl/fxpg/ViewData?wrdkid=${selectedRowKeys.value[0]}`);
}
</script>
<template>
<BasicTable @register="registerTable">
<template #form-userLevle="{ model, field }">
<a-select
v-model:value="model[field]"
placeholder="请选择"
@change="change(model)"
:fieldNames="{ label: 'text', value: 'value' }"
:options="Options"
></a-select>
</template>
<template #form-category="{ model, field }">
<a-tree-select
v-model:value="model[field]"
show-search
placeholder="请选择"
allow-clear
tree-default-expand-all
:field-names="{ label: 'name', value: 'id', children: 'children' }"
:tree-data="treeData"
tree-node-filter-prop="label"
>
<template #suffixIcon>
<SmileOutlined />
</template>
</a-tree-select>
</template>
<template #tableTitle>
<a-button type="primary" v-auth="'tbxx-jbxx'" @click="view">查看基本信息</a-button>
<a-button type="primary" preIcon="ant-design:export-outlined" v-auth="'tbxx-dc'" @click="onExportXls"> 导出</a-button>
</template>
</BasicTable>
</template>
<script setup lang="ts">
import { BasicTable } from '@/components/Table';
import { useListPage } from '/@/hooks/system/useListPage';
import { useMessage } from '/@/hooks/web/useMessage';
import { useRouter } from 'vue-router';
import { CdxdColumns, CdxdsearchFormSchema, useCategoryData, getUserLevel } from './data';
import { dkcdAndxddcqk, dkcdAndxddcqkExcel } from './api';
const { createMessage } = useMessage();
let router = useRouter();
const { tableContext, onExportXls } = useListPage({
tableProps: {
title: '',
api: dkcdAndxddcqk,
columns: CdxdColumns,
canResize: false,
beforeFetch(params: any) {
if (params.hylb) {
if (params.hylb.length == 1) {
params.hyml = params.hylb;
} else if (params.hylb.length == 2) {
params.hydl = params.hylb;
} else if (params.hylb.length == 3) {
params.hyzl = params.hylb;
} else if (params.hylb.length == 4) {
params.hyxl = params.hylb;
}
}
},
rowSelection: { type: 'radio' },
rowKey: 'wrdkid',
clickToRowSelect: true,
showActionColumn: false,
formConfig: {
labelWidth: 120,
schemas: CdxdsearchFormSchema,
autoSubmitOnEnter: true,
showAdvancedButton: false,
},
actionColumn: {
width: 120,
fixed: 'right',
},
},
exportConfig: {
name: '地块初调+详调调查情况',
url: dkcdAndxddcqkExcel,
},
});
const [registerTable, {}, { rowSelection, selectedRows, selectedRowKeys }] = tableContext;
const useCategory = useCategoryData();
const treeData = useCategory.data; // 行业类别-数据
const Options = getUserLevel().data;
function change(model) {
model.cityCode = '';
}
// 点击查看基本信息
function view() {
if (selectedRowKeys.value.length == 0) {
createMessage.info('请选择需要查看的内容,每次只能选中一条');
return;
}
router.push(`/dkgl/investigate/modal/ViewData?wrdkid=${selectedRowKeys.value[0]}`);
}
</script>
<template>
<BasicTable @register="registerTable">
<template #form-userLevle="{ model, field }">
<a-select
v-model:value="model[field]"
placeholder="请选择"
@change="change(model)"
:fieldNames="{ label: 'text', value: 'value' }"
:options="Options"
></a-select>
</template>
<template #form-category="{ model, field }">
<a-tree-select
v-model:value="model[field]"
show-search
placeholder="请选择"
allow-clear
tree-default-expand-all
:field-names="{ label: 'name', value: 'id', children: 'children' }"
:tree-data="treeData"
tree-node-filter-prop="label"
>
<template #suffixIcon>
<SmileOutlined />
</template>
</a-tree-select>
</template>
<template #tableTitle>
<a-button type="primary" v-auth="'tbxx-jbxx'" @click="view">查看基本信息</a-button>
<a-button type="primary" preIcon="ant-design:export-outlined" v-auth="'tbxx-dc'" @click="onExportXls"> 导出</a-button>
</template>
</BasicTable>
</template>
<script setup lang="ts">
import { BasicTable } from '@/components/Table';
import { useListPage } from '/@/hooks/system/useListPage';
import { useMessage } from '/@/hooks/web/useMessage';
import { useRouter } from 'vue-router';
import { DkcbColumns, DkcbsearchFormSchema, useCategoryData, getUserLevel } from './data';
import { dkxxdcqk, dkxxdcqkExcel } from './api';
const { createMessage } = useMessage();
let router = useRouter();
const { tableContext, onExportXls } = useListPage({
tableProps: {
title: '',
api: dkxxdcqk,
columns: DkcbColumns,
canResize: false,
beforeFetch(params: any) {
if (params.hylb) {
if (params.hylb.length == 1) {
params.hyml = params.hylb;
} else if (params.hylb.length == 2) {
params.hydl = params.hylb;
} else if (params.hylb.length == 3) {
params.hyzl = params.hylb;
} else if (params.hylb.length == 4) {
params.hyxl = params.hylb;
}
}
},
rowSelection: { type: 'radio' },
rowKey: 'wrdkid',
clickToRowSelect: true,
showActionColumn: false,
formConfig: {
labelWidth: 120,
schemas: DkcbsearchFormSchema,
autoSubmitOnEnter: true,
showAdvancedButton: false,
},
actionColumn: {
width: 120,
fixed: 'right',
},
},
exportConfig: {
name: '地块详细调查情况',
url: dkxxdcqkExcel,
},
});
const [registerTable, {}, { rowSelection, selectedRows, selectedRowKeys }] = tableContext;
const useCategory = useCategoryData();
const treeData = useCategory.data; // 行业类别-数据
const Options = getUserLevel().data;
function change(model) {
model.cityCode = '';
}
// 点击查看基本信息
function view() {
if (selectedRowKeys.value.length == 0) {
createMessage.info('请选择需要查看的内容,每次只能选中一条');
return;
}
router.push(`/dkgl/investigate/modal/ViewData?wrdkid=${selectedRowKeys.value[0]}`);
}
</script>
<template>
<BasicTable @register="registerTable">
<template #form-userLevle="{ model, field }">
<a-select
v-model:value="model[field]"
placeholder="请选择"
@change="change(model)"
:fieldNames="{ label: 'text', value: 'value' }"
:options="Options"
></a-select>
</template>
<template #form-category="{ model, field }">
<a-tree-select
v-model:value="model[field]"
show-search
placeholder="请选择"
allow-clear
tree-default-expand-all
:field-names="{ label: 'name', value: 'id', children: 'children' }"
:tree-data="treeData"
tree-node-filter-prop="label"
>
<template #suffixIcon>
<SmileOutlined />
</template>
</a-tree-select>
</template>
<template #tableTitle>
<a-button type="primary" v-auth="'tbxx-jbxx'" @click="view">查看基本信息</a-button>
<a-button type="primary" preIcon="ant-design:export-outlined" v-auth="'tbxx-dc'" @click="onExportXls"> 导出</a-button>
</template>
</BasicTable>
</template>
<script setup lang="ts">
import { BasicTable } from '@/components/Table';
import { useListPage } from '/@/hooks/system/useListPage';
import { useMessage } from '/@/hooks/web/useMessage';
import { useRouter } from 'vue-router';
import { DkcbColumns, DkcbsearchFormSchema, useCategoryData, getUserLevel } from './data';
import { dkcbdcqk, dkcbdcqkExcel } from './api';
const { createMessage } = useMessage();
let router = useRouter();
const { tableContext, onExportXls } = useListPage({
tableProps: {
title: '',
api: dkcbdcqk,
columns: DkcbColumns,
canResize: false,
beforeFetch(params: any) {
if (params.hylb) {
if (params.hylb.length == 1) {
params.hyml = params.hylb;
} else if (params.hylb.length == 2) {
params.hydl = params.hylb;
} else if (params.hylb.length == 3) {
params.hyzl = params.hylb;
} else if (params.hylb.length == 4) {
params.hyxl = params.hylb;
}
}
},
rowSelection: { type: 'radio' },
rowKey: 'wrdkid',
clickToRowSelect: true,
showActionColumn: false,
formConfig: {
labelWidth: 120,
schemas: DkcbsearchFormSchema,
autoSubmitOnEnter: true,
showAdvancedButton: false,
},
actionColumn: {
width: 120,
fixed: 'right',
},
},
exportConfig: {
name: '地块初步调查情况',
url: dkcbdcqkExcel,
},
});
const [registerTable, {}, { rowSelection, selectedRows, selectedRowKeys }] = tableContext;
const useCategory = useCategoryData();
const treeData = useCategory.data; // 行业类别-数据
const Options = getUserLevel().data;
function change(model) {
model.cityCode = '';
}
// 点击查看基本信息
function view() {
if (selectedRowKeys.value.length == 0) {
createMessage.info('请选择需要查看的内容,每次只能选中一条');
return;
}
router.push(`/dkgl/investigate/modal/ViewData?wrdkid=${selectedRowKeys.value[0]}`);
}
</script>
<template>
<BasicTable @register="registerTable">
<template #form-category="{ model, field }">
<a-tree-select
v-model:value="model[field]"
show-search
placeholder="请选择"
allow-clear
tree-default-expand-all
:field-names="{ label: 'name', value: 'id', children: 'children' }"
:tree-data="treeData"
tree-node-filter-prop="label"
>
<template #suffixIcon>
<SmileOutlined />
</template>
</a-tree-select>
</template>
<template #tableTitle>
<a-button type="primary" preIcon="ant-design:export-outlined" v-auth="'tbxx-dc'" @click="onExportXls"> 导出</a-button>
</template>
</BasicTable>
</template>
<script setup lang="ts">
import { BasicTable } from '@/components/Table';
import { useListPage } from '/@/hooks/system/useListPage';
import { Columns, searchFormSchema, useSuspectsData, useCategoryData } from './data';
import { dkcjtbxx, dkcjtbxxExcel } from './api';
const { tableContext, onExportXls } = useListPage({
tableProps: {
title: '',
api: dkcjtbxx,
columns: Columns,
canResize: false,
beforeFetch(params: any) {
if (params.hylb) {
if (params.hylb.length == 1) {
params.hyml = params.hylb;
} else if (params.hylb.length == 2) {
params.hydl = params.hylb;
} else if (params.hylb.length == 3) {
params.hyzl = params.hylb;
} else if (params.hylb.length == 4) {
params.hyxl = params.hylb;
}
}
},
rowKey: 'wrdkid',
clickToRowSelect: true,
showActionColumn: false,
formConfig: {
labelWidth: 120,
schemas: searchFormSchema,
autoSubmitOnEnter: true,
showAdvancedButton: false,
},
actionColumn: {
width: 120,
fixed: 'right',
},
},
exportConfig: {
name: '地块创建填报信息',
url: dkcjtbxxExcel,
},
});
const [registerTable, {}, {}] = tableContext;
const useCategory = useCategoryData();
const treeData = useCategory.data; // 行业类别-数据
</script>
<template>
<BasicTable @register="registerTable">
<template #form-userLevle="{ model, field }">
<a-select
v-model:value="model[field]"
placeholder="请选择"
@change="change(model)"
:fieldNames="{ label: 'text', value: 'value' }"
:options="Options"
></a-select>
</template>
<template #form-category="{ model, field }">
<a-tree-select
v-model:value="model[field]"
show-search
placeholder="请选择"
allow-clear
tree-default-expand-all
:field-names="{ label: 'name', value: 'id', children: 'children' }"
:tree-data="treeData"
tree-node-filter-prop="label"
>
<template #suffixIcon>
<SmileOutlined />
</template>
</a-tree-select>
</template>
<template #tableTitle>
<a-button type="primary" preIcon="ant-design:export-outlined" v-auth="'tbxx-dc'" @click="onExportXls"> 导出</a-button>
</template>
</BasicTable>
</template>
<script setup lang="ts">
import { BasicTable } from '@/components/Table';
import { useListPage } from '/@/hooks/system/useListPage';
import { DkfwColumns, DkfwsearchFormSchema, useCategoryData, getUserLevel } from './data';
import { dkgzfwqktj, dkgzfwqktjExcel } from './api';
const { tableContext, onExportXls } = useListPage({
tableProps: {
title: '',
api: dkgzfwqktj,
columns: DkfwColumns,
canResize: false,
beforeFetch(params: any) {
if (params.hylb) {
if (params.hylb.length == 1) {
params.hyml = params.hylb;
} else if (params.hylb.length == 2) {
params.hydl = params.hylb;
} else if (params.hylb.length == 3) {
params.hyzl = params.hylb;
} else if (params.hylb.length == 4) {
params.hyxl = params.hylb;
}
}
},
rowKey: 'wrdkid',
clickToRowSelect: true,
showActionColumn: false,
formConfig: {
labelWidth: 120,
schemas: DkfwsearchFormSchema,
autoSubmitOnEnter: true,
showAdvancedButton: false,
},
actionColumn: {
width: 120,
fixed: 'right',
},
},
exportConfig: {
name: '地块工作范围情况统计',
url: dkgzfwqktjExcel,
},
});
const [registerTable, {}, {}] = tableContext;
const useCategory = useCategoryData();
const treeData = useCategory.data; // 行业类别-数据
const Options = getUserLevel().data;
function change(model) {
model.cityCode = '';
}
</script>
<template>
<BasicTable @register="registerTable">
<template #form-userLevle="{ model, field }">
<a-select
v-model:value="model[field]"
placeholder="请选择"
@change="change(model)"
:fieldNames="{ label: 'text', value: 'value' }"
:options="Options"
></a-select>
</template>
<template #form-category="{ model, field }">
<a-tree-select
v-model:value="model[field]"
show-search
placeholder="请选择"
allow-clear
tree-default-expand-all
:field-names="{ label: 'name', value: 'id', children: 'children' }"
:tree-data="treeData"
tree-node-filter-prop="label"
>
<template #suffixIcon>
<SmileOutlined />
</template>
</a-tree-select>
</template>
<template #tableTitle>
<a-button type="primary" preIcon="ant-design:export-outlined" v-auth="'tbxx-dc'" @click="onExportXls"> 导出</a-button>
</template>
</BasicTable>
</template>
<script setup lang="ts">
import { BasicTable } from '@/components/Table';
import { useListPage } from '/@/hooks/system/useListPage';
import { DkgzColumns, DkgzsearchFormSchema, useCategoryData, getUserLevel } from './data';
import { dkgzlxqktj, dkgzlxqktjExcel } from './api';
const { tableContext, onExportXls } = useListPage({
tableProps: {
title: '',
api: dkgzlxqktj,
columns: DkgzColumns,
canResize: false,
beforeFetch(params: any) {
if (params.hylb) {
if (params.hylb.length == 1) {
params.hyml = params.hylb;
} else if (params.hylb.length == 2) {
params.hydl = params.hylb;
} else if (params.hylb.length == 3) {
params.hyzl = params.hylb;
} else if (params.hylb.length == 4) {
params.hyxl = params.hylb;
}
}
},
rowKey: 'wrdkid',
clickToRowSelect: true,
showActionColumn: false,
formConfig: {
labelWidth: 120,
schemas: DkgzsearchFormSchema,
autoSubmitOnEnter: true,
showAdvancedButton: false,
},
actionColumn: {
width: 120,
fixed: 'right',
},
},
exportConfig: {
name: '地块工作类型情况统计',
url: dkgzlxqktjExcel,
},
});
const [registerTable, {}, {}] = tableContext;
const useCategory = useCategoryData();
const treeData = useCategory.data; // 行业类别-数据
const Options = getUserLevel().data;
function change(model) {
model.cityCode = '';
}
</script>
import { defHttp } from '/@/utils/http/axios';
//地块创建填报信息
export const dkcjtbxx = (params) => {
return defHttp.get({ url: `/tbxxtj/dkcjtbxx`, params });
}
// 导出
export const dkcjtbxxExcel = '/tbxxtj/dkcjtbxxExcel'
//法理依据
export const dkflyjqktj = (params) => {
return defHttp.get({ url: `/tbxxtj/dkflyjqktj`, params });
}
// 导出
export const dkflyjqktjExcel = '/tbxxtj/dkflyjqktjExcel'
//地块工作类型情况统计
export const dkgzlxqktj = (params) => {
return defHttp.get({ url: `/tbxxtj/dkgzlxqktj`, params });
}
// 导出
export const dkgzlxqktjExcel = '/tbxxtj/dkgzlxqktjExcel'
// 地块工作范围情况统计
export const dkgzfwqktj = (params) => {
return defHttp.get({ url: `/tbxxtj/dkgzfwqktj`, params });
}
// 导出
export const dkgzfwqktjExcel = '/tbxxtj/dkgzfwqktjExcel'
// 地块初步调查情况
export const dkcbdcqk = (params) => {
return defHttp.get({ url: `/tbxxtj/dkcbdcqk`, params });
}
// 导出
export const dkcbdcqkExcel = '/tbxxtj/dkcbdcqkExcel'
// 地块详细调查情况
export const dkxxdcqk = (params) => {
return defHttp.get({ url: `/tbxxtj/dkxxdcqk`, params });
}
// 导出
export const dkxxdcqkExcel = '/tbxxtj/dkxxdcqkExcel'
// 地块初调+详调调查情况
export const dkcdAndxddcqk = (params) => {
return defHttp.get({ url: `/tbxxtj/dkcdAndxddcqk`, params });
}
// 导出
export const dkcdAndxddcqkExcel = '/tbxxtj/dkcdAndxddcqkExcel'
// 地块调查填报情况统计
export const dkdctbqktj = (params) => {
return defHttp.get({ url: `/tbxxtj/dkdctbqktj`, params });
}
// 导出
export const dkdctbqktjExcel = '/tbxxtj/dkdctbqktjExcel'
// 地块风险评估填报情况
export const dkfxpgtbqk = (params) => {
return defHttp.get({ url: `/tbxxtj/dkfxpgtbqk`, params });
}
// 导出
export const dkfxpgtbqkExcel = '/tbxxtj/dkfxpgtbqkExcel'
\ No newline at end of file
差异被折叠。
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论