按角色展示流程列表搜索项
This commit is contained in:
@@ -63,6 +63,15 @@ assert(source.includes('beginCreateTime: hasDateRange ? `${this.dateRange[0]} 00
|
||||
assert(source.includes('endCreateTime: hasDateRange ? `${this.dateRange[1]} 23:59:59` : undefined'), '流程列表应传递当天末秒的顶层创建时间结束参数')
|
||||
assert(source.includes('label="机构号"') && source.includes('prop="deptId"'), '流程列表应展示机构号')
|
||||
assert(source.indexOf('label="机构号"') > 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({
|
||||
|
||||
Reference in New Issue
Block a user