Commit beed826a authored by mengzixuan's avatar mengzixuan

feat(查看试验方案): table列表字段修改

parent b158a0fb
......@@ -105,14 +105,14 @@
<collapse-item
v-for="(item, key) in tableData"
:key="key"
:name="item.chapter"
:name="item.serial_number"
>
<span slot="title" style="width: 100%">
<div class="standard-box">
<div class="standard-left">
<div class="standard">标准要求:</div>
<div class="standard-title">
{{ item.chapter + item.text }}
{{ item.serial_number + item.requirements }}
</div>
</div>
<div class="standard-result">
......@@ -130,22 +130,24 @@
<th>用例名称</th>
<th>对应输入</th>
</tr>
<template v-for="(keyPoint, keyPointKey) in item.testCaseList">
<template
v-for="(keyPoint, keyPointKey) in item.case_result_list"
>
<tr :key="keyPointKey">
<td rowspan="1">
{{ keyPoint.testScenario }}
{{ keyPoint.scenario }}
</td>
<td rowspan="1">
{{ keyPoint.testMethod }}
{{ keyPoint.test_type }}
</td>
<td rowspan="1">
{{ keyPoint.usecaseNo }}
{{ keyPoint.serial_number }}
</td>
<td rowspan="1">
{{ keyPoint.name }}
</td>
<td rowspan="1">
{{ keyPoint.input }}
{{ keyPoint.requirements }}
</td>
</tr>
</template>
......@@ -218,8 +220,9 @@ export default {
getRows3,
/** 全部展开 */
openAll() {
console.log('tablkessss', this.tableData)
this.activeNames = this.tableData.map(i => {
return i.chapter
return i.serial_number
})
},
/** 全部收起 */
......@@ -228,7 +231,7 @@ export default {
},
testmMthod(i) {
this.open = true
this.activeValue = i.testMethod
this.activeValue = i.test_method
},
getTest() {
getBySubtaskId({ id: this.$route.query.id }).then(res => {
......
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