fix: 同步修改缺陷状态

This commit is contained in:
shiziyuan9527 2021-09-29 17:13:37 +08:00 committed by shiziyuan9527
parent 7205c4e952
commit 2bf69c61a4
2 changed files with 2 additions and 6 deletions

View File

@ -557,7 +557,7 @@ public class IssuesService {
break;
}
}
issues.setStatus(status);
issues.setCustomFields(JSONObject.toJSONString(fields));
issuesMapper.updateByPrimaryKeySelective(issues);
}

View File

@ -58,7 +58,7 @@
<span v-for="field in issueTemplate.customFields" :key="field.id">
<ms-table-column :field="item" :label="field.name" :prop="field.name" v-if="field.name === '状态'">
<template v-slot="scope">
<el-dropdown class="test-case-status" @command="statusChange" v-if="scope.row.platform === 'Local'" placement="bottom" trigger="click">
<el-dropdown class="test-case-status" @command="statusChange" placement="bottom" trigger="click">
<span class="el-dropdown-link">
{{getCustomFieldValue(scope.row, field) ? getCustomFieldValue(scope.row, field) : issueStatusMap[scope.row.status]}}
</span>
@ -70,10 +70,6 @@
</span>
</el-dropdown-menu>
</el-dropdown>
<span v-else>
{{getCustomFieldValue(scope.row, field) ? getCustomFieldValue(scope.row, field) : issueStatusMap[scope.row.status]}}
</span>
</template>
</ms-table-column>