From e2c2d034fbce7dd0ecbf5fe4cff0e13c3923c2da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=98=B1=E8=BE=BE?= Date: Thu, 24 Jul 2025 14:08:20 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=BA=94=E7=94=A8=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=A7=84=E5=88=99=E7=BC=96=E8=BE=91=E5=92=8C?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增规则编辑对话框组件 RuleEditDialog - 新增规则查看对话框组件 RuleViewDialog - 实现规则列表页面的新增、编辑和查看功能 - 优化规则列表的展示和操作 --- babel.config.js | 12 +- src/api/riskCheck/index.js | 4 + .../employRule/components/RuleEditDialog.vue | 308 ++++++++++++++++++ .../employRule/components/RuleViewDialog.vue | 246 ++++++++++++++ .../employRule/index.vue | 167 ++++++++-- 5 files changed, 700 insertions(+), 37 deletions(-) create mode 100644 src/views/applicationManagement/employRule/components/RuleEditDialog.vue create mode 100644 src/views/applicationManagement/employRule/components/RuleViewDialog.vue diff --git a/babel.config.js b/babel.config.js index 5d9f8fa..c6ae298 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,11 +1,11 @@ module.exports = { presets: ['@vue/app'], plugins: [ - [ - 'transform-remove-console', - { - exclude: ['warn', 'error'] // 可选:保留 warn 和 error - } - ] + // [ + // 'transform-remove-console', + // { + // exclude: ['warn', 'error'] // 可选:保留 warn 和 error + // } + // ] ] } diff --git a/src/api/riskCheck/index.js b/src/api/riskCheck/index.js index ffabd59..89087a3 100644 --- a/src/api/riskCheck/index.js +++ b/src/api/riskCheck/index.js @@ -1,6 +1,10 @@ import request from '@/assets/js/utils/request' import getUrl from '@/assets/js/utils/get-url' +// 导出规则相关API +export * from './rule' +// 导出记录相关API +export * from './record' // 查询审批单风险筛查结果 export function queryResult(data) { return request({ diff --git a/src/views/applicationManagement/employRule/components/RuleEditDialog.vue b/src/views/applicationManagement/employRule/components/RuleEditDialog.vue new file mode 100644 index 0000000..25ccab1 --- /dev/null +++ b/src/views/applicationManagement/employRule/components/RuleEditDialog.vue @@ -0,0 +1,308 @@ + + + + + diff --git a/src/views/applicationManagement/employRule/components/RuleViewDialog.vue b/src/views/applicationManagement/employRule/components/RuleViewDialog.vue new file mode 100644 index 0000000..7149c61 --- /dev/null +++ b/src/views/applicationManagement/employRule/components/RuleViewDialog.vue @@ -0,0 +1,246 @@ + + + + + diff --git a/src/views/applicationManagement/employRule/index.vue b/src/views/applicationManagement/employRule/index.vue index d450202..0f65964 100644 --- a/src/views/applicationManagement/employRule/index.vue +++ b/src/views/applicationManagement/employRule/index.vue @@ -19,7 +19,12 @@ > - + - + - + - + - + - + - +
- + + + + + + +