fix(测试跟踪): 功能用例删除文案问题

--bug=1023273 --user=宋昌昌 【测试跟踪】功能用例列表-操作删除和批量删除/编辑用例-更错操作-删除-提示信息不符 https://www.tapd.cn/55049933/s/1337901
This commit is contained in:
song-cc-rock 2023-02-19 20:48:42 +08:00 committed by jianxing
parent c57672b5a9
commit 8716a1d0ea
4 changed files with 23 additions and 21 deletions

View File

@ -0,0 +1,19 @@
export default {
bind(el, binding, vnode) {
function clickHandler(e) {
if (el.contains(e.target)) {
return false;
}
if (binding.expression) {
binding.value(e);
}
}
el.__vueClickOutside__ = clickHandler;
document.addEventListener('click', clickHandler);
},
update() {},
unbind(el, binding) {
document.removeEventListener('click', el.__vueClickOutside__);
delete el.__vueClickOutside__;
}
};

View File

@ -1,4 +1,5 @@
import ClickOutside from "element-ui/src/utils/clickoutside";
import CustomClickOutside from "./click-outside/custom-click-outside";
import Permission from "./permission";
import Drag from "./drag";
import directive from './loading/directive';
@ -48,25 +49,7 @@ export default {
Vue.directive('bottom-to-top-drag', Drag.bottom2TopDrag);
Vue.directive('top-bottom-to-drag', Drag.top2BottomDrag);
Vue.directive('vertical-drag', Drag.verticalDrag);
Vue.directive('my-click-outside', {
bind(el, binding, vnode) {
function clickHandler(e) {
if (el.contains(e.target)) {
return false;
}
if (binding.expression) {
binding.value(e);
}
}
el.__vueClickOutside__ = clickHandler;
document.addEventListener('click', clickHandler);
},
update() {},
unbind(el, binding) {
document.removeEventListener('click', el.__vueClickOutside__);
delete el.__vueClickOutside__;
},
});
Vue.directive('custom-click-outside', CustomClickOutside);
Vue.use(directive);
Vue.prototype.$loading = service;
},

View File

@ -2,7 +2,7 @@
<div class="edit-container">
<div
class="content"
v-my-click-outside="preSave"
v-custom-click-outside="preSave"
@mouseleave="mouseLeaveEvent"
>
<div class="edit" v-show="edit">

View File

@ -1517,7 +1517,7 @@ export default {
this.$refs.apiDeleteConfirm.open(this.testCase, this.$t('test_track.case.delete_confirm'));
} else {
let title = this.$t('test_track.case.case_delete_confirm') + ": " + this.testCase.name + "?";
this.$confirm(this.$t('test_track.case.batch_delete_tip'), title, {
this.$confirm(this.$t('test_track.case.batch_delete_soft_tip'), title, {
cancelButtonText: this.$t("commons.cancel"),
confirmButtonText: this.$t("commons.delete"),
customClass: 'custom-confirm-delete',