From 9e2cb801e4e0faf9b48638c90bee8170217f564d Mon Sep 17 00:00:00 2001 From: zhujiyan <17812234322@163.com> Date: Tue, 14 May 2024 08:51:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/supervision-boot/userReport/form.ts | 2 + src/api/system-boot/dictTree.ts | 31 +- src/api/system-boot/file.ts | 12 + .../components/undocumented/detail.vue | 560 +++++++++++++++--- .../components/undocumented/index.vue | 2 +- 5 files changed, 515 insertions(+), 92 deletions(-) diff --git a/src/api/supervision-boot/userReport/form.ts b/src/api/supervision-boot/userReport/form.ts index fcc9d423..910a63f2 100644 --- a/src/api/supervision-boot/userReport/form.ts +++ b/src/api/supervision-boot/userReport/form.ts @@ -25,3 +25,5 @@ export const getUserReportById = (id: any) => { method: 'GET' }) } + + diff --git a/src/api/system-boot/dictTree.ts b/src/api/system-boot/dictTree.ts index 70c35297..cd863d8f 100644 --- a/src/api/system-boot/dictTree.ts +++ b/src/api/system-boot/dictTree.ts @@ -22,7 +22,7 @@ export function queryByAllCode() { method: 'GET', headers: { 'Content-Type': 'application/x-www-form-urlencoded' - }, + } // data: form }) } @@ -41,6 +41,19 @@ export function queryCsDictTree(pid: string) { }) } +/** + * 根据id查询字典值 + */ +export const getDictTreeById = (id: any) => { + let form = new FormData() + form.append('id', id) + return createAxios({ + url: '/system-boot/dictTree/queryById', + method: 'POST', + data:form + }) +} + // 字典树接口通过id export function queryByid(id: string) { let form = new FormData() @@ -55,7 +68,6 @@ export function queryByid(id: string) { }) } - //新增字典树数据 export const addDictTree = (data: any) => { return createAxios({ @@ -65,9 +77,8 @@ export const addDictTree = (data: any) => { }) } - // 编辑统计指标配置项 -export const updateStatistical = (data:any) => { +export const updateStatistical = (data: any) => { return createAxios({ url: '/system-boot/dic/update', method: 'PUT', @@ -75,10 +86,10 @@ export const updateStatistical = (data:any) => { }) } // 单位绑定 -export function codeDicTree(data:any) { +export function codeDicTree(data: any) { return createAxios({ - url: "/system-boot/dic/codeDicTree", - method: "get", - params: data, - }); - } \ No newline at end of file + url: '/system-boot/dic/codeDicTree', + method: 'get', + params: data + }) +} diff --git a/src/api/system-boot/file.ts b/src/api/system-boot/file.ts index 19bf5816..d78613a7 100644 --- a/src/api/system-boot/file.ts +++ b/src/api/system-boot/file.ts @@ -59,4 +59,16 @@ export const getFileUrl = (filePath: string) => { url: SYSTEM_PREFIX + '/file/getFileUrl', method: 'POST' }) +} + + +/** + * 根据获取文件的一个短期url及文件名 + */ +export const getFileNameAndFilePath = (query: any) => { + return createAxios({ + url:SYSTEM_PREFIX + '/file/getFileVO', + method: 'GET', + params:query + }) } \ No newline at end of file diff --git a/src/views/pqs/supervise/interfere/components/undocumented/detail.vue b/src/views/pqs/supervise/interfere/components/undocumented/detail.vue index 207abb18..30ce5906 100644 --- a/src/views/pqs/supervise/interfere/components/undocumented/detail.vue +++ b/src/views/pqs/supervise/interfere/components/undocumented/detail.vue @@ -1,107 +1,505 @@ - + diff --git a/src/views/pqs/supervise/interfere/components/undocumented/index.vue b/src/views/pqs/supervise/interfere/components/undocumented/index.vue index b43181b7..5258196d 100644 --- a/src/views/pqs/supervise/interfere/components/undocumented/index.vue +++ b/src/views/pqs/supervise/interfere/components/undocumented/index.vue @@ -27,7 +27,7 @@ - +