@javaguns/flow-ui
Version:
``` <template> <a-spin :spinning="loading"> <FlowDesigner ref="flowDesigner" top="50px"> </FlowDesigner> </a-spin> </template> <script lang="ts" setup> import { ref, provide, onMounted } from 'vue'; import { FlowDesigner, LoadingKey } from '@j
96 lines (95 loc) • 3.2 kB
JavaScript
import { defineComponent as i, ref as g, onMounted as w, openBlock as m, createElementBlock as B, Fragment as v, createVNode as e, withCtx as a, unref as t, createBlock as y, createTextVNode as s, createCommentVNode as T } from "vue";
import { pluginManager as f } from "@javaguns/utils";
import x from "../../../hooks/useDrawer.mjs";
import c from "../../common/flowDrawerContent.vue.mjs";
import h from "../../common/flowDrawerOption.vue.mjs";
import D from "../../common/flowRadioGroup.vue.mjs";
import $ from "../../common/flowSelect.vue.mjs";
const A = i({ name: "flow-approver-senior" }), q = /* @__PURE__ */ i({
...A,
props: {
node: {}
},
setup(_) {
const u = f.getComponent("Row"), l = f.getComponent("Col"), o = _, d = g(!1), { operateButtons: k, allowBackDatas: C, backApprovalTypeDatas: b } = x(), V = (n) => {
(n.code == "back" || n.buttonCode == "back") && (d.value = n.checked);
};
return w(() => {
o.node.buttons && (d.value = o.node.buttons.filter((n) => n.buttonCode == "back" && n.checked).length > 0);
}), (n, r) => (m(), B(v, null, [
e(c, { name: "按钮配置" }, {
default: a(() => [
e(h, {
node: o.node,
datas: t(k),
onChange: V
}, null, 8, ["node", "datas"])
]),
_: 1
}),
o.node.attr && d.value ? (m(), y(c, {
key: 0,
name: "退回配置"
}, {
default: a(() => [
e(t(u), { style: { margin: "10px 0" } }, {
default: a(() => [
e(t(l), {
span: 3,
offset: 1
}, {
default: a(() => [
s("允许退回:")
]),
_: 1
}),
e(t(l), { span: 20 }, {
default: a(() => [
e(D, {
modelValue: o.node.attr.allowBackType,
"onUpdate:modelValue": r[0] || (r[0] = (p) => o.node.attr.allowBackType = p),
datas: t(C)
}, null, 8, ["modelValue", "datas"])
]),
_: 1
})
]),
_: 1
}),
e(t(u), null, {
default: a(() => [
e(t(l), {
span: 3,
offset: 1
}, {
default: a(() => [
s("审批形式:")
]),
_: 1
}),
e(t(l), { span: 20 }, {
default: a(() => [
e($, {
modelValue: o.node.attr.backApprovalType,
"onUpdate:modelValue": r[1] || (r[1] = (p) => o.node.attr.backApprovalType = p),
datas: t(b),
mode: "multiple",
multiple: !0,
totalValue: !0,
placeholder: "请选择"
}, null, 8, ["modelValue", "datas"])
]),
_: 1
})
]),
_: 1
})
]),
_: 1
})) : T("", !0)
], 64));
}
});
export {
q as default
};