Showing
1 changed file
with
8 additions
and
1 deletions
| @@ -5179,6 +5179,12 @@ DataFormatPanel.prototype.addDataFont = function (container) { | @@ -5179,6 +5179,12 @@ DataFormatPanel.prototype.addDataFont = function (container) { | ||
| 5179 | const act = currentNodeData.act ?? [] | 5179 | const act = currentNodeData.act ?? [] |
| 5180 | const event = currentNodeData.event ?? [] | 5180 | const event = currentNodeData.event ?? [] |
| 5181 | const actionType = {} | 5181 | const actionType = {} |
| 5182 | + | ||
| 5183 | + const hasExistEl = $(`.layui-form[lay-filter="${CONTAINER_FILTER}"]`).find('input[type="checkbox"]') | ||
| 5184 | + $(hasExistEl).each((i) => { | ||
| 5185 | + $(hasExistEl[i]).attr('disabled', true) | ||
| 5186 | + }) | ||
| 5187 | + | ||
| 5182 | for (const item of act) { | 5188 | for (const item of act) { |
| 5183 | const flag = !item.condition || !item.condition?.length | 5189 | const flag = !item.condition || !item.condition?.length |
| 5184 | $(`.interaction__container input[name="${item.type}"]`).attr('disabled', flag) | 5190 | $(`.interaction__container input[name="${item.type}"]`).attr('disabled', flag) |
| @@ -5189,6 +5195,7 @@ DataFormatPanel.prototype.addDataFont = function (container) { | @@ -5189,6 +5195,7 @@ DataFormatPanel.prototype.addDataFont = function (container) { | ||
| 5189 | $(`.interaction__container input[name="${item.type}"]`).attr('disabled', flag) | 5195 | $(`.interaction__container input[name="${item.type}"]`).attr('disabled', flag) |
| 5190 | actionType[item.type] = item.enabled | 5196 | actionType[item.type] = item.enabled |
| 5191 | } | 5197 | } |
| 5198 | + | ||
| 5192 | form.val(CONTAINER_FILTER, actionType) | 5199 | form.val(CONTAINER_FILTER, actionType) |
| 5193 | } | 5200 | } |
| 5194 | 5201 | ||
| @@ -12530,7 +12537,7 @@ class UseLayUi { | @@ -12530,7 +12537,7 @@ class UseLayUi { | ||
| 12530 | 12537 | ||
| 12531 | static topMsg(msg, options, icon) { | 12538 | static topMsg(msg, options, icon) { |
| 12532 | const { layer } = layui | 12539 | const { layer } = layui |
| 12533 | - layer.msg(`<div style="padding: 20px; display: flex; align-items: center;"><i class="layui-layer-ico layui-layer-ico6" style="width: 30px;height: 30px;"></i><span style="margin-left: 5px">${msg}</span></div>`, { ...options, type: 1, icon, time: 2000, }) | 12540 | + layer.msg(`<div style="padding: 20px; display: flex; align-items: center;"><i class="layui-layer-ico layui-layer-ico${icon}" style="width: 30px;height: 30px;"></i><span style="margin-left: 5px">${msg}</span></div>`, { ...options, type: 1, icon, time: 2000, }) |
| 12534 | } | 12541 | } |
| 12535 | 12542 | ||
| 12536 | static topSuccessMsg(msg = '操作成功', options) { | 12543 | static topSuccessMsg(msg = '操作成功', options) { |