提交 5956e4e9 authored 作者: jinrongbin's avatar jinrongbin

文件检查、检查下载接口调试

上级 be7f7589
......@@ -15,6 +15,8 @@ enum Api {
downloadMdb = '/dkgl/dsrwGeoJd/downloadMdb',
downloadGdb = '/dkgl/dsrwGeoJd/downloadGdb',
proviceZgbmCheck = '/dkgl/dsrwGeoJd/proviceZgbmCheck',
checkSuccessDownLoad = '/dkgl/dsrwGeoJd/checkSuccessDownLoad', //文件检查结果下载
fileCheck = '/dkgl/dsrwGeoJd/fileCheck', //文件检查
}
/**
* 下载mdb文件
......@@ -43,6 +45,16 @@ export const provinceAuditsPageList = (params) => defHttp.get({ url: Api.provinc
* @param params
*/
export const proviceZgbmCheck = (params) => defHttp.get({ url: Api.proviceZgbmCheck, params });
/**
* 文件检查
* @param params
*/
export const fileCheck = (params) => defHttp.get({ url: Api.fileCheck, params });
/**
* 检查结果下载
* @param params
*/
export const checkSuccessDownLoad = (params) => defHttp.get({ url: Api.checkSuccessDownLoad, params });
/**
* 列表接口
* @param params
......
......@@ -13,8 +13,8 @@
<a-button type="primary" @click="handleZgSh(true)" v-auth="'yztsjshj:zgbmsh'" v-if="userStore.userInfo.userType ==2">自规部门审核</a-button>
<a-button type="primary" @click="handleZgSh(false)" v-auth="'yztsjshj:zgbmshls'">自规部门审核</a-button>
<a-button type="primary" @click="handleStUp" v-auth="'yztsjshj:stbmtj'">生态部门提交</a-button>
<a-button type="primary" @click="handleStUp" v-auth="'yztsjshj:wjjc'">文件检查</a-button>
<a-button type="primary" @click="handleStUp" v-auth="'yztsjshj:jcjgxz'">检查结果下载</a-button>
<a-button type="primary" @click="handleFileCheck" v-auth="'yztsjshj:wjjc'">文件检查</a-button>
<a-button type="primary" @click="handleCheckResultDownload" v-auth="'yztsjshj:jcjgxz'">检查结果下载</a-button>
<!-- <div style="color: red; text-align: right; flex: 1; line-height: 32px">注:本次数据为全量数据,生成的结果为前一天数据结果!</div> -->
</template>
<!--操作栏-->
......@@ -56,7 +56,7 @@
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
import { useListPage } from '/@/hooks/system/useListPage';
import { columns, searchFormSchema } from './data';
import { list, getDownloadMdb, getDownloadGdb, deleteOne, getExportUrl, saveProvinceAuditCheck, proviceZgbmCheck } from './api';
import { list, getDownloadMdb, getDownloadGdb, deleteOne, getExportUrl, saveProvinceAuditCheck, proviceZgbmCheck, fileCheck, checkSuccessDownLoad } from './api';
import { existDclx, updateDclx, downloadFile, getDkDetail } from '/@/api/common/api';
import { useMessage } from '/@/hooks/web/useMessage';
import { useRouter } from 'vue-router';
......@@ -210,6 +210,22 @@
}
}
}
async function handleFileCheck() {
const res = await fileCheck({ nd: getNd(), jd: getJd() });
if (res) {
createMessage.success('文件检查任务已发起');
}
}
async function handleCheckResultDownload() {
const res = await checkSuccessDownLoad({ nd: getNd(), jd: getJd() });
if (typeof res === 'string' && res.indexOf('/') > -1) {
downloadFile('/sys/common/static' + res, res.split('/')[res.split('/').length - 1]);
return;
}
createMessage.info((res as string) || '文件校验中');
}
/**
* 新增事件
*/
......
......@@ -14,6 +14,8 @@ enum Api {
downloadMdb = '/dkgl/dsrwGeoJd/downloadMdb',
downloadGdb = '/dkgl/dsrwGeoJd/downloadGdb',
cityZgbmCheck = '/dkgl/dsrwGeoJd/cityZgbmCheck', //市级审核校验
checkSuccessDownLoad = '/dkgl/dsrwGeoJd/checkSuccessDownLoad', //文件检查结果下载
fileCheck = '/dkgl/dsrwGeoJd/fileCheck', //文件检查
}
/**
* 下载mdb文件
......@@ -57,6 +59,16 @@ export const findZrzyjList = (params) => defHttp.get({ url: Api.findZrzyjList, p
* @param params
*/
export const cityZgbmCheck = (params) => defHttp.get({ url: Api.cityZgbmCheck, params });
/**
* 文件检查
* @param params
*/
export const fileCheck = (params) => defHttp.get({ url: Api.fileCheck, params });
/**
* 检查结果下载
* @param params
*/
export const checkSuccessDownLoad = (params) => defHttp.get({ url: Api.checkSuccessDownLoad, params });
/**
* 删除单个
* @param params
......
......@@ -11,8 +11,8 @@
<a-button type="primary" @click="handleZgSh(true)" v-auth="'yztsjsj:zgbmsh'" v-if="userStore.userInfo.userType ==2">自规部门审核</a-button>
<a-button type="primary" @click="handleZgSh(false)" v-auth="'yztsjsj:zgbmshls'">自规部门审核</a-button>
<a-button type="primary" @click="handleStUp" v-auth="'yztsjsj:stbmtj'">生态部门提交</a-button>
<a-button type="primary" @click="handleStUp" v-auth="'yztsjsj:wjjc'">文件检查</a-button>
<a-button type="primary" @click="handleStUp" v-auth="'yztsjsj:jcjgxz'">检查结果下载</a-button>
<a-button type="primary" @click="handleFileCheck" v-auth="'yztsjsj:wjjc'">文件检查</a-button>
<a-button type="primary" @click="handleCheckResultDownload" v-auth="'yztsjsj:jcjgxz'">检查结果下载</a-button>
<!-- <div style="color: red; text-align: right; flex: 1; line-height: 32px">注:本次数据为全量数据,生成的结果为前一天数据结果!</div> -->
</template>
<!--操作栏-->
......@@ -46,7 +46,7 @@
import { useModal } from '/@/components/Modal';
import { useListPage } from '/@/hooks/system/useListPage';
import { columns, searchFormSchema } from './data';
import { list, getDownloadMdb, getDownloadGdb, deleteOne, getExportUrl, saveCityAuditCheck, cityZgbmCheck } from './api';
import { list, getDownloadMdb, getDownloadGdb, deleteOne, getExportUrl, saveCityAuditCheck, cityZgbmCheck, fileCheck, checkSuccessDownLoad } from './api';
import { existDclx, updateDclx, downloadFile, getDkDetail } from '/@/api/common/api';
import { useMessage } from '/@/hooks/web/useMessage';
import AddModal from './modules/AddModal.vue'
......@@ -195,6 +195,22 @@
}
}
}
async function handleFileCheck() {
const res = await fileCheck({ nd: getNd(), jd: getJd() });
if (res) {
createMessage.success('文件检查任务已发起');
}
}
async function handleCheckResultDownload() {
const res = await checkSuccessDownLoad({ nd: getNd(), jd: getJd() });
if (typeof res === 'string' && res.indexOf('/') > -1) {
downloadFile('/sys/common/static' + res, res.split('/')[res.split('/').length - 1]);
return;
}
createMessage.info((res as string) || '文件校验中');
}
/**
* 新增事件
*/
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论