halo-pc 1.0.3 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Article-7pMF1N-k.js +192 -0
- package/dist/ArticleFooter-BAf1rKUX.js +78 -0
- package/dist/Autocomplete-CEjjKXwo.js +27 -0
- package/dist/Autocomplete-DqKo5NiJ.js +49 -0
- package/dist/Autocomplete-K5ipzchR.js +48 -0
- package/dist/CSharp-DatSqpip.js +27 -0
- package/dist/Calender-B1HoFiQg.js +10 -0
- package/dist/Callback-PyCjejiv.js +20 -0
- package/dist/Cascader-B9lLRKjA.js +80 -0
- package/dist/Cascader-BNvlqc5t.js +41 -0
- package/dist/Checkbox-B6IkMrWB.js +27 -0
- package/dist/Checkbox-CYpA0Abh.js +69 -0
- package/dist/Code-BdK547kD.js +4 -0
- package/dist/Code-DfFF-84i.js +36 -0
- package/dist/Code-LFQVJotC.js +54 -0
- package/dist/Code-SZuIImtp.js +28 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-nX113anq.js +59 -0
- package/dist/Color-CfXtJFUo.js +22 -0
- package/dist/Color-Da69pnQg.js +34 -0
- package/dist/Column-DVjYrrr7.js +67 -0
- package/dist/Comment-Do7Mjpjr.js +98 -0
- package/dist/Compare-C_iDn27Q.js +56 -0
- package/dist/Compare-CrX3yfD4.js +26 -0
- package/dist/Copy-_sbdQvHJ.js +43 -0
- package/dist/Custom-DarpQFG8.js +49 -0
- package/dist/DataExport-I9iG4oEo.js +4 -0
- package/dist/DataExport.vue_vue_type_script_setup_true_lang-BgKetUGv.js +108 -0
- package/dist/DataImport-2KtOy-of.js +4 -0
- package/dist/DataImport.vue_vue_type_script_setup_true_lang-DgzKdC2g.js +170 -0
- package/dist/Date-BeHsQ2Ow.js +36 -0
- package/dist/Date-PERpDDy_.js +27 -0
- package/dist/DateRange-BaxHMjcx.js +57 -0
- package/dist/DateRange-DrYK_l0Y.js +19 -0
- package/dist/DateTime-B7gHENiu.js +27 -0
- package/dist/DateTime-BfNjKDfI.js +37 -0
- package/dist/DateTimeRange-yI9Y2qgC.js +61 -0
- package/dist/Daterange-DqvBvK-B.js +57 -0
- package/dist/Decimal-AXwMeqBW.js +27 -0
- package/dist/Decimal-C38-N54B.js +36 -0
- package/dist/Delete-BY3vAVWa.js +55 -0
- package/dist/Detail-aWACqVnM.js +68 -0
- package/dist/Dictionary-DpQuFYQ5.js +55 -0
- package/dist/Email-BKW9GRcH.js +19 -0
- package/dist/Email-ME_MU94C.js +47 -0
- package/dist/File--NsXL6XX.js +155 -0
- package/dist/Image-CuwfJLKW.js +9 -0
- package/dist/Index-BNOFdDjW.js +70 -0
- package/dist/Index-B_a_HzsB.js +4 -0
- package/dist/Index-CQ9S2R9b.js +4 -0
- package/dist/Index-C_HCipwv.js +4 -0
- package/dist/Index-Cewv4-Ik.js +168 -0
- package/dist/Index-Cj79dCuO.js +4 -0
- package/dist/Index-Cx2J_P37.js +4 -0
- package/dist/Index-DA2wAurY.js +4 -0
- package/dist/Index.vue_vue_type_script_setup_true_lang-B-sM48XO.js +36 -0
- package/dist/Index.vue_vue_type_script_setup_true_lang-D6_VOLX-.js +65 -0
- package/dist/Index.vue_vue_type_script_setup_true_lang-DjiARPz7.js +77 -0
- package/dist/Index.vue_vue_type_style_index_0_lang-DApNHvNX.js +109 -0
- package/dist/Install-BWdNbtVx.js +128 -0
- package/dist/Int-B-t8edhd.js +19 -0
- package/dist/Int-C-0RMDmy.js +37 -0
- package/dist/Int-nmVkFRqG.js +41 -0
- package/dist/List-BjdY1rMk.js +72 -0
- package/dist/Maintaince-DzYzyrAc.js +15 -0
- package/dist/Markdown-BzMP3m7o.js +37 -0
- package/dist/Markdown-DD6ufwhM.js +27 -0
- package/dist/Month-B_SzKf02.js +36 -0
- package/dist/Month-BqbTFGgo.js +27 -0
- package/dist/Month-DfemgHac.js +37 -0
- package/dist/Normal-f4HN1ciI.js +252 -0
- package/dist/Paging-BMPtLi8P.js +90 -0
- package/dist/PagingHeader-CBXHiUXR.js +140 -0
- package/dist/PagingRow-tny-wHwu.js +66 -0
- package/dist/Password-DuyYEgzR.js +55 -0
- package/dist/Password-yHtlY-Qa.js +24 -0
- package/dist/Progress-C3D821AQ.js +34 -0
- package/dist/Progress-CKVzMO-W.js +25 -0
- package/dist/QueryApi-CbP5cCyH.js +13 -0
- package/dist/Racebar-Bou-XNCm.js +162 -0
- package/dist/Radio-BmikzeCv.js +27 -0
- package/dist/Radio-DkcBKBvX.js +47 -0
- package/dist/Rate-B7jKTFKT.js +34 -0
- package/dist/Rate-BmC4gw_0.js +34 -0
- package/dist/Register-CgbRZH9W.js +196 -0
- package/dist/RichText-BeK3zZam.js +101 -0
- package/dist/RichText-Bk0Msyhl.js +22 -0
- package/dist/SearchFooter-C4PeAkaR.js +4 -0
- package/dist/SearchFooter.vue_vue_type_style_index_0_lang-BaO7vJ-n.js +55 -0
- package/dist/SearchForm-C7fZiQaW.js +4 -0
- package/dist/SearchForm.vue_vue_type_style_index_0_lang-BumSLQVy.js +145 -0
- package/dist/Select-C1-NVZdG.js +80 -0
- package/dist/Select-DR5fQH0d.js +111 -0
- package/dist/Select-DlbQvxQu.js +27 -0
- package/dist/Single-BLRyJKB-.js +319 -0
- package/dist/Statistic-BOtmYiRA.js +157 -0
- package/dist/Statistic-CTxHNeof.js +76 -0
- package/dist/Stock-BqQ6lM5B.js +28 -0
- package/dist/Stock-Dnwof0R1.js +4 -0
- package/dist/Stock.vue_vue_type_style_index_0_lang-Az2jx3JN.js +298 -0
- package/dist/Switch-DhFaku5L.js +50 -0
- package/dist/Switch-DuMBV0AX.js +27 -0
- package/dist/Table-Be-rPXr_.js +316 -0
- package/dist/Table-RMVT0hlE.js +236 -0
- package/dist/Text-BRRmmXYV.js +52 -0
- package/dist/Text-DKpPIUcY.js +51 -0
- package/dist/Text-DSXRKFPa.js +4 -0
- package/dist/Text.vue_vue_type_style_index_0_lang-CeDusQl6.js +52 -0
- package/dist/TextLink-BZW-y_FS.js +62 -0
- package/dist/Textarea-3ypOGE1S.js +28 -0
- package/dist/Textarea-D9TgF9ig.js +37 -0
- package/dist/Time-BcQzBDX-.js +36 -0
- package/dist/Timeline-CLezCcgQ.js +53 -0
- package/dist/Tree-B6RBRT1y.js +293 -0
- package/dist/Tree-CLpCeirT.js +117 -0
- package/dist/TreeNode-C16N8jqm.js +34 -0
- package/dist/Tree_Old-h__WmqFA.js +11 -0
- package/dist/Update-Dc3Tdkn0.js +63 -0
- package/dist/UpdateChild-B2A3hP6m.js +85 -0
- package/dist/Upload-DvWyjK3a.js +143 -0
- package/dist/Upload-SEu1V1yX.js +67 -0
- package/dist/UploadApi-Bs507D0w.js +13 -0
- package/dist/Year-1ug2_a1g.js +40 -0
- package/dist/Year-DKxOQNyS.js +27 -0
- package/dist/main-QtNG6p7a.js +16673 -0
- package/dist/main.js +116 -0
- package/dist/style.css +1 -0
- package/dist/vendor-@intlify-BISCQg1h.js +2189 -0
- package/dist/vendor-@vue-aVYGocXp.js +93 -0
- package/dist/vendor-clipboard-DjQPoCBJ.js +501 -0
- package/dist/vendor-element-plus-Z7vJFrsh.js +456 -0
- package/dist/vendor-intro.js-DwWqhM1v.js +1695 -0
- package/dist/vendor-pinia-yrN6kSxh.js +861 -0
- package/dist/vendor-vue-demi-CIhrFbpB.js +17 -0
- package/dist/vendor-vue-i18n-C3KH15Qn.js +1670 -0
- package/esm/coms/business/HaCondition.vue.d.ts +18 -0
- package/esm/coms/business/HaCrud.vue.d.ts +29 -0
- package/esm/coms/business/HaDrawer.vue.d.ts +24 -0
- package/esm/coms/business/HaDriver.vue.d.ts +52 -0
- package/esm/coms/business/HaFeedback.vue.d.ts +8 -0
- package/esm/coms/business/HaForm.vue.d.ts +23 -0
- package/esm/coms/business/HaSwitch.vue.d.ts +24 -0
- package/esm/coms/business/HaWelcome.vue.d.ts +8 -0
- package/esm/coms/business/index.d.ts +124 -0
- package/esm/coms/commons/HaCaptcha.vue.d.ts +14 -0
- package/esm/coms/commons/HaDebug.vue.d.ts +9 -0
- package/esm/coms/commons/HaEditable.vue.d.ts +13 -0
- package/esm/coms/commons/HaLoading.vue.d.ts +33 -0
- package/esm/coms/commons/HaMouseContext.vue.d.ts +2 -0
- package/esm/coms/commons/HaParticles.vue.d.ts +2 -0
- package/esm/coms/commons/HaResizer.vue.d.ts +26 -0
- package/esm/coms/commons/HaSpinner.vue.d.ts +20 -0
- package/esm/coms/commons/HaTable.vue.d.ts +34 -0
- package/esm/coms/commons/HaTableColumn.vue.d.ts +31 -0
- package/esm/coms/commons/index.d.ts +32 -0
- package/esm/coms/controls/Autocomplete.vue.d.ts +24 -0
- package/esm/coms/controls/Cascader.vue.d.ts +24 -0
- package/esm/coms/controls/Checkbox.vue.d.ts +22 -0
- package/esm/coms/controls/Code.vue.d.ts +24 -0
- package/esm/coms/controls/Color.vue.d.ts +24 -0
- package/esm/coms/controls/Compare.vue.d.ts +24 -0
- package/esm/coms/controls/Date.vue.d.ts +24 -0
- package/esm/coms/controls/DateRange.vue.d.ts +24 -0
- package/esm/coms/controls/DateTime.vue.d.ts +24 -0
- package/esm/coms/controls/DateTimeRange.vue.d.ts +24 -0
- package/esm/coms/controls/Decimal.vue.d.ts +24 -0
- package/esm/coms/controls/Email.vue.d.ts +24 -0
- package/esm/coms/controls/Image.vue.d.ts +2 -0
- package/esm/coms/controls/Index.vue.d.ts +22 -0
- package/esm/coms/controls/Int.vue.d.ts +24 -0
- package/esm/coms/controls/Markdown.vue.d.ts +24 -0
- package/esm/coms/controls/Month.vue.d.ts +24 -0
- package/esm/coms/controls/Password.vue.d.ts +24 -0
- package/esm/coms/controls/Progress.vue.d.ts +24 -0
- package/esm/coms/controls/Radio.vue.d.ts +24 -0
- package/esm/coms/controls/Rate.vue.d.ts +24 -0
- package/esm/coms/controls/RichText.vue.d.ts +22 -0
- package/esm/coms/controls/Select.vue.d.ts +24 -0
- package/esm/coms/controls/Switch.vue.d.ts +24 -0
- package/esm/coms/controls/Text.vue.d.ts +26 -0
- package/esm/coms/controls/Textarea.vue.d.ts +24 -0
- package/esm/coms/controls/Time.vue.d.ts +24 -0
- package/esm/coms/controls/Upload.vue.d.ts +24 -0
- package/esm/coms/controls/Year.vue.d.ts +24 -0
- package/esm/coms/controls/index.d.ts +26 -0
- package/esm/coms/globals/HaHeaderTab.vue.d.ts +19 -0
- package/esm/coms/globals/HaHeaderTabs.vue.d.ts +17 -0
- package/esm/coms/globals/HaMenu.vue.d.ts +77 -0
- package/esm/coms/globals/HaMenuItem.vue.d.ts +76 -0
- package/esm/coms/globals/HaMissComponent.vue.d.ts +9 -0
- package/esm/coms/globals/HaSideTab.vue.d.ts +21 -0
- package/esm/coms/globals/HaSideTabs.vue.d.ts +17 -0
- package/esm/coms/globals/HaWindow.vue.d.ts +66 -0
- package/esm/coms/globals/index.d.ts +70 -0
- package/esm/coms/headers/Breadcrumb.vue.d.ts +2 -0
- package/esm/coms/headers/Debugger.vue.d.ts +2 -0
- package/esm/coms/headers/Hamburger.vue.d.ts +18 -0
- package/esm/coms/headers/HeaderRight.vue.d.ts +2 -0
- package/esm/coms/headers/Index.vue.d.ts +6 -0
- package/esm/coms/headers/Log.vue.d.ts +2 -0
- package/esm/coms/headers/Logo.vue.d.ts +6 -0
- package/esm/coms/headers/Refresh.vue.d.ts +6 -0
- package/esm/coms/headers/Setting.vue.d.ts +8 -0
- package/esm/coms/headers/index.d.ts +3 -0
- package/esm/coms/index.d.ts +11 -0
- package/esm/coms/layouts/Desktop.vue.d.ts +2 -0
- package/esm/coms/layouts/Index.vue.d.ts +2 -0
- package/esm/coms/layouts/Side.vue.d.ts +2 -0
- package/esm/coms/layouts/Top.vue.d.ts +2 -0
- package/esm/coms/layouts/index.d.ts +7 -0
- package/esm/coms/lists/Calender.vue.d.ts +2 -0
- package/esm/coms/lists/Racebar.vue.d.ts +18 -0
- package/esm/coms/lists/Statistic.vue.d.ts +18 -0
- package/esm/coms/lists/Stock.vue.d.ts +12 -0
- package/esm/coms/lists/Timeline.vue.d.ts +12 -0
- package/esm/coms/lists/Tree.vue.d.ts +26 -0
- package/esm/coms/lists/index.d.ts +15 -0
- package/esm/coms/pages/Column.vue.d.ts +22 -0
- package/esm/coms/pages/Custom.vue.d.ts +25 -0
- package/esm/coms/pages/Delete.vue.d.ts +20 -0
- package/esm/coms/pages/Index.vue.d.ts +2 -0
- package/esm/coms/pages/List.vue.d.ts +24 -0
- package/esm/coms/pages/Paging.vue.d.ts +24 -0
- package/esm/coms/pages/Single.vue.d.ts +28 -0
- package/esm/coms/pages/index.d.ts +146 -0
- package/esm/coms/pagings/Article.vue.d.ts +27 -0
- package/esm/coms/pagings/Code.vue.d.ts +12 -0
- package/esm/coms/pagings/DataExport.vue.d.ts +33 -0
- package/esm/coms/pagings/DataImport.vue.d.ts +18 -0
- package/esm/coms/pagings/File.vue.d.ts +12 -0
- package/esm/coms/pagings/Index.vue.d.ts +33 -0
- package/esm/coms/pagings/SearchFooter.vue.d.ts +122 -0
- package/esm/coms/pagings/SearchForm.vue.d.ts +72 -0
- package/esm/coms/pagings/Table.vue.d.ts +31 -0
- package/esm/coms/pagings/index.d.ts +11 -0
- package/esm/coms/panels/HaGroup.vue.d.ts +9 -0
- package/esm/coms/panels/HaHeader.vue.d.ts +16 -0
- package/esm/coms/panels/HaOperation.vue.d.ts +22 -0
- package/esm/coms/panels/HaPanel.vue.d.ts +30 -0
- package/esm/coms/panels/HaShrink.vue.d.ts +48 -0
- package/esm/coms/panels/index.d.ts +13 -0
- package/esm/coms/partials/ArticleFooter.vue.d.ts +24 -0
- package/esm/coms/partials/Detail.vue.d.ts +20 -0
- package/esm/coms/partials/PagingHeader.vue.d.ts +28 -0
- package/esm/coms/partials/PagingRow.vue.d.ts +24 -0
- package/esm/coms/partials/TreeNode.vue.d.ts +12 -0
- package/esm/coms/partials/Update.vue.d.ts +20 -0
- package/esm/coms/partials/UpdateChild.vue.d.ts +22 -0
- package/esm/coms/partials/index.d.ts +135 -0
- package/esm/coms/searches/Autocomplete.vue.d.ts +24 -0
- package/esm/coms/searches/Daterange.vue.d.ts +22 -0
- package/esm/coms/searches/Index.vue.d.ts +18 -0
- package/esm/coms/searches/Int.vue.d.ts +24 -0
- package/esm/coms/searches/Month.vue.d.ts +24 -0
- package/esm/coms/searches/Select.vue.d.ts +24 -0
- package/esm/coms/searches/Text.vue.d.ts +24 -0
- package/esm/coms/searches/index.d.ts +7 -0
- package/esm/coms/singles/Code.vue.d.ts +18 -0
- package/esm/coms/singles/Comment.vue.d.ts +12 -0
- package/esm/coms/singles/Index.vue.d.ts +25 -0
- package/esm/coms/singles/Normal.vue.d.ts +21 -0
- package/esm/coms/singles/Statistic.vue.d.ts +12 -0
- package/esm/coms/singles/Stock.vue.d.ts +12 -0
- package/esm/coms/singles/Table.vue.d.ts +22 -0
- package/esm/coms/singles/Tree.vue.d.ts +14 -0
- package/esm/coms/singles/Tree_Old.vue.d.ts +2 -0
- package/esm/coms/singles/index.d.ts +15 -0
- package/esm/coms/texts/Autocomplete.vue.d.ts +16 -0
- package/esm/coms/texts/CSharp.vue.d.ts +16 -0
- package/esm/coms/texts/Cascader.vue.d.ts +22 -0
- package/esm/coms/texts/Checkbox.vue.d.ts +16 -0
- package/esm/coms/texts/Code.vue.d.ts +16 -0
- package/esm/coms/texts/Color.vue.d.ts +16 -0
- package/esm/coms/texts/Compare.vue.d.ts +16 -0
- package/esm/coms/texts/Copy.vue.d.ts +24 -0
- package/esm/coms/texts/Date.vue.d.ts +16 -0
- package/esm/coms/texts/DateRange.vue.d.ts +16 -0
- package/esm/coms/texts/DateTime.vue.d.ts +16 -0
- package/esm/coms/texts/Decimal.vue.d.ts +16 -0
- package/esm/coms/texts/Dictionary.vue.d.ts +24 -0
- package/esm/coms/texts/Email.vue.d.ts +16 -0
- package/esm/coms/texts/Index.vue.d.ts +22 -0
- package/esm/coms/texts/Int.vue.d.ts +16 -0
- package/esm/coms/texts/Markdown.vue.d.ts +16 -0
- package/esm/coms/texts/Month.vue.d.ts +16 -0
- package/esm/coms/texts/Password.vue.d.ts +16 -0
- package/esm/coms/texts/Progress.vue.d.ts +16 -0
- package/esm/coms/texts/Radio.vue.d.ts +16 -0
- package/esm/coms/texts/Rate.vue.d.ts +24 -0
- package/esm/coms/texts/RichText.vue.d.ts +16 -0
- package/esm/coms/texts/Select.vue.d.ts +16 -0
- package/esm/coms/texts/Switch.vue.d.ts +16 -0
- package/esm/coms/texts/Text.vue.d.ts +16 -0
- package/esm/coms/texts/TextLink.vue.d.ts +29 -0
- package/esm/coms/texts/Textarea.vue.d.ts +16 -0
- package/esm/coms/texts/Upload.vue.d.ts +16 -0
- package/esm/coms/texts/Year.vue.d.ts +16 -0
- package/esm/main.d.ts +6 -2
- package/esm/plugins/PcMessager.d.ts +35 -0
- package/esm/plugins/index.d.ts +2 -0
- package/esm/services/index.d.ts +1 -2
- package/esm/stores/index.d.ts +2 -1
- package/package.json +2 -1
@@ -0,0 +1,143 @@
|
|
1
|
+
import { defineComponent as Y, toRefs as Z, ref as m, onMounted as ee, computed as k, watch as le, resolveComponent as U, openBlock as I, createElementBlock as N, normalizeClass as ae, unref as a, createVNode as P, withCtx as S, createBlock as te, createTextVNode as oe, toDisplayString as re, isRef as ue, createElementVNode as ne } from "vue";
|
2
|
+
import { b as ie, c as se, y as j, m as de, j as B, r as s, a as T, S as $, U as z, I as me } from "./main-QtNG6p7a.js";
|
3
|
+
import "./QueryApi-CbP5cCyH.js";
|
4
|
+
import { U as pe } from "./UploadApi-Bs507D0w.js";
|
5
|
+
const ce = {
|
6
|
+
key: 0,
|
7
|
+
class: "fa fa-upload"
|
8
|
+
}, ve = ["src"], Ve = /* @__PURE__ */ Y({
|
9
|
+
__name: "Upload",
|
10
|
+
props: {
|
11
|
+
schema: {},
|
12
|
+
table: {},
|
13
|
+
field: {},
|
14
|
+
set: {},
|
15
|
+
row: {},
|
16
|
+
modelValue: {}
|
17
|
+
},
|
18
|
+
emits: ["submit", "change", "update:modelValue"],
|
19
|
+
setup(A, { emit: E }) {
|
20
|
+
let g = E, L = A, { table: d, field: r, row: h, set: fe, modelValue: O } = Z(L), b = ie(), D = se(), p = m(!1), F = m({}), c = m([]), R = m(), H = m(), f = !0, _ = m({ action: "", data: null }), M = (e) => {
|
21
|
+
pe.getUploadToken().then((l) => {
|
22
|
+
e.forEach((u) => {
|
23
|
+
let t = `${b.upload.address}/api/objects/download?slug=${u[0]}&token=${l}`;
|
24
|
+
c.value.push({ name: u[1], url: t });
|
25
|
+
});
|
26
|
+
});
|
27
|
+
}, q = async (e) => {
|
28
|
+
f = !1;
|
29
|
+
let l = `/upload?table=${d.value.name}&field=${r.value.name}`;
|
30
|
+
return _.value.action = j.api.url + l, F.value.Authorization = await D.getAuthorization(l), r.value.control.fileType == "Image" ? e.type.indexOf("image") == 0 ? Promise.resolve() : (de.error("请上传正确的图片文件"), Promise.reject()) : Promise.resolve();
|
31
|
+
}, G = (e, l) => {
|
32
|
+
f = !1;
|
33
|
+
let t = [e.name.replace(j.api.url, "")];
|
34
|
+
return B.post("/upload/delete", { files: t }).then(({ data: o }) => {
|
35
|
+
let n = l.indexOf(e), V = s.removeIndex(i.value, n, ",");
|
36
|
+
if (g("update:modelValue", V), r.value.control.name) {
|
37
|
+
let v = d.value.fields.find((x) => x.name == r.value.control.name), y = T.getValue(o.value, n, d.value, v), w = s.removeIndex(y, n, ",");
|
38
|
+
T.setValue(w, o.value, d.value, n, v);
|
39
|
+
}
|
40
|
+
return Promise.resolve();
|
41
|
+
}).catch(() => Promise.reject());
|
42
|
+
}, J = (e) => {
|
43
|
+
p.value = !0, R.value = e.url;
|
44
|
+
}, K = (e, l, u) => {
|
45
|
+
}, Q = (e, l) => {
|
46
|
+
B.handleResponseBody(e).then((u) => {
|
47
|
+
let { name: t, url: o } = u.data[0];
|
48
|
+
b.upload.method == "box" || $.isImage(o) || (l.url = z.getFileIcon(o));
|
49
|
+
let V = s.split(i.value, ",", o).join(",");
|
50
|
+
if (i.value = V, r.value.control.name) {
|
51
|
+
let v = d.value.fields.find((x) => x.name == r.value.control.name), y = h.value[v.value], w = s.split(y, ",", t);
|
52
|
+
h.value[v.value] = w.join(",");
|
53
|
+
}
|
54
|
+
}).catch(() => {
|
55
|
+
c.value = [];
|
56
|
+
}).finally(() => {
|
57
|
+
f = !0;
|
58
|
+
});
|
59
|
+
}, C = () => {
|
60
|
+
if (c.value = [], !i.value)
|
61
|
+
return;
|
62
|
+
let e = s.split(i.value, ","), l = [];
|
63
|
+
if (r.value.control.name) {
|
64
|
+
let t = d.value.fields.find((n) => n.name == r.value.control.name), o = h.value[t.name];
|
65
|
+
l = s.split(o, ",");
|
66
|
+
}
|
67
|
+
let u = s.combine(e, l);
|
68
|
+
if (b.upload.method == "box")
|
69
|
+
M(u);
|
70
|
+
else {
|
71
|
+
let t = me.httpOrHttps(i.value) ? i.value : j.api.url + i.value, o = { name: t, url: null };
|
72
|
+
$.isImage(t) ? o.url = t : o.url = z.getFileIcon(t), c.value.push(o);
|
73
|
+
}
|
74
|
+
};
|
75
|
+
ee(() => {
|
76
|
+
C();
|
77
|
+
});
|
78
|
+
let i = k({
|
79
|
+
get() {
|
80
|
+
return O.value;
|
81
|
+
},
|
82
|
+
set(e) {
|
83
|
+
g("update:modelValue", e), g("change", e);
|
84
|
+
}
|
85
|
+
}), W = k(() => r.value.control.preview ? "picture-card" : null), X = k(() => X);
|
86
|
+
return le(() => i.value, (e, l) => {
|
87
|
+
f && C();
|
88
|
+
}), (e, l) => {
|
89
|
+
const u = U("el-button"), t = U("el-upload"), o = U("el-dialog");
|
90
|
+
return I(), N("div", {
|
91
|
+
class: ae(a(r).control.preview ? "control-file-preview" : "control-file")
|
92
|
+
}, [
|
93
|
+
P(t, {
|
94
|
+
ref_key: "uploadRef",
|
95
|
+
ref: H,
|
96
|
+
"list-type": a(W),
|
97
|
+
action: a(_).action,
|
98
|
+
headers: a(F),
|
99
|
+
data: a(_).data,
|
100
|
+
"file-list": a(c),
|
101
|
+
"before-upload": a(q),
|
102
|
+
"before-remove": a(G),
|
103
|
+
"on-preview": a(J),
|
104
|
+
"on-success": a(Q),
|
105
|
+
"on-progress": a(K),
|
106
|
+
disabled: a(r).readonly
|
107
|
+
}, {
|
108
|
+
default: S(() => [
|
109
|
+
a(r).control.preview ? (I(), N("i", ce)) : (I(), te(u, {
|
110
|
+
key: 1,
|
111
|
+
icon: "el-icon-upload",
|
112
|
+
type: "primary"
|
113
|
+
}, {
|
114
|
+
default: S(() => [
|
115
|
+
oe(re(e.t("common.click_upload")), 1)
|
116
|
+
]),
|
117
|
+
_: 1
|
118
|
+
}))
|
119
|
+
]),
|
120
|
+
_: 1
|
121
|
+
}, 8, ["list-type", "action", "headers", "data", "file-list", "before-upload", "before-remove", "on-preview", "on-success", "on-progress", "disabled"]),
|
122
|
+
P(o, {
|
123
|
+
draggable: "",
|
124
|
+
"append-to-body": "",
|
125
|
+
modelValue: a(p),
|
126
|
+
"onUpdate:modelValue": l[0] || (l[0] = (n) => ue(p) ? p.value = n : p = n)
|
127
|
+
}, {
|
128
|
+
default: S(() => [
|
129
|
+
ne("img", {
|
130
|
+
width: "100%",
|
131
|
+
src: a(R),
|
132
|
+
alt: ""
|
133
|
+
}, null, 8, ve)
|
134
|
+
]),
|
135
|
+
_: 1
|
136
|
+
}, 8, ["modelValue"])
|
137
|
+
], 2);
|
138
|
+
};
|
139
|
+
}
|
140
|
+
});
|
141
|
+
export {
|
142
|
+
Ve as default
|
143
|
+
};
|
@@ -0,0 +1,67 @@
|
|
1
|
+
import { defineComponent as b, toRefs as V, ref as r, onMounted as k, computed as w, resolveComponent as x, openBlock as n, createElementBlock as d, Fragment as C, renderList as y, unref as s, createVNode as S, isRef as E, withCtx as F, createElementVNode as I } from "vue";
|
2
|
+
import { b as $, I as B, y as N, S as R, U as j } from "./main-QtNG6p7a.js";
|
3
|
+
import "./QueryApi-CbP5cCyH.js";
|
4
|
+
import { U as A } from "./UploadApi-Bs507D0w.js";
|
5
|
+
const H = { class: "text-upload" }, L = ["src", "onClick", "alt"], M = ["src"], Q = /* @__PURE__ */ b({
|
6
|
+
__name: "Upload",
|
7
|
+
props: {
|
8
|
+
schema: {},
|
9
|
+
table: {},
|
10
|
+
field: {},
|
11
|
+
set: {},
|
12
|
+
row: {},
|
13
|
+
modelValue: {}
|
14
|
+
},
|
15
|
+
setup(v) {
|
16
|
+
let f = v, { table: O, field: T, set: q, row: z, modelValue: g } = V(f), i = $(), p = r(), t = r(!1), m = r([]), c = r(), _ = (e) => {
|
17
|
+
t.value = !0, c.value = e.url;
|
18
|
+
}, h = () => {
|
19
|
+
if (o.value)
|
20
|
+
if (i.upload.method == "box")
|
21
|
+
A.getUploadToken().then((e) => {
|
22
|
+
o.value.split(",").forEach((a) => {
|
23
|
+
let l = `${i.upload.address}/api/objects/download?slug=${a}&token=${e}`;
|
24
|
+
m.value.push({ name: a, url: l });
|
25
|
+
});
|
26
|
+
});
|
27
|
+
else {
|
28
|
+
let e = B.httpOrHttps(o.value) ? o.value : N.api.url + o.value;
|
29
|
+
R.isImage(e) ? p.value = e : p.value = j.getFileIcon(e);
|
30
|
+
}
|
31
|
+
};
|
32
|
+
k(() => {
|
33
|
+
h();
|
34
|
+
});
|
35
|
+
let o = w(() => g.value);
|
36
|
+
return (e, u) => {
|
37
|
+
const a = x("el-dialog");
|
38
|
+
return n(), d("div", H, [
|
39
|
+
(n(!0), d(C, null, y(s(m), (l, U) => (n(), d("img", {
|
40
|
+
class: "detail-image",
|
41
|
+
src: l.url,
|
42
|
+
onClick: (D) => s(_)(l),
|
43
|
+
alt: l.name,
|
44
|
+
key: U
|
45
|
+
}, null, 8, L))), 128)),
|
46
|
+
S(a, {
|
47
|
+
draggable: "",
|
48
|
+
"append-to-body": "",
|
49
|
+
top: "5vh",
|
50
|
+
modelValue: s(t),
|
51
|
+
"onUpdate:modelValue": u[0] || (u[0] = (l) => E(t) ? t.value = l : t = l)
|
52
|
+
}, {
|
53
|
+
default: F(() => [
|
54
|
+
I("img", {
|
55
|
+
width: "100%",
|
56
|
+
src: s(c)
|
57
|
+
}, null, 8, M)
|
58
|
+
]),
|
59
|
+
_: 1
|
60
|
+
}, 8, ["modelValue"])
|
61
|
+
]);
|
62
|
+
};
|
63
|
+
}
|
64
|
+
});
|
65
|
+
export {
|
66
|
+
Q as default
|
67
|
+
};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { j as o, q as t } from "./main-QtNG6p7a.js";
|
2
|
+
let e = null;
|
3
|
+
class i {
|
4
|
+
/**
|
5
|
+
* 获取上传令牌,过期自动获取
|
6
|
+
*/
|
7
|
+
static async getUploadToken() {
|
8
|
+
return e == null || t.getTime() >= t.getTime(e.expireTime) ? o.get("/upload/token").then(({ data: r }) => (e = r, Promise.resolve(e.token))).catch(() => Promise.reject()) : Promise.resolve(e.token);
|
9
|
+
}
|
10
|
+
}
|
11
|
+
export {
|
12
|
+
i as U
|
13
|
+
};
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import { defineComponent as f, toRefs as _, computed as h, resolveComponent as V, openBlock as b, createBlock as g, unref as e, isRef as Y } from "vue";
|
2
|
+
const v = /* @__PURE__ */ f({
|
3
|
+
__name: "Year",
|
4
|
+
props: {
|
5
|
+
schema: {},
|
6
|
+
table: {},
|
7
|
+
field: {},
|
8
|
+
set: {},
|
9
|
+
row: {},
|
10
|
+
modelValue: {}
|
11
|
+
},
|
12
|
+
emits: ["submit", "change", "update:modelValue"],
|
13
|
+
setup(r, { emit: m }) {
|
14
|
+
let t = m, u = r, { table: p, field: a, row: k, set: C, modelValue: s } = _(u), c = () => {
|
15
|
+
t("submit");
|
16
|
+
}, l = h({
|
17
|
+
get() {
|
18
|
+
return s.value;
|
19
|
+
},
|
20
|
+
set(o) {
|
21
|
+
t("update:modelValue", o), t("change", o);
|
22
|
+
}
|
23
|
+
});
|
24
|
+
return (o, n) => {
|
25
|
+
const i = V("el-date-picker");
|
26
|
+
return b(), g(i, {
|
27
|
+
type: "year",
|
28
|
+
placeholder: o.t_field_choose_placeholder(e(p).name, e(a).name),
|
29
|
+
"value-format": "YYYY",
|
30
|
+
disabled: e(a).control.readonly,
|
31
|
+
onChange: e(c),
|
32
|
+
modelValue: e(l),
|
33
|
+
"onUpdate:modelValue": n[0] || (n[0] = (d) => Y(l) ? l.value = d : l = d)
|
34
|
+
}, null, 8, ["placeholder", "disabled", "onChange", "modelValue"]);
|
35
|
+
};
|
36
|
+
}
|
37
|
+
});
|
38
|
+
export {
|
39
|
+
v as default
|
40
|
+
};
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { defineComponent as u, defineAsyncComponent as i, toRefs as c, openBlock as V, createBlock 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-DSXRKFPa.js")), s = a, { schema: m, table: n, field: d, set: f, row: p, modelValue: l } = c(s);
|
14
|
+
return (x, t) => (V(), b(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
|
+
};
|