bm-admin-ui 1.0.58-alpha → 1.0.60-alpha
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.
|
@@ -2056,7 +2056,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2056
2056
|
key: pane.key,
|
|
2057
2057
|
title: pane.title,
|
|
2058
2058
|
tempIdSelected: pane.tempSelected.templateCode || pane.tempIdSelected,
|
|
2059
|
-
|
|
2059
|
+
materialCategoryName: pane.tempSelected?.materialCategoryNameShow || pane.materialCategoryName,
|
|
2060
2060
|
tableData: pane.tableData,
|
|
2061
2061
|
uploadList: pane.uploadList,
|
|
2062
2062
|
tableRequiredFields: pane.tableRule?.config?.childRules?.filter((rule) => rule.effect?.required).map((rule) => rule.field)
|
|
@@ -789,7 +789,7 @@ const _hoisted_2$9 = {
|
|
|
789
789
|
};
|
|
790
790
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
791
791
|
__name: "handle-options",
|
|
792
|
-
props: ["options"],
|
|
792
|
+
props: ["options", "disabled"],
|
|
793
793
|
emits: ["setValue"],
|
|
794
794
|
setup(__props, { emit: emits }) {
|
|
795
795
|
const props = __props;
|
|
@@ -870,15 +870,17 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
870
870
|
animation: 200,
|
|
871
871
|
list: __props.options,
|
|
872
872
|
handle: `.${handleClass}`,
|
|
873
|
-
"force-fallback": true
|
|
873
|
+
"force-fallback": true,
|
|
874
|
+
disabled: __props.disabled
|
|
874
875
|
}, {
|
|
875
876
|
item: withCtx(({ element, index }) => [
|
|
876
877
|
createElementVNode("div", _hoisted_1$c, [
|
|
877
878
|
createVNode(_component_ARow, { align: "middle" }, {
|
|
878
879
|
default: withCtx(() => [
|
|
879
|
-
|
|
880
|
+
!__props.disabled ? (openBlock(), createBlock(unref(HolderOutlined), {
|
|
881
|
+
key: 0,
|
|
880
882
|
class: normalizeClass([handleClass])
|
|
881
|
-
}, null, 8, ["class"]),
|
|
883
|
+
}, null, 8, ["class"])) : createCommentVNode("v-if", true),
|
|
882
884
|
createVNode(unref(FormItemRest), null, {
|
|
883
885
|
default: withCtx(() => [
|
|
884
886
|
createVNode(unref(Input), {
|
|
@@ -889,15 +891,17 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
889
891
|
repeatOption.value.length && repeatOption.value.includes(element.value) ? "is-error" : ""
|
|
890
892
|
]),
|
|
891
893
|
maxlength,
|
|
894
|
+
disabled: __props.disabled,
|
|
892
895
|
onBlur: ($event) => handleBlur(element)
|
|
893
|
-
}, null, 8, ["value", "onUpdate:value", "class", "onBlur"])
|
|
896
|
+
}, null, 8, ["value", "onUpdate:value", "class", "disabled", "onBlur"])
|
|
894
897
|
]),
|
|
895
898
|
_: 2
|
|
896
899
|
}, 1024),
|
|
897
|
-
|
|
900
|
+
!__props.disabled ? (openBlock(), createBlock(_component_Delete, {
|
|
901
|
+
key: 1,
|
|
898
902
|
class: "bm-handle-options__del-icon",
|
|
899
903
|
onClick: ($event) => __props.options.splice(index, 1)
|
|
900
|
-
}, null, 8, ["onClick"])
|
|
904
|
+
}, null, 8, ["onClick"])) : createCommentVNode("v-if", true)
|
|
901
905
|
]),
|
|
902
906
|
_: 2
|
|
903
907
|
}, 1024),
|
|
@@ -905,8 +909,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
905
909
|
])
|
|
906
910
|
]),
|
|
907
911
|
_: 1
|
|
908
|
-
}, 8, ["list", "handle"]),
|
|
909
|
-
|
|
912
|
+
}, 8, ["list", "handle", "disabled"]),
|
|
913
|
+
!__props.disabled ? (openBlock(), createBlock(unref(Button), {
|
|
914
|
+
key: 0,
|
|
910
915
|
style: { "margin-left": "24px", "margin-top": "8px" },
|
|
911
916
|
onClick: edit
|
|
912
917
|
}, {
|
|
@@ -917,8 +922,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
917
922
|
createTextVNode(" \u6279\u91CF\u7F16\u8F91 ")
|
|
918
923
|
]),
|
|
919
924
|
_: 1
|
|
920
|
-
}),
|
|
921
|
-
|
|
925
|
+
})) : createCommentVNode("v-if", true),
|
|
926
|
+
!__props.disabled ? (openBlock(), createBlock(unref(Button), {
|
|
927
|
+
key: 1,
|
|
922
928
|
style: { "margin-left": "8px", "margin-top": "8px" },
|
|
923
929
|
onClick: add
|
|
924
930
|
}, {
|
|
@@ -929,7 +935,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
929
935
|
createTextVNode(" \u6DFB\u52A0\u9009\u9879 ")
|
|
930
936
|
]),
|
|
931
937
|
_: 1
|
|
932
|
-
}),
|
|
938
|
+
})) : createCommentVNode("v-if", true),
|
|
933
939
|
createVNode(_component_a_modal, {
|
|
934
940
|
visible: visible.value,
|
|
935
941
|
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => visible.value = $event),
|
|
@@ -3845,6 +3851,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3845
3851
|
}
|
|
3846
3852
|
}
|
|
3847
3853
|
});
|
|
3854
|
+
const flowConditionTipMap = {
|
|
3855
|
+
numInput: "\u9664\u201C\u5FC5\u586B\u201D\u8BBE\u7F6E\u4E0D\u53EF\u4FEE\u6539\uFF0C\u5176\u4ED6\u4FE1\u606F\u53EF\u4FEE\u6539",
|
|
3856
|
+
radio: "\u9664\u201C\u5FC5\u586B\u3001\u9009\u9879\u201D\u5185\u5BB9\u8BBE\u7F6E\u4E0D\u53EF\u4FEE\u6539\uFF0C\u5176\u4ED6\u4FE1\u606F\u53EF\u4FEE\u6539",
|
|
3857
|
+
checkbox: "\u9664\u201C\u5FC5\u586B\u3001\u9009\u9879\u201D\u5185\u5BB9\u8BBE\u7F6E\u4E0D\u53EF\u4FEE\u6539\uFF0C\u5176\u4ED6\u4FE1\u606F\u53EF\u4FEE\u6539",
|
|
3858
|
+
shop: "\u8BBE\u7F6E\u4FE1\u606F\u4E0D\u53EF\u4FEE\u6539\u3002",
|
|
3859
|
+
materialType: "\u8BBE\u7F6E\u4FE1\u606F\u4E0D\u53EF\u4FEE\u6539\u3002",
|
|
3860
|
+
people: "\u9664\u201C\u5FC5\u586B\u3001\u9009\u9879\u201D\u5185\u5BB9\u8BBE\u7F6E\u4E0D\u53EF\u4FEE\u6539\uFF0C\u5176\u4ED6\u4FE1\u606F\u53EF\u4FEE\u6539",
|
|
3861
|
+
department: "\u9664\u201C\u5FC5\u586B\u3001\u9009\u9879\u201D\u5185\u5BB9\u8BBE\u7F6E\u4E0D\u53EF\u4FEE\u6539\uFF0C\u5176\u4ED6\u4FE1\u606F\u53EF\u4FEE\u6539"
|
|
3862
|
+
};
|
|
3848
3863
|
const showDragTip = ref(true);
|
|
3849
3864
|
const tabData = createTab();
|
|
3850
3865
|
const activeKey = ref("controlLibrary");
|
|
@@ -4145,14 +4160,66 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4145
4160
|
return pass;
|
|
4146
4161
|
}
|
|
4147
4162
|
function flowConditionEffect(activeProps2, flowCondition) {
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4163
|
+
if (activeRule.value.config) {
|
|
4164
|
+
const disabled = !!flowCondition[activeRule.value.field];
|
|
4165
|
+
const ruleName = activeRule.value.config.config.name;
|
|
4166
|
+
if (disabled) {
|
|
4167
|
+
const requiredRule = activeProps2?.find(
|
|
4168
|
+
(rule) => rule.field === "effect.required"
|
|
4169
|
+
);
|
|
4170
|
+
if (requiredRule) {
|
|
4171
|
+
if (!requiredRule.props) {
|
|
4172
|
+
requiredRule.props = {};
|
|
4173
|
+
}
|
|
4174
|
+
requiredRule.props.disabled = true;
|
|
4175
|
+
}
|
|
4176
|
+
if (["radio", "checkbox"].includes(ruleName)) {
|
|
4177
|
+
const optionsRule = activeProps2?.find(
|
|
4178
|
+
(rule) => rule.field === "options"
|
|
4179
|
+
);
|
|
4180
|
+
optionsRule.props.disabled = true;
|
|
4181
|
+
}
|
|
4182
|
+
if (ruleName === "shop") {
|
|
4183
|
+
const dataFilteringRule = activeProps2?.find(
|
|
4184
|
+
(rule) => rule.field === "config.dataFiltering"
|
|
4185
|
+
);
|
|
4186
|
+
const isMainRule = activeProps2?.find(
|
|
4187
|
+
(rule) => rule.field === "config.isMain"
|
|
4188
|
+
);
|
|
4189
|
+
if (dataFilteringRule) {
|
|
4190
|
+
dataFilteringRule.props = {
|
|
4191
|
+
disabled: true
|
|
4192
|
+
};
|
|
4193
|
+
}
|
|
4194
|
+
if (isMainRule) {
|
|
4195
|
+
isMainRule.props = {
|
|
4196
|
+
disabled: true
|
|
4197
|
+
};
|
|
4198
|
+
}
|
|
4199
|
+
}
|
|
4200
|
+
if (ruleName === "materialType") {
|
|
4201
|
+
const formatRule = activeProps2?.find(
|
|
4202
|
+
(rule) => rule.field === "config.format"
|
|
4203
|
+
);
|
|
4204
|
+
const multipleRule = activeProps2?.find(
|
|
4205
|
+
(rule) => rule.field === "props.multiple"
|
|
4206
|
+
);
|
|
4207
|
+
formatRule.props = {
|
|
4208
|
+
disabled: true
|
|
4209
|
+
};
|
|
4210
|
+
multipleRule.props = {
|
|
4211
|
+
disabled: true
|
|
4212
|
+
};
|
|
4213
|
+
}
|
|
4214
|
+
if (["people", "department"].includes(ruleName)) {
|
|
4215
|
+
const limitRule = activeProps2?.find(
|
|
4216
|
+
(rule) => rule.field === "props.limit"
|
|
4217
|
+
);
|
|
4218
|
+
limitRule.props = {
|
|
4219
|
+
disabled: true
|
|
4220
|
+
};
|
|
4221
|
+
}
|
|
4154
4222
|
}
|
|
4155
|
-
requiredRule.props.disabled = !!flowCondition[activeRule.value.field];
|
|
4156
4223
|
}
|
|
4157
4224
|
}
|
|
4158
4225
|
function resetActiveRule() {
|
|
@@ -4323,7 +4390,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4323
4390
|
createElementVNode("div", _hoisted_6, [
|
|
4324
4391
|
_ctx.flowCondition[activeRule.value.field] ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
4325
4392
|
createVNode(unref(ExclamationCircleFilled), { style: { "color": "#2f4eed" } }),
|
|
4326
|
-
createTextVNode(" \u8BE5\u7EC4\u4EF6\u5728\u201C" + toDisplayString(_ctx.flowCondition[activeRule.value.field]) + "\u201D\u5DF2\u88AB\u8BBE\u4E3A\u5BA1\u6279\u6761\u4EF6\uFF0C
|
|
4393
|
+
createTextVNode(" \u8BE5\u7EC4\u4EF6\u5728\u201C" + toDisplayString(_ctx.flowCondition[activeRule.value.field]) + "\u201D\u5DF2\u88AB\u8BBE\u4E3A\u5BA1\u6279\u6761\u4EF6\uFF0C" + toDisplayString(flowConditionTipMap[activeRule.value?.config?.config?.name]), 1)
|
|
4327
4394
|
])) : createCommentVNode("v-if", true),
|
|
4328
4395
|
createVNode(_component_FormCreate, {
|
|
4329
4396
|
api: fApi.value,
|
|
@@ -2067,7 +2067,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2067
2067
|
key: pane.key,
|
|
2068
2068
|
title: pane.title,
|
|
2069
2069
|
tempIdSelected: pane.tempSelected.templateCode || pane.tempIdSelected,
|
|
2070
|
-
|
|
2070
|
+
materialCategoryName: pane.tempSelected?.materialCategoryNameShow || pane.materialCategoryName,
|
|
2071
2071
|
tableData: pane.tableData,
|
|
2072
2072
|
uploadList: pane.uploadList,
|
|
2073
2073
|
tableRequiredFields: pane.tableRule?.config?.childRules?.filter((rule) => rule.effect?.required).map((rule) => rule.field)
|
|
@@ -799,7 +799,7 @@ const _hoisted_2$9 = {
|
|
|
799
799
|
};
|
|
800
800
|
const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
801
801
|
__name: "handle-options",
|
|
802
|
-
props: ["options"],
|
|
802
|
+
props: ["options", "disabled"],
|
|
803
803
|
emits: ["setValue"],
|
|
804
804
|
setup(__props, { emit: emits }) {
|
|
805
805
|
const props = __props;
|
|
@@ -880,15 +880,17 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
880
880
|
animation: 200,
|
|
881
881
|
list: __props.options,
|
|
882
882
|
handle: `.${handleClass}`,
|
|
883
|
-
"force-fallback": true
|
|
883
|
+
"force-fallback": true,
|
|
884
|
+
disabled: __props.disabled
|
|
884
885
|
}, {
|
|
885
886
|
item: vue.withCtx(({ element, index }) => [
|
|
886
887
|
vue.createElementVNode("div", _hoisted_1$c, [
|
|
887
888
|
vue.createVNode(_component_ARow, { align: "middle" }, {
|
|
888
889
|
default: vue.withCtx(() => [
|
|
889
|
-
vue.
|
|
890
|
+
!__props.disabled ? (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.HolderOutlined), {
|
|
891
|
+
key: 0,
|
|
890
892
|
class: vue.normalizeClass([handleClass])
|
|
891
|
-
}, null, 8, ["class"]),
|
|
893
|
+
}, null, 8, ["class"])) : vue.createCommentVNode("v-if", true),
|
|
892
894
|
vue.createVNode(vue.unref(antDesignVue.FormItemRest), null, {
|
|
893
895
|
default: vue.withCtx(() => [
|
|
894
896
|
vue.createVNode(vue.unref(antDesignVue.Input), {
|
|
@@ -899,15 +901,17 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
899
901
|
repeatOption.value.length && repeatOption.value.includes(element.value) ? "is-error" : ""
|
|
900
902
|
]),
|
|
901
903
|
maxlength,
|
|
904
|
+
disabled: __props.disabled,
|
|
902
905
|
onBlur: ($event) => handleBlur(element)
|
|
903
|
-
}, null, 8, ["value", "onUpdate:value", "class", "onBlur"])
|
|
906
|
+
}, null, 8, ["value", "onUpdate:value", "class", "disabled", "onBlur"])
|
|
904
907
|
]),
|
|
905
908
|
_: 2
|
|
906
909
|
}, 1024),
|
|
907
|
-
vue.
|
|
910
|
+
!__props.disabled ? (vue.openBlock(), vue.createBlock(_component_Delete, {
|
|
911
|
+
key: 1,
|
|
908
912
|
class: "bm-handle-options__del-icon",
|
|
909
913
|
onClick: ($event) => __props.options.splice(index, 1)
|
|
910
|
-
}, null, 8, ["onClick"])
|
|
914
|
+
}, null, 8, ["onClick"])) : vue.createCommentVNode("v-if", true)
|
|
911
915
|
]),
|
|
912
916
|
_: 2
|
|
913
917
|
}, 1024),
|
|
@@ -915,8 +919,9 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
915
919
|
])
|
|
916
920
|
]),
|
|
917
921
|
_: 1
|
|
918
|
-
}, 8, ["list", "handle"]),
|
|
919
|
-
vue.
|
|
922
|
+
}, 8, ["list", "handle", "disabled"]),
|
|
923
|
+
!__props.disabled ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Button), {
|
|
924
|
+
key: 0,
|
|
920
925
|
style: { "margin-left": "24px", "margin-top": "8px" },
|
|
921
926
|
onClick: edit
|
|
922
927
|
}, {
|
|
@@ -927,8 +932,9 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
927
932
|
vue.createTextVNode(" \u6279\u91CF\u7F16\u8F91 ")
|
|
928
933
|
]),
|
|
929
934
|
_: 1
|
|
930
|
-
}),
|
|
931
|
-
vue.
|
|
935
|
+
})) : vue.createCommentVNode("v-if", true),
|
|
936
|
+
!__props.disabled ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Button), {
|
|
937
|
+
key: 1,
|
|
932
938
|
style: { "margin-left": "8px", "margin-top": "8px" },
|
|
933
939
|
onClick: add
|
|
934
940
|
}, {
|
|
@@ -939,7 +945,7 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
939
945
|
vue.createTextVNode(" \u6DFB\u52A0\u9009\u9879 ")
|
|
940
946
|
]),
|
|
941
947
|
_: 1
|
|
942
|
-
}),
|
|
948
|
+
})) : vue.createCommentVNode("v-if", true),
|
|
943
949
|
vue.createVNode(_component_a_modal, {
|
|
944
950
|
visible: visible.value,
|
|
945
951
|
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => visible.value = $event),
|
|
@@ -3855,6 +3861,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
3855
3861
|
}
|
|
3856
3862
|
}
|
|
3857
3863
|
});
|
|
3864
|
+
const flowConditionTipMap = {
|
|
3865
|
+
numInput: "\u9664\u201C\u5FC5\u586B\u201D\u8BBE\u7F6E\u4E0D\u53EF\u4FEE\u6539\uFF0C\u5176\u4ED6\u4FE1\u606F\u53EF\u4FEE\u6539",
|
|
3866
|
+
radio: "\u9664\u201C\u5FC5\u586B\u3001\u9009\u9879\u201D\u5185\u5BB9\u8BBE\u7F6E\u4E0D\u53EF\u4FEE\u6539\uFF0C\u5176\u4ED6\u4FE1\u606F\u53EF\u4FEE\u6539",
|
|
3867
|
+
checkbox: "\u9664\u201C\u5FC5\u586B\u3001\u9009\u9879\u201D\u5185\u5BB9\u8BBE\u7F6E\u4E0D\u53EF\u4FEE\u6539\uFF0C\u5176\u4ED6\u4FE1\u606F\u53EF\u4FEE\u6539",
|
|
3868
|
+
shop: "\u8BBE\u7F6E\u4FE1\u606F\u4E0D\u53EF\u4FEE\u6539\u3002",
|
|
3869
|
+
materialType: "\u8BBE\u7F6E\u4FE1\u606F\u4E0D\u53EF\u4FEE\u6539\u3002",
|
|
3870
|
+
people: "\u9664\u201C\u5FC5\u586B\u3001\u9009\u9879\u201D\u5185\u5BB9\u8BBE\u7F6E\u4E0D\u53EF\u4FEE\u6539\uFF0C\u5176\u4ED6\u4FE1\u606F\u53EF\u4FEE\u6539",
|
|
3871
|
+
department: "\u9664\u201C\u5FC5\u586B\u3001\u9009\u9879\u201D\u5185\u5BB9\u8BBE\u7F6E\u4E0D\u53EF\u4FEE\u6539\uFF0C\u5176\u4ED6\u4FE1\u606F\u53EF\u4FEE\u6539"
|
|
3872
|
+
};
|
|
3858
3873
|
const showDragTip = vue.ref(true);
|
|
3859
3874
|
const tabData = createTab();
|
|
3860
3875
|
const activeKey = vue.ref("controlLibrary");
|
|
@@ -4155,14 +4170,66 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
4155
4170
|
return pass;
|
|
4156
4171
|
}
|
|
4157
4172
|
function flowConditionEffect(activeProps2, flowCondition) {
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4173
|
+
if (activeRule.value.config) {
|
|
4174
|
+
const disabled = !!flowCondition[activeRule.value.field];
|
|
4175
|
+
const ruleName = activeRule.value.config.config.name;
|
|
4176
|
+
if (disabled) {
|
|
4177
|
+
const requiredRule = activeProps2?.find(
|
|
4178
|
+
(rule) => rule.field === "effect.required"
|
|
4179
|
+
);
|
|
4180
|
+
if (requiredRule) {
|
|
4181
|
+
if (!requiredRule.props) {
|
|
4182
|
+
requiredRule.props = {};
|
|
4183
|
+
}
|
|
4184
|
+
requiredRule.props.disabled = true;
|
|
4185
|
+
}
|
|
4186
|
+
if (["radio", "checkbox"].includes(ruleName)) {
|
|
4187
|
+
const optionsRule = activeProps2?.find(
|
|
4188
|
+
(rule) => rule.field === "options"
|
|
4189
|
+
);
|
|
4190
|
+
optionsRule.props.disabled = true;
|
|
4191
|
+
}
|
|
4192
|
+
if (ruleName === "shop") {
|
|
4193
|
+
const dataFilteringRule = activeProps2?.find(
|
|
4194
|
+
(rule) => rule.field === "config.dataFiltering"
|
|
4195
|
+
);
|
|
4196
|
+
const isMainRule = activeProps2?.find(
|
|
4197
|
+
(rule) => rule.field === "config.isMain"
|
|
4198
|
+
);
|
|
4199
|
+
if (dataFilteringRule) {
|
|
4200
|
+
dataFilteringRule.props = {
|
|
4201
|
+
disabled: true
|
|
4202
|
+
};
|
|
4203
|
+
}
|
|
4204
|
+
if (isMainRule) {
|
|
4205
|
+
isMainRule.props = {
|
|
4206
|
+
disabled: true
|
|
4207
|
+
};
|
|
4208
|
+
}
|
|
4209
|
+
}
|
|
4210
|
+
if (ruleName === "materialType") {
|
|
4211
|
+
const formatRule = activeProps2?.find(
|
|
4212
|
+
(rule) => rule.field === "config.format"
|
|
4213
|
+
);
|
|
4214
|
+
const multipleRule = activeProps2?.find(
|
|
4215
|
+
(rule) => rule.field === "props.multiple"
|
|
4216
|
+
);
|
|
4217
|
+
formatRule.props = {
|
|
4218
|
+
disabled: true
|
|
4219
|
+
};
|
|
4220
|
+
multipleRule.props = {
|
|
4221
|
+
disabled: true
|
|
4222
|
+
};
|
|
4223
|
+
}
|
|
4224
|
+
if (["people", "department"].includes(ruleName)) {
|
|
4225
|
+
const limitRule = activeProps2?.find(
|
|
4226
|
+
(rule) => rule.field === "props.limit"
|
|
4227
|
+
);
|
|
4228
|
+
limitRule.props = {
|
|
4229
|
+
disabled: true
|
|
4230
|
+
};
|
|
4231
|
+
}
|
|
4164
4232
|
}
|
|
4165
|
-
requiredRule.props.disabled = !!flowCondition[activeRule.value.field];
|
|
4166
4233
|
}
|
|
4167
4234
|
}
|
|
4168
4235
|
function resetActiveRule() {
|
|
@@ -4333,7 +4400,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
4333
4400
|
vue.createElementVNode("div", _hoisted_6, [
|
|
4334
4401
|
_ctx.flowCondition[activeRule.value.field] ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7, [
|
|
4335
4402
|
vue.createVNode(vue.unref(iconsVue.ExclamationCircleFilled), { style: { "color": "#2f4eed" } }),
|
|
4336
|
-
vue.createTextVNode(" \u8BE5\u7EC4\u4EF6\u5728\u201C" + vue.toDisplayString(_ctx.flowCondition[activeRule.value.field]) + "\u201D\u5DF2\u88AB\u8BBE\u4E3A\u5BA1\u6279\u6761\u4EF6\uFF0C
|
|
4403
|
+
vue.createTextVNode(" \u8BE5\u7EC4\u4EF6\u5728\u201C" + vue.toDisplayString(_ctx.flowCondition[activeRule.value.field]) + "\u201D\u5DF2\u88AB\u8BBE\u4E3A\u5BA1\u6279\u6761\u4EF6\uFF0C" + vue.toDisplayString(flowConditionTipMap[activeRule.value?.config?.config?.name]), 1)
|
|
4337
4404
|
])) : vue.createCommentVNode("v-if", true),
|
|
4338
4405
|
vue.createVNode(_component_FormCreate, {
|
|
4339
4406
|
api: fApi.value,
|