zl-lcyq 1.1.5 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/zl-lcyq.es.js +28 -5
- package/lib/zl-lcyq.umd.js +194 -194
- package/package.json +1 -1
package/lib/zl-lcyq.es.js
CHANGED
@@ -20715,7 +20715,8 @@ const useStore = defineStore("store", {
|
|
20715
20715
|
pluginsConfig: {},
|
20716
20716
|
expressionConfig: {},
|
20717
20717
|
personnelConfig: {},
|
20718
|
-
disabled: false
|
20718
|
+
disabled: false,
|
20719
|
+
enableNodes: []
|
20719
20720
|
}),
|
20720
20721
|
actions: {
|
20721
20722
|
setIsTried(payload) {
|
@@ -20733,6 +20734,9 @@ const useStore = defineStore("store", {
|
|
20733
20734
|
this.expressionConfig = payload.expressionConfig;
|
20734
20735
|
this.personnelConfig = payload.personnelConfig;
|
20735
20736
|
this.disabled = payload.disabled;
|
20737
|
+
},
|
20738
|
+
setEnableNodes(payload) {
|
20739
|
+
this.enableNodes = payload;
|
20736
20740
|
}
|
20737
20741
|
}
|
20738
20742
|
});
|
@@ -34678,6 +34682,7 @@ const _sfc_main$5 = {
|
|
34678
34682
|
const nodesConfig2 = computed(() => store.nodesConfig);
|
34679
34683
|
const pluginsConfig = computed(() => store.pluginsConfig);
|
34680
34684
|
const lcyqDisabled = computed(() => store.disabled);
|
34685
|
+
const enableNodes = computed(() => store.enableNodes);
|
34681
34686
|
let props = __props;
|
34682
34687
|
const processConf = inject("processConf");
|
34683
34688
|
watch(drawerConfig2, (config2) => {
|
@@ -34861,7 +34866,7 @@ const _sfc_main$5 = {
|
|
34861
34866
|
]),
|
34862
34867
|
_: 2
|
34863
34868
|
}, 1024)),
|
34864
|
-
!lcyqDisabled.value ? (openBlock(), createElementBlock("i", {
|
34869
|
+
!lcyqDisabled.value && !enableNodes.value.includes(item.node_key) ? (openBlock(), createElementBlock("i", {
|
34865
34870
|
key: 2,
|
34866
34871
|
class: "iconfont lcyq-delete close",
|
34867
34872
|
onClick: ($event) => delTerm(index2)
|
@@ -34992,7 +34997,7 @@ const _sfc_main$5 = {
|
|
34992
34997
|
class: "editable-title",
|
34993
34998
|
onClick: _cache[12] || (_cache[12] = ($event) => clickEvent())
|
34994
34999
|
}, toDisplayString(__props.nodeConfig.node_name), 1)),
|
34995
|
-
!lcyqDisabled.value ? (openBlock(), createElementBlock("i", {
|
35000
|
+
!lcyqDisabled.value && !enableNodes.value.includes(__props.nodeConfig.node_key) ? (openBlock(), createElementBlock("i", {
|
34996
35001
|
key: 2,
|
34997
35002
|
class: "iconfont lcyq-delete close",
|
34998
35003
|
onClick: delNode
|
@@ -35087,7 +35092,7 @@ const _sfc_main$4 = {
|
|
35087
35092
|
let _uid = getCurrentInstance().uid;
|
35088
35093
|
const { warning: warning2 } = useMessage$1();
|
35089
35094
|
let store = useStore();
|
35090
|
-
let { setIsTried, setLcyqConfig, setDrawer, setDrawerConfig } = store;
|
35095
|
+
let { setIsTried, setLcyqConfig, setDrawer, setDrawerConfig, setEnableNodes } = store;
|
35091
35096
|
let drawerConfig2 = computed(() => store.drawerConfig);
|
35092
35097
|
let pluginsConfig = computed(() => store.pluginsConfig);
|
35093
35098
|
let props = __props;
|
@@ -35221,6 +35226,24 @@ const _sfc_main$4 = {
|
|
35221
35226
|
if (data2.process_conf) {
|
35222
35227
|
processConf.value = data2.process_conf;
|
35223
35228
|
}
|
35229
|
+
if (data2.enable) {
|
35230
|
+
let enableNodes = [];
|
35231
|
+
handleEnableNodes(nodeConfig.value, enableNodes);
|
35232
|
+
setEnableNodes(enableNodes);
|
35233
|
+
} else {
|
35234
|
+
setEnableNodes([]);
|
35235
|
+
}
|
35236
|
+
}
|
35237
|
+
function handleEnableNodes(node, data2) {
|
35238
|
+
data2.push(node.node_key);
|
35239
|
+
if (node.childNode) {
|
35240
|
+
handleEnableNodes(node.childNode, data2);
|
35241
|
+
}
|
35242
|
+
if (node.type === 4) {
|
35243
|
+
for (let i = 0; i < node.conditionNodes.length; i++) {
|
35244
|
+
handleEnableNodes(node.conditionNodes[i], data2);
|
35245
|
+
}
|
35246
|
+
}
|
35224
35247
|
}
|
35225
35248
|
function setPerson(e) {
|
35226
35249
|
if (props.disabled) {
|
@@ -35845,7 +35868,7 @@ const _sfc_main$1 = defineComponent({
|
|
35845
35868
|
}),
|
35846
35869
|
createVNode(unref(NButton), {
|
35847
35870
|
type: "primary",
|
35848
|
-
disabled:
|
35871
|
+
disabled: props.isSubmitEnd,
|
35849
35872
|
onClick: submit
|
35850
35873
|
}, {
|
35851
35874
|
default: withCtx(() => _cache[3] || (_cache[3] = [
|