fix(测试跟踪): 公共用例库自定义ID列展示有误
--bug=1025835 --user=宋昌昌 【测试跟踪】功能用例-公共用例库-自定义字段勾选id-列表不显示id https://www.tapd.cn/55049933/s/1367729
This commit is contained in:
parent
199138e118
commit
ecd2556626
|
@ -43,42 +43,38 @@
|
||||||
ref="table">
|
ref="table">
|
||||||
|
|
||||||
<span v-for="(item, index) in fields" :key="index">
|
<span v-for="(item, index) in fields" :key="index">
|
||||||
|
<ms-table-column
|
||||||
<ms-table-column
|
prop="projectName"
|
||||||
prop="projectName"
|
:fields-width="fieldsWidth"
|
||||||
:fields-width="fieldsWidth"
|
:label="$t('test_track.case.project')"
|
||||||
:label="$t('test_track.case.project')"
|
v-if="item.id === 'projectName'"
|
||||||
v-if="item.id === 'projectName'"
|
min-width="150px">
|
||||||
min-width="150px">
|
</ms-table-column>
|
||||||
</ms-table-column>
|
|
||||||
|
|
||||||
<ms-table-column
|
<ms-table-column
|
||||||
v-if="!customNum"
|
v-if="!customNum"
|
||||||
:field="item"
|
:field="item"
|
||||||
:fields-width="fieldsWidth"
|
:fields-width="fieldsWidth"
|
||||||
prop="num"
|
:column-key="'num'"
|
||||||
sortable
|
:prop="'num'"
|
||||||
|
sortable="custom"
|
||||||
:label="$t('commons.id')"
|
:label="$t('commons.id')"
|
||||||
min-width="80">
|
min-width="80">
|
||||||
<template v-slot:default="scope">
|
<template v-slot:default="scope">
|
||||||
<el-tooltip :content="$t('commons.edit')">
|
<a style="cursor:pointer"> {{ scope.row.num }} </a>
|
||||||
<a style="cursor:pointer" @click="handleEdit(scope.row)"> {{ scope.row.num }} </a>
|
|
||||||
</el-tooltip>
|
|
||||||
</template>
|
</template>
|
||||||
</ms-table-column>
|
</ms-table-column>
|
||||||
|
|
||||||
<ms-table-column
|
<ms-table-column
|
||||||
v-if="item.id === 'num' && customNum"
|
v-if="item.id === 'num' && customNum"
|
||||||
:field="item"
|
|
||||||
:fields-width="fieldsWidth"
|
:fields-width="fieldsWidth"
|
||||||
|
:column-key="'customNum'"
|
||||||
prop="customNum"
|
prop="customNum"
|
||||||
sortable
|
sortable="custom"
|
||||||
:label="$t('commons.id')"
|
:label="$t('commons.id')"
|
||||||
min-width="80">
|
min-width="80">
|
||||||
<template v-slot:default="scope">
|
<template v-slot:default="scope">
|
||||||
<el-tooltip :content="$t('commons.edit')">
|
<a style="cursor:pointer"> {{ scope.row.customNum }} </a>
|
||||||
<a style="cursor:pointer" @click="handleEdit(scope.row)"> {{ scope.row.num }} </a>
|
|
||||||
</el-tooltip>
|
|
||||||
</template>
|
</template>
|
||||||
</ms-table-column>
|
</ms-table-column>
|
||||||
|
|
||||||
|
@ -186,7 +182,7 @@
|
||||||
|
|
||||||
<ms-table-batch-operator-group v-if="selectCounts > 0" :batch-operators="batchButtons" :select-counts="selectCounts" @clear="clearTableSelect"/>
|
<ms-table-batch-operator-group v-if="selectCounts > 0" :batch-operators="batchButtons" :select-counts="selectCounts" @clear="clearTableSelect"/>
|
||||||
|
|
||||||
<home-pagination v-if="page.data.length > 0 && selectCounts == 0" :change="initTableData" :current-page.sync="page.currentPage" :page-size.sync="page.pageSize"
|
<home-pagination v-if="page.data.length > 0 && selectCounts === 0" :change="initTableData" :current-page.sync="page.currentPage" :page-size.sync="page.pageSize"
|
||||||
:total="page.total" layout="total, prev, pager, next, sizes, jumper" style="margin-top: 19px"/>
|
:total="page.total" layout="total, prev, pager, next, sizes, jumper" style="margin-top: 19px"/>
|
||||||
|
|
||||||
<test-case-preview ref="testCasePreview" :loading="rowCaseResult.loading"/>
|
<test-case-preview ref="testCasePreview" :loading="rowCaseResult.loading"/>
|
||||||
|
|
Loading…
Reference in New Issue