From d620e737ede0e144df84a55e7d375d365a1bffd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <963808678@qq.com> Date: Tue, 16 Jan 2024 15:20:49 +0800 Subject: [PATCH] =?UTF-8?q?pdf=20=E9=A2=84=E8=A7=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modular/gen/codeGenerateManage.js | 16 ++++++++-------- src/api/modular/main/TaskmanageList.js | 3 ++- .../main/Taskmanage/BcFileDetail/Editing.vue | 6 ++++-- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/src/api/modular/gen/codeGenerateManage.js b/src/api/modular/gen/codeGenerateManage.js index c61239e..c10a80e 100644 --- a/src/api/modular/gen/codeGenerateManage.js +++ b/src/api/modular/gen/codeGenerateManage.js @@ -12,7 +12,7 @@ import { axios } from '@/utils/request' * @author yubaoshan * @date 2020/12/23 15:00 */ -export function codeGeneratePage (parameter) { +export function codeGeneratePage(parameter) { return axios({ url: '/codeGenerate/page', method: 'get', @@ -26,7 +26,7 @@ export function codeGeneratePage (parameter) { * @author yubaoshan * @date 2020/12/23 15:00 */ -export function codeGenerateAdd (parameter) { +export function codeGenerateAdd(parameter) { return axios({ url: '/codeGenerate/add', method: 'post', @@ -40,7 +40,7 @@ export function codeGenerateAdd (parameter) { * @author yubaoshan * @date 2020/12/23 15:00 */ -export function codeGenerateEdit (parameter) { +export function codeGenerateEdit(parameter) { return axios({ url: '/codeGenerate/edit', method: 'post', @@ -54,7 +54,7 @@ export function codeGenerateEdit (parameter) { * @author yubaoshan * @date 2020/12/23 15:00 */ -export function codeGenerateDelete (parameter) { +export function codeGenerateDelete(parameter) { return axios({ url: '/codeGenerate/delete', method: 'post', @@ -68,7 +68,7 @@ export function codeGenerateDelete (parameter) { * @author yubaoshan * @date 2020/12/23 15:00 */ -export function codeGenerateInformationList (parameter) { +export function codeGenerateInformationList(parameter) { return axios({ url: '/codeGenerate/InformationList', method: 'get', @@ -83,7 +83,7 @@ export function codeGenerateInformationList (parameter) { * @param {*} tableName 表名 * @return {*} */ -export function codeGenerateColumnList (tableName) { +export function codeGenerateColumnList(tableName) { return axios({ url: `/codeGenerate/ColumnList/${tableName}`, method: 'get' @@ -96,7 +96,7 @@ export function codeGenerateColumnList (tableName) { * @author yubaoshan * @date 2020/12/23 15:00 */ -export function codeGenerateRunLocal (parameter) { +export function codeGenerateRunLocal(parameter) { return axios({ url: '/codeGenerate/runLocal', method: 'post', @@ -110,7 +110,7 @@ export function codeGenerateRunLocal (parameter) { * @author yubaoshan * @date 2020/12/23 15:00 */ -export function codeGenerateRunDown (parameter) { +export function codeGenerateRunDown(parameter) { return axios({ url: '/codeGenerate/runDown', method: 'get', diff --git a/src/api/modular/main/TaskmanageList.js b/src/api/modular/main/TaskmanageList.js index 712ee16..c7cf123 100644 --- a/src/api/modular/main/TaskmanageList.js +++ b/src/api/modular/main/TaskmanageList.js @@ -309,7 +309,8 @@ export function DownloadFile(parameter) { return axios({ url: '/TaskManageBC/DownloadFile', method: 'get', - params: parameter + params: parameter, + responseType: 'arraybuffer' }) } export function TransferTask(parameter) { diff --git a/src/views/main/Taskmanage/BcFileDetail/Editing.vue b/src/views/main/Taskmanage/BcFileDetail/Editing.vue index 8d946e7..98882dd 100644 --- a/src/views/main/Taskmanage/BcFileDetail/Editing.vue +++ b/src/views/main/Taskmanage/BcFileDetail/Editing.vue @@ -592,8 +592,8 @@ export default { UserId: '', value: '', formItemLayout: { - labelCol1: { span: 5 }, - wrapperCol1: { span: 19 }, + labelCol1: { span: 6 }, + wrapperCol1: { span: 18 }, labelCol2: { span: 8 }, wrapperCol2: { span: 16 }, labelCol3: { span: 4 }, @@ -721,6 +721,8 @@ export default { }) DownloadFile(ApiData).then(res => { this.pdfUrl = window.URL.createObjectURL(new Blob([res], { type: 'application/pdf;charset=utf-8' })) + // this.pdfUrl = window.URL.createObjectURL(new Blob([res], { type: 'text/plain;charset=utf-8' })) + console.log(this.pdfUrl) }) GetSysUserPage().then(res => { this.UserList = res.data