feat(mes): 添加工作站设备资源的级联删除功能

新增按工作站编号删除设备资源的功能,确保在删除工作站时,相关的设备资源能够被自动清理,提升数据一致性和管理效率。
pull/871/MERGE
YunaiV 2026-03-28 18:51:12 +08:00
parent f1b7e53b08
commit 351ee4fb0d
2 changed files with 14 additions and 16 deletions

View File

@ -1,4 +1,4 @@
<!-- MES 物料分类选择器树形下拉只允许选择叶节点对齐 KTG disable-branch-nodes -->
<!-- MES 物料分类选择器树形下拉只允许选择叶节点 -->
<template>
<el-tree-select
v-model="selectValue"
@ -50,7 +50,7 @@ const handleChange = (val: number | undefined) => {
emit('change', item)
}
/** 递归将有子节点的分支节点标记为 disabled,对齐 KTG 的 disable-branch-nodes */
/** 递归将有子节点的分支节点标记为 disabled */
const markParentsDisabled = (nodes: any[]): any[] => {
return nodes.map((node) => {
if (node.children?.length) {

View File

@ -55,24 +55,22 @@ const initGantt = () => {
gantt.config.date_format = '%Y-%m-%d %H:%i:%s'
gantt.config.duration_unit = 'hour' // 使 duration_step
gantt.config.duration_step = 8 // 1 = 8
gantt.config.row_height = 36 // KTG gantt 36
gantt.config.bar_height = 24 // KTG gantt
gantt.config.fit_tasks = true // KTG fit_tasks = true
gantt.config.auto_scheduling = false // KTG gantt false
gantt.config.drag_links = false // KTG drag_links = false
gantt.config.details_on_create = true // KTG details_on_create = true
gantt.config.details_on_dblclick = true // KTG details_on_dblclick = true
gantt.config.show_progress = true // KTG gantt progress
gantt.config.open_tree_initially = true // KTG open_tree_initially = true
gantt.config.auto_types = false // projectKTG auto_types = false
gantt.config.row_height = 36 //
gantt.config.bar_height = 24 //
gantt.config.fit_tasks = true //
gantt.config.auto_scheduling = false //
gantt.config.drag_links = false //
gantt.config.details_on_create = true //
gantt.config.details_on_dblclick = true //
gantt.config.show_progress = true //
gantt.config.open_tree_initially = true //
gantt.config.auto_types = false // project
gantt.config.drag_move = !props.readonly //
gantt.config.drag_resize = !props.readonly //
gantt.config.drag_progress = false //
// lightbox
gantt.config.lightbox.sections = [
{ name: 'time', type: 'duration', map_to: 'auto' }
]
gantt.config.lightbox.sections = [{ name: 'time', type: 'duration', map_to: 'auto' }]
gantt.config.buttons_left = ['gantt_save_btn']
gantt.config.buttons_right = ['gantt_cancel_btn']
@ -139,7 +137,7 @@ const initGantt = () => {
return ''
}
gantt.templates.timeline_cell_class = () => '' // gantt
gantt.templates.task_row_class = () => '' // KTG gantt
gantt.templates.task_row_class = () => '' // gantt
// lightbox
if (!props.readonly) {