fix(测试跟踪): 编辑用例控制台报错
This commit is contained in:
parent
976c975ccf
commit
6545ce43a9
|
@ -135,6 +135,7 @@
|
|||
<script>
|
||||
import { getProjectMemberOption } from "metersphere-frontend/src/api/user";
|
||||
import MsMarkDownText from "@/business/case/components/richtext/MsMarkDownText";
|
||||
import {getProjectMemberById} from "@/api/user";
|
||||
export default {
|
||||
name: "BaseEditItemComponent",
|
||||
components: {MsMarkDownText},
|
||||
|
@ -220,14 +221,14 @@ export default {
|
|||
methods: {
|
||||
getMemberOptions() {
|
||||
if (this.projectId) {
|
||||
getProjectMemberById(this.projectId).then((r) => {
|
||||
this.handelMemberOptions(r.data);
|
||||
});
|
||||
getProjectMemberById(this.projectId)
|
||||
.then(r => this.handleMemberOptions(r.data));
|
||||
} else {
|
||||
this.handelMemberOptions(r.data);
|
||||
getProjectMemberOption()
|
||||
.then(r => this.handleMemberOptions(r.data));
|
||||
}
|
||||
},
|
||||
handelMemberOptions(data) {
|
||||
handleMemberOptions(data) {
|
||||
let tempMemberOptions = data || [];
|
||||
let tempArr = [];
|
||||
tempMemberOptions.forEach((e) => {
|
||||
|
|
|
@ -76,22 +76,22 @@
|
|||
</div>
|
||||
</template>
|
||||
</ms-table-column>
|
||||
</ms-table>
|
||||
|
||||
<ms-table-column
|
||||
width="150px"
|
||||
v-if="relationshipType === 'POST'"
|
||||
:label="$t('commons.relationship.type')"
|
||||
>
|
||||
<template>
|
||||
<div class="pos-label">
|
||||
{{ $t("commons.relationship.current_case") }}
|
||||
</div>
|
||||
<div class="pos-type pos-left-margin">
|
||||
{{ $t("commons.relationship.after_finish") }}
|
||||
</div>
|
||||
</template>
|
||||
</ms-table-column>
|
||||
<ms-table-column
|
||||
width="150px"
|
||||
v-if="relationshipType === 'POST'"
|
||||
:label="$t('commons.relationship.type')"
|
||||
>
|
||||
<template>
|
||||
<div class="pos-label">
|
||||
{{ $t("commons.relationship.current_case") }}
|
||||
</div>
|
||||
<div class="pos-type pos-left-margin">
|
||||
{{ $t("commons.relationship.after_finish") }}
|
||||
</div>
|
||||
</template>
|
||||
</ms-table-column>
|
||||
</ms-table>
|
||||
|
||||
<relationship-functional-relevance
|
||||
:case-id="caseId"
|
||||
|
|
Loading…
Reference in New Issue