halo-pc 1.0.51 → 1.0.53
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/assets/Article-BW8eAB0-.js +197 -0
- package/dist/assets/ArticleFooter-Bgcgo5ul.js +84 -0
- package/dist/assets/Autocomplete-04DZEjsg.js +54 -0
- package/dist/assets/Autocomplete-BlyjnHzg.js +53 -0
- package/dist/assets/Autocomplete-CMrWQUxn.js +27 -0
- package/dist/assets/CSharp-Bs-1EWWR.js +27 -0
- package/dist/assets/Calender-dOG_jl9u.js +10 -0
- package/dist/assets/Callback-BqGRGNtK.js +25 -0
- package/dist/assets/Cascader-CnequxoL.js +86 -0
- package/dist/assets/Cascader-IJ3jft2B.js +46 -0
- package/dist/assets/Checkbox-B43ESOxJ.js +27 -0
- package/dist/assets/Checkbox-DjvF4NCz.js +75 -0
- package/dist/assets/Code-50tqkJIE.js +41 -0
- package/dist/assets/Code-CDnAXHXb.js +4 -0
- package/dist/assets/Code-CPcLgZ92.js +30 -0
- package/dist/assets/Code-DrzngizU.js +59 -0
- package/dist/assets/Code.vue_vue_type_style_index_0_lang-CDxbuceH.js +64 -0
- package/dist/assets/Color--mRQSe4e.js +34 -0
- package/dist/assets/Color-CLRn-pIY.js +22 -0
- package/dist/assets/Column-BTaMkPuH.js +73 -0
- package/dist/assets/Comment-BHXA8N0K.js +105 -0
- package/dist/assets/Compare-BxyBlcHX.js +62 -0
- package/dist/assets/Compare-DydxjkYG.js +42 -0
- package/dist/assets/Copy-GxnvB2Sm.js +48 -0
- package/dist/assets/Custom-BxcKWpSP.js +54 -0
- package/dist/assets/DataExport-BcruPHEM.js +4 -0
- package/dist/assets/DataExport.vue_vue_type_script_setup_true_lang-C6tWZ8mB.js +113 -0
- package/dist/assets/DataImport-CdXvwlli.js +4 -0
- package/dist/assets/DataImport.vue_vue_type_script_setup_true_lang-D4OmNvny.js +177 -0
- package/dist/assets/Date-5U1z7UXl.js +27 -0
- package/dist/assets/Date-OfQxaoDL.js +42 -0
- package/dist/assets/DateRange-DEvme6Wz.js +62 -0
- package/dist/assets/DateRange-W7uK-0Q3.js +19 -0
- package/dist/assets/DateTime-ByF4OyPL.js +43 -0
- package/dist/assets/DateTime-C_l10Os6.js +27 -0
- package/dist/assets/DateTimeRange-GpUXpNlL.js +66 -0
- package/dist/assets/Daterange-D1OvMMvQ.js +62 -0
- package/dist/assets/Decimal-IkGfpE-p.js +36 -0
- package/dist/assets/Decimal-QPElgXM5.js +27 -0
- package/dist/assets/Delete-DifJD2iW.js +61 -0
- package/dist/assets/Detail-6p4Jgu5U.js +73 -0
- package/dist/assets/Dictionary-CvI_7FO8.js +60 -0
- package/dist/assets/Email-B-nUtHIg.js +53 -0
- package/dist/assets/Email-BsqMbKuf.js +19 -0
- package/dist/assets/File-CTboPD47.js +162 -0
- package/dist/assets/Image-CTKxOM9T.js +9 -0
- package/dist/assets/Index-BBRyKHV1.js +178 -0
- package/dist/assets/Index-BY6EHWPo.js +4 -0
- package/dist/assets/Index-Bdb8xf8A.js +75 -0
- package/dist/assets/Index-Br5wtQCU.js +4 -0
- package/dist/assets/Index-DDpdqPUT.js +4 -0
- package/dist/assets/Index-DGICr-zO.js +4 -0
- package/dist/assets/Index-Dat74cWT.js +4 -0
- package/dist/assets/Index-aTHMqHdZ.js +4 -0
- package/dist/assets/Index.vue_vue_type_script_setup_true_lang-CKXjZbZm.js +82 -0
- package/dist/assets/Index.vue_vue_type_script_setup_true_lang-c_kmud9W.js +68 -0
- package/dist/assets/Install-xTa0b51o.js +133 -0
- package/dist/assets/Int-BFP6vIcR.js +19 -0
- package/dist/assets/Int-CWb_A-nY.js +43 -0
- package/dist/assets/Int-CdT_UEOL.js +46 -0
- package/dist/assets/List-CNlfibdL.js +75 -0
- package/dist/assets/Maintaince-DoaN5v4p.js +19 -0
- package/dist/assets/Markdown-DInji1_q.js +37 -0
- package/dist/assets/Markdown-YEBerW7I.js +27 -0
- package/dist/assets/Month-B92uGMxO.js +43 -0
- package/dist/assets/Month-CCcnnqgz.js +27 -0
- package/dist/assets/Month-CbIVJc94.js +42 -0
- package/dist/assets/Normal-CWDfA3Bl.js +259 -0
- package/dist/assets/Paging-DQes1B_A.js +98 -0
- package/dist/assets/PagingHeader-BDGFzyvm.js +147 -0
- package/dist/assets/PagingRow-DSlSGiAV.js +72 -0
- package/dist/assets/Password-C06RyIsi.js +55 -0
- package/dist/assets/Password-Cqm5_jcE.js +24 -0
- package/dist/assets/Progress-C_S9K_bo.js +25 -0
- package/dist/assets/Progress-pdUnRwmC.js +34 -0
- package/dist/assets/Racebar-BTin0dPn.js +168 -0
- package/dist/assets/Radio-BXCq0-e0.js +27 -0
- package/dist/assets/Radio-GcyYOxn0.js +47 -0
- package/dist/assets/Rate-DJMyAd6-.js +34 -0
- package/dist/assets/Rate-DxB6xeV6.js +34 -0
- package/dist/assets/Register-BmxG2pD4.js +201 -0
- package/dist/assets/RichText-COdDClMp.js +121 -0
- package/dist/assets/RichText-MkjGGBqR.js +22 -0
- package/dist/assets/SearchForm-BgOPf7uG.js +4 -0
- package/dist/assets/SearchForm.vue_vue_type_style_index_0_lang-Cj6tbcvd.js +147 -0
- package/dist/assets/SearchHeader-nnRzvdrx.js +4 -0
- package/dist/assets/SearchHeader.vue_vue_type_style_index_0_lang-CHx_o3cL.js +69 -0
- package/dist/assets/Select-CV1JKkID.js +27 -0
- package/dist/assets/Select-DQTFln0r.js +85 -0
- package/dist/assets/Select-vBFgN0sw.js +122 -0
- package/dist/assets/Single-6DxzOqUa.js +321 -0
- package/dist/assets/Statistic-C9-x_5VI.js +78 -0
- package/dist/assets/Statistic-DOqjwV9b.js +157 -0
- package/dist/assets/Stock-B7mAFNC_.js +4 -0
- package/dist/assets/Stock-CDNRWrLy.js +30 -0
- package/dist/assets/Stock.vue_vue_type_style_index_0_lang-12CCzO2g.js +303 -0
- package/dist/assets/Switch-BY-0wSNs.js +27 -0
- package/dist/assets/Switch-Brwh143O.js +50 -0
- package/dist/assets/Table-BSbpncPe.js +225 -0
- package/dist/assets/Table-DH-ateim.js +274 -0
- package/dist/assets/Text-C-mzSg7d.js +4 -0
- package/dist/assets/Text-Du3Mfs9M.js +57 -0
- package/dist/assets/Text-ux7pj9CL.js +53 -0
- package/dist/assets/Text.vue_vue_type_style_index_0_lang-BsK-PxEq.js +57 -0
- package/dist/assets/TextLink-C2dFJ1xR.js +64 -0
- package/dist/assets/Textarea-6IWWDV6p.js +37 -0
- package/dist/assets/Textarea-DfMegvsQ.js +28 -0
- package/dist/assets/Time-BdsPTOwX.js +42 -0
- package/dist/assets/Timeline-BJE5-MDV.js +60 -0
- package/dist/assets/Tree-CPYvQpRc.js +295 -0
- package/dist/assets/Tree-uvDeFVk4.js +124 -0
- package/dist/assets/TreeNode-8P3FykA1.js +39 -0
- package/dist/assets/Tree_Old-h__WmqFA.js +11 -0
- package/dist/assets/Update-DyH-b15b.js +58 -0
- package/dist/assets/UpdateChild-BLL357Mm.js +91 -0
- package/dist/assets/Upload-BG5kTc46.js +70 -0
- package/dist/assets/Upload-z8n9VoPU.js +149 -0
- package/dist/assets/Year-DMCePo2k.js +46 -0
- package/dist/assets/Year-DQf2Vu7j.js +27 -0
- package/dist/assets/main-DDCxKbDF.js +12627 -0
- package/dist/main.css +1 -0
- package/dist/main.js +73 -0
- package/dist/vendor/clipboard-Ng1iAUpU.js +504 -0
- package/dist/vendor/clone-B9z63rns.js +136 -0
- package/dist/vendor/element-plus-BNctWhlD.js +540 -0
- package/dist/vendor/file-saver-ypit2jx5.js +76 -0
- package/dist/vendor/intro.js-BUb8U_EJ.js +2040 -0
- package/dist/vendor/liquidjs-CyjuyKnF.js +3397 -0
- package/dist/vendor/moment-CwOqp704.js +2589 -0
- package/dist/vendor/sprintf-js-CI46yikS.js +145 -0
- package/dist/vendor/underscore-CK1gjYcm.js +1073 -0
- package/dist/vendor/underscore.string-BevGGlfe.js +798 -0
- package/dist/vendor/util-deprecate-DyPMeoo2.js +33 -0
- package/esm/comp/business/Condition.vue.d.ts +5 -4
- package/esm/comp/business/Drawer.vue.d.ts +6 -6
- package/esm/comp/business/Feedback.vue.d.ts +3 -96
- package/esm/comp/business/Switch.vue.d.ts +2 -1
- package/esm/comp/common/Captcha.vue.d.ts +3 -6
- package/esm/comp/common/Debug.vue.d.ts +7 -11
- package/esm/comp/common/Editable.vue.d.ts +7 -11
- package/esm/comp/common/Loading.vue.d.ts +7 -11
- package/esm/comp/common/MouseContext.vue.d.ts +2 -1
- package/esm/comp/common/Particles.vue.d.ts +2 -1
- package/esm/comp/common/Resizer.vue.d.ts +10 -13
- package/esm/comp/common/Table.vue.d.ts +13 -22
- package/esm/comp/common/TableColumn.vue.d.ts +9 -13
- package/esm/comp/control/Autocomplete.vue.d.ts +4 -3
- package/esm/comp/control/Cascader.vue.d.ts +5 -6
- package/esm/comp/control/Checkbox.vue.d.ts +3 -2
- package/esm/comp/control/Code.vue.d.ts +4 -3
- package/esm/comp/control/Color.vue.d.ts +4 -3
- package/esm/comp/control/Compare.vue.d.ts +5 -6
- package/esm/comp/control/Date.vue.d.ts +4 -3
- package/esm/comp/control/DateRange.vue.d.ts +4 -3
- package/esm/comp/control/DateTime.vue.d.ts +4 -3
- package/esm/comp/control/DateTimeRange.vue.d.ts +4 -3
- package/esm/comp/control/Decimal.vue.d.ts +4 -3
- package/esm/comp/control/Email.vue.d.ts +4 -3
- package/esm/comp/control/Image.vue.d.ts +2 -1
- package/esm/comp/control/Index.vue.d.ts +5 -6
- package/esm/comp/control/Int.vue.d.ts +4 -3
- package/esm/comp/control/Markdown.vue.d.ts +4 -3
- package/esm/comp/control/Month.vue.d.ts +4 -3
- package/esm/comp/control/Password.vue.d.ts +4 -3
- package/esm/comp/control/Progress.vue.d.ts +4 -3
- package/esm/comp/control/Radio.vue.d.ts +4 -3
- package/esm/comp/control/Rate.vue.d.ts +4 -3
- package/esm/comp/control/RichText.vue.d.ts +5 -3
- package/esm/comp/control/Select.vue.d.ts +5 -6
- package/esm/comp/control/Switch.vue.d.ts +5 -4
- package/esm/comp/control/Text.vue.d.ts +4 -3
- package/esm/comp/control/Textarea.vue.d.ts +4 -3
- package/esm/comp/control/Time.vue.d.ts +4 -3
- package/esm/comp/control/Upload.vue.d.ts +5 -6
- package/esm/comp/control/Year.vue.d.ts +4 -3
- package/esm/comp/driver/Crud.vue.d.ts +11 -744
- package/esm/comp/driver/Index.vue.d.ts +8 -1416
- package/esm/comp/driver/Picker.vue.d.ts +7 -94
- package/esm/comp/global/HeaderTab.vue.d.ts +7 -11
- package/esm/comp/global/Menu.vue.d.ts +3 -261
- package/esm/comp/global/MenuItem.vue.d.ts +3 -185
- package/esm/comp/global/MissComponent.vue.d.ts +7 -11
- package/esm/comp/global/SideTab.vue.d.ts +8 -12
- package/esm/comp/global/Window.vue.d.ts +7 -8
- package/esm/comp/header/Breadcrumb.vue.d.ts +2 -1
- package/esm/comp/header/Changes.vue.d.ts +2 -1
- package/esm/comp/header/Hamburger.vue.d.ts +3 -2
- package/esm/comp/header/HeaderRight.vue.d.ts +3 -22
- package/esm/comp/header/Index.vue.d.ts +7 -11
- package/esm/comp/header/Log.vue.d.ts +2 -1
- package/esm/comp/header/Logo.vue.d.ts +3 -2
- package/esm/comp/header/Refresh.vue.d.ts +3 -2
- package/esm/comp/header/Setting.vue.d.ts +2 -1
- package/esm/comp/layout/Desktop.vue.d.ts +2 -110
- package/esm/comp/layout/Index.vue.d.ts +7 -469
- package/esm/comp/layout/Side.vue.d.ts +5 -6
- package/esm/comp/layout/Top.vue.d.ts +3 -355
- package/esm/comp/list/Calender.vue.d.ts +2 -1
- package/esm/comp/list/Racebar.vue.d.ts +3 -32
- package/esm/comp/list/Statistic.vue.d.ts +3 -32
- package/esm/comp/list/Stock.vue.d.ts +2 -3
- package/esm/comp/list/Timeline.vue.d.ts +2 -1
- package/esm/comp/list/Tree.vue.d.ts +3 -9
- package/esm/comp/page/Column.vue.d.ts +3 -2
- package/esm/comp/page/Custom.vue.d.ts +2 -1
- package/esm/comp/page/Delete.vue.d.ts +3 -2
- package/esm/comp/page/Index.vue.d.ts +2 -1
- package/esm/comp/page/List.vue.d.ts +3 -4
- package/esm/comp/page/Paging.vue.d.ts +3 -48
- package/esm/comp/page/Single.vue.d.ts +3 -2
- package/esm/comp/paging/Article.vue.d.ts +3 -33
- package/esm/comp/paging/Code.vue.d.ts +2 -1
- package/esm/comp/paging/DataExport.vue.d.ts +3 -4
- package/esm/comp/paging/DataImport.vue.d.ts +2 -1
- package/esm/comp/paging/File.vue.d.ts +2 -1
- package/esm/comp/paging/Index.vue.d.ts +3 -4
- package/esm/comp/paging/SearchForm.vue.d.ts +5 -7
- package/esm/comp/paging/SearchHeader.vue.d.ts +5 -6
- package/esm/comp/paging/Table.vue.d.ts +4 -563
- package/esm/comp/panel/Group.vue.d.ts +7 -11
- package/esm/comp/panel/Header.vue.d.ts +3 -2
- package/esm/comp/panel/Operation.vue.d.ts +10 -17
- package/esm/comp/panel/Panel.vue.d.ts +14 -15
- package/esm/comp/panel/Shrink.vue.d.ts +8 -12
- package/esm/comp/partial/ArticleFooter.vue.d.ts +5 -4
- package/esm/comp/partial/Detail.vue.d.ts +3 -2
- package/esm/comp/partial/PagingHeader.vue.d.ts +6 -5
- package/esm/comp/partial/PagingRow.vue.d.ts +5 -4
- package/esm/comp/partial/TreeNode.vue.d.ts +2 -1
- package/esm/comp/partial/Update.vue.d.ts +3 -2
- package/esm/comp/partial/UpdateChild.vue.d.ts +4 -3
- package/esm/comp/search/Autocomplete.vue.d.ts +4 -3
- package/esm/comp/search/Daterange.vue.d.ts +2 -1
- package/esm/comp/search/Index.vue.d.ts +4 -3
- package/esm/comp/search/Int.vue.d.ts +4 -3
- package/esm/comp/search/Month.vue.d.ts +4 -3
- package/esm/comp/search/Select.vue.d.ts +5 -6
- package/esm/comp/search/Text.vue.d.ts +7 -5
- package/esm/comp/single/Code.vue.d.ts +5 -4
- package/esm/comp/single/Comment.vue.d.ts +2 -1
- package/esm/comp/single/Index.vue.d.ts +7 -8
- package/esm/comp/single/Normal.vue.d.ts +5 -7
- package/esm/comp/single/Statistic.vue.d.ts +2 -1
- package/esm/comp/single/Stock.vue.d.ts +2 -1
- package/esm/comp/single/Table.vue.d.ts +5 -498
- package/esm/comp/single/Tree.vue.d.ts +3 -5
- package/esm/comp/single/Tree_Old.vue.d.ts +2 -1
- package/esm/comp/text/Autocomplete.vue.d.ts +2 -1
- package/esm/comp/text/CSharp.vue.d.ts +2 -1
- package/esm/comp/text/Cascader.vue.d.ts +5 -4
- package/esm/comp/text/Checkbox.vue.d.ts +2 -1
- package/esm/comp/text/Code.vue.d.ts +2 -1
- package/esm/comp/text/Color.vue.d.ts +2 -1
- package/esm/comp/text/Compare.vue.d.ts +2 -1
- package/esm/comp/text/Copy.vue.d.ts +9 -12
- package/esm/comp/text/Date.vue.d.ts +2 -1
- package/esm/comp/text/DateRange.vue.d.ts +2 -1
- package/esm/comp/text/DateTime.vue.d.ts +2 -1
- package/esm/comp/text/Decimal.vue.d.ts +2 -1
- package/esm/comp/text/Dictionary.vue.d.ts +5 -4
- package/esm/comp/text/Email.vue.d.ts +2 -1
- package/esm/comp/text/Index.vue.d.ts +4 -3
- package/esm/comp/text/Int.vue.d.ts +2 -1
- package/esm/comp/text/Markdown.vue.d.ts +2 -1
- package/esm/comp/text/Month.vue.d.ts +2 -1
- package/esm/comp/text/Password.vue.d.ts +2 -1
- package/esm/comp/text/Progress.vue.d.ts +2 -1
- package/esm/comp/text/Radio.vue.d.ts +2 -1
- package/esm/comp/text/Rate.vue.d.ts +4 -3
- package/esm/comp/text/RichText.vue.d.ts +2 -1
- package/esm/comp/text/Select.vue.d.ts +2 -1
- package/esm/comp/text/Switch.vue.d.ts +2 -1
- package/esm/comp/text/Text.vue.d.ts +2 -3
- package/esm/comp/text/TextLink.vue.d.ts +13 -15
- package/esm/comp/text/Textarea.vue.d.ts +2 -1
- package/esm/comp/text/Upload.vue.d.ts +2 -1
- package/esm/comp/text/Year.vue.d.ts +2 -1
- package/esm/view/help/401.vue.d.ts +2 -1
- package/esm/view/help/404.vue.d.ts +2 -1
- package/esm/view/help/Install.vue.d.ts +2 -3
- package/esm/view/help/Maintaince.vue.d.ts +2 -1
- package/esm/view/help/Upgrade.vue.d.ts +2 -1
- package/esm/view/sso/Callback.vue.d.ts +2 -1
- package/esm/view/sso/Index.vue.d.ts +2 -5
- package/esm/view/sso/Register.vue.d.ts +2 -33
- package/esm/vite.config.d.ts +1 -5
- package/package.json +53 -56
@@ -0,0 +1,39 @@
|
|
1
|
+
import { defineComponent as x, toRefs as h, computed as C, createElementBlock as a, openBlock as s, unref as e, createElementVNode as N, createTextVNode as b, createCommentVNode as d, toDisplayString as l } from "vue";
|
2
|
+
import "../vendor/underscore-CK1gjYcm.js";
|
3
|
+
import "../vendor/file-saver-ypit2jx5.js";
|
4
|
+
import "../vendor/clone-B9z63rns.js";
|
5
|
+
import "../vendor/underscore.string-BevGGlfe.js";
|
6
|
+
import "../vendor/moment-CwOqp704.js";
|
7
|
+
import { I as g, U as y } from "./main-DDCxKbDF.js";
|
8
|
+
const k = ["title"], v = { class: "number" }, V = {
|
9
|
+
key: 0,
|
10
|
+
class: "option-suffix"
|
11
|
+
}, B = {
|
12
|
+
key: 1,
|
13
|
+
class: "count"
|
14
|
+
}, D = /* @__PURE__ */ x({
|
15
|
+
__name: "TreeNode",
|
16
|
+
props: {
|
17
|
+
table: {},
|
18
|
+
layout: {},
|
19
|
+
row: {},
|
20
|
+
node: {}
|
21
|
+
},
|
22
|
+
setup(p) {
|
23
|
+
let u = p, { table: c, layout: r, row: t, node: m } = h(u), f = (n, o) => {
|
24
|
+
let i = (n.parent.data.Children ? n.parent.data.Children.indexOf(o) : n.parent.data.indexOf(o)) + 1;
|
25
|
+
return y.string.padLeft(i, 2, "0");
|
26
|
+
}, _ = C(() => c.value.fields.find((i) => i.name == r.value.text).control.i18N);
|
27
|
+
return (n, o) => (s(), a("div", {
|
28
|
+
title: e(t)[e(r).title]
|
29
|
+
}, [
|
30
|
+
N("span", v, l(e(f)(e(m), e(t))), 1),
|
31
|
+
b(" " + l(e(_)?.value ? e(g).t(e(t)[e(r).text]) : e(t)[e(r).text]) + " ", 1),
|
32
|
+
e(r).suffix ? (s(), a("span", V, l(e(t)[e(r).suffix]), 1)) : d("", !0),
|
33
|
+
e(t).Children && e(t).Children.length > 0 ? (s(), a("span", B, "(" + l(e(t).Children.length) + ")", 1)) : d("", !0)
|
34
|
+
], 8, k));
|
35
|
+
}
|
36
|
+
});
|
37
|
+
export {
|
38
|
+
D as default
|
39
|
+
};
|
@@ -0,0 +1,58 @@
|
|
1
|
+
import { defineComponent as x, toRefs as y, ref as C, createBlock as g, openBlock as v, unref as t, withCtx as e, createVNode as o, createTextVNode as n, toDisplayString as m } from "vue";
|
2
|
+
import "../vendor/underscore-CK1gjYcm.js";
|
3
|
+
import "../vendor/file-saver-ypit2jx5.js";
|
4
|
+
import "../vendor/clone-B9z63rns.js";
|
5
|
+
import "../vendor/underscore.string-BevGGlfe.js";
|
6
|
+
import "../vendor/moment-CwOqp704.js";
|
7
|
+
import { t as $, u as r, I as c, v as p } from "./main-DDCxKbDF.js";
|
8
|
+
import "vue-router";
|
9
|
+
import "../vendor/intro.js-BUb8U_EJ.js";
|
10
|
+
const q = /* @__PURE__ */ x({
|
11
|
+
__name: "Update",
|
12
|
+
props: {
|
13
|
+
table: {},
|
14
|
+
layout: {},
|
15
|
+
next: {},
|
16
|
+
set: {}
|
17
|
+
},
|
18
|
+
emits: ["submit", "close"],
|
19
|
+
setup(u, { expose: f, emit: _ }) {
|
20
|
+
let a = _, d = u, { table: h, next: w, set: B } = y(d), i = C(!1), s = (l) => {
|
21
|
+
i.value = !0, a("submit", l, null, (b) => {
|
22
|
+
i.value = !1;
|
23
|
+
});
|
24
|
+
}, k = () => {
|
25
|
+
a("close");
|
26
|
+
};
|
27
|
+
return f({ submit: s }), (l, b) => (v(), g(t($), { padding: 5 }, {
|
28
|
+
default: e(() => [
|
29
|
+
o(t(r), {
|
30
|
+
type: "primary",
|
31
|
+
loading: t(i),
|
32
|
+
onClick: t(s)
|
33
|
+
}, {
|
34
|
+
icon: e(() => [
|
35
|
+
o(t(p), { type: "tick" })
|
36
|
+
]),
|
37
|
+
default: e(() => [
|
38
|
+
n(" " + m(t(c).t("common.confirm")), 1)
|
39
|
+
]),
|
40
|
+
_: 1
|
41
|
+
}, 8, ["loading", "onClick"]),
|
42
|
+
o(t(r), { onClick: t(k) }, {
|
43
|
+
icon: e(() => [
|
44
|
+
o(t(p), { type: "arrow-left" })
|
45
|
+
]),
|
46
|
+
default: e(() => [
|
47
|
+
n(" " + m(t(c).t("common.back")), 1)
|
48
|
+
]),
|
49
|
+
_: 1
|
50
|
+
}, 8, ["onClick"])
|
51
|
+
]),
|
52
|
+
_: 1
|
53
|
+
}));
|
54
|
+
}
|
55
|
+
});
|
56
|
+
export {
|
57
|
+
q as default
|
58
|
+
};
|
@@ -0,0 +1,91 @@
|
|
1
|
+
import { defineComponent as v, toRefs as x, resolveComponent as N, createElementBlock as V, createCommentVNode as B, unref as e, openBlock as d, Fragment as h, createBlock as m, createVNode as c, withCtx as l, createTextVNode as r, toDisplayString as o, createElementVNode as p } from "vue";
|
2
|
+
import "../vendor/underscore-CK1gjYcm.js";
|
3
|
+
import "../vendor/file-saver-ypit2jx5.js";
|
4
|
+
import "../vendor/clone-B9z63rns.js";
|
5
|
+
import "../vendor/underscore.string-BevGGlfe.js";
|
6
|
+
import "../vendor/moment-CwOqp704.js";
|
7
|
+
import { I as s } from "./main-DDCxKbDF.js";
|
8
|
+
const q = /* @__PURE__ */ v({
|
9
|
+
__name: "UpdateChild",
|
10
|
+
props: {
|
11
|
+
module: {},
|
12
|
+
table: {},
|
13
|
+
set: {},
|
14
|
+
selection: {}
|
15
|
+
},
|
16
|
+
emits: ["add", "insert", "copy", "remove"],
|
17
|
+
setup(u, { emit: f }) {
|
18
|
+
let i = f, y = u, { module: k, table: D, set: E, selection: n } = x(y), C = () => {
|
19
|
+
i("add");
|
20
|
+
}, b = () => {
|
21
|
+
i("insert");
|
22
|
+
}, g = () => {
|
23
|
+
i("copy");
|
24
|
+
}, _ = () => {
|
25
|
+
i("remove");
|
26
|
+
};
|
27
|
+
return (I, t) => {
|
28
|
+
const a = N("el-button");
|
29
|
+
return e(k).type != "Detail" ? (d(), V(h, { key: 0 }, [
|
30
|
+
e(n).length == 0 ? (d(), m(a, {
|
31
|
+
key: 0,
|
32
|
+
type: "primary",
|
33
|
+
plain: "",
|
34
|
+
onClick: e(C)
|
35
|
+
}, {
|
36
|
+
icon: l(() => [...t[0] || (t[0] = [
|
37
|
+
p("i", { class: "fa fa-plus" }, null, -1)
|
38
|
+
])]),
|
39
|
+
default: l(() => [
|
40
|
+
r(" " + o(e(s).t("update.add")), 1)
|
41
|
+
]),
|
42
|
+
_: 1
|
43
|
+
}, 8, ["onClick"])) : (d(), m(a, {
|
44
|
+
key: 1,
|
45
|
+
type: "primary",
|
46
|
+
plain: "",
|
47
|
+
onClick: e(b)
|
48
|
+
}, {
|
49
|
+
icon: l(() => [...t[1] || (t[1] = [
|
50
|
+
p("i", { class: "fa fa-share" }, null, -1)
|
51
|
+
])]),
|
52
|
+
default: l(() => [
|
53
|
+
r(" " + o(e(s).t("update.insert")), 1)
|
54
|
+
]),
|
55
|
+
_: 1
|
56
|
+
}, 8, ["onClick"])),
|
57
|
+
c(a, {
|
58
|
+
type: "primary",
|
59
|
+
plain: "",
|
60
|
+
disabled: e(n).length == 0,
|
61
|
+
onClick: e(g)
|
62
|
+
}, {
|
63
|
+
icon: l(() => [...t[2] || (t[2] = [
|
64
|
+
p("i", { class: "fa fa-copy" }, null, -1)
|
65
|
+
])]),
|
66
|
+
default: l(() => [
|
67
|
+
r(" " + o(e(s).t("common.copy")) + "(" + o(e(n).length) + ") ", 1)
|
68
|
+
]),
|
69
|
+
_: 1
|
70
|
+
}, 8, ["disabled", "onClick"]),
|
71
|
+
c(a, {
|
72
|
+
type: "danger",
|
73
|
+
plain: "",
|
74
|
+
disabled: e(n).length == 0,
|
75
|
+
onClick: e(_)
|
76
|
+
}, {
|
77
|
+
icon: l(() => [...t[3] || (t[3] = [
|
78
|
+
p("i", { class: "fa fa-trash" }, null, -1)
|
79
|
+
])]),
|
80
|
+
default: l(() => [
|
81
|
+
r(" " + o(e(s).t("common.delete")) + "(" + o(e(n).length) + ") ", 1)
|
82
|
+
]),
|
83
|
+
_: 1
|
84
|
+
}, 8, ["disabled", "onClick"])
|
85
|
+
], 64)) : B("", !0);
|
86
|
+
};
|
87
|
+
}
|
88
|
+
});
|
89
|
+
export {
|
90
|
+
q as default
|
91
|
+
};
|
@@ -0,0 +1,70 @@
|
|
1
|
+
import { defineComponent as V, toRefs as k, ref as r, onMounted as w, computed as x, resolveComponent as C, createElementBlock as u, openBlock as n, createVNode as R, Fragment as E, renderList as F, unref as s, isRef as $, withCtx as y, createElementVNode as B } from "vue";
|
2
|
+
import "../vendor/underscore-CK1gjYcm.js";
|
3
|
+
import "../vendor/file-saver-ypit2jx5.js";
|
4
|
+
import "../vendor/clone-B9z63rns.js";
|
5
|
+
import "../vendor/underscore.string-BevGGlfe.js";
|
6
|
+
import "../vendor/moment-CwOqp704.js";
|
7
|
+
import { b as d, m as I, U as g, R as N } from "./main-DDCxKbDF.js";
|
8
|
+
const j = { class: "text-upload" }, L = ["src", "onClick", "alt"], M = ["src"], P = /* @__PURE__ */ V({
|
9
|
+
__name: "Upload",
|
10
|
+
props: {
|
11
|
+
schema: {},
|
12
|
+
table: {},
|
13
|
+
field: {},
|
14
|
+
set: {},
|
15
|
+
row: {},
|
16
|
+
modelValue: {}
|
17
|
+
},
|
18
|
+
setup(v) {
|
19
|
+
let f = v, { table: S, field: T, set: W, row: q, modelValue: _ } = k(f), p = r(), t = r(!1), m = r([]), c = r(), h = (e) => {
|
20
|
+
t.value = !0, c.value = e.url;
|
21
|
+
}, U = () => {
|
22
|
+
if (o.value)
|
23
|
+
if (d.setting.upload.method == "box")
|
24
|
+
I.getUploadToken().then((e) => {
|
25
|
+
o.value.split(",").forEach((a) => {
|
26
|
+
let l = `${d.setting.upload.address}/api/objects/download?slug=${a}&token=${e}`;
|
27
|
+
m.value.push({ name: a, url: l });
|
28
|
+
});
|
29
|
+
});
|
30
|
+
else {
|
31
|
+
let e = g.url.isWebUrl(o.value) ? o.value : N.setting.api.url + o.value;
|
32
|
+
g.file.isImage(e) ? p.value = e : p.value = d.upload.getFileIcon(e);
|
33
|
+
}
|
34
|
+
};
|
35
|
+
w(() => {
|
36
|
+
U();
|
37
|
+
});
|
38
|
+
let o = x(() => _.value);
|
39
|
+
return (e, i) => {
|
40
|
+
const a = C("el-dialog");
|
41
|
+
return n(), u("div", j, [
|
42
|
+
(n(!0), u(E, null, F(s(m), (l, b) => (n(), u("img", {
|
43
|
+
class: "detail-image",
|
44
|
+
src: l.url,
|
45
|
+
onClick: (z) => s(h)(l),
|
46
|
+
alt: l.name,
|
47
|
+
key: b
|
48
|
+
}, null, 8, L))), 128)),
|
49
|
+
R(a, {
|
50
|
+
draggable: "",
|
51
|
+
"append-to-body": "",
|
52
|
+
top: "5vh",
|
53
|
+
modelValue: s(t),
|
54
|
+
"onUpdate:modelValue": i[0] || (i[0] = (l) => $(t) ? t.value = l : t = l)
|
55
|
+
}, {
|
56
|
+
default: y(() => [
|
57
|
+
B("img", {
|
58
|
+
width: "100%",
|
59
|
+
src: s(c)
|
60
|
+
}, null, 8, M)
|
61
|
+
]),
|
62
|
+
_: 1
|
63
|
+
}, 8, ["modelValue"])
|
64
|
+
]);
|
65
|
+
};
|
66
|
+
}
|
67
|
+
});
|
68
|
+
export {
|
69
|
+
P as default
|
70
|
+
};
|
@@ -0,0 +1,149 @@
|
|
1
|
+
import { defineComponent as J, toRefs as K, ref as m, onMounted as Q, computed as R, watch as X, resolveComponent as I, createElementBlock as B, openBlock as U, normalizeClass as Y, unref as a, createVNode as C, withCtx as F, createBlock as Z, createTextVNode as ee, toDisplayString as le, isRef as te, createElementVNode as ae } from "vue";
|
2
|
+
import { I as oe, R as P, l as re, D as h, U as i, b as d, m as ne } from "./main-DDCxKbDF.js";
|
3
|
+
import "../vendor/underscore-CK1gjYcm.js";
|
4
|
+
import "../vendor/file-saver-ypit2jx5.js";
|
5
|
+
import "../vendor/clone-B9z63rns.js";
|
6
|
+
import "../vendor/underscore.string-BevGGlfe.js";
|
7
|
+
import "../vendor/moment-CwOqp704.js";
|
8
|
+
const ue = {
|
9
|
+
key: 0,
|
10
|
+
class: "fa fa-upload"
|
11
|
+
}, ie = ["src"], he = /* @__PURE__ */ J({
|
12
|
+
__name: "Upload",
|
13
|
+
props: {
|
14
|
+
schema: {},
|
15
|
+
table: {},
|
16
|
+
field: {},
|
17
|
+
set: {},
|
18
|
+
row: {},
|
19
|
+
modelValue: {}
|
20
|
+
},
|
21
|
+
emits: ["submit", "change", "update:modelValue"],
|
22
|
+
setup($, { emit: z }) {
|
23
|
+
let y = z, A = $, { table: p, field: n, row: b, set: se, modelValue: D } = K(A), c = m(!1), j = m({}), v = m([]), N = m(), E = m(), g = !0, _ = m({ action: "", data: null }), L = (e) => {
|
24
|
+
let l = ne.getUploadToken();
|
25
|
+
e.forEach((o) => {
|
26
|
+
let t = `${d.setting.upload.address}/api/objects/download?slug=${o[0]}&token=${l}`;
|
27
|
+
v.value.push({ name: o[1], url: t });
|
28
|
+
});
|
29
|
+
}, O = async (e) => {
|
30
|
+
g = !1;
|
31
|
+
let l = `/upload?table=${p.value.name}&field=${n.value.name}`;
|
32
|
+
_.value.action = P.setting.api.url + l;
|
33
|
+
let o = new re();
|
34
|
+
o.path = l, o.method = "POST", await h.http.prepareAsync(o);
|
35
|
+
let t = o.getHeader("Authorization");
|
36
|
+
return j.value.Authorization = t, n.value.control.fileType == "Image" ? e.type.indexOf("image") == 0 ? Promise.resolve() : (h.messenger.error("请上传正确的图片文件"), Promise.reject()) : Promise.resolve();
|
37
|
+
}, S = (e, l) => {
|
38
|
+
g = !1;
|
39
|
+
let t = [e.name.replace(P.setting.api.url, "")];
|
40
|
+
return h.http.post("/upload/delete", { files: t }).then(({ data: r }) => {
|
41
|
+
let u = l.indexOf(e), V = i.array.removeIndex(s.value, u, ",");
|
42
|
+
if (y("update:modelValue", V), n.value.control.name) {
|
43
|
+
let f = p.value.fields.find((k) => k.name == n.value.control.name), w = d.control.getValue(r.value, u, p.value, f), x = i.array.removeIndex(w, u, ",");
|
44
|
+
d.control.setValue(x, r.value, p.value, u, f);
|
45
|
+
}
|
46
|
+
return Promise.resolve();
|
47
|
+
}).catch(() => Promise.reject());
|
48
|
+
}, q = (e) => {
|
49
|
+
c.value = !0, N.value = e.url;
|
50
|
+
}, H = (e, l, o) => {
|
51
|
+
}, M = (e, l) => {
|
52
|
+
h.http.handleResponseBody(e).then((o) => {
|
53
|
+
let { name: t, url: r } = o.data[0];
|
54
|
+
d.setting.upload.method == "box" || i.file.isImage(r) || (l.url = d.upload.getFileIcon(r));
|
55
|
+
let V = i.array.split(s.value, ",", r).join(",");
|
56
|
+
if (s.value = V, n.value.control.name) {
|
57
|
+
let f = p.value.fields.find((k) => k.name == n.value.control.name), w = b.value[f.value], x = i.array.split(w, ",", t);
|
58
|
+
b.value[f.value] = x.join(",");
|
59
|
+
}
|
60
|
+
}).catch(() => {
|
61
|
+
v.value = [];
|
62
|
+
}).finally(() => {
|
63
|
+
g = !0;
|
64
|
+
});
|
65
|
+
}, T = () => {
|
66
|
+
if (v.value = [], !s.value)
|
67
|
+
return;
|
68
|
+
let e = i.array.split(s.value, ","), l = [];
|
69
|
+
if (n.value.control.name) {
|
70
|
+
let t = p.value.fields.find((u) => u.name == n.value.control.name), r = b.value[t.name];
|
71
|
+
l = i.array.split(r, ",");
|
72
|
+
}
|
73
|
+
let o = i.array.combine(e, l);
|
74
|
+
if (d.setting.upload.method == "box")
|
75
|
+
L(o);
|
76
|
+
else {
|
77
|
+
let t = i.url.isWebUrl(s.value) ? s.value : P.setting.api.url + s.value, r = { name: t, url: null };
|
78
|
+
i.file.isImage(t) ? r.url = t : r.url = d.upload.getFileIcon(t), v.value.push(r);
|
79
|
+
}
|
80
|
+
};
|
81
|
+
Q(() => {
|
82
|
+
T();
|
83
|
+
});
|
84
|
+
let s = R({
|
85
|
+
get() {
|
86
|
+
return D.value;
|
87
|
+
},
|
88
|
+
set(e) {
|
89
|
+
y("update:modelValue", e), y("change", e);
|
90
|
+
}
|
91
|
+
}), W = R(() => n.value.control.preview ? "picture-card" : null), G = R(() => G);
|
92
|
+
return X(() => s.value, (e, l) => {
|
93
|
+
g && T();
|
94
|
+
}), (e, l) => {
|
95
|
+
const o = I("el-button"), t = I("el-upload"), r = I("el-dialog");
|
96
|
+
return U(), B("div", {
|
97
|
+
class: Y(a(n).control.preview ? "control-file-preview" : "control-file")
|
98
|
+
}, [
|
99
|
+
C(t, {
|
100
|
+
ref_key: "uploadRef",
|
101
|
+
ref: E,
|
102
|
+
"list-type": a(W),
|
103
|
+
action: a(_).action,
|
104
|
+
headers: a(j),
|
105
|
+
data: a(_).data,
|
106
|
+
"file-list": a(v),
|
107
|
+
"before-upload": a(O),
|
108
|
+
"before-remove": a(S),
|
109
|
+
"on-preview": a(q),
|
110
|
+
"on-success": a(M),
|
111
|
+
"on-progress": a(H),
|
112
|
+
disabled: a(n).readonly
|
113
|
+
}, {
|
114
|
+
default: F(() => [
|
115
|
+
a(n).control.preview ? (U(), B("i", ue)) : (U(), Z(o, {
|
116
|
+
key: 1,
|
117
|
+
icon: "el-icon-upload",
|
118
|
+
type: "primary"
|
119
|
+
}, {
|
120
|
+
default: F(() => [
|
121
|
+
ee(le(a(oe).t("common.click_upload")), 1)
|
122
|
+
]),
|
123
|
+
_: 1
|
124
|
+
}))
|
125
|
+
]),
|
126
|
+
_: 1
|
127
|
+
}, 8, ["list-type", "action", "headers", "data", "file-list", "before-upload", "before-remove", "on-preview", "on-success", "on-progress", "disabled"]),
|
128
|
+
C(r, {
|
129
|
+
draggable: "",
|
130
|
+
"append-to-body": "",
|
131
|
+
modelValue: a(c),
|
132
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => te(c) ? c.value = u : c = u)
|
133
|
+
}, {
|
134
|
+
default: F(() => [
|
135
|
+
ae("img", {
|
136
|
+
width: "100%",
|
137
|
+
src: a(N),
|
138
|
+
alt: ""
|
139
|
+
}, null, 8, ie)
|
140
|
+
]),
|
141
|
+
_: 1
|
142
|
+
}, 8, ["modelValue"])
|
143
|
+
], 2);
|
144
|
+
};
|
145
|
+
}
|
146
|
+
});
|
147
|
+
export {
|
148
|
+
he as default
|
149
|
+
};
|
@@ -0,0 +1,46 @@
|
|
1
|
+
import { defineComponent as f, toRefs as _, computed as h, resolveComponent as V, createBlock as b, openBlock as g, unref as e, isRef as Y } from "vue";
|
2
|
+
import "../vendor/underscore-CK1gjYcm.js";
|
3
|
+
import "../vendor/file-saver-ypit2jx5.js";
|
4
|
+
import "../vendor/clone-B9z63rns.js";
|
5
|
+
import "../vendor/underscore.string-BevGGlfe.js";
|
6
|
+
import "../vendor/moment-CwOqp704.js";
|
7
|
+
import { I as k } from "./main-DDCxKbDF.js";
|
8
|
+
const j = /* @__PURE__ */ f({
|
9
|
+
__name: "Year",
|
10
|
+
props: {
|
11
|
+
schema: {},
|
12
|
+
table: {},
|
13
|
+
field: {},
|
14
|
+
set: {},
|
15
|
+
row: {},
|
16
|
+
modelValue: {}
|
17
|
+
},
|
18
|
+
emits: ["submit", "change", "update:modelValue"],
|
19
|
+
setup(n, { emit: d }) {
|
20
|
+
let l = d, p = n, { table: i, field: a, row: C, set: y, modelValue: s } = _(p), u = () => {
|
21
|
+
l("submit");
|
22
|
+
}, o = h({
|
23
|
+
get() {
|
24
|
+
return s.value;
|
25
|
+
},
|
26
|
+
set(t) {
|
27
|
+
l("update:modelValue", t), l("change", t);
|
28
|
+
}
|
29
|
+
});
|
30
|
+
return (t, r) => {
|
31
|
+
const c = V("el-date-picker");
|
32
|
+
return g(), b(c, {
|
33
|
+
type: "year",
|
34
|
+
placeholder: e(k).field_choose_placeholder(e(i).name, e(a).name),
|
35
|
+
"value-format": "YYYY",
|
36
|
+
disabled: e(a).control.readonly,
|
37
|
+
onChange: e(u),
|
38
|
+
modelValue: e(o),
|
39
|
+
"onUpdate:modelValue": r[0] || (r[0] = (m) => Y(o) ? o.value = m : o = m)
|
40
|
+
}, null, 8, ["placeholder", "disabled", "onChange", "modelValue"]);
|
41
|
+
};
|
42
|
+
}
|
43
|
+
});
|
44
|
+
export {
|
45
|
+
j as default
|
46
|
+
};
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { defineComponent as u, defineAsyncComponent as i, toRefs as c, createBlock as V, openBlock as b, unref as e, isRef as w } from "vue";
|
2
|
+
const h = /* @__PURE__ */ u({
|
3
|
+
__name: "Year",
|
4
|
+
props: {
|
5
|
+
schema: {},
|
6
|
+
table: {},
|
7
|
+
field: {},
|
8
|
+
set: {},
|
9
|
+
row: {},
|
10
|
+
modelValue: {}
|
11
|
+
},
|
12
|
+
setup(a) {
|
13
|
+
let r = i(() => import("./Text-C-mzSg7d.js")), s = a, { schema: m, table: n, field: d, set: f, row: p, modelValue: l } = c(s);
|
14
|
+
return (x, t) => (b(), V(e(r), {
|
15
|
+
schema: e(m),
|
16
|
+
table: e(n),
|
17
|
+
field: e(d),
|
18
|
+
row: e(p),
|
19
|
+
set: e(f),
|
20
|
+
modelValue: e(l),
|
21
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => w(l) ? l.value = o : l = o)
|
22
|
+
}, null, 8, ["schema", "table", "field", "row", "set", "modelValue"]));
|
23
|
+
}
|
24
|
+
});
|
25
|
+
export {
|
26
|
+
h as default
|
27
|
+
};
|