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({