refactor(测试跟踪): 列表排序后,脑图点击上下移动,提示优化
--bug=1026770 --user=陈建星 【测试跟踪】github#24847,V2.10版本,脑图调整用例顺序保存后不生效 https://www.tapd.cn/55049933/s/1387680
This commit is contained in:
parent
fdf3dc07b3
commit
13006241be
|
@ -62,7 +62,7 @@
|
|||
"vue-float-action-button": "^0.6.6",
|
||||
"vue-i18n": "^8.15.3",
|
||||
"vue-jsonpath-picker": "^1.1.5",
|
||||
"vue-minder-editor-plus": "1.1.8",
|
||||
"vue-minder-editor-plus": "1.1.9",
|
||||
"vue-papa-parse": "^2.0.0",
|
||||
"vue-router": "^3.1.3",
|
||||
"vue-shepherd": "^0.3.0",
|
||||
|
@ -119,4 +119,4 @@
|
|||
"last 2 versions",
|
||||
"not dead"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
:tags="tags"
|
||||
:height="height"
|
||||
:move-enable="moveEnable"
|
||||
:move-confirm="moveConfirm"
|
||||
:tag-edit-check="tagEditCheck"
|
||||
:priority-disable-check="priorityDisableCheck"
|
||||
:distinct-tags="distinctTags"
|
||||
|
@ -98,6 +99,10 @@ export default {
|
|||
delConfirm: {
|
||||
type: Function,
|
||||
default: null
|
||||
},
|
||||
moveConfirm: {
|
||||
type: Function,
|
||||
default: null
|
||||
}
|
||||
},
|
||||
data() {
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
:distinct-tags="tags"
|
||||
:module-disable="false"
|
||||
:show-module-tag="true"
|
||||
:move-enable="moveEnable"
|
||||
:move-confirm="moveConfirm"
|
||||
:tag-edit-check="tagEditCheck()"
|
||||
:priority-disable-check="priorityDisableCheck()"
|
||||
:disabled="disabled"
|
||||
|
@ -291,6 +291,22 @@ export default {
|
|||
isDisable: false
|
||||
}
|
||||
},
|
||||
moveConfirm() {
|
||||
let selectNodes = minder.getSelectedNodes();
|
||||
for (let node of selectNodes) {
|
||||
// 模块暂不支持调整顺序
|
||||
if (isModuleNode(node)) {
|
||||
this.$warning(this.$t('case.minder_module_move_confirm_tip'));
|
||||
return false;
|
||||
}
|
||||
// 列表排序后用例不能排序
|
||||
if (!this.moveEnable && isCaseNodeData(node.data)) {
|
||||
this.$warning(this.$t('case.minder_move_confirm_tip'));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
handleDeleteConfirm() {
|
||||
let selectNodes = minder.getSelectedNodes();
|
||||
let moduleName = '';
|
||||
|
|
|
@ -152,6 +152,8 @@ const message = {
|
|||
back_tips: "TestCase is not saved, Are you sure to quit?",
|
||||
dependency_remove_confirm: "Is dependency release confirmed?",
|
||||
minder_paste_tip: "The pasted node has modules with unloaded use cases, copying unloaded use cases is not currently supported!",
|
||||
minder_move_confirm_tip: "There is currently field sorting, and the use case order cannot be set. Please switch to the use case list and cancel the field sorting!",
|
||||
minder_module_move_confirm_tip: "Module does not support setting order!",
|
||||
public: {
|
||||
remove: 'Whether to remove the use case ',
|
||||
batch_remove_confirm: "Confirm remove {0} item use case?",
|
||||
|
|
|
@ -152,6 +152,8 @@ const message = {
|
|||
back_tips: "你填写的信息未保存, 确定退出吗?",
|
||||
dependency_remove_confirm: "确定解除依赖吗?",
|
||||
minder_paste_tip: "粘贴的节点中有未加载用例的模块,目前不支持复制未加载的用例!",
|
||||
minder_move_confirm_tip: "当前存在字段排序,无法设置用例顺序,请切换至用例列表,取消字段排序!",
|
||||
minder_module_move_confirm_tip: "模块不支持设置顺序!",
|
||||
public: {
|
||||
remove: '是否移除用例',
|
||||
batch_remove_confirm: "确定移除{0}项用例?",
|
||||
|
|
|
@ -152,6 +152,8 @@ const message = {
|
|||
back_tips: "你填寫的信息未保存, 確定退出嗎?",
|
||||
dependency_remove_confirm: "確定解除依賴嗎?",
|
||||
minder_paste_tip: "粘貼的節點中有未加載用例的模塊,目前不支持復製未加載的用例!",
|
||||
minder_move_confirm_tip: "當前存在字段排序,無法設置用例順序,請切換至用例列表,取消字段排序!",
|
||||
minder_module_move_confirm_tip: "模塊不支持設置順序!",
|
||||
public: {
|
||||
remove: '是否移除用例',
|
||||
batch_remove_confirm: "確定移除{0}項用例?",
|
||||
|
|
Loading…
Reference in New Issue