fix(测试跟踪): 用例库所属项目不显示

--bug=1023392 --user=陈建星 【测试跟踪】功能用例-公共用例库-查看-所属模块字段与原型不符 https://www.tapd.cn/55049933/s/1338396
This commit is contained in:
chenjianxing 2023-02-20 18:44:29 +08:00 committed by jianxing
parent 1ed6350ed0
commit f45e2476f4
2 changed files with 47 additions and 45 deletions

View File

@ -226,7 +226,7 @@
:is-form-alive="isFormAlive" :is-form-alive="isFormAlive"
:isloading="loading" :isloading="loading"
:read-only="readOnly" :read-only="readOnly"
:public-enable="publicEnable" :public-enable="isPublicShow"
:show-input-tag="showInputTag" :show-input-tag="showInputTag"
:tree-nodes="treeNodes" :tree-nodes="treeNodes"
:project-list="projectList" :project-list="projectList"

View File

@ -1,50 +1,6 @@
<template> <template>
<div v-loading="isloading" class="case-base-info-form"> <div v-loading="isloading" class="case-base-info-form">
<el-form ref="caseFrom" :rules="headerRules" :model="form" class="case-padding"> <el-form ref="caseFrom" :rules="headerRules" :model="form" class="case-padding">
<div class="module-row case-wrap" v-if="!publicEnable">
<div class="case-title-wrap">
<div class="name title-wrap">
{{ $t("test_track.case.module") }}
</div>
<div class="required required-item"></div>
</div>
<div class="side-content">
<base-edit-item-component
:editable="editable"
:auto-save="!readOnly"
trigger="hover"
:contentObject="{
content: getModuleLabel(),
contentType: 'SELECT',
}"
:readonlyHoverEvent="!readOnly"
:content-click-event="!readOnly"
:model="form"
:rules="headerRules"
ref="moduleRef"
>
<template v-slot:content="{ onClick, hoverEditable }">
<div :class="hoverEditable ? 'selectHover' : ''">
<el-form-item prop="module">
<ms-select-tree
:disabled="readOnly"
:data="treeNodes"
:defaultKey="defaultModuleKey"
:obj="moduleObj"
@getValue="(id, data) => setModule(id, data)"
clearable
checkStrictly
size="small"
@selectClick="onClick"
@clean="onClick"
/>
</el-form-item>
</div>
</template>
</base-edit-item-component>
</div>
</div>
<div class="module-row case-wrap" v-if="publicEnable"> <div class="module-row case-wrap" v-if="publicEnable">
<div class="case-title-wrap"> <div class="case-title-wrap">
@ -90,6 +46,52 @@
</base-edit-item-component> </base-edit-item-component>
</div> </div>
</div> </div>
<div class="module-row case-wrap">
<div class="case-title-wrap">
<div class="name title-wrap">
{{ $t("test_track.case.module") }}
</div>
<div class="required required-item"></div>
</div>
<div class="side-content">
<base-edit-item-component
:editable="editable"
:auto-save="!readOnly"
trigger="hover"
:contentObject="{
content: getModuleLabel(),
contentType: 'SELECT',
}"
:readonlyHoverEvent="!readOnly"
:content-click-event="!readOnly"
:model="form"
:rules="headerRules"
ref="moduleRef"
>
<template v-slot:content="{ onClick, hoverEditable }">
<div :class="hoverEditable ? 'selectHover' : ''">
<el-form-item prop="module">
<ms-select-tree
:disabled="readOnly"
:data="treeNodes"
:defaultKey="defaultModuleKey"
:obj="moduleObj"
@getValue="(id, data) => setModule(id, data)"
clearable
checkStrictly
size="small"
@selectClick="onClick"
@clean="onClick"
/>
</el-form-item>
</div>
</template>
</base-edit-item-component>
</div>
</div>
</el-form> </el-form>
<!-- 自定义字段 --> <!-- 自定义字段 -->
<el-form <el-form