fix(测试跟踪): 验收问题汇总

--story=1011487 --user=宋昌昌 【Bug转需求】【测试跟踪】功能用例-设计验收问题汇总 https://www.tapd.cn/55049933/s/1353075
This commit is contained in:
song-cc-rock 2023-03-20 18:27:43 +08:00
parent 886da39018
commit 135bc509a7
15 changed files with 49 additions and 30 deletions

View File

@ -2,7 +2,7 @@
<el-dialog
:title="title"
:visible.sync="deleteApiVisible"
:show-close="false"
:show-close="true"
append-to-body
width="30%"
>
@ -12,10 +12,10 @@
</el-radio-group>
<template v-slot:footer>
<ms-dialog-footer
@cancel="close"
@confirm="handleDelete">
</ms-dialog-footer>
<el-button @click="close" size="small">{{ $t('commons.cancel') }}</el-button>
<el-button v-prevent-re-click type="primary" @click="handleDelete" size="small" style="margin-left: 10px">
{{ $t('commons.confirm') }}
</el-button>
</template>
</el-dialog>
</template>

View File

@ -18,7 +18,7 @@
<i class="el-icon-download"/>
{{ $t('commons.export') }}
</span>
<el-dropdown-menu slot="dropdown">
<el-dropdown-menu slot="dropdown" class="drawer-header">
<el-dropdown-item @click.native.stop="exportJPG">JPG</el-dropdown-item>
<el-dropdown-item @click.native.stop="exportPNG">PNG</el-dropdown-item>
</el-dropdown-menu>
@ -147,3 +147,14 @@ i.delimiter {
background-color: transparent!important;
}
</style>
<style>
.drawer-header .el-dropdown-menu__item {
color: #1F2329 !important;
}
.drawer-header .el-dropdown-menu__item:hover {
background-color: rgba(31, 35, 41, 0.1) !important;
color: #1F2329 !important;
}
</style>

View File

@ -115,7 +115,7 @@ export default {
batch_delete_tip:
"It cannot be recovered after delete, please delete carefully",
public_batch_delete_tip:
"It cannot be restored after deletion, please proceed with caution.",
"It will be removed from public case, Carefully.",
public_remove: "Remove",
batch_delete_soft_tip: "The test case will be put into trash",
save_create_continue: "Save and create continue",

View File

@ -100,7 +100,7 @@ export default {
batch_delete_confirm: "确定删除{0}项用例?",
batch_delete_completely_confirm: "确定彻底删除{0}项用例?",
batch_delete_tip: "删除后将无法恢复, 请谨慎操作。",
public_batch_delete_tip: "移除后将无法恢复, 请谨慎操作。",
public_batch_delete_tip: "将从公共用例库移除, 请谨慎操作。",
public_remove: "移除",
batch_delete_soft_tip: "删除的内容将进入回收站",
delete: "删除用例",

View File

@ -101,7 +101,7 @@ export default {
batch_delete_confirm: "確定刪除{0}項用例?",
batch_delete_completely_confirm: "確定徹底刪除{0}項用例",
batch_delete_tip: "刪除後將無法恢復, 請謹慎操作。",
public_batch_delete_tip: "移除後將無法恢復, 請謹慎操作。",
public_batch_delete_tip: "將從公共用例庫移除, 請謹慎操作。",
public_remove: "移除",
batch_delete_soft_tip: "刪除的內容將進入回收站",
save_create_continue: "保存併繼續創建",

View File

@ -58,7 +58,7 @@ input.el-input__inner {
* el-message
*/
.el-message-box__header {
padding: 20px 24px 0 24px;
padding: 24px 24px 0 24px;
min-height: 24px;
}
@ -79,7 +79,7 @@ input.el-input__inner {
}
.el-message-box__content {
padding: 35px 0px 0px 24px;
padding: 24px 0px 0px 24px;
font-family: 'PingFang SC';
font-style: normal;
font-weight: 400;
@ -94,6 +94,7 @@ input.el-input__inner {
.el-message-box {
width: 420px;
height: 174px;
padding-bottom: 0;
}
.el-message-box__btns {

View File

@ -81,6 +81,7 @@ export default {
this.cancel("");
this.refresh(comment.caseId);
this.formData.richText = "";
this.$emit('toggleCommentTab')
});
},
refresh(id) {

View File

@ -146,6 +146,7 @@
:case-id="caseId"
:read-only="readOnly"
@stateChange="handleCommentStateChange"
@toggleCommentTab="toggleCommentTab"
@getComments="getComments"
/>
</div>
@ -337,6 +338,9 @@ export default {
handleCommentStateChange(state) {
this.commentState = state;
},
toggleCommentTab() {
this.caseActiveName = 'comment';
},
setRelationshipCount(count) {
this.relationshipCount = count;
},

View File

@ -207,7 +207,7 @@ export default {
type: 'warning'
}).then(() => {
deleteRelateTest(row.testCaseId, row.testId).then(() => {
this.$success(this.$t("commons.save_success"), false);
this.$success(this.$t('test_track.cancel_relevance_success'), false);
this.initTable();
});
});

View File

@ -105,7 +105,7 @@ export default {
saveCaseRelevance() {
let ids = this.$refs.apiCaseList.getSelectIds();
saveCaseRelevanceApi(this.caseId, ids).then(() => {
this.$success(this.$t("commons.save_success"), false);
this.$success(this.$t("commons.relate_success"), false);
this.$emit("refresh");
this.$refs.baseRelevance.close();
});

View File

@ -82,7 +82,7 @@ export default {
saveCaseRelevance() {
let ids = this.$refs.apiCaseList.getSelectIds();
saveCaseRelevanceLoad(this.caseId, ids).then(() => {
this.$success(this.$t("commons.save_success"), false);
this.$success(this.$t("commons.relate_success"), false);
this.$emit("refresh");
this.$refs.baseRelevance.close();
});

View File

@ -103,7 +103,7 @@ export default {
saveCaseRelevance() {
let ids = this.$refs.apiCaseList.getSelectIds();
saveCaseRelevanceScenario(this.caseId, ids).then(() => {
this.$success(this.$t("commons.save_success"), false);
this.$success(this.$t("commons.relate_success"), false);
this.$emit("refresh");
this.$refs.baseRelevance.close();
});

View File

@ -105,7 +105,7 @@ export default {
saveCaseRelevance() {
let ids = this.$refs.apiCaseList.getSelectIds();
saveUiCaseRelevanceScenario(this.caseId, ids).then(() => {
this.$success(this.$t("commons.save_success"), false);
this.$success(this.$t("commons.relate_success"), false);
this.$emit("refresh");
this.$refs.baseRelevance.close();
});

View File

@ -563,7 +563,7 @@ export default {
},
handleDeleteBatchToPublic() {
let title = this.$t('case.public.batch_remove_confirm', [this.$refs.table.selectIds.length]);
this.$confirm(title, '', {
this.$confirm(this.$t('test_track.case.public_batch_delete_tip'), title, {
cancelButtonText: this.$t("commons.cancel"),
confirmButtonText: this.$t("test_track.case.public_remove"),
customClass: 'custom-confirm-delete',

View File

@ -6,13 +6,13 @@
:placeholder="placeholder"
@imgDel="imgDel" v-model="data[prop]" ref="md"/>
</template>
<script>
import {getCurrentUser} from "metersphere-frontend/src/utils/token";
import {getUUID} from "metersphere-frontend/src/utils";
import {deleteMarkDownImg, uploadMarkDownImg} from "metersphere-frontend/src/api/img";
import {DEFAULT_XSS_ATTR} from "metersphere-frontend/src/utils/constants";
export default {
name: "MsMarkDownText",
components: {},
@ -122,7 +122,7 @@
defaultOpenValue: 'preview'
}
},
computed: {
language() {
const user = getCurrentUser();
@ -181,7 +181,7 @@
});
}
}
},
methods: {
imgAdd(pos, file) {
@ -232,11 +232,11 @@
// canvas.addEventListener("click", function () {
// wrap.remove();
// });
//el-image-viewer__maskdiv
let mask = document.createElement("div");
mask.classList.add("el-image-viewer__mask");
//el-image-viewer__wrapperdiv
let wrap = document.createElement("div");
wrap.classList.add("el-image-viewer__wrapper");
@ -255,25 +255,27 @@
}
}
</script>
<style scoped>
.v-note-wrapper {
display: block !important;
position: static !important;
}
:deep(.dropdown-item.dropdown-images) {
display: none;
}
:deep(.v-note-op .v-left-item.transition .op-icon.fa.fa-mavon-picture-o.dropdown.dropdown-wrapper .op-image.popup-dropdown.transition) {
margin-left: 45px;
}
:deep(.v-note-op .v-left-item.transition .add-image-link-wrapper .add-image-link .op-btn.sure) {
background: #783887;
}
:deep(.content-input-wrapper) {
border-radius: 4px;
}
</style>