From 9d48d4b688e31555b3094f30d890cd5dcc3f06e1 Mon Sep 17 00:00:00 2001 From: wkc <978997012@qq.com> Date: Mon, 10 Aug 2026 15:56:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E8=A7=92=E8=89=B2=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=E5=88=97=E8=A1=A8=E6=90=9C=E7=B4=A2=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/loanPricing/workflow/index.vue | 16 ++++++++++------ ruoyi-ui/tests/workflow-index-refresh.test.js | 9 +++++++++ 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/ruoyi-ui/src/views/loanPricing/workflow/index.vue b/ruoyi-ui/src/views/loanPricing/workflow/index.vue index fb78770..ef8fa15 100644 --- a/ruoyi-ui/src/views/loanPricing/workflow/index.vue +++ b/ruoyi-ui/src/views/loanPricing/workflow/index.vue @@ -17,13 +17,13 @@ @keydown.enter.native.prevent="handleQuery" /> - + - + @@ -31,7 +31,7 @@ - + - + - + source.indexOf('label="创建者"'), '机构号列应位于创建者列之后') +assert.strictEqual((source.match(/v-if="showAllSearchItems"/g) || []).length, 5, '五个高级搜索项均应根据角色显示') + +assert.strictEqual(component.computed.showAllSearchItems.call({ + roles: ['common'] +}), false, '客户经理只应展示客户信息搜索项') + +assert.strictEqual(component.computed.showAllSearchItems.call({ + roles: ['headAdmin'] +}), true, '其他角色应展示全部搜索项') let refreshCount = 0 component.activated.call({