keli-ui 0.3.6 → 0.3.8
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/ApprovalRecord-D0D_XZrT.js +112 -0
- package/dist/{ApprovalRecord-CBHg5KYG.js.map → ApprovalRecord-D0D_XZrT.js.map} +1 -1
- package/dist/api-DaVr-Kai.js +4474 -0
- package/dist/{api-VujlHEgc.js.map → api-DaVr-Kai.js.map} +1 -1
- package/dist/components/AppComponent/AppFormRender.vue.d.ts +17 -17
- package/dist/components/AppComponent/DynamicDialogHost.vue.d.ts +21 -0
- package/dist/components/AppComponent/index.d.ts +2 -1
- package/dist/components/FormComponent/FormSelectAsync/FormSelectAsync.vue.d.ts +8 -8
- package/dist/components/FormComponent/FormSelectRemote/FormSelectRemote.vue.d.ts +8 -8
- package/dist/components/FormComponent/FormTableSelectAsync/FormTableSelectAsync.vue.d.ts +8 -8
- package/dist/components/TableComponent/TableCardRender/TableCardRender.vue.d.ts +28 -28
- package/dist/components/TableComponent/TableRender/TableRender.vue.d.ts +28 -28
- package/dist/java-XIxqoWBD.js +2295 -0
- package/dist/{java-BrZSNBDG.js.map → java-XIxqoWBD.js.map} +1 -1
- package/dist/keli-ui.css +1 -1
- package/dist/keli-ui.js +63759 -68235
- package/dist/keli-ui.js.map +1 -1
- package/dist/keli-ui.umd.cjs +778 -891
- package/dist/keli-ui.umd.cjs.map +1 -1
- package/dist/mysql-D_yXY3Wl.js +172 -0
- package/dist/{mysql-BJR6iO89.js.map → mysql-D_yXY3Wl.js.map} +1 -1
- package/dist/postgresql-KYgISeDf.js +1620 -0
- package/dist/{postgresql-CLVUxiA0.js.map → postgresql-KYgISeDf.js.map} +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/openHostDialog.d.ts +9 -0
- package/package.json +78 -78
- package/dist/ApprovalRecord-CBHg5KYG.js +0 -111
- package/dist/api-VujlHEgc.js +0 -4513
- package/dist/java-BrZSNBDG.js +0 -2603
- package/dist/mysql-BJR6iO89.js +0 -923
- package/dist/postgresql-CLVUxiA0.js +0 -2375
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { i as e, t } from "./api-DaVr-Kai.js";
|
|
2
|
+
import { Fragment as n, createBlock as r, createElementBlock as i, createTextVNode as a, createVNode as o, defineComponent as s, onMounted as c, openBlock as l, ref as u, renderList as d, resolveComponent as f, toDisplayString as p, watch as m, withCtx as h } from "vue";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/components/AppComponent/components/ApprovalRecord.vue
|
|
5
|
+
var g = /* @__PURE__ */ s({
|
|
6
|
+
__name: "ApprovalRecord",
|
|
7
|
+
props: {
|
|
8
|
+
pageId: {
|
|
9
|
+
type: Number,
|
|
10
|
+
required: !0
|
|
11
|
+
},
|
|
12
|
+
dataId: {
|
|
13
|
+
type: String,
|
|
14
|
+
required: !0
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
setup(s) {
|
|
18
|
+
let g = s, _ = u([]), v = [
|
|
19
|
+
{
|
|
20
|
+
prop: "nodeFrom",
|
|
21
|
+
label: "起始环节",
|
|
22
|
+
width: 130
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
prop: "nodeTo",
|
|
26
|
+
label: "流向环节",
|
|
27
|
+
width: 130
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
prop: "endDate",
|
|
31
|
+
label: "处理日期",
|
|
32
|
+
width: 170
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
prop: "reviewOption",
|
|
36
|
+
label: "批阅类型",
|
|
37
|
+
width: 100
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
prop: "reviewHandler",
|
|
41
|
+
label: "处理人",
|
|
42
|
+
width: 100
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
prop: "reviewSuggestion",
|
|
46
|
+
label: "批阅建议",
|
|
47
|
+
width: 130
|
|
48
|
+
}
|
|
49
|
+
], y = u([]), b = async () => {
|
|
50
|
+
let n = await e(g.pageId, g.dataId);
|
|
51
|
+
n.code === t.SUCCESS && (_.value = n.data.flowRecordVOList, y.value = n.data.flowRecordTimeLineVOList);
|
|
52
|
+
};
|
|
53
|
+
return m(() => g.dataId, () => {
|
|
54
|
+
b();
|
|
55
|
+
}), c(() => {
|
|
56
|
+
b();
|
|
57
|
+
}), (e, t) => {
|
|
58
|
+
let s = f("el-timeline-item"), c = f("el-timeline"), u = f("el-splitter-panel"), m = f("el-button"), g = f("el-table-column"), x = f("el-table"), S = f("el-splitter");
|
|
59
|
+
return l(), r(S, null, {
|
|
60
|
+
default: h(() => [o(u, {
|
|
61
|
+
size: "30%",
|
|
62
|
+
min: 100,
|
|
63
|
+
collapsible: ""
|
|
64
|
+
}, {
|
|
65
|
+
default: h(() => [o(c, { class: "ml-1" }, {
|
|
66
|
+
default: h(() => [(l(!0), i(n, null, d(y.value, (e, t) => (l(), r(s, {
|
|
67
|
+
key: t,
|
|
68
|
+
timestamp: e.datetime,
|
|
69
|
+
color: "#0bbd87"
|
|
70
|
+
}, {
|
|
71
|
+
default: h(() => [a(p(e.nodeName), 1)]),
|
|
72
|
+
_: 2
|
|
73
|
+
}, 1032, ["timestamp"]))), 128))]),
|
|
74
|
+
_: 1
|
|
75
|
+
})]),
|
|
76
|
+
_: 1
|
|
77
|
+
}), o(u, { min: 200 }, {
|
|
78
|
+
default: h(() => [o(m, {
|
|
79
|
+
onClick: b,
|
|
80
|
+
size: "small"
|
|
81
|
+
}, {
|
|
82
|
+
default: h(() => [...t[0] ||= [a("刷新", -1)]]),
|
|
83
|
+
_: 1
|
|
84
|
+
}), o(x, {
|
|
85
|
+
data: _.value,
|
|
86
|
+
stripe: "",
|
|
87
|
+
style: { width: "100%" }
|
|
88
|
+
}, {
|
|
89
|
+
default: h(() => [(l(), i(n, null, d(v, (e) => o(g, {
|
|
90
|
+
key: e.prop,
|
|
91
|
+
prop: e.prop,
|
|
92
|
+
label: e.label,
|
|
93
|
+
"min-width": e.width,
|
|
94
|
+
"show-overflow-tooltip": ""
|
|
95
|
+
}, null, 8, [
|
|
96
|
+
"prop",
|
|
97
|
+
"label",
|
|
98
|
+
"min-width"
|
|
99
|
+
])), 64))]),
|
|
100
|
+
_: 1
|
|
101
|
+
}, 8, ["data"])]),
|
|
102
|
+
_: 1
|
|
103
|
+
})]),
|
|
104
|
+
_: 1
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
//#endregion
|
|
110
|
+
export { g as default };
|
|
111
|
+
|
|
112
|
+
//# sourceMappingURL=ApprovalRecord-D0D_XZrT.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApprovalRecord-
|
|
1
|
+
{"version":3,"file":"ApprovalRecord-D0D_XZrT.js","names":[],"sources":["../src/components/AppComponent/components/ApprovalRecord.vue","../src/components/AppComponent/components/ApprovalRecord.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { onMounted, ref, watch } from 'vue';\n\nimport { HttpRCode } from '@/api';\nimport { getFlowRecordApi } from '@/api';\n\nconst props = defineProps({\n pageId: {\n type: Number,\n required: true,\n },\n dataId: {\n type: String,\n required: true,\n },\n});\n\ntype TimeLine = {\n datetime: string;\n nodeName: string;\n};\n\nconst tableData = ref([]);\n\nconst tableConfig = [\n {\n prop: 'nodeFrom',\n label: '起始环节',\n width: 130,\n },\n {\n prop: 'nodeTo',\n label: '流向环节',\n width: 130,\n },\n // {\n // prop: 'arriveDate',\n // label: '到达时间',\n // width: 150,\n // },\n {\n prop: 'endDate',\n label: '处理日期',\n width: 170,\n },\n {\n prop: 'reviewOption',\n label: '批阅类型',\n width: 100,\n },\n {\n prop: 'reviewHandler',\n label: '处理人',\n width: 100,\n },\n {\n prop: 'reviewSuggestion',\n label: '批阅建议',\n width: 130,\n },\n];\n\nconst timelines = ref<TimeLine[]>([]);\n\nconst getData = async () => {\n const result = await getFlowRecordApi(props.pageId, props.dataId);\n if (result.code === HttpRCode.SUCCESS) {\n tableData.value = result.data.flowRecordVOList;\n timelines.value = result.data.flowRecordTimeLineVOList;\n }\n};\n\nwatch(\n () => props.dataId,\n () => {\n getData();\n },\n);\n\nonMounted(() => {\n getData();\n});\n</script>\n\n<template>\n <el-splitter>\n <el-splitter-panel size=\"30%\" :min=\"100\" collapsible>\n <el-timeline class=\"ml-1\">\n <el-timeline-item\n v-for=\"(activity, index) in timelines\"\n :key=\"index\"\n :timestamp=\"activity.datetime\"\n color=\"#0bbd87\"\n >\n {{ activity.nodeName }}\n </el-timeline-item>\n </el-timeline>\n </el-splitter-panel>\n <el-splitter-panel :min=\"200\">\n <el-button @click=\"getData\" size=\"small\">刷新</el-button>\n <el-table :data=\"tableData\" stripe style=\"width: 100%\">\n <el-table-column\n v-for=\"item in tableConfig\"\n :key=\"item.prop\"\n :prop=\"item.prop\"\n :label=\"item.label\"\n :min-width=\"item.width\"\n show-overflow-tooltip\n />\n </el-table>\n </el-splitter-panel>\n </el-splitter>\n</template>\n\n<style scoped lang=\"scss\"></style>\n","<script setup lang=\"ts\">\nimport { onMounted, ref, watch } from 'vue';\n\nimport { HttpRCode } from '@/api';\nimport { getFlowRecordApi } from '@/api';\n\nconst props = defineProps({\n pageId: {\n type: Number,\n required: true,\n },\n dataId: {\n type: String,\n required: true,\n },\n});\n\ntype TimeLine = {\n datetime: string;\n nodeName: string;\n};\n\nconst tableData = ref([]);\n\nconst tableConfig = [\n {\n prop: 'nodeFrom',\n label: '起始环节',\n width: 130,\n },\n {\n prop: 'nodeTo',\n label: '流向环节',\n width: 130,\n },\n // {\n // prop: 'arriveDate',\n // label: '到达时间',\n // width: 150,\n // },\n {\n prop: 'endDate',\n label: '处理日期',\n width: 170,\n },\n {\n prop: 'reviewOption',\n label: '批阅类型',\n width: 100,\n },\n {\n prop: 'reviewHandler',\n label: '处理人',\n width: 100,\n },\n {\n prop: 'reviewSuggestion',\n label: '批阅建议',\n width: 130,\n },\n];\n\nconst timelines = ref<TimeLine[]>([]);\n\nconst getData = async () => {\n const result = await getFlowRecordApi(props.pageId, props.dataId);\n if (result.code === HttpRCode.SUCCESS) {\n tableData.value = result.data.flowRecordVOList;\n timelines.value = result.data.flowRecordTimeLineVOList;\n }\n};\n\nwatch(\n () => props.dataId,\n () => {\n getData();\n },\n);\n\nonMounted(() => {\n getData();\n});\n</script>\n\n<template>\n <el-splitter>\n <el-splitter-panel size=\"30%\" :min=\"100\" collapsible>\n <el-timeline class=\"ml-1\">\n <el-timeline-item\n v-for=\"(activity, index) in timelines\"\n :key=\"index\"\n :timestamp=\"activity.datetime\"\n color=\"#0bbd87\"\n >\n {{ activity.nodeName }}\n </el-timeline-item>\n </el-timeline>\n </el-splitter-panel>\n <el-splitter-panel :min=\"200\">\n <el-button @click=\"getData\" size=\"small\">刷新</el-button>\n <el-table :data=\"tableData\" stripe style=\"width: 100%\">\n <el-table-column\n v-for=\"item in tableConfig\"\n :key=\"item.prop\"\n :prop=\"item.prop\"\n :label=\"item.label\"\n :min-width=\"item.width\"\n show-overflow-tooltip\n />\n </el-table>\n </el-splitter-panel>\n </el-splitter>\n</template>\n\n<style scoped lang=\"scss\"></style>\n"],"mappings":";;;;;;;;;;;;;;;;;EAMA,IAAM,IAAQ,GAgBR,IAAY,EAAI,EAAE,CAAC,EAEnB,IAAc;GAClB;IACE,MAAM;IACN,OAAO;IACP,OAAO;IACR;GACD;IACE,MAAM;IACN,OAAO;IACP,OAAO;IACR;GAMD;IACE,MAAM;IACN,OAAO;IACP,OAAO;IACR;GACD;IACE,MAAM;IACN,OAAO;IACP,OAAO;IACR;GACD;IACE,MAAM;IACN,OAAO;IACP,OAAO;IACR;GACD;IACE,MAAM;IACN,OAAO;IACP,OAAO;IACR;GACF,EAEK,IAAY,EAAgB,EAAE,CAAC,EAE/B,IAAU,YAAY;GAC1B,IAAM,IAAS,MAAM,EAAiB,EAAM,QAAQ,EAAM,OAAO;GACjE,AAAI,EAAO,SAAS,EAAU,YAC5B,EAAU,QAAQ,EAAO,KAAK,kB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