From 3d2ad7ee3dccbbb5f8e682a5578f64098372b447 Mon Sep 17 00:00:00 2001 From: zhc077 <565291854@qq.com> Date: Fri, 1 Nov 2024 16:49:16 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E7=AE=97=E4=B9=A6-=E8=B4=A2=E6=94=BF?= =?UTF-8?q?=E6=8B=A8=E6=AC=BE=E3=80=81=E5=B9=B4=E5=BA=A6=E9=A2=84=E7=AE=97?= =?UTF-8?q?=E8=A1=A8=20=E5=8A=9F=E8=83=BD=E6=B7=BB=E5=8A=A0=2010.31?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../depfile/controller/DepfileController.java | 27 +++++++++++++ .../src/views/depfile/Depfile.api.ts | 3 ++ .../src/views/depfile/Depfile.data.ts | 38 +++++++++++++++++++ .../kejigongguan/xiangmushu/FuJianDemo.vue | 26 +++++++++++++ .../kejigongguan/xiangmushu/index.vue | 2 +- 5 files changed, 95 insertions(+), 1 deletion(-) diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depfile/controller/DepfileController.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depfile/controller/DepfileController.java index ccfcaad..cc196ab 100644 --- a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depfile/controller/DepfileController.java +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depfile/controller/DepfileController.java @@ -13,6 +13,7 @@ import java.net.URLDecoder; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import org.apache.shiro.SecurityUtils; import org.jeecg.common.api.vo.Result; import org.jeecg.common.system.query.QueryGenerator; @@ -28,6 +29,8 @@ import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import lombok.extern.slf4j.Slf4j; +import org.jeecg.modules.system.entity.SysDepart; +import org.jeecg.modules.system.service.ISysDepartService; import org.jeecgframework.poi.excel.ExcelImportUtil; import org.jeecgframework.poi.excel.def.NormalExcelConstants; import org.jeecgframework.poi.excel.entity.ExportParams; @@ -61,6 +64,9 @@ public class DepfileController extends JeecgController @Autowired private IDepadminlxService depadminlxService; + @Autowired + private ISysDepartService iSysDepartService; + /** * 分页列表查询 * @@ -85,6 +91,27 @@ public class DepfileController extends JeecgController return Result.OK(pageList); } + /** + * @description: 申报书-单位管理员上传附件查询 + * @param: [depfile, pageNo, pageSize, req] + * @return: org.jeecg.common.api.vo.Result> + * @author: z.h.c + * @date: 24/11/1 16:38 + */ + @ApiOperation(value="申报书-单位管理员上传附件查询", notes="申报书-单位管理员上传附件查询") + @GetMapping(value = "/getDepFileList") + public Result> getDepFileList(Depfile depfile, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + SysDepart sysDepart = iSysDepartService.getOne(new LambdaQueryWrapper().eq(SysDepart::getOrgCode, depfile.getDepid())); + depfile.setDepid(sysDepart.getId()); + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(depfile, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = depfileService.page(page, queryWrapper); + return Result.OK(pageList); + } + /** * 添加 * diff --git a/jeecgboot-vue3/src/views/depfile/Depfile.api.ts b/jeecgboot-vue3/src/views/depfile/Depfile.api.ts index 7ee2b34..cde26ab 100644 --- a/jeecgboot-vue3/src/views/depfile/Depfile.api.ts +++ b/jeecgboot-vue3/src/views/depfile/Depfile.api.ts @@ -5,6 +5,7 @@ const { createConfirm } = useMessage(); enum Api { list = '/depfile/depfile/list', + getDepFileList = '/depfile/depfile/getDepFileList', save='/depfile/depfile/add', edit='/depfile/depfile/edit', deleteOne = '/depfile/depfile/delete', @@ -30,6 +31,8 @@ export const getImportUrl = Api.importExcel; */ export const list = (params) => defHttp.get({ url: Api.list, params }); +export const listDepFile = (params) => defHttp.get({ url: Api.getDepFileList, params }); + /** * 删除单个 * @param params diff --git a/jeecgboot-vue3/src/views/depfile/Depfile.data.ts b/jeecgboot-vue3/src/views/depfile/Depfile.data.ts index 5e30b38..0840478 100644 --- a/jeecgboot-vue3/src/views/depfile/Depfile.data.ts +++ b/jeecgboot-vue3/src/views/depfile/Depfile.data.ts @@ -42,6 +42,44 @@ export const columns: BasicColumn[] = [ }, ]; +export const columns2: BasicColumn[] = [ + /*{ + title: '部门名称', + align: "center", + dataIndex: 'depid_dictText' + },*/ + { + title: '附件名称', + align: "center", + dataIndex: 'filename' + }, + /*{ + title: '认定部门及批号', + align: "center", + dataIndex: 'depnumber' + }, + { + title: '认定时间', + align: "center", + dataIndex: 'rdtime' + },*/ + { + title: '附件', + align: "center", + dataIndex: 'upfile', + }, + { + title: '类型', + align: "center", + dataIndex: 'filehz' + }, + /* { + title: '文件类型', + align: "center", + dataIndex: 'filelx_dictText' + },*/ +]; + // 高级查询数据 export const superQuerySchema = { depid: {title: '部门名称',order: 0,view: 'sel_search', type: 'string',dictTable: "sys_depart", dictCode: 'id', dictText: 'depart_name',}, diff --git a/jeecgboot-vue3/src/views/projectApplication/kejigongguan/xiangmushu/FuJianDemo.vue b/jeecgboot-vue3/src/views/projectApplication/kejigongguan/xiangmushu/FuJianDemo.vue index f6d37d5..2ee3a2d 100644 --- a/jeecgboot-vue3/src/views/projectApplication/kejigongguan/xiangmushu/FuJianDemo.vue +++ b/jeecgboot-vue3/src/views/projectApplication/kejigongguan/xiangmushu/FuJianDemo.vue @@ -22,6 +22,9 @@ +
+ +
返回
@@ -38,6 +41,8 @@ import {list, deleteOne, batchDelete, getImportUrl,getExportUrl} from '/@/views/ import { downloadFile } from '/@/utils/common/renderUtils'; import { useUserStore } from '/@/store/modules/user'; import {useRoute, useRouter} from "vue-router"; +import {listDepFile} from "@/views/depfile/Depfile.api"; +import {columns2} from "@/views/depfile/Depfile.data"; const queryParam = reactive({}); const checkedKeys = ref>([]); const userStore = useUserStore(); @@ -100,6 +105,27 @@ function goBack() { back(); }; + +const [depfileTable] = useTable({ + label: '单位管理员上传附件', + columns: columns2, + pagination: false, + // dataSource: null, + api: listdepfileByDepId, + showIndexColumn: false, + scroll: {y: 300}, +}); + +async function listdepfileByDepId() { + let params = { + depid: userStore.getUserInfo.orgCode, + filelx: '1', + }; + console.log(JSON.stringify(params)); + return await listDepFile(params); +}; + + /** * 高级查询事件 */ diff --git a/jeecgboot-vue3/src/views/projectApplication/kejigongguan/xiangmushu/index.vue b/jeecgboot-vue3/src/views/projectApplication/kejigongguan/xiangmushu/index.vue index 9070b12..98a7846 100644 --- a/jeecgboot-vue3/src/views/projectApplication/kejigongguan/xiangmushu/index.vue +++ b/jeecgboot-vue3/src/views/projectApplication/kejigongguan/xiangmushu/index.vue @@ -11,7 +11,7 @@ - +