Skip to content

Commit

Permalink
Merge pull request #4393 from jumpserver/pr@dev@fix_quick_job_node
Browse files Browse the repository at this point in the history
fixed: Fixed the shortcut command selection node issue
  • Loading branch information
ZhaoJiSen authored Oct 10, 2024
2 parents 1b8ac91 + 2a08310 commit c9ad797
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/views/ops/Adhoc/QuickJob.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
</template>

<script>
import $ from '@/utils/jquery-vendor.js'
import AssetTreeTable from '@/components/Apps/AssetTreeTable'
import QuickJobTerm from '@/views/ops/Adhoc/components/QuickJobTerm.vue'
import CodeEditor from '@/components/Form/FormFields/CodeEditor'
Expand Down Expand Up @@ -286,6 +287,14 @@ export default {
view: {
dblClickExpand: false,
showLine: true
},
callback: {
onCheck: function(_event, treeId, treeNode) {
const treeObj = $.fn.zTree.getZTreeObj(treeId)
if (treeNode.checked) {
treeObj.expandNode(treeNode, true, false, true)
}
}
}
},
iShowTree: true
Expand Down

0 comments on commit c9ad797

Please sign in to comment.