Commit edb23bcd authored by mzx's avatar mzx

测试矩阵图标替换

parent 878225e2
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M1 8.74547L5.5929 13.7559C5.80445 13.9867 6.17364 13.9685 6.36148 13.718L15 2.20001" stroke="#13BE24" stroke-width="2" stroke-linecap="round"/>
</svg>
<!-- 测试矩阵 -->
<template> <template>
<page-standard> <page-standard>
<el-table <el-table
v-loading="loading"
height="calc(100vh - 300px)" height="calc(100vh - 300px)"
:data="tableData" :data="tableData"
v-loading="loading"
border border
:header-cell-style="headerCellStyle" :header-cell-style="headerCellStyle"
:cell-style="tableCellStyle" :cell-style="tableCellStyle"
...@@ -30,7 +31,7 @@ ...@@ -30,7 +31,7 @@
class="table-span-style" class="table-span-style"
@click="viewDetail(scope.row[item.id].id)" @click="viewDetail(scope.row[item.id].id)"
> >
{{ '√' }} <svg-icon icon-class="checkMark" />
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
...@@ -183,11 +184,15 @@ export default { ...@@ -183,11 +184,15 @@ export default {
/** 点击跳转详情 */ /** 点击跳转详情 */
viewDetail(row) { viewDetail(row) {
this.$message(row) this.$message(row)
this.$router.push({
path: '/setting/useCaseDetails',
query: { id: row }
})
}, },
// 表头样式 // 表头样式
headerCellStyle(row, rowIndex) { headerCellStyle(row, rowIndex) {
if (row.columnIndex === 0) { if (row.columnIndex === 0) {
return { backgroundColor: '#1A6FD7' } return { backgroundColor: '#1A6FD7', color: '#FFFFFF' }
} else { } else {
return { backgroundColor: '#F2F2F2' } return { backgroundColor: '#F2F2F2' }
} }
......
<!-- 测试用例详情 -->
<template>
<page-standard>
<div>
{{ '测试用例详情' }}
</div>
</page-standard>
</template>
<script>
export default {
name: 'Index',
data() {
return {
id: this.$route.query
}
},
mounted() {}
}
</script>
<style scoped></style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment