fix(pl): 证书齐备待完善列表将多选列置于首列。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
e0598ed07b
commit
937a857347
2 files changed
+22
-6
No files matched your search
@@ -25,6 +25,20 @@ test('incomplete certificate filter is sent as quotaCertWaivedIn=0', () => {
|
||||
assert.deepEqual(params, { quotaCertWaivedIn: '0' })
|
||||
})
|
||||
|
||||
test('fulfill tab selection column is first among table columns', () => {
|
||||
const web = readFileSync(new URL('../src/views/pl/cert-ready/index.vue', import.meta.url), 'utf8')
|
||||
const selectionIdx = web.indexOf('type="selection"')
|
||||
const columnsIdx = web.indexOf('v-for="column in columns"')
|
||||
const actionsIdx = web.indexOf('label="操作"')
|
||||
assert.ok(selectionIdx > 0, 'selection column missing')
|
||||
assert.ok(columnsIdx > selectionIdx, 'selection must precede business columns')
|
||||
assert.ok(actionsIdx > columnsIdx, 'actions must follow business columns')
|
||||
assert.match(
|
||||
web,
|
||||
/v-if="listMode === 'fulfill'"[\s\S]*?type="selection"[\s\S]*?v-for="column in columns"/
|
||||
)
|
||||
})
|
||||
|
||||
test('web funnel and miniprogram status dropdown default to incomplete', () => {
|
||||
const web = readFileSync(new URL('../src/views/pl/cert-ready/index.vue', import.meta.url), 'utf8')
|
||||
const mobile = readFileSync(
|
||||
|
||||
@@ -50,6 +50,14 @@
|
||||
class="list-table"
|
||||
@selection-change="onSelectionChange"
|
||||
>
|
||||
<el-table-column
|
||||
v-if="listMode === 'fulfill'"
|
||||
type="selection"
|
||||
width="48"
|
||||
align="center"
|
||||
header-align="center"
|
||||
:reserve-selection="false"
|
||||
/>
|
||||
<el-table-column
|
||||
v-for="column in columns"
|
||||
:key="column.prop"
|
||||
@@ -93,12 +101,6 @@
|
||||
<span v-else>{{ row[column.prop] || '—' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
v-if="listMode === 'fulfill'"
|
||||
type="selection"
|
||||
width="48"
|
||||
:reserve-selection="false"
|
||||
/>
|
||||
<el-table-column label="操作" min-width="260" fixed="right">
|
||||
<template #default="{ row }">
|
||||
<template v-if="listMode === 'fulfill'">
|
||||
|
||||
Reference in new issue
Block a user