From 3967e0e3333c4deb22ea1b587d88e5b3b4e4d2fe Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Tue, 11 Feb 2025 15:17:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=89=B9=E9=87=8F=E5=AE=A1?= =?UTF-8?q?=E6=A0=B8=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../subManagement/approval/personApproval.js | 18 +- src/plugins/modal.js | 31 +- .../list/consPersonEnterApprovalList.vue | 288 ++++++++++-------- vue.config.js | 4 +- 4 files changed, 194 insertions(+), 147 deletions(-) diff --git a/src/api/pro/subManagement/approval/personApproval.js b/src/api/pro/subManagement/approval/personApproval.js index 740a3a0..12dd264 100644 --- a/src/api/pro/subManagement/approval/personApproval.js +++ b/src/api/pro/subManagement/approval/personApproval.js @@ -4,7 +4,7 @@ export function getList(query) { return request({ url: '/project/sub/enterPersonList', method: 'get', - params: query + params: query, }) } @@ -16,7 +16,7 @@ export function getProOptions(params) { return request({ url: '/system/select/getProOptions', method: 'post', - data: params + data: params, }) } /** @@ -27,7 +27,7 @@ export function getConsOptions(params) { return request({ url: '/system/select/getConsOptions', method: 'post', - data: params + data: params, }) } /** @@ -38,6 +38,16 @@ export function getSubOptions(params) { return request({ url: '/system/select/getSubOptions', method: 'post', - data: params + data: params, + }) +} +/** + * 批量审核接口 + */ +export function batchAuditingApi(data) { + return request({ + url: '/project/sub/submitPersonApprovalBach', + method: 'post', + data, }) } diff --git a/src/plugins/modal.js b/src/plugins/modal.js index 6d86d09..747ee96 100644 --- a/src/plugins/modal.js +++ b/src/plugins/modal.js @@ -1,6 +1,6 @@ import { Message, MessageBox, Notification, Loading } from 'element-ui' -let loadingInstance; +let loadingInstance export default { // 消息提示 @@ -9,6 +9,7 @@ export default { }, // 错误消息 msgError(content) { + Message.closeAll() Message.error(content) }, // 成功消息 @@ -21,19 +22,19 @@ export default { }, // 弹出提示 alert(content) { - MessageBox.alert(content, "系统提示") + MessageBox.alert(content, '系统提示') }, // 错误提示 alertError(content) { - MessageBox.alert(content, "系统提示", { type: 'error' }) + MessageBox.alert(content, '系统提示', { type: 'error' }) }, // 成功提示 alertSuccess(content) { - MessageBox.alert(content, "系统提示", { type: 'success' }) + MessageBox.alert(content, '系统提示', { type: 'success' }) }, // 警告提示 alertWarning(content) { - MessageBox.alert(content, "系统提示", { type: 'warning' }) + MessageBox.alert(content, '系统提示', { type: 'warning' }) }, // 通知提示 notify(content) { @@ -41,7 +42,7 @@ export default { }, // 错误通知 notifyError(content) { - Notification.error(content); + Notification.error(content) }, // 成功通知 notifySuccess(content) { @@ -53,19 +54,19 @@ export default { }, // 确认窗体 confirm(content) { - return MessageBox.confirm(content, "系统提示", { + return MessageBox.confirm(content, '系统提示', { confirmButtonText: '确定', cancelButtonText: '取消', - type: "warning", - dangerouslyUseHTMLString: true + type: 'warning', + dangerouslyUseHTMLString: true, }) }, // 提交内容 prompt(content) { - return MessageBox.prompt(content, "系统提示", { + return MessageBox.prompt(content, '系统提示', { confirmButtonText: '确定', cancelButtonText: '取消', - type: "warning", + type: 'warning', }) }, // 打开遮罩层 @@ -73,12 +74,12 @@ export default { loadingInstance = Loading.service({ lock: true, text: content, - spinner: "el-icon-loading", - background: "rgba(0, 0, 0, 0.7)", + spinner: 'el-icon-loading', + background: 'rgba(0, 0, 0, 0.7)', }) }, // 关闭遮罩层 closeLoading() { - loadingInstance.close(); - } + loadingInstance.close() + }, } diff --git a/src/views/pro/approval/list/consPersonEnterApprovalList.vue b/src/views/pro/approval/list/consPersonEnterApprovalList.vue index 1b99496..1a27a07 100644 --- a/src/views/pro/approval/list/consPersonEnterApprovalList.vue +++ b/src/views/pro/approval/list/consPersonEnterApprovalList.vue @@ -4,8 +4,10 @@ @@ -22,20 +24,19 @@ - + - + + + 批量审核 + 搜索 重置 - + + @@ -78,11 +79,12 @@ - + + @@ -90,9 +92,17 @@ @@ -100,65 +110,63 @@ - + - + -
+
-
+
- - + diff --git a/vue.config.js b/vue.config.js index 1c93a06..4cc5ba5 100644 --- a/vue.config.js +++ b/vue.config.js @@ -38,10 +38,10 @@ module.exports = { // target: `http://localhost:18080`, // target: 'http://192.168.0.176:18080', // target: 'http://192.168.0.58:19090', // 杰 - target: 'http://192.168.0.14:18080', // 测试环境 + // target: 'http://192.168.0.14:18080', // 测试环境 // target: 'http://218.21.27.6:1999/prod-api', // 生产环境 // target: 'http://192.168.0.38:18080', // 郝志权 - // target: 'http://192.168.2.122:18080', // 梁超 + target: 'http://192.168.2.122:18080', // 梁超 changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: '',