fix(测试跟踪): 导出缺陷弹窗字段勾选处理问题

--bug=1032393 --user=宋昌昌 【测试跟踪】缺陷管理-导出缺陷-勾选导出基础字段-导出后没有缺陷标题 https://www.tapd.cn/55049933/s/1435640
This commit is contained in:
song-cc-rock 2023-11-13 13:44:32 +08:00 committed by 刘瑞斌
parent 7e5ceb67ea
commit 6b7a529c40
2 changed files with 8 additions and 3 deletions

View File

@ -55,6 +55,7 @@ import io.metersphere.service.remote.project.TrackIssueTemplateService;
import io.metersphere.service.wapper.TrackProjectService; import io.metersphere.service.wapper.TrackProjectService;
import io.metersphere.service.wapper.UserService; import io.metersphere.service.wapper.UserService;
import io.metersphere.utils.DistinctKeyUtil; import io.metersphere.utils.DistinctKeyUtil;
import io.metersphere.xpack.track.dto.AttachmentRequest;
import io.metersphere.xpack.track.dto.PlatformStatusDTO; import io.metersphere.xpack.track.dto.PlatformStatusDTO;
import io.metersphere.xpack.track.dto.PlatformUser; import io.metersphere.xpack.track.dto.PlatformUser;
import io.metersphere.xpack.track.dto.*; import io.metersphere.xpack.track.dto.*;

View File

@ -16,6 +16,7 @@
<script> <script>
import IssueExportFieldList from "@/business/issue/components/export/IssueExportFieldList"; import IssueExportFieldList from "@/business/issue/components/export/IssueExportFieldList";
export default { export default {
name: "IssueExportFieldSelectItem", name: "IssueExportFieldSelectItem",
components: {IssueExportFieldList}, components: {IssueExportFieldList},
@ -81,9 +82,12 @@ export default {
let isSelectAll = true; let isSelectAll = true;
for (let field of this.fields) { for (let field of this.fields) {
if (enableKeys) { if (field.id === 'id' || field.id === 'title') {
if (enableKeys.indexOf(field.key) > -1) { // ID,
field.enable = true; field.enable = true;
} else {
if (enableKeys) {
field.enable = enableKeys.indexOf(field.key) > -1;
} else { } else {
field.enable = false; field.enable = false;
} }