@yugu-ui/flow-ui 0.1.7 → 0.1.9
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/dist/adapter/wflow.d.ts +1 -3
- package/dist/config/FlowConfig.d.ts +3 -0
- package/dist/index.js +74 -121
- package/dist/style.css +139 -102
- package/dist/timeline/ApprovalModal.d.ts +2 -10
- package/dist/timeline/FlowNode.d.ts +2 -2
- package/package.json +1 -1
- package/dist/timeline/flowUserKey.d.ts +0 -18
package/dist/adapter/wflow.d.ts
CHANGED
|
@@ -232,14 +232,12 @@ export interface WflowUndoApproveParams {
|
|
|
232
232
|
/** 审批意见+附件组列表(CDN 文件),可为空,组内字段原样透传 */
|
|
233
233
|
attachments?: Array<Record<string, unknown>>;
|
|
234
234
|
}
|
|
235
|
-
/**
|
|
235
|
+
/** 审批驳回请求参数(意见与目标节点 ID 必填,整节点重置:目标节点起重置重审) */
|
|
236
236
|
export interface WflowUndoRejectParams {
|
|
237
237
|
/** 待办审批记录 ID(todo/list 或 todo/{instance_id} 返回的 undo_id) */
|
|
238
238
|
undo_id: number;
|
|
239
239
|
/** 驳回目标节点 ID(发起人 start 节点或历史审批人节点;驳回到发起人=终止流程,驳回到历史节点=该节点起重置重审) */
|
|
240
240
|
reject_node_id: string;
|
|
241
|
-
/** 驳回目标审批人 ID(可选,须为 reject_node_id 节点下的审批人;指定时仅该用户重新审批,同节点其他人保留结果) */
|
|
242
|
-
reject_user_id?: string | null;
|
|
243
241
|
/** 审批意见(驳回时必填,最长 255 字符) */
|
|
244
242
|
suggest: string;
|
|
245
243
|
/** 审批意见+附件组列表(CDN 文件),可为空,组内字段原样透传 */
|
|
@@ -4,6 +4,8 @@ type __VLS_Props = {
|
|
|
4
4
|
data?: Record<string, any> | null;
|
|
5
5
|
publishing?: boolean;
|
|
6
6
|
isExternal?: number;
|
|
7
|
+
/** 是否隐藏「字段配置」页签(true=不渲染该 tab,fields 数据仍随 publish 输出) */
|
|
8
|
+
hideFields?: boolean;
|
|
7
9
|
};
|
|
8
10
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
11
|
formChange: (data: any) => any;
|
|
@@ -29,6 +31,7 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
|
|
|
29
31
|
flowName: string;
|
|
30
32
|
activeTab: "form" | "flow" | "more";
|
|
31
33
|
publishing: boolean;
|
|
34
|
+
hideFields: boolean;
|
|
32
35
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
33
36
|
declare const _default: typeof __VLS_export;
|
|
34
37
|
export default _default;
|
package/dist/index.js
CHANGED
|
@@ -4708,7 +4708,6 @@ var FlowConfigMore_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/
|
|
|
4708
4708
|
return (_ctx, _cache) => {
|
|
4709
4709
|
const _component_NFormItem = NFormItem;
|
|
4710
4710
|
const _component_NInputNumber = NInputNumber;
|
|
4711
|
-
const _component_NSwitch = NSwitch;
|
|
4712
4711
|
const _component_NInput = NInput;
|
|
4713
4712
|
const _component_NForm = NForm;
|
|
4714
4713
|
return openBlock(), createElementBlock("div", _hoisted_1$11, [createVNode(_component_NForm, {
|
|
@@ -4740,40 +4739,10 @@ var FlowConfigMore_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/
|
|
|
4740
4739
|
}, null, 8, ["value"])]),
|
|
4741
4740
|
_: 1
|
|
4742
4741
|
}),
|
|
4743
|
-
createVNode(_component_NFormItem, { label: "允许撤回" }, {
|
|
4744
|
-
default: withCtx(() => [createVNode(_component_NSwitch, {
|
|
4745
|
-
value: settings.value.allowWithdraw,
|
|
4746
|
-
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => settings.value.allowWithdraw = $event)
|
|
4747
|
-
}, null, 8, ["value"])]),
|
|
4748
|
-
_: 1
|
|
4749
|
-
}),
|
|
4750
|
-
createVNode(_component_NFormItem, { label: "允许催办" }, {
|
|
4751
|
-
default: withCtx(() => [createVNode(_component_NSwitch, {
|
|
4752
|
-
value: settings.value.allowUrge,
|
|
4753
|
-
"onUpdate:value": _cache[3] || (_cache[3] = ($event) => settings.value.allowUrge = $event)
|
|
4754
|
-
}, null, 8, ["value"])]),
|
|
4755
|
-
_: 1
|
|
4756
|
-
}),
|
|
4757
|
-
createVNode(_component_NFormItem, { label: "审批超时(小时)" }, {
|
|
4758
|
-
default: withCtx(() => [createVNode(_component_NInputNumber, {
|
|
4759
|
-
value: settings.value.timeout,
|
|
4760
|
-
"onUpdate:value": _cache[4] || (_cache[4] = ($event) => settings.value.timeout = $event),
|
|
4761
|
-
min: 0,
|
|
4762
|
-
placeholder: "0为不限制"
|
|
4763
|
-
}, null, 8, ["value"])]),
|
|
4764
|
-
_: 1
|
|
4765
|
-
}),
|
|
4766
|
-
createVNode(_component_NFormItem, { label: "超时自动通过" }, {
|
|
4767
|
-
default: withCtx(() => [createVNode(_component_NSwitch, {
|
|
4768
|
-
value: settings.value.autoPass,
|
|
4769
|
-
"onUpdate:value": _cache[5] || (_cache[5] = ($event) => settings.value.autoPass = $event)
|
|
4770
|
-
}, null, 8, ["value"])]),
|
|
4771
|
-
_: 1
|
|
4772
|
-
}),
|
|
4773
4742
|
createVNode(_component_NFormItem, { label: "备注" }, {
|
|
4774
4743
|
default: withCtx(() => [createVNode(_component_NInput, {
|
|
4775
4744
|
value: settings.value.remark,
|
|
4776
|
-
"onUpdate:value": _cache[
|
|
4745
|
+
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => settings.value.remark = $event),
|
|
4777
4746
|
type: "textarea",
|
|
4778
4747
|
placeholder: "请输入备注信息",
|
|
4779
4748
|
autosize: {
|
|
@@ -4788,7 +4757,7 @@ var FlowConfigMore_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/
|
|
|
4788
4757
|
}, 8, ["model"])]);
|
|
4789
4758
|
};
|
|
4790
4759
|
}
|
|
4791
|
-
}), [["__scopeId", "data-v-
|
|
4760
|
+
}), [["__scopeId", "data-v-b4e7caf8"]]);
|
|
4792
4761
|
//#endregion
|
|
4793
4762
|
//#region src/config/FlowConfig.vue?vue&type=script&setup=true&lang.ts
|
|
4794
4763
|
var _hoisted_1$10 = { class: "flow-config__header" };
|
|
@@ -4807,7 +4776,11 @@ var FlowConfig_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @_
|
|
|
4807
4776
|
type: Boolean,
|
|
4808
4777
|
default: false
|
|
4809
4778
|
},
|
|
4810
|
-
isExternal: { default: 0 }
|
|
4779
|
+
isExternal: { default: 0 },
|
|
4780
|
+
hideFields: {
|
|
4781
|
+
type: Boolean,
|
|
4782
|
+
default: false
|
|
4783
|
+
}
|
|
4811
4784
|
},
|
|
4812
4785
|
emits: [
|
|
4813
4786
|
"formChange",
|
|
@@ -4819,13 +4792,14 @@ var FlowConfig_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @_
|
|
|
4819
4792
|
const props = __props;
|
|
4820
4793
|
const emit = __emit;
|
|
4821
4794
|
const cssVars = useFcCssVars();
|
|
4822
|
-
const
|
|
4795
|
+
const tabToStep = {
|
|
4823
4796
|
form: 1,
|
|
4824
4797
|
flow: 2,
|
|
4825
4798
|
more: 3
|
|
4826
|
-
}
|
|
4799
|
+
};
|
|
4800
|
+
const currentStep = ref(props.hideFields && (tabToStep[props.activeTab] ?? 1) === 1 ? 2 : tabToStep[props.activeTab] ?? 1);
|
|
4827
4801
|
/** tab 配置(v-for 渲染,value 即步骤序号) */
|
|
4828
|
-
const steps = [
|
|
4802
|
+
const steps = computed(() => [
|
|
4829
4803
|
{
|
|
4830
4804
|
value: 1,
|
|
4831
4805
|
label: "字段配置"
|
|
@@ -4838,7 +4812,10 @@ var FlowConfig_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @_
|
|
|
4838
4812
|
value: 3,
|
|
4839
4813
|
label: "更多设置"
|
|
4840
4814
|
}
|
|
4841
|
-
];
|
|
4815
|
+
].filter((step) => !(props.hideFields && step.value === 1)));
|
|
4816
|
+
watch(() => props.hideFields, (v) => {
|
|
4817
|
+
if (v && currentStep.value === 1) currentStep.value = 2;
|
|
4818
|
+
});
|
|
4842
4819
|
const formData = ref({});
|
|
4843
4820
|
const fieldData = ref({});
|
|
4844
4821
|
const flowData = ref({});
|
|
@@ -4881,11 +4858,11 @@ var FlowConfig_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @_
|
|
|
4881
4858
|
validating.value = true;
|
|
4882
4859
|
try {
|
|
4883
4860
|
const failed = [
|
|
4884
|
-
{
|
|
4861
|
+
...props.hideFields ? [] : [{
|
|
4885
4862
|
step: 1,
|
|
4886
4863
|
tip: "【字段配置】存在未填写项",
|
|
4887
4864
|
errors: fieldRef.value?.validate?.() || []
|
|
4888
|
-
},
|
|
4865
|
+
}],
|
|
4889
4866
|
{
|
|
4890
4867
|
step: 2,
|
|
4891
4868
|
tip: "【流程设计】条件未配置完整",
|
|
@@ -4936,15 +4913,15 @@ var FlowConfig_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @_
|
|
|
4936
4913
|
type: "segment",
|
|
4937
4914
|
class: "flow-config__tabs"
|
|
4938
4915
|
}, {
|
|
4939
|
-
default: withCtx(() => [(openBlock(), createElementBlock(Fragment, null, renderList(steps, (step) => {
|
|
4940
|
-
return
|
|
4916
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(steps.value, (step) => {
|
|
4917
|
+
return openBlock(), createBlock(_component_NTab, {
|
|
4941
4918
|
key: step.value,
|
|
4942
4919
|
name: step.value
|
|
4943
4920
|
}, {
|
|
4944
4921
|
default: withCtx(() => [createTextVNode(toDisplayString(step.label), 1)]),
|
|
4945
4922
|
_: 2
|
|
4946
4923
|
}, 1032, ["name"]);
|
|
4947
|
-
}),
|
|
4924
|
+
}), 128))]),
|
|
4948
4925
|
_: 1
|
|
4949
4926
|
}, 8, ["value"]),
|
|
4950
4927
|
createVNode(_component_NButton, {
|
|
@@ -4992,7 +4969,7 @@ var FlowConfig_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @_
|
|
|
4992
4969
|
}, 8, ["style"]);
|
|
4993
4970
|
};
|
|
4994
4971
|
}
|
|
4995
|
-
}), [["__scopeId", "data-v-
|
|
4972
|
+
}), [["__scopeId", "data-v-86b98e2f"]]);
|
|
4996
4973
|
//#endregion
|
|
4997
4974
|
//#region src/utils/common.ts
|
|
4998
4975
|
/** 判断是否为空(undefined/null/空字符串) */
|
|
@@ -5411,19 +5388,9 @@ var FlowAvatar_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @_
|
|
|
5411
5388
|
}
|
|
5412
5389
|
}), [["__scopeId", "data-v-197c08a1"]]);
|
|
5413
5390
|
//#endregion
|
|
5414
|
-
//#region src/timeline/flowUserKey.ts
|
|
5415
|
-
/** 拼接人员选项 key:节点ID::人员ID(缺省回落名称) */
|
|
5416
|
-
function getUserKey(node, user) {
|
|
5417
|
-
return `${node.id ?? node.name}::${user.id ?? user.name}`;
|
|
5418
|
-
}
|
|
5419
|
-
/** 解析人员选项 key:返回 [节点 key, 人员 key] */
|
|
5420
|
-
function parseUserKey(key) {
|
|
5421
|
-
return key.split("::");
|
|
5422
|
-
}
|
|
5423
|
-
//#endregion
|
|
5424
5391
|
//#region src/timeline/FlowNode.vue?vue&type=script&setup=true&lang.ts
|
|
5425
5392
|
var _hoisted_1$7 = {
|
|
5426
|
-
key:
|
|
5393
|
+
key: 1,
|
|
5427
5394
|
class: "flow-node__time"
|
|
5428
5395
|
};
|
|
5429
5396
|
var _hoisted_2$5 = {
|
|
@@ -5454,8 +5421,17 @@ var _hoisted_11 = {
|
|
|
5454
5421
|
key: 2,
|
|
5455
5422
|
class: "flow-node__users"
|
|
5456
5423
|
};
|
|
5457
|
-
var _hoisted_12 =
|
|
5458
|
-
var _hoisted_13 = {
|
|
5424
|
+
var _hoisted_12 = { class: "flow-node__user-name" };
|
|
5425
|
+
var _hoisted_13 = {
|
|
5426
|
+
key: 0,
|
|
5427
|
+
class: "flow-node__user-check",
|
|
5428
|
+
viewBox: "0 0 24 24",
|
|
5429
|
+
fill: "none",
|
|
5430
|
+
stroke: "currentColor",
|
|
5431
|
+
"stroke-width": "3",
|
|
5432
|
+
"stroke-linecap": "round",
|
|
5433
|
+
"stroke-linejoin": "round"
|
|
5434
|
+
};
|
|
5459
5435
|
var _hoisted_14 = {
|
|
5460
5436
|
key: 1,
|
|
5461
5437
|
class: "flow-node__user-check flow-node__user-check--reject",
|
|
@@ -5498,7 +5474,7 @@ var _hoisted_24 = {
|
|
|
5498
5474
|
};
|
|
5499
5475
|
var _hoisted_25 = ["href", "onClick"];
|
|
5500
5476
|
var _hoisted_26 = {
|
|
5501
|
-
key:
|
|
5477
|
+
key: 2,
|
|
5502
5478
|
class: "flow-node__time"
|
|
5503
5479
|
};
|
|
5504
5480
|
/** 节点类型 → 标题固定文案(不展示具体节点名称) */
|
|
@@ -5553,9 +5529,9 @@ var FlowNode_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__P
|
|
|
5553
5529
|
}),
|
|
5554
5530
|
emits: /* @__PURE__ */ mergeModels(["select"], ["update:selectedUsers"]),
|
|
5555
5531
|
setup(__props, { emit: __emit }) {
|
|
5556
|
-
/** 节点数据;mode:display=展示 / select
|
|
5532
|
+
/** 节点数据;mode:display=展示 / select=可选择(驳回目标,整节点点选)/ form=表单(发起流程,节点人员无状态、无审批弹层);selectedKey=当前选中节点(节点ID,缺省回落名称,仅 select 模式) */
|
|
5557
5533
|
const props = __props;
|
|
5558
|
-
/** select
|
|
5534
|
+
/** select 模式点击节点任意位置时上抛该节点选项 key(节点ID,缺省回落名称) */
|
|
5559
5535
|
const emit = __emit;
|
|
5560
5536
|
const themeVars = useThemeVars();
|
|
5561
5537
|
/** 流程配色 CSS 变量(同时注入节点与意见弹层,弹层 teleport 后颜色仍可用) */
|
|
@@ -5588,35 +5564,25 @@ var FlowNode_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__P
|
|
|
5588
5564
|
if (record.rejectBy) return `被 ${record.rejectBy} 驳回`;
|
|
5589
5565
|
return "驳回";
|
|
5590
5566
|
}
|
|
5591
|
-
/**
|
|
5592
|
-
const
|
|
5593
|
-
/** select
|
|
5594
|
-
function
|
|
5595
|
-
if (props.mode
|
|
5596
|
-
if (props.node.type === "start") return true;
|
|
5597
|
-
return user.status === "done" && !user.pendingTask;
|
|
5598
|
-
}
|
|
5599
|
-
/** select 模式下人员是否为当前选中项 */
|
|
5600
|
-
function isUserSelected(user) {
|
|
5601
|
-
return props.selectedKey === getUserKey$1(user);
|
|
5602
|
-
}
|
|
5603
|
-
/** 点击人员:仅 select 模式且可作为驳回目标时上抛选项 key */
|
|
5604
|
-
function handleUserClick(user) {
|
|
5605
|
-
if (isUserSelectable(user)) emit("select", getUserKey$1(user));
|
|
5567
|
+
/** 节点选项 key(节点ID,缺省回落名称) */
|
|
5568
|
+
const getNodeKey = () => props.node.id ?? props.node.name;
|
|
5569
|
+
/** 点击节点:仅 select 模式上抛节点 key(父级弹窗再次点击同一节点取消选中) */
|
|
5570
|
+
function handleNodeClick() {
|
|
5571
|
+
if (props.mode === "select") emit("select", getNodeKey());
|
|
5606
5572
|
}
|
|
5573
|
+
/** select 模式下节点是否为当前选中项 */
|
|
5574
|
+
const isNodeSelected = computed(() => props.mode === "select" && props.selectedKey === getNodeKey());
|
|
5607
5575
|
/** 表单模式自选审批人:已选人员(v-model:selectedUsers 双向绑定供父组件获取,未绑定时组件内自持) */
|
|
5608
5576
|
const selfSelected = useModel(__props, "selectedUsers");
|
|
5609
5577
|
/** 发生时间按空格拆分为日期/时刻两行(无时间为空数组) */
|
|
5610
5578
|
const timeParts = computed(() => props.node.time ? props.node.time.split(" ") : []);
|
|
5611
5579
|
/** 人员折叠展开状态 */
|
|
5612
5580
|
const expanded = ref(false);
|
|
5613
|
-
/**
|
|
5614
|
-
const
|
|
5615
|
-
/** 人员总数(select 模式按可选人员统计,用于判断是否显示展开按钮) */
|
|
5616
|
-
const totalUsers = computed(() => baseUsers.value.length);
|
|
5581
|
+
/** 人员总数(用于判断是否显示展开按钮) */
|
|
5582
|
+
const totalUsers = computed(() => props.node.users.length);
|
|
5617
5583
|
/** 展示的人员列表:超出折叠人数时默认截取前 N 个,展开后全部展示 */
|
|
5618
5584
|
const visibleUsers = computed(() => {
|
|
5619
|
-
const users =
|
|
5585
|
+
const users = props.node.users;
|
|
5620
5586
|
if (!expanded.value && users.length > props.collapseCount) return users.slice(0, props.collapseCount);
|
|
5621
5587
|
return users;
|
|
5622
5588
|
});
|
|
@@ -5629,13 +5595,22 @@ var FlowNode_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__P
|
|
|
5629
5595
|
return (_ctx, _cache) => {
|
|
5630
5596
|
const _component_NPopover = NPopover;
|
|
5631
5597
|
return openBlock(), createElementBlock("div", {
|
|
5632
|
-
class: normalizeClass(["flow-node__item", [
|
|
5633
|
-
|
|
5598
|
+
class: normalizeClass(["flow-node__item", [
|
|
5599
|
+
__props.mode === "display" ? `flow-node__item--${__props.node.status}` : __props.mode === "form" ? "flow-node__item--form" : void 0,
|
|
5600
|
+
__props.mode === "select" ? "flow-node__item--select" : void 0,
|
|
5601
|
+
isNodeSelected.value ? "flow-node__item--selected" : void 0
|
|
5602
|
+
]]),
|
|
5603
|
+
style: normalizeStyle(flowVars.value),
|
|
5604
|
+
onClick: handleNodeClick
|
|
5634
5605
|
}, [
|
|
5606
|
+
__props.mode === "select" ? (openBlock(), createElementBlock("span", {
|
|
5607
|
+
key: 0,
|
|
5608
|
+
class: normalizeClass(["flow-node__radio", { "flow-node__radio--checked": isNodeSelected.value }])
|
|
5609
|
+
}, null, 2)) : createCommentVNode("", true),
|
|
5635
5610
|
__props.mode === "display" ? (openBlock(), createElementBlock("div", _hoisted_1$7, [(openBlock(true), createElementBlock(Fragment, null, renderList(timeParts.value, (part, i) => {
|
|
5636
5611
|
return openBlock(), createElementBlock("span", { key: i }, toDisplayString(part), 1);
|
|
5637
5612
|
}), 128))])) : createCommentVNode("", true),
|
|
5638
|
-
createElementVNode("div", { class: normalizeClass(["flow-node__badge", __props.mode === "
|
|
5613
|
+
createElementVNode("div", { class: normalizeClass(["flow-node__badge", __props.mode === "display" ? `flow-node__badge--${__props.node.status}` : `flow-node__badge--form-${__props.node.type}`]) }, [__props.node.type === "end" ? (openBlock(), createElementBlock("div", _hoisted_2$5)) : __props.mode === "display" && __props.node.status === "done" && __props.node.users.length ? (openBlock(), createBlock(FlowAvatar_default, {
|
|
5639
5614
|
key: 1,
|
|
5640
5615
|
class: "flow-node__badge-media",
|
|
5641
5616
|
name: __props.node.users[0].name,
|
|
@@ -5653,14 +5628,14 @@ var FlowNode_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__P
|
|
|
5653
5628
|
key: i,
|
|
5654
5629
|
d
|
|
5655
5630
|
}, null, 8, _hoisted_5$2);
|
|
5656
|
-
}), 128))], 8, _hoisted_4$3))])), __props.mode
|
|
5631
|
+
}), 128))], 8, _hoisted_4$3))])), __props.mode === "display" && __props.node.status === "done" && __props.node.type !== "end" ? (openBlock(), createElementBlock("div", _hoisted_6, [createElementVNode("svg", {
|
|
5657
5632
|
viewBox: "0 0 24 24",
|
|
5658
5633
|
fill: "none",
|
|
5659
5634
|
stroke: "currentColor",
|
|
5660
5635
|
"stroke-width": "3.5",
|
|
5661
5636
|
"stroke-linecap": "round",
|
|
5662
5637
|
"stroke-linejoin": "round"
|
|
5663
|
-
}, [createElementVNode("path", { d: CHECK_PATH })])])) : __props.mode
|
|
5638
|
+
}, [createElementVNode("path", { d: CHECK_PATH })])])) : __props.mode === "display" && __props.node.status === "doing" ? (openBlock(), createElementBlock("div", _hoisted_7, [..._cache[3] || (_cache[3] = [createElementVNode("svg", {
|
|
5664
5639
|
viewBox: "0 0 24 24",
|
|
5665
5640
|
fill: "none",
|
|
5666
5641
|
stroke: "currentColor",
|
|
@@ -5692,33 +5667,16 @@ var FlowNode_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__P
|
|
|
5692
5667
|
disabled: !isUserRecordVisible(user),
|
|
5693
5668
|
style: normalizeStyle(popoverStyle.value)
|
|
5694
5669
|
}, {
|
|
5695
|
-
trigger: withCtx(() => [createElementVNode("div", {
|
|
5696
|
-
class: normalizeClass(["flow-node__user", [
|
|
5697
|
-
__props.mode === "display" && user.status ? `flow-node__user--${user.status}` : void 0,
|
|
5698
|
-
isUserRecordVisible(user) ? "flow-node__user--has-record" : void 0,
|
|
5699
|
-
isUserSelectable(user) ? "flow-node__user--selectable" : void 0,
|
|
5700
|
-
isUserSelected(user) ? "flow-node__user--selected" : void 0
|
|
5701
|
-
]]),
|
|
5702
|
-
onClick: ($event) => handleUserClick(user)
|
|
5703
|
-
}, [
|
|
5670
|
+
trigger: withCtx(() => [createElementVNode("div", { class: normalizeClass(["flow-node__user", [__props.mode === "display" && user.status ? `flow-node__user--${user.status}` : void 0, isUserRecordVisible(user) ? "flow-node__user--has-record" : void 0]]) }, [
|
|
5704
5671
|
createVNode(FlowAvatar_default, {
|
|
5705
5672
|
class: "flow-node__user-avatar",
|
|
5706
5673
|
name: user.name,
|
|
5707
5674
|
avatar: user.avatar
|
|
5708
5675
|
}, null, 8, ["name", "avatar"]),
|
|
5709
|
-
createElementVNode("span",
|
|
5710
|
-
__props.mode === "display" && user.status === "done"
|
|
5711
|
-
key: 0,
|
|
5712
|
-
class: normalizeClass(["flow-node__user-check", { "flow-node__user-check--selected": isUserSelected(user) }]),
|
|
5713
|
-
viewBox: "0 0 24 24",
|
|
5714
|
-
fill: "none",
|
|
5715
|
-
stroke: "currentColor",
|
|
5716
|
-
"stroke-width": "3",
|
|
5717
|
-
"stroke-linecap": "round",
|
|
5718
|
-
"stroke-linejoin": "round"
|
|
5719
|
-
}, [createElementVNode("path", { d: CHECK_PATH })], 2)) : __props.mode === "display" && user.status === "rejected" ? (openBlock(), createElementBlock("svg", _hoisted_14, [..._cache[4] || (_cache[4] = [createElementVNode("path", { d: "M6 6l12 12M18 6 6 18" }, null, -1)])])) : createCommentVNode("", true),
|
|
5676
|
+
createElementVNode("span", _hoisted_12, toDisplayString(user.name), 1),
|
|
5677
|
+
__props.mode === "display" && user.status === "done" ? (openBlock(), createElementBlock("svg", _hoisted_13, [createElementVNode("path", { d: CHECK_PATH })])) : __props.mode === "display" && user.status === "rejected" ? (openBlock(), createElementBlock("svg", _hoisted_14, [..._cache[4] || (_cache[4] = [createElementVNode("path", { d: "M6 6l12 12M18 6 6 18" }, null, -1)])])) : createCommentVNode("", true),
|
|
5720
5678
|
isUserRecordVisible(user) ? (openBlock(), createElementBlock("svg", _hoisted_15, [createElementVNode("path", { d: CHEVRON_DOWN_PATH })])) : createCommentVNode("", true)
|
|
5721
|
-
],
|
|
5679
|
+
], 2)]),
|
|
5722
5680
|
default: withCtx(() => [createElementVNode("div", _hoisted_16, [createElementVNode("div", _hoisted_17, [createVNode(FlowAvatar_default, {
|
|
5723
5681
|
class: "flow-node__record-avatar",
|
|
5724
5682
|
name: user.name,
|
|
@@ -5781,7 +5739,7 @@ var FlowNode_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__P
|
|
|
5781
5739
|
], 6);
|
|
5782
5740
|
};
|
|
5783
5741
|
}
|
|
5784
|
-
}), [["__scopeId", "data-v-
|
|
5742
|
+
}), [["__scopeId", "data-v-01c5b0f9"]]);
|
|
5785
5743
|
//#endregion
|
|
5786
5744
|
//#region src/timeline/ApprovalModal.vue?vue&type=script&setup=true&lang.ts
|
|
5787
5745
|
var _hoisted_1$6 = { class: "reject-node-list" };
|
|
@@ -5832,11 +5790,10 @@ var ApprovalModal_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/*
|
|
|
5832
5790
|
return base;
|
|
5833
5791
|
});
|
|
5834
5792
|
/**
|
|
5835
|
-
*
|
|
5793
|
+
* 驳回可选节点(仅驳回时计算,整节点重置只选节点):
|
|
5836
5794
|
* - 发起节点始终保留(驳回到发起人=拒绝整个申请)
|
|
5837
5795
|
* - 过滤未开始的节点
|
|
5838
|
-
* -
|
|
5839
|
-
* 人员级过滤由 FlowNode 选择模式处理:仅「已审批且无未处理任务行」人员可点选,或签未轮到、被驳回重置后待处理的人员隐藏
|
|
5796
|
+
* - 过滤进行中且无「已完成本轮审批」人员的节点(节点下无历史审批记录则不可作驳回目标)
|
|
5840
5797
|
*/
|
|
5841
5798
|
const filterNodes = computed(() => {
|
|
5842
5799
|
if (props.type !== "reject") return [];
|
|
@@ -5866,13 +5823,9 @@ var ApprovalModal_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/*
|
|
|
5866
5823
|
attachments: [...model.attachments]
|
|
5867
5824
|
};
|
|
5868
5825
|
if (props.type === "reject" && model.rejectTarget) {
|
|
5869
|
-
const
|
|
5870
|
-
const targetNode = props.nodes.find((item) => (item.id ?? item.name) === nodeKey);
|
|
5871
|
-
const targetUser = targetNode?.users.find((user) => String(user.id ?? user.name) === userKey);
|
|
5826
|
+
const targetNode = props.nodes.find((item) => (item.id ?? item.name) === model.rejectTarget);
|
|
5872
5827
|
payload.rejectNode = targetNode?.name;
|
|
5873
|
-
payload.rejectUser = targetUser?.name;
|
|
5874
5828
|
payload.rejectNodeId = targetNode?.id;
|
|
5875
|
-
if (targetNode?.type === "approver" && targetUser?.id != null) payload.rejectUserId = String(targetUser.id);
|
|
5876
5829
|
}
|
|
5877
5830
|
emit("submitted", payload, close);
|
|
5878
5831
|
}
|
|
@@ -5958,7 +5911,7 @@ var ApprovalModal_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/*
|
|
|
5958
5911
|
}, 8, ["show", "title"]);
|
|
5959
5912
|
};
|
|
5960
5913
|
}
|
|
5961
|
-
}), [["__scopeId", "data-v-
|
|
5914
|
+
}), [["__scopeId", "data-v-4d9540ab"]]);
|
|
5962
5915
|
//#endregion
|
|
5963
5916
|
//#region src/base-ui/base-card-item.vue?vue&type=script&setup=true&lang.ts
|
|
5964
5917
|
var _hoisted_1$5 = { class: "header" };
|
|
@@ -6069,13 +6022,14 @@ function mapTimelineNodes(data) {
|
|
|
6069
6022
|
const users = node.users.map((user) => {
|
|
6070
6023
|
const records = toUserRecords(user, instanceRejected);
|
|
6071
6024
|
const rawRows = Array.isArray(user.records) ? user.records : [];
|
|
6025
|
+
const hasPendingRow = rawRows.some((record) => record.result === 0 && record.finished === 0);
|
|
6072
6026
|
const processedRows = rawRows.filter((record) => record.result === 2 || record.result === 3 || record.is_reject === 1);
|
|
6073
|
-
const status = processedRows.length ? isLatestRowsReject(processedRows) ? "rejected" : "done" : nodeStatus === "doing" ? "doing" : nodeStatus === "done" && node.mode === "orsign" ? "pending" : nodeStatus;
|
|
6027
|
+
const status = hasPendingRow ? nodeStatus === "doing" ? "doing" : "pending" : processedRows.length ? isLatestRowsReject(processedRows) ? "rejected" : "done" : nodeStatus === "doing" ? "doing" : nodeStatus === "done" && node.mode === "orsign" ? "pending" : nodeStatus;
|
|
6074
6028
|
return {
|
|
6075
6029
|
id: user.id,
|
|
6076
6030
|
name: user.name,
|
|
6077
6031
|
status,
|
|
6078
|
-
pendingTask:
|
|
6032
|
+
pendingTask: hasPendingRow,
|
|
6079
6033
|
...records.length ? { records } : {}
|
|
6080
6034
|
};
|
|
6081
6035
|
});
|
|
@@ -6604,7 +6558,7 @@ var FlowLayout_default = /* @__PURE__ */ defineComponent({
|
|
|
6604
6558
|
function handleReject() {
|
|
6605
6559
|
openApproval("reject");
|
|
6606
6560
|
}
|
|
6607
|
-
/** 审批弹窗提交:approve 调 /wflow/undo/approve(意见附件可空)、reject 调 /wflow/undo/reject(意见与目标节点 ID
|
|
6561
|
+
/** 审批弹窗提交:approve 调 /wflow/undo/approve(意见附件可空)、reject 调 /wflow/undo/reject(意见与目标节点 ID 必传,整节点重置);成功 done() 关闭弹窗并 emit success 通知页面刷新详情,失败 done(false) 保持弹窗打开并结束确认按钮 loading */
|
|
6608
6562
|
async function handleApprovalSubmit(value, done) {
|
|
6609
6563
|
const undoId = props.timelineData?.undo_id;
|
|
6610
6564
|
if (!undoId) {
|
|
@@ -6631,13 +6585,12 @@ var FlowLayout_default = /* @__PURE__ */ defineComponent({
|
|
|
6631
6585
|
const { error } = await fetchWflowUndoReject({
|
|
6632
6586
|
undo_id: undoId,
|
|
6633
6587
|
reject_node_id: value.rejectNodeId,
|
|
6634
|
-
reject_user_id: value.rejectUserId ?? null,
|
|
6635
6588
|
suggest: value.opinion,
|
|
6636
6589
|
attachments
|
|
6637
6590
|
});
|
|
6638
6591
|
done(!error);
|
|
6639
6592
|
if (error) return;
|
|
6640
|
-
window.$message?.success(
|
|
6593
|
+
window.$message?.success(`已驳回至 ${value.rejectNode}`);
|
|
6641
6594
|
}
|
|
6642
6595
|
emit("success");
|
|
6643
6596
|
}
|
package/dist/style.css
CHANGED
|
@@ -1538,7 +1538,7 @@ to {
|
|
|
1538
1538
|
}
|
|
1539
1539
|
/* Developed collaboratively with vscode - 改动代码行数: 1行(style 块改用 scss) */
|
|
1540
1540
|
/* Developed collaboratively with vscode - 改动代码行数: 6行 */
|
|
1541
|
-
.flow-config-more[data-v-
|
|
1541
|
+
.flow-config-more[data-v-b4e7caf8] {
|
|
1542
1542
|
max-width: 600px;
|
|
1543
1543
|
/* Developed collaboratively with vscode - 改动代码行数: 3行(白色背景 + 圆角 + 距外部 20px 边距) */
|
|
1544
1544
|
margin: 20px auto;
|
|
@@ -1550,14 +1550,14 @@ to {
|
|
|
1550
1550
|
}
|
|
1551
1551
|
/* Developed collaboratively with vscode - 改动代码行数: 1行(style 块改用 scss 并做 BEM 嵌套整理) */
|
|
1552
1552
|
/* Developed collaboratively with vscode - 改动代码行数: 14行 */
|
|
1553
|
-
.flow-config[data-v-
|
|
1553
|
+
.flow-config[data-v-86b98e2f] {
|
|
1554
1554
|
/* .n-card 根元素自带 flex column 布局与 cardColor 背景,此处只补满高度;
|
|
1555
1555
|
overflow: hidden 让底部圆角裁掉子组件直角背景的超出部分 */
|
|
1556
1556
|
/* Developed collaboratively with vscode - 改动代码行数: 1行(根容器裁剪圆角外溢出) */
|
|
1557
1557
|
height: 100%;
|
|
1558
1558
|
overflow: hidden;
|
|
1559
1559
|
}
|
|
1560
|
-
.flow-config__header[data-v-
|
|
1560
|
+
.flow-config__header[data-v-86b98e2f] {
|
|
1561
1561
|
/* header 插槽行:占满卡片头部宽度并作为 title / publish 的 absolute 定位包含块;
|
|
1562
1562
|
内容区自身滚动(overflow: auto),头部天然固定,无需 sticky */
|
|
1563
1563
|
position: relative;
|
|
@@ -1568,7 +1568,7 @@ to {
|
|
|
1568
1568
|
padding: 16px 20px;
|
|
1569
1569
|
border-bottom: 1px solid var(--fc-border-color);
|
|
1570
1570
|
}
|
|
1571
|
-
.flow-config__title[data-v-
|
|
1571
|
+
.flow-config__title[data-v-86b98e2f] {
|
|
1572
1572
|
font-size: 15px;
|
|
1573
1573
|
font-weight: 500;
|
|
1574
1574
|
color: var(--fc-primary-color);
|
|
@@ -1579,38 +1579,38 @@ to {
|
|
|
1579
1579
|
padding-left: 10px;
|
|
1580
1580
|
border-left: 3px solid var(--fc-primary-color);
|
|
1581
1581
|
}
|
|
1582
|
-
.flow-config__publish[data-v-
|
|
1582
|
+
.flow-config__publish[data-v-86b98e2f] {
|
|
1583
1583
|
position: absolute;
|
|
1584
1584
|
right: 20px;
|
|
1585
1585
|
}
|
|
1586
|
-
.flow-config[data-v-
|
|
1586
|
+
.flow-config[data-v-86b98e2f] {
|
|
1587
1587
|
/* Developed collaboratively with vscode - 改动代码行数: 7行(NTabs segment 收缩为内容宽度;segment 模式 rail 均分容器宽度,fit-content 下富余为零导致标签文字紧连,补 label 水平内边距还原分段控件观感) */
|
|
1588
1588
|
}
|
|
1589
|
-
.flow-config__tabs[data-v-
|
|
1589
|
+
.flow-config__tabs[data-v-86b98e2f] {
|
|
1590
1590
|
width: fit-content;
|
|
1591
1591
|
}
|
|
1592
|
-
.flow-config__tabs[data-v-
|
|
1592
|
+
.flow-config__tabs[data-v-86b98e2f] .n-tabs-tab__label {
|
|
1593
1593
|
padding: 0 12px;
|
|
1594
1594
|
}
|
|
1595
|
-
.flow-config[data-v-
|
|
1595
|
+
.flow-config[data-v-86b98e2f] {
|
|
1596
1596
|
/* Developed collaboratively with vscode - 改动代码行数: 9行(内容区 loading:NSpin 链式撑满替代原 body 的 flex 布局职责) */
|
|
1597
1597
|
/* NSpin 承载内容区 flex 布局职责,内部容器链式撑满,保证 body 滚动与遮罩覆盖正确 */
|
|
1598
1598
|
}
|
|
1599
|
-
.flow-config__spin[data-v-
|
|
1599
|
+
.flow-config__spin[data-v-86b98e2f] {
|
|
1600
1600
|
flex: 1;
|
|
1601
1601
|
min-height: 0;
|
|
1602
1602
|
}
|
|
1603
|
-
.flow-config__spin[data-v-
|
|
1604
|
-
.flow-config__spin[data-v-
|
|
1603
|
+
.flow-config__spin[data-v-86b98e2f] .n-spin-container,
|
|
1604
|
+
.flow-config__spin[data-v-86b98e2f] .n-spin-content {
|
|
1605
1605
|
height: 100%;
|
|
1606
1606
|
}
|
|
1607
|
-
.flow-config__body[data-v-
|
|
1607
|
+
.flow-config__body[data-v-86b98e2f] {
|
|
1608
1608
|
height: 100%;
|
|
1609
1609
|
overflow: auto;
|
|
1610
1610
|
/* 内容区浅色背景,子组件以白色卡片浮于其上 */
|
|
1611
1611
|
background: var(--fc-bg-color);
|
|
1612
1612
|
}
|
|
1613
|
-
.flow-config__body[data-v-
|
|
1613
|
+
.flow-config__body[data-v-86b98e2f] > * {
|
|
1614
1614
|
min-height: 100%;
|
|
1615
1615
|
}
|
|
1616
1616
|
/* Developed collaboratively with vscode - 改动代码行数: 39行 */
|
|
@@ -1660,7 +1660,7 @@ to {
|
|
|
1660
1660
|
|
|
1661
1661
|
/* Developed collaboratively with vscode - 改动代码行数: 1行 */
|
|
1662
1662
|
/* 单个节点:展示模式时间列 72 + 间距 12 + 图标 36,选择模式时间在最右端 */
|
|
1663
|
-
.flow-node__item[data-v-
|
|
1663
|
+
.flow-node__item[data-v-01c5b0f9] {
|
|
1664
1664
|
position: relative;
|
|
1665
1665
|
display: flex;
|
|
1666
1666
|
align-items: flex-start;
|
|
@@ -1668,13 +1668,13 @@ to {
|
|
|
1668
1668
|
/* 底部间距同时作为连接线的延伸区,使线段接到下一个节点图标顶部 */
|
|
1669
1669
|
padding-bottom: 28px;
|
|
1670
1670
|
}
|
|
1671
|
-
.flow-node__item[data-v-
|
|
1671
|
+
.flow-node__item[data-v-01c5b0f9]:last-child {
|
|
1672
1672
|
padding-bottom: 0;
|
|
1673
1673
|
}
|
|
1674
|
-
.flow-node__item[data-v-
|
|
1674
|
+
.flow-node__item[data-v-01c5b0f9] {
|
|
1675
1675
|
/* 节点连接线:从图标下方延伸到项底部,与下一项首尾相接 */
|
|
1676
1676
|
}
|
|
1677
|
-
.flow-node__item[data-v-
|
|
1677
|
+
.flow-node__item[data-v-01c5b0f9]::before {
|
|
1678
1678
|
content: "";
|
|
1679
1679
|
position: absolute;
|
|
1680
1680
|
top: 40px; /* 图标 36 + 间距 4 */
|
|
@@ -1683,31 +1683,55 @@ to {
|
|
|
1683
1683
|
width: 2px;
|
|
1684
1684
|
background: var(--flow-border-color);
|
|
1685
1685
|
}
|
|
1686
|
-
.flow-node__item[data-v-
|
|
1686
|
+
.flow-node__item[data-v-01c5b0f9]:last-child::before {
|
|
1687
1687
|
content: none;
|
|
1688
1688
|
}
|
|
1689
1689
|
|
|
1690
1690
|
/* Developed collaboratively with vscode - 改动代码行数: 8行 */
|
|
1691
1691
|
/* 选择/表单模式:无左侧时间列,连接线随之对齐图标中心 */
|
|
1692
|
-
.flow-node__item--select
|
|
1693
|
-
|
|
1692
|
+
/* Developed collaboratively with vscode - 改动代码行数: 删除4行(select 连接线 left:45px 独立规则删除,随内边距化合并进下方 .flow-node__item--select 块统一调整偏移) */
|
|
1693
|
+
/* Developed collaboratively with vscode - 改动代码行数: 3行改动(select 模式节点左侧新增单选框列后图标整体右移 16+12=28px:select 连接线改 45px 对齐图标中心,form 保持 17px 不变) */
|
|
1694
|
+
.flow-node__item--form[data-v-01c5b0f9]::before {
|
|
1694
1695
|
left: 17px; /* 图标半径 18 - 线宽一半 1 */
|
|
1695
1696
|
}
|
|
1696
|
-
|
|
1697
|
+
|
|
1698
|
+
/* Developed collaboratively with vscode - 改动代码行数: 18行新增(select 模式节点左侧单选框:未选中灰描边圆圈,选中主色描边+内圆点;margin-top 10px 与 36px 图标垂直居中) */
|
|
1699
|
+
/* select 模式:节点左侧单选框 */
|
|
1700
|
+
.flow-node__radio[data-v-01c5b0f9] {
|
|
1701
|
+
flex-shrink: 0;
|
|
1702
|
+
width: 16px;
|
|
1703
|
+
height: 16px;
|
|
1704
|
+
margin-top: 10px;
|
|
1705
|
+
border: 1px solid var(--flow-border-color);
|
|
1706
|
+
border-radius: 50%;
|
|
1707
|
+
transition: border-color 0.2s;
|
|
1708
|
+
}
|
|
1709
|
+
.flow-node__radio--checked[data-v-01c5b0f9] {
|
|
1710
|
+
position: relative;
|
|
1711
|
+
border-color: var(--flow-primary-color);
|
|
1712
|
+
}
|
|
1713
|
+
.flow-node__radio--checked[data-v-01c5b0f9]::after {
|
|
1714
|
+
content: "";
|
|
1715
|
+
position: absolute;
|
|
1716
|
+
inset: 3px;
|
|
1717
|
+
border-radius: 50%;
|
|
1718
|
+
background: var(--flow-primary-color);
|
|
1719
|
+
}
|
|
1720
|
+
.flow-node__item--select .flow-node__time[data-v-01c5b0f9] {
|
|
1697
1721
|
align-items: flex-end;
|
|
1698
1722
|
}
|
|
1699
1723
|
|
|
1700
1724
|
/* 状态 → 节点名称配色:已完成-主文字 / 进行中-橙黄 / 未开始-弱文字 */
|
|
1701
|
-
.flow-node__item--doing .flow-node__name[data-v-
|
|
1725
|
+
.flow-node__item--doing .flow-node__name[data-v-01c5b0f9] {
|
|
1702
1726
|
color: #e6a23c;
|
|
1703
1727
|
}
|
|
1704
|
-
.flow-node__item--pending .flow-node__name[data-v-
|
|
1728
|
+
.flow-node__item--pending .flow-node__name[data-v-01c5b0f9] {
|
|
1705
1729
|
color: var(--flow-text-color-3);
|
|
1706
1730
|
}
|
|
1707
1731
|
|
|
1708
1732
|
/* Developed collaboratively with vscode - 改动代码行数: 1行 */
|
|
1709
1733
|
/* 发生时间:日期、时刻两行(选择模式下移至最右侧并右对齐) */
|
|
1710
|
-
.flow-node__time[data-v-
|
|
1734
|
+
.flow-node__time[data-v-01c5b0f9] {
|
|
1711
1735
|
display: flex;
|
|
1712
1736
|
flex-direction: column;
|
|
1713
1737
|
flex-shrink: 0;
|
|
@@ -1719,7 +1743,7 @@ to {
|
|
|
1719
1743
|
}
|
|
1720
1744
|
|
|
1721
1745
|
/* 节点图标:36 圆形头像或类型图标 */
|
|
1722
|
-
.flow-node__badge[data-v-
|
|
1746
|
+
.flow-node__badge[data-v-01c5b0f9] {
|
|
1723
1747
|
position: relative;
|
|
1724
1748
|
flex-shrink: 0;
|
|
1725
1749
|
width: 36px;
|
|
@@ -1727,7 +1751,7 @@ to {
|
|
|
1727
1751
|
}
|
|
1728
1752
|
|
|
1729
1753
|
/* 结束节点:与连接线同色的灰色实心圆点 */
|
|
1730
|
-
.flow-node__badge-dot[data-v-
|
|
1754
|
+
.flow-node__badge-dot[data-v-01c5b0f9] {
|
|
1731
1755
|
position: absolute;
|
|
1732
1756
|
top: 50%;
|
|
1733
1757
|
left: 50%;
|
|
@@ -1740,14 +1764,14 @@ to {
|
|
|
1740
1764
|
|
|
1741
1765
|
/* Developed collaboratively with vscode - 改动代码行数: 4行 */
|
|
1742
1766
|
/* 流程全部完成时结束节点圆点变绿(结束节点不放对勾徽标,圆点颜色即完成标识) */
|
|
1743
|
-
.flow-node__badge--done .flow-node__badge-dot[data-v-
|
|
1767
|
+
.flow-node__badge--done .flow-node__badge-dot[data-v-01c5b0f9] {
|
|
1744
1768
|
background: var(--flow-success-color);
|
|
1745
1769
|
}
|
|
1746
1770
|
|
|
1747
1771
|
/* Developed collaboratively with vscode - 改动代码行数: 8行 */
|
|
1748
1772
|
/* 基础视觉(圆形/居中/白字)由 FlowAvatar 提供,此处控制尺寸与字号;
|
|
1749
1773
|
类型图标容器为原生 div(非 FlowAvatar),需在此补齐居中与圆形 */
|
|
1750
|
-
.flow-node__badge-media[data-v-
|
|
1774
|
+
.flow-node__badge-media[data-v-01c5b0f9] {
|
|
1751
1775
|
display: flex;
|
|
1752
1776
|
align-items: center;
|
|
1753
1777
|
justify-content: center;
|
|
@@ -1758,47 +1782,47 @@ to {
|
|
|
1758
1782
|
}
|
|
1759
1783
|
|
|
1760
1784
|
/* Developed collaboratively with vscode - 改动代码行数: 3行改动(doing 图标橙统一为主题变量并补 color-mix 底色:原 #e6a23c/rgba 单写与 doing 胶囊的主题橙 #D25F00 分裂为两种橙,改后同语义同色且跟随主题) */
|
|
1761
|
-
.flow-node__badge--doing .flow-node__badge-media--type[data-v-
|
|
1785
|
+
.flow-node__badge--doing .flow-node__badge-media--type[data-v-01c5b0f9] {
|
|
1762
1786
|
color: var(--flow-warning-color);
|
|
1763
1787
|
background: color-mix(in srgb, var(--flow-warning-color) 15%, transparent);
|
|
1764
1788
|
}
|
|
1765
1789
|
|
|
1766
1790
|
/* Developed collaboratively with vscode - 改动代码行数: 1行改动(删除 rgba 兜底行仅保留 color-mix:当前主题下渲染不变) */
|
|
1767
|
-
.flow-node__badge--pending .flow-node__badge-media--type[data-v-
|
|
1768
|
-
.flow-node__badge--done .flow-node__badge-media--type[data-v-
|
|
1791
|
+
.flow-node__badge--pending .flow-node__badge-media--type[data-v-01c5b0f9],
|
|
1792
|
+
.flow-node__badge--done .flow-node__badge-media--type[data-v-01c5b0f9] {
|
|
1769
1793
|
color: var(--flow-text-color-3);
|
|
1770
1794
|
background: color-mix(in srgb, var(--flow-text-color-3) 14%, transparent);
|
|
1771
1795
|
}
|
|
1772
1796
|
|
|
1773
1797
|
/* Developed collaboratively with vscode - 改动代码行数: 5行新增(驳回节点图标底色:与 doing/pending 同构的圆形淡红底,补齐 rejected 状态缺失的背景规则——此前驳回到发起人时发起人类型图标透明无圆形背景) */
|
|
1774
|
-
.flow-node__badge--rejected .flow-node__badge-media--type[data-v-
|
|
1798
|
+
.flow-node__badge--rejected .flow-node__badge-media--type[data-v-01c5b0f9] {
|
|
1775
1799
|
color: var(--flow-error-color);
|
|
1776
1800
|
background: color-mix(in srgb, var(--flow-error-color) 15%, transparent);
|
|
1777
1801
|
}
|
|
1778
1802
|
|
|
1779
1803
|
/* Developed collaboratively with vscode - 改动代码行数: 15行 */
|
|
1780
1804
|
/* 表单模式(发起流程):图标背景色跟随节点类型,与流程配置画布节点配色一致(发起=success 绿 / 审批=primary 蓝 / 抄送=warning 橙;结束节点仍为灰点) */
|
|
1781
|
-
.flow-node__badge--form-start .flow-node__badge-media--type[data-v-
|
|
1805
|
+
.flow-node__badge--form-start .flow-node__badge-media--type[data-v-01c5b0f9] {
|
|
1782
1806
|
color: #fff;
|
|
1783
1807
|
background: var(--flow-success-color);
|
|
1784
1808
|
}
|
|
1785
|
-
.flow-node__badge--form-approver .flow-node__badge-media--type[data-v-
|
|
1809
|
+
.flow-node__badge--form-approver .flow-node__badge-media--type[data-v-01c5b0f9] {
|
|
1786
1810
|
color: #fff;
|
|
1787
1811
|
background: var(--flow-primary-color);
|
|
1788
1812
|
}
|
|
1789
|
-
.flow-node__badge--form-cc .flow-node__badge-media--type[data-v-
|
|
1813
|
+
.flow-node__badge--form-cc .flow-node__badge-media--type[data-v-01c5b0f9] {
|
|
1790
1814
|
color: #fff;
|
|
1791
1815
|
background: var(--flow-warning-color);
|
|
1792
1816
|
}
|
|
1793
|
-
.flow-node__badge-icon[data-v-
|
|
1817
|
+
.flow-node__badge-icon[data-v-01c5b0f9] {
|
|
1794
1818
|
width: 18px;
|
|
1795
1819
|
height: 18px;
|
|
1796
1820
|
}
|
|
1797
1821
|
|
|
1798
1822
|
/* Developed collaboratively with vscode - 改动代码行数: 8行改动(完成/时钟角标共享定位与外观:position/偏移/尺寸/圆角/白字/白描边 11 条声明合并为共享选择器,差异仅各自底色与图标尺寸,计算结果不变) */
|
|
1799
1823
|
/* 已完成/进行中角标:图标右下角的圆形徽标,白色描边与头像分离(差异仅底色与图标尺寸) */
|
|
1800
|
-
.flow-node__badge-check[data-v-
|
|
1801
|
-
.flow-node__badge-clock[data-v-
|
|
1824
|
+
.flow-node__badge-check[data-v-01c5b0f9],
|
|
1825
|
+
.flow-node__badge-clock[data-v-01c5b0f9] {
|
|
1802
1826
|
position: absolute;
|
|
1803
1827
|
right: -3px;
|
|
1804
1828
|
bottom: -3px;
|
|
@@ -1814,30 +1838,30 @@ to {
|
|
|
1814
1838
|
|
|
1815
1839
|
/* Developed collaboratively with vscode - 改动代码行数: 1行改动(删除永不生效的变量兜底 #009a29:flowVars 在组件根与弹层均注入,变量必存在) */
|
|
1816
1840
|
/* 已完成角标:绿色圆形对勾 */
|
|
1817
|
-
.flow-node__badge-check[data-v-
|
|
1841
|
+
.flow-node__badge-check[data-v-01c5b0f9] {
|
|
1818
1842
|
background: var(--flow-success-color);
|
|
1819
1843
|
}
|
|
1820
|
-
.flow-node__badge-check svg[data-v-
|
|
1844
|
+
.flow-node__badge-check svg[data-v-01c5b0f9] {
|
|
1821
1845
|
width: 8px;
|
|
1822
1846
|
height: 8px;
|
|
1823
1847
|
}
|
|
1824
1848
|
|
|
1825
1849
|
/* Developed collaboratively with vscode - 改动代码行数: 1行改动(时钟角标橙统一为主题 warning 变量,与 doing 胶囊/图标同色且跟随主题) */
|
|
1826
1850
|
/* 进行中角标:橙色圆形时钟,与完成角标同位呼应 */
|
|
1827
|
-
.flow-node__badge-clock[data-v-
|
|
1851
|
+
.flow-node__badge-clock[data-v-01c5b0f9] {
|
|
1828
1852
|
background: var(--flow-warning-color);
|
|
1829
1853
|
}
|
|
1830
|
-
.flow-node__badge-clock svg[data-v-
|
|
1854
|
+
.flow-node__badge-clock svg[data-v-01c5b0f9] {
|
|
1831
1855
|
width: 9px;
|
|
1832
1856
|
height: 9px;
|
|
1833
1857
|
}
|
|
1834
1858
|
|
|
1835
1859
|
/* 节点内容 */
|
|
1836
|
-
.flow-node__main[data-v-
|
|
1860
|
+
.flow-node__main[data-v-01c5b0f9] {
|
|
1837
1861
|
flex: 1;
|
|
1838
1862
|
min-width: 0;
|
|
1839
1863
|
}
|
|
1840
|
-
.flow-node__name[data-v-
|
|
1864
|
+
.flow-node__name[data-v-01c5b0f9] {
|
|
1841
1865
|
font-size: 14px;
|
|
1842
1866
|
font-weight: 600;
|
|
1843
1867
|
line-height: 1.5;
|
|
@@ -1845,7 +1869,7 @@ to {
|
|
|
1845
1869
|
}
|
|
1846
1870
|
|
|
1847
1871
|
/* 人员列表:胶囊形式,淡背景 + 边框,与正文区分 */
|
|
1848
|
-
.flow-node__users[data-v-
|
|
1872
|
+
.flow-node__users[data-v-01c5b0f9] {
|
|
1849
1873
|
display: flex;
|
|
1850
1874
|
flex-wrap: wrap;
|
|
1851
1875
|
gap: 8px;
|
|
@@ -1854,13 +1878,13 @@ to {
|
|
|
1854
1878
|
|
|
1855
1879
|
/* Developed collaboratively with vscode - 改动代码行数: 5行 */
|
|
1856
1880
|
/* 表单模式自选审批人:选择器占满内容行,与人员列表同间距 */
|
|
1857
|
-
.flow-node__self-select[data-v-
|
|
1881
|
+
.flow-node__self-select[data-v-01c5b0f9] {
|
|
1858
1882
|
width: 100%;
|
|
1859
1883
|
margin-top: 8px;
|
|
1860
1884
|
}
|
|
1861
1885
|
|
|
1862
1886
|
/* Developed collaboratively with vscode - 改动代码行数: 2行改动(删除 rgba 兜底行仅保留 color-mix:当前主题下渲染不变) */
|
|
1863
|
-
.flow-node__user[data-v-
|
|
1887
|
+
.flow-node__user[data-v-01c5b0f9] {
|
|
1864
1888
|
display: flex;
|
|
1865
1889
|
align-items: center;
|
|
1866
1890
|
gap: 6px;
|
|
@@ -1873,19 +1897,19 @@ to {
|
|
|
1873
1897
|
|
|
1874
1898
|
/* Developed collaboratively with vscode - 改动代码行数: 4行 */
|
|
1875
1899
|
/* 基础视觉由 FlowAvatar 提供,此处仅控制尺寸与字号 */
|
|
1876
|
-
.flow-node__user-avatar[data-v-
|
|
1900
|
+
.flow-node__user-avatar[data-v-01c5b0f9] {
|
|
1877
1901
|
width: 20px;
|
|
1878
1902
|
height: 20px;
|
|
1879
1903
|
font-size: 11px;
|
|
1880
1904
|
}
|
|
1881
|
-
.flow-node__user-name[data-v-
|
|
1905
|
+
.flow-node__user-name[data-v-01c5b0f9] {
|
|
1882
1906
|
font-size: 12px;
|
|
1883
1907
|
color: var(--flow-text-color-2);
|
|
1884
1908
|
}
|
|
1885
1909
|
|
|
1886
1910
|
/* Developed collaboratively with vscode - 改动代码行数: 2行改动(删除 rgba 兜底行仅保留 color-mix:项目主题 success 即 #009A29,当前渲染不变) */
|
|
1887
1911
|
/* 已审批人员:淡绿胶囊 */
|
|
1888
|
-
.flow-node__user--done[data-v-
|
|
1912
|
+
.flow-node__user--done[data-v-01c5b0f9] {
|
|
1889
1913
|
border-color: color-mix(in srgb, var(--flow-success-color) 30%, transparent);
|
|
1890
1914
|
background: color-mix(in srgb, var(--flow-success-color) 6%, transparent);
|
|
1891
1915
|
}
|
|
@@ -1893,46 +1917,37 @@ to {
|
|
|
1893
1917
|
/* Developed collaboratively with vscode - 改动代码行数: 2行改动(审批中人员胶囊背景与边框同色系:此前仅换边框色、背景仍是基础灰底,补淡橙背景保持一致) */
|
|
1894
1918
|
/* Developed collaboratively with vscode - 改动代码行数: 4行改动(删除 rgba 兜底行仅保留 color-mix,并删除永不生效的 #e6a23c 兜底——新旧浏览器此前 rgba 亮橙与 color-mix 主题橙 #D25F00 两色分裂,删后统一为主题橙) */
|
|
1895
1919
|
/* 审批中人员:柔和橙黄边框 + 同色淡背景 */
|
|
1896
|
-
.flow-node__user--doing[data-v-
|
|
1920
|
+
.flow-node__user--doing[data-v-01c5b0f9] {
|
|
1897
1921
|
border-color: color-mix(in srgb, var(--flow-warning-color) 40%, transparent);
|
|
1898
1922
|
background: color-mix(in srgb, var(--flow-warning-color) 8%, transparent);
|
|
1899
1923
|
}
|
|
1900
1924
|
|
|
1901
1925
|
/* Developed collaboratively with vscode - 改动代码行数: 7行 */
|
|
1902
1926
|
/* 驳回人员:淡红色边框 + 淡红背景(节点内该人员最后一条操作记录为驳回) */
|
|
1903
|
-
.flow-node__user--rejected[data-v-
|
|
1927
|
+
.flow-node__user--rejected[data-v-01c5b0f9] {
|
|
1904
1928
|
border-color: color-mix(in srgb, var(--flow-error-color) 40%, transparent);
|
|
1905
1929
|
background: color-mix(in srgb, var(--flow-error-color) 8%, transparent);
|
|
1906
1930
|
}
|
|
1907
1931
|
|
|
1908
1932
|
/* Developed collaboratively with vscode - 改动代码行数: 1行改动(删除永不生效的变量兜底 #009a29) */
|
|
1909
|
-
.flow-node__user-check[data-v-
|
|
1933
|
+
.flow-node__user-check[data-v-01c5b0f9] {
|
|
1910
1934
|
width: 11px;
|
|
1911
1935
|
height: 11px;
|
|
1912
1936
|
flex-shrink: 0;
|
|
1913
1937
|
color: var(--flow-success-color);
|
|
1914
1938
|
}
|
|
1915
1939
|
|
|
1916
|
-
/* Developed collaboratively with vscode - 改动代码行数:
|
|
1917
|
-
/*
|
|
1918
|
-
|
|
1919
|
-
.flow-node__user--
|
|
1940
|
+
/* Developed collaboratively with vscode - 改动代码行数: 2行改动(流程变更驳回只选节点不到人:人员级可选样式 --selectable 取消,共享可点选择器仅保留展示模式 --has-record) */
|
|
1941
|
+
/* Developed collaboratively with vscode - 改动代码行数: 删除8行(删除 --selectable 差异块及其历史注记:人员级驳回目标选择已移除) */
|
|
1942
|
+
/* 可点击人员(展示模式有记录可查看):hover 主色提示 */
|
|
1943
|
+
.flow-node__user--has-record[data-v-01c5b0f9] {
|
|
1920
1944
|
cursor: pointer;
|
|
1921
1945
|
transition: border-color 0.2s;
|
|
1922
1946
|
}
|
|
1923
|
-
.flow-node__user--has-record[data-v-
|
|
1924
|
-
.flow-node__user--selectable[data-v-bc5f6c3a]:hover {
|
|
1947
|
+
.flow-node__user--has-record[data-v-01c5b0f9]:hover {
|
|
1925
1948
|
border-color: var(--flow-primary-color);
|
|
1926
1949
|
}
|
|
1927
|
-
|
|
1928
|
-
/* Developed collaboratively with vscode - 改动代码行数: 8行移动(--selectable 差异块上移紧邻共享可点样式块:纯位置调整,声明覆盖顺序不变,输出一致) */
|
|
1929
|
-
/* Developed collaboratively with vscode - 改动代码行数: 22行 */
|
|
1930
|
-
/* Developed collaboratively with vscode - 改动代码行数: 2行改动(cursor 与 hover 边框已并入上方共享选择器,此处仅保留 select 模式差异:背景色同步过渡——同特异性靠后声明生效,与原合并结果一致) */
|
|
1931
|
-
/* select 模式:可作为驳回目标的人员,背景色同步过渡 */
|
|
1932
|
-
.flow-node__user--selectable[data-v-bc5f6c3a] {
|
|
1933
|
-
transition: border-color 0.2s, background-color 0.2s;
|
|
1934
|
-
}
|
|
1935
|
-
.flow-node__user-arrow[data-v-bc5f6c3a] {
|
|
1950
|
+
.flow-node__user-arrow[data-v-01c5b0f9] {
|
|
1936
1951
|
flex-shrink: 0;
|
|
1937
1952
|
width: 10px;
|
|
1938
1953
|
height: 10px;
|
|
@@ -1941,7 +1956,7 @@ to {
|
|
|
1941
1956
|
|
|
1942
1957
|
/* Developed collaboratively with vscode - 改动代码行数: 23行 */
|
|
1943
1958
|
/* 人员折叠:展开/收起按钮(跟随人员列表末尾的浅主色胶囊,hover 加深) */
|
|
1944
|
-
.flow-node__more[data-v-
|
|
1959
|
+
.flow-node__more[data-v-01c5b0f9] {
|
|
1945
1960
|
display: inline-flex;
|
|
1946
1961
|
align-items: center;
|
|
1947
1962
|
gap: 4px;
|
|
@@ -1955,40 +1970,62 @@ to {
|
|
|
1955
1970
|
user-select: none;
|
|
1956
1971
|
transition: background-color 0.2s;
|
|
1957
1972
|
}
|
|
1958
|
-
.flow-node__more[data-v-
|
|
1973
|
+
.flow-node__more[data-v-01c5b0f9]:hover {
|
|
1959
1974
|
background: color-mix(in srgb, var(--flow-primary-color) 16%, transparent);
|
|
1960
1975
|
}
|
|
1961
1976
|
|
|
1962
1977
|
/* 箭头图标:展开时旋转朝上 */
|
|
1963
|
-
.flow-node__more-icon[data-v-
|
|
1978
|
+
.flow-node__more-icon[data-v-01c5b0f9] {
|
|
1964
1979
|
width: 12px;
|
|
1965
1980
|
height: 12px;
|
|
1966
1981
|
transition: transform 0.2s;
|
|
1967
1982
|
}
|
|
1968
|
-
.flow-node__more-icon--expanded[data-v-
|
|
1983
|
+
.flow-node__more-icon--expanded[data-v-01c5b0f9] {
|
|
1969
1984
|
transform: rotate(180deg);
|
|
1970
1985
|
}
|
|
1971
1986
|
|
|
1972
1987
|
/* Developed collaboratively with vscode - 改动代码行数: 删除6行(移除 .flow-node__user--selectable 的重复样式块:与上方上移后的正主块逐字相同,系移动后未删的残留,编译产物不变) */
|
|
1973
1988
|
/* Developed collaboratively with vscode - 改动代码行数: 4行(移至 .flow-node__user-check 基础规则之后:同特异性靠后者覆盖,修复驳回 X 被基础绿色 color 覆盖的问题) */
|
|
1974
1989
|
/* 驳回人员的 X 图标:红色 */
|
|
1975
|
-
.flow-node__user-check--reject[data-v-
|
|
1990
|
+
.flow-node__user-check--reject[data-v-01c5b0f9] {
|
|
1976
1991
|
color: var(--flow-error-color);
|
|
1977
1992
|
}
|
|
1978
1993
|
|
|
1979
|
-
/*
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1994
|
+
/* Developed collaboratively with vscode - 改动代码行数: 删除12行(流程变更驳回只选节点不到人:删除人员级选中样式 --user--selected 与 --user-check--selected,选中高亮上移至节点级) */
|
|
1995
|
+
/* Developed collaboratively with vscode - 改动代码行数: 19行新增(select 模式整节点点选:节点容器 hover 淡主色底提示可点;选中态主色淡底+节点名主色常显——置文件后部以覆盖 --doing 的节点名橙色,并用 :hover 同规则避免悬停被 --select:hover 抢色) */
|
|
1996
|
+
/* Developed collaboratively with vscode - 改动代码行数: 14行改动(选中/hover 背景不再贴边:容器加 8px 12px 内边距留白;连接线延伸区从 padding-bottom 改由 margin-bottom 28px 承载使背景盒不覆盖线段——::before 相应改 top 48(顶内边距 8+图标 36+间距 4)/bottom -36(跨 28 外边距+下节点 8 顶内边距接到下一图标顶)/left 57(左内边距 12+单选框 16+间距 12+图标半径 18-线宽一半 1),45px 独立规则随之删除;末项无线段延伸区故 margin 清零、padding-bottom 恢复 8px 背景内边距) */
|
|
1997
|
+
/* select 模式:整节点可点选 */
|
|
1998
|
+
.flow-node__item--select[data-v-01c5b0f9] {
|
|
1999
|
+
cursor: pointer;
|
|
2000
|
+
padding: 8px 12px;
|
|
2001
|
+
margin-bottom: 28px; /* 连接线延伸区改由外边距承载,背景盒不覆盖线段 */
|
|
2002
|
+
border-radius: 8px;
|
|
2003
|
+
transition: background-color 0.2s;
|
|
2004
|
+
/* 连接线随内边距与单选框列整体偏移,并跨过外边距延伸到下一节点图标顶 */
|
|
1983
2005
|
}
|
|
1984
|
-
.flow-
|
|
1985
|
-
|
|
1986
|
-
|
|
2006
|
+
.flow-node__item--select[data-v-01c5b0f9]::before {
|
|
2007
|
+
top: 48px; /* 顶内边距 8 + 图标 36 + 间距 4 */
|
|
2008
|
+
bottom: -36px; /* 跨 28 外边距 + 下节点顶内边距 8 */
|
|
2009
|
+
left: 57px; /* 左内边距 12 + 单选框 16 + 间距 12 + 图标半径 18 - 线宽一半 1 */
|
|
2010
|
+
}
|
|
2011
|
+
.flow-node__item--select[data-v-01c5b0f9]:last-child {
|
|
2012
|
+
margin-bottom: 0;
|
|
2013
|
+
padding-bottom: 8px; /* 覆盖 base :last-child 的 padding-bottom:0,保留背景内边距 */
|
|
2014
|
+
}
|
|
2015
|
+
.flow-node__item--select[data-v-01c5b0f9]:hover {
|
|
2016
|
+
background: color-mix(in srgb, var(--flow-primary-color) 6%, transparent);
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2019
|
+
/* select 模式:当前选中的驳回节点,主色淡底 + 节点名主色 */
|
|
2020
|
+
.flow-node__item--selected[data-v-01c5b0f9],
|
|
2021
|
+
.flow-node__item--selected[data-v-01c5b0f9]:hover {
|
|
2022
|
+
background: color-mix(in srgb, var(--flow-primary-color) 10%, transparent);
|
|
1987
2023
|
}
|
|
1988
|
-
.flow-
|
|
2024
|
+
.flow-node__item--selected .flow-node__name[data-v-01c5b0f9],
|
|
2025
|
+
.flow-node__item--selected:hover .flow-node__name[data-v-01c5b0f9] {
|
|
1989
2026
|
color: var(--flow-primary-color);
|
|
1990
2027
|
}
|
|
1991
|
-
.flow-node__desc[data-v-
|
|
2028
|
+
.flow-node__desc[data-v-01c5b0f9] {
|
|
1992
2029
|
margin: 4px 0 0;
|
|
1993
2030
|
font-size: 12px;
|
|
1994
2031
|
line-height: 1.5;
|
|
@@ -1997,7 +2034,7 @@ to {
|
|
|
1997
2034
|
|
|
1998
2035
|
/* Developed collaboratively with vscode - 改动代码行数: 2行改动(删除 rgba 兜底行仅保留 color-mix;删除永不生效的 --flow-card-color 兜底 #fff——弹层 style 上同样注入 flowVars) */
|
|
1999
2036
|
/* 审批意见卡片:渲染在 teleport 弹层内,需置于节点结构之外才能命中 scoped 样式 */
|
|
2000
|
-
.flow-node__record[data-v-
|
|
2037
|
+
.flow-node__record[data-v-01c5b0f9] {
|
|
2001
2038
|
width: 320px;
|
|
2002
2039
|
padding: 10px 12px;
|
|
2003
2040
|
border: 1px solid color-mix(in srgb, var(--flow-text-color-3) 18%, transparent);
|
|
@@ -2010,7 +2047,7 @@ to {
|
|
|
2010
2047
|
|
|
2011
2048
|
/* Developed collaboratively with vscode - 改动代码行数: 31行+删除6行(删除按人员 status 染色的卡片级 --done/--doing 左边框;新增记录项样式:左边框按记录类型染色——同意=绿/驳回=红,头部类型文案与时间两端对齐) */
|
|
2012
2049
|
/* 记录项:按记录类型左侧染色(同意=绿 / 驳回=红),多条纵向排列 */
|
|
2013
|
-
.flow-node__record-item[data-v-
|
|
2050
|
+
.flow-node__record-item[data-v-01c5b0f9] {
|
|
2014
2051
|
margin-top: 8px;
|
|
2015
2052
|
padding: 6px 8px;
|
|
2016
2053
|
border: 1px solid color-mix(in srgb, var(--flow-text-color-3) 12%, transparent);
|
|
@@ -2018,30 +2055,30 @@ to {
|
|
|
2018
2055
|
border-left-color: var(--flow-success-color);
|
|
2019
2056
|
border-radius: 6px;
|
|
2020
2057
|
}
|
|
2021
|
-
.flow-node__record-item--reject[data-v-
|
|
2058
|
+
.flow-node__record-item--reject[data-v-01c5b0f9] {
|
|
2022
2059
|
border-left-color: var(--flow-error-color);
|
|
2023
2060
|
}
|
|
2024
|
-
.flow-node__record-item-head[data-v-
|
|
2061
|
+
.flow-node__record-item-head[data-v-01c5b0f9] {
|
|
2025
2062
|
display: flex;
|
|
2026
2063
|
align-items: center;
|
|
2027
2064
|
justify-content: space-between;
|
|
2028
2065
|
gap: 6px;
|
|
2029
2066
|
}
|
|
2030
|
-
.flow-node__record-item-type[data-v-
|
|
2067
|
+
.flow-node__record-item-type[data-v-01c5b0f9] {
|
|
2031
2068
|
font-size: 12px;
|
|
2032
2069
|
font-weight: 600;
|
|
2033
2070
|
color: var(--flow-success-color);
|
|
2034
2071
|
}
|
|
2035
|
-
.flow-node__record-item--reject .flow-node__record-item-type[data-v-
|
|
2072
|
+
.flow-node__record-item--reject .flow-node__record-item-type[data-v-01c5b0f9] {
|
|
2036
2073
|
color: var(--flow-error-color);
|
|
2037
2074
|
}
|
|
2038
|
-
.flow-node__record-item-time[data-v-
|
|
2075
|
+
.flow-node__record-item-time[data-v-01c5b0f9] {
|
|
2039
2076
|
flex-shrink: 0;
|
|
2040
2077
|
font-size: 11px;
|
|
2041
2078
|
font-variant-numeric: tabular-nums;
|
|
2042
2079
|
color: var(--flow-text-color-3);
|
|
2043
2080
|
}
|
|
2044
|
-
.flow-node__record-head[data-v-
|
|
2081
|
+
.flow-node__record-head[data-v-01c5b0f9] {
|
|
2045
2082
|
display: flex;
|
|
2046
2083
|
align-items: center;
|
|
2047
2084
|
gap: 6px;
|
|
@@ -2049,13 +2086,13 @@ to {
|
|
|
2049
2086
|
|
|
2050
2087
|
/* Developed collaboratively with vscode - 改动代码行数: 5行 */
|
|
2051
2088
|
/* 基础视觉由 FlowAvatar 提供,此处仅控制尺寸与字号 */
|
|
2052
|
-
.flow-node__record-avatar[data-v-
|
|
2089
|
+
.flow-node__record-avatar[data-v-01c5b0f9] {
|
|
2053
2090
|
flex-shrink: 0;
|
|
2054
2091
|
width: 18px;
|
|
2055
2092
|
height: 18px;
|
|
2056
2093
|
font-size: 10px;
|
|
2057
2094
|
}
|
|
2058
|
-
.flow-node__record-name[data-v-
|
|
2095
|
+
.flow-node__record-name[data-v-01c5b0f9] {
|
|
2059
2096
|
flex: 1;
|
|
2060
2097
|
min-width: 0;
|
|
2061
2098
|
overflow: hidden;
|
|
@@ -2067,8 +2104,8 @@ to {
|
|
|
2067
2104
|
/* Developed collaboratively with vscode - 改动代码行数: 0行+删除5行(删除卡片头部旧操作时间样式:时间移入每条记录项头部展示) */
|
|
2068
2105
|
/* Developed collaboratively with vscode - 改动代码行数: 9行改动(意见正文与空占位共享基础排版:边距/字号/行高/pre-wrap/word-break 合并为共享选择器,差异仅文字颜色;空占位并入 pre-wrap 对固定短文案「未填写审批意见」无视觉影响) */
|
|
2069
2106
|
/* 记录意见正文与无意见占位:共享基础排版,正文弱二级色、占位弱三级色 */
|
|
2070
|
-
.flow-node__record-opinion[data-v-
|
|
2071
|
-
.flow-node__record-empty[data-v-
|
|
2107
|
+
.flow-node__record-opinion[data-v-01c5b0f9],
|
|
2108
|
+
.flow-node__record-empty[data-v-01c5b0f9] {
|
|
2072
2109
|
margin: 2px 0 0;
|
|
2073
2110
|
font-size: 12px;
|
|
2074
2111
|
line-height: 1.6;
|
|
@@ -2078,19 +2115,19 @@ to {
|
|
|
2078
2115
|
}
|
|
2079
2116
|
|
|
2080
2117
|
/* 无审批意见占位文案:三级弱色 */
|
|
2081
|
-
.flow-node__record-empty[data-v-
|
|
2118
|
+
.flow-node__record-empty[data-v-01c5b0f9] {
|
|
2082
2119
|
color: var(--flow-text-color-3);
|
|
2083
2120
|
}
|
|
2084
2121
|
|
|
2085
2122
|
/* Developed collaboratively with vscode - 改动代码行数: 1行改动(删除 rgba 兜底行仅保留 color-mix:当前主题下渲染不变) */
|
|
2086
2123
|
/* 附件:回形针 + 文件名的小卡片,可点击下载 */
|
|
2087
|
-
.flow-node__record-files[data-v-
|
|
2124
|
+
.flow-node__record-files[data-v-01c5b0f9] {
|
|
2088
2125
|
display: flex;
|
|
2089
2126
|
flex-wrap: wrap;
|
|
2090
2127
|
gap: 6px;
|
|
2091
2128
|
margin-top: 6px;
|
|
2092
2129
|
}
|
|
2093
|
-
.flow-node__record-file[data-v-
|
|
2130
|
+
.flow-node__record-file[data-v-01c5b0f9] {
|
|
2094
2131
|
display: flex;
|
|
2095
2132
|
align-items: center;
|
|
2096
2133
|
gap: 4px;
|
|
@@ -2102,21 +2139,21 @@ to {
|
|
|
2102
2139
|
background: color-mix(in srgb, var(--flow-text-color-3) 8%, transparent);
|
|
2103
2140
|
transition: color 0.2s;
|
|
2104
2141
|
}
|
|
2105
|
-
.flow-node__record-file svg[data-v-
|
|
2142
|
+
.flow-node__record-file svg[data-v-01c5b0f9] {
|
|
2106
2143
|
width: 12px;
|
|
2107
2144
|
height: 12px;
|
|
2108
2145
|
flex-shrink: 0;
|
|
2109
2146
|
}
|
|
2110
|
-
.flow-node__record-file span[data-v-
|
|
2147
|
+
.flow-node__record-file span[data-v-01c5b0f9] {
|
|
2111
2148
|
overflow: hidden;
|
|
2112
2149
|
text-overflow: ellipsis;
|
|
2113
2150
|
white-space: nowrap;
|
|
2114
2151
|
}
|
|
2115
|
-
.flow-node__record-file[data-v-
|
|
2152
|
+
.flow-node__record-file[data-v-01c5b0f9]:hover {
|
|
2116
2153
|
color: var(--flow-primary-color);
|
|
2117
2154
|
}
|
|
2118
2155
|
/* Developed collaboratively with vscode - 改动代码行数: 3行 */
|
|
2119
|
-
.reject-node-list[data-v-
|
|
2156
|
+
.reject-node-list[data-v-4d9540ab] {
|
|
2120
2157
|
width: 100%;
|
|
2121
2158
|
}
|
|
2122
2159
|
|
|
@@ -18,12 +18,8 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {},
|
|
|
18
18
|
attachments: UploadResource[];
|
|
19
19
|
/** 驳回目标节点名称(仅驳回时存在) */
|
|
20
20
|
rejectNode?: string;
|
|
21
|
-
/**
|
|
22
|
-
rejectUser?: string;
|
|
23
|
-
/** 驳回目标节点 ID(驳回接口 reject_node_id) */
|
|
21
|
+
/** 驳回目标节点 ID(驳回接口 reject_node_id,整节点重置) */
|
|
24
22
|
rejectNodeId?: string;
|
|
25
|
-
/** 驳回目标人员 ID(驳回接口 reject_user_id,仅审批人节点携带) */
|
|
26
|
-
rejectUserId?: string;
|
|
27
23
|
}, done: (shouldClose?: boolean) => void) => any;
|
|
28
24
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
29
25
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
@@ -32,12 +28,8 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {},
|
|
|
32
28
|
attachments: UploadResource[];
|
|
33
29
|
/** 驳回目标节点名称(仅驳回时存在) */
|
|
34
30
|
rejectNode?: string;
|
|
35
|
-
/**
|
|
36
|
-
rejectUser?: string;
|
|
37
|
-
/** 驳回目标节点 ID(驳回接口 reject_node_id) */
|
|
31
|
+
/** 驳回目标节点 ID(驳回接口 reject_node_id,整节点重置) */
|
|
38
32
|
rejectNodeId?: string;
|
|
39
|
-
/** 驳回目标人员 ID(驳回接口 reject_user_id,仅审批人节点携带) */
|
|
40
|
-
rejectUserId?: string;
|
|
41
33
|
}, done: (shouldClose?: boolean) => void) => any) | undefined;
|
|
42
34
|
}>, {
|
|
43
35
|
type: "approve" | "reject";
|
|
@@ -70,7 +70,7 @@ declare const __VLS_export: import('vue').DefineComponent<{
|
|
|
70
70
|
node: FlowNodeItem;
|
|
71
71
|
/** 模式:display=展示 / select=可选择 / form=表单 */
|
|
72
72
|
mode?: "display" | "select" | "form";
|
|
73
|
-
/**
|
|
73
|
+
/** 当前选中节点(节点ID,缺省回落名称),仅 select 模式 */
|
|
74
74
|
selectedKey?: string | null;
|
|
75
75
|
/** 人员折叠阈值:超出该人数时默认折叠展示,尾部显示展开/收起按钮 */
|
|
76
76
|
collapseCount?: number;
|
|
@@ -86,7 +86,7 @@ declare const __VLS_export: import('vue').DefineComponent<{
|
|
|
86
86
|
node: FlowNodeItem;
|
|
87
87
|
/** 模式:display=展示 / select=可选择 / form=表单 */
|
|
88
88
|
mode?: "display" | "select" | "form";
|
|
89
|
-
/**
|
|
89
|
+
/** 当前选中节点(节点ID,缺省回落名称),仅 select 模式 */
|
|
90
90
|
selectedKey?: string | null;
|
|
91
91
|
/** 人员折叠阈值:超出该人数时默认折叠展示,尾部显示展开/收起按钮 */
|
|
92
92
|
collapseCount?: number;
|
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 时间线人员选项唯一 key 共享模块
|
|
3
|
-
*
|
|
4
|
-
* 契约:`${节点ID ?? 节点名称}::${人员ID ?? 人员名称}`
|
|
5
|
-
* 拼接侧(FlowNode select 模式上抛选中项)与解析侧(ApprovalModal 驳回目标反查)共用。
|
|
6
|
-
*/
|
|
7
|
-
/** 节点/人员的最小结构(仅 id 与 name,FlowNodeItem / FlowNodeUser 天然兼容) */
|
|
8
|
-
interface KeySource {
|
|
9
|
-
/** 主键(缺省回落名称) */
|
|
10
|
-
id?: number | string;
|
|
11
|
-
/** 名称 */
|
|
12
|
-
name: string;
|
|
13
|
-
}
|
|
14
|
-
/** 拼接人员选项 key:节点ID::人员ID(缺省回落名称) */
|
|
15
|
-
export declare function getUserKey(node: KeySource, user: KeySource): string;
|
|
16
|
-
/** 解析人员选项 key:返回 [节点 key, 人员 key] */
|
|
17
|
-
export declare function parseUserKey(key: string): [string, string];
|
|
18
|
-
export {};
|