lyflowchart 1.0.172 → 1.0.175
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/{ActionsConfig-Bx0tgz1e.js → ActionsConfig-qT6Bc-4m.js} +1 -1
- package/dist/{ApprovalEditorModal-D3ydOxhg.js → ApprovalEditorModal-ya6wSz_K.js} +1 -1
- package/dist/{Cell_click_approve-D3NQ9Iaq.js → Cell_click_approve-CkTzNo0c.js} +1 -1
- package/dist/{approval-TIlcTs-h.js → approval-BaIlEt6M.js} +2 -2
- package/dist/{approval-BiNM_Eas.js → approval-DwIVRNQk.js} +1 -1
- package/dist/{approvalHistory-BYTbTSXf.js → approvalHistory-BjMzTPTH.js} +1 -1
- package/dist/{approvalPageConfig-Yn3tPl7r.js → approvalPageConfig-BdW2hpxX.js} +5 -5
- package/dist/{columnTables-Drq0OCcY.js → columnTables-Bcjih5vD.js} +1 -1
- package/dist/{core-BbRTQ1Aj.js → core-R1eodqEI.js} +205 -230
- package/dist/{default-BNQ2XYku.js → default-CNBMPyix.js} +7 -0
- package/dist/index.js +2 -2
- package/dist/{leftColumn-Bn1KoLRy.js → leftColumn-GyLhpACC.js} +2 -2
- package/dist/lyflowchart.css +1 -1
- package/dist/{middleColumn-Cdx9-JfV.js → middleColumn-PrdbogUl.js} +2 -2
- package/dist/{tableConfig-B6bfpf7X.js → tableConfig-DL2-129W.js} +2 -2
- package/dist/{tableModal-DJ4BgjcA.js → tableModal-DL-BbNkn.js} +2 -2
- package/dist/{utils-DRldFEoM.js → utils-DwIGp2_v.js} +1 -5
- package/package.json +1 -1
|
@@ -18,6 +18,13 @@ var n = () => ({
|
|
|
18
18
|
type: "primary",
|
|
19
19
|
action: "commit_approve",
|
|
20
20
|
code: "async function run({ table_id, context, settings }) {\n console.log('context', JSON.stringify(context));\n console.log('settings', JSON.stringify(settings));\n const { tables, formModel } = context;\n const table = tables['approve-approve_record'];\n const { searchConditions, selectedRowKeys, selectedRecord, datasource } = table;\n if (!selectedRowKeys || selectedRowKeys.length == 0) {\n throw new Error('请选择未提交的审批数据');\n }\n for (const item of selectedRecord) {\n if (item.process_status != 'init') {\n throw new Error('仅能提交未提交的审批数据');\n }\n }\n // try {\n // const res = await self.callHost('getApiData')({}, '/test/');\n // } catch (e) {\n // console.error('call error', JSON.stringify(e));\n // }\n return { ids: selectedRowKeys };\n}\n"
|
|
21
|
+
}, {
|
|
22
|
+
danger: !0,
|
|
23
|
+
label: "删除",
|
|
24
|
+
settings: {},
|
|
25
|
+
type: "primary",
|
|
26
|
+
action: "cancel_agree_approve",
|
|
27
|
+
code: "async function run({ table_id, context, settings }) {\n console.log('context', JSON.stringify(context));\n console.log('settings', JSON.stringify(settings));\n const { tables, formModel } = context;\n const table = tables['approve-approve_record'];\n const { searchConditions, selectedRowKeys, selectedRecord, datasource } = table;\n\n // 未选择数据校验\n if (!selectedRowKeys || selectedRowKeys.length == 0) {\n throw new Error('请选择要删除的审批数据');\n }\n\n // 逐条状态校验\n for (const item of selectedRecord) {\n if (item.process_status != 'approved' || item.result_status != 'pass') {\n throw new Error('仅能删除已通过的提交');\n }\n if (item.modify_status === '已修改' || item.modify_status === '已删除') {\n throw new Error('已修改或已删除的记录禁止再次删除');\n }\n }\n\n // try {\n // const res = await self.callHost('getApiData')({}, '/test/');\n // } catch (e) {\n // console.error('call error', JSON.stringify(e));\n // }\n\n return { ids: selectedRowKeys };\n}"
|
|
21
28
|
}],
|
|
22
29
|
base_conditions: [[{
|
|
23
30
|
class_name: "bool",
|
package/dist/index.js
CHANGED
|
@@ -326,7 +326,7 @@ var j = { style: {
|
|
|
326
326
|
}
|
|
327
327
|
}), J = async (e) => {
|
|
328
328
|
await H(e), (W.value || K.value) && (a.value = !1);
|
|
329
|
-
}, Y = b(() => import("./ApprovalEditorModal-
|
|
329
|
+
}, Y = b(() => import("./ApprovalEditorModal-ya6wSz_K.js")), X = async (e) => {
|
|
330
330
|
let t = N.get(e);
|
|
331
331
|
if (t && Date.now() - t.time < M) return t.data;
|
|
332
332
|
let i = P.get(e);
|
|
@@ -532,7 +532,7 @@ var j = { style: {
|
|
|
532
532
|
], 64);
|
|
533
533
|
};
|
|
534
534
|
}
|
|
535
|
-
}), I = b(() => import("./approval-
|
|
535
|
+
}), I = b(() => import("./approval-DwIVRNQk.js")), L = b(() => import("./approvalPageConfig-BdW2hpxX.js")), R = b(() => import("./approvalHistory-BjMzTPTH.js")), z = b(() => import("./debugCode-uE8rOKz4.js")), B = b(() => import("./ApprovalEditorModal-ya6wSz_K.js")), V = b(() => import("./Cell_click_approve-CkTzNo0c.js")), H = {
|
|
536
536
|
codeHistoryViewModal: () => import("./codeHistoryViewModal-DnNI_S8C.js"),
|
|
537
537
|
approvalHistoryViewModal: () => import("./approvalHistoryViewModal-D3_z9bf3.js"),
|
|
538
538
|
flowHistoryViewModal: () => import("./flowHistoryViewModal-CVg7Wn7_.js")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { b as e } from "./init-plugin-CpYzRii0.js";
|
|
2
|
-
import { r as t, t as n } from "./tableConfig-
|
|
3
|
-
import { t as r } from "./ActionsConfig-
|
|
2
|
+
import { r as t, t as n } from "./tableConfig-DL2-129W.js";
|
|
3
|
+
import { t as r } from "./ActionsConfig-qT6Bc-4m.js";
|
|
4
4
|
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, openBlock as p, reactive as m, ref as h, resolveComponent as g, withCtx as _, withModifiers as v } from "vue";
|
|
5
5
|
//#region src/components/approval/components/approvalPageConfig/leftColumn.vue?vue&type=script&lang.ts
|
|
6
6
|
var y = f({
|