mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-02 03:58:33 +08:00
fix(测试跟踪): 功能用例删除文案问题
--bug=1023273 --user=宋昌昌 【测试跟踪】功能用例列表-操作删除和批量删除/编辑用例-更错操作-删除-提示信息不符 https://www.tapd.cn/55049933/s/1337901
This commit is contained in:
parent
d8a2d4c6c0
commit
7d984cec03
@ -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__;
|
||||
}
|
||||
};
|
@ -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;
|
||||
},
|
||||
|
@ -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">
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user