@vipl520/dk-ui 1.0.7 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.css +1 -1
- package/dist/index.js +286 -119
- package/dist/index.min.js +7 -7
- package/dist/index.min.js.map +1 -1
- package/dist/index.min.mjs +7 -7
- package/dist/index.min.mjs.map +1 -1
- package/dist/index.mjs +282 -116
- package/dist/web-types.json +1 -1
- package/es/attachment/src/attachment.vue2.mjs +2 -1
- package/es/attachment/src/attachment.vue2.mjs.map +1 -1
- package/es/dialog/index.d.ts +15 -0
- package/es/dialog/src/dialog.vue.d.ts +9 -0
- package/es/dialog/src/dialog.vue2.mjs +3 -5
- package/es/dialog/src/dialog.vue2.mjs.map +1 -1
- package/es/dialog/src/props.d.ts +4 -0
- package/es/dialog/src/props.mjs +4 -0
- package/es/dialog/src/props.mjs.map +1 -1
- package/es/file-input/src/file-input.vue2.mjs +4 -15
- package/es/file-input/src/file-input.vue2.mjs.map +1 -1
- package/es/file-input/style/index.css +1 -1
- package/es/file-input/style/index.scss +3 -3
- package/es/form/index.d.ts +24 -9
- package/es/form/src/form.vue.d.ts +15 -5
- package/es/form/src/form.vue2.mjs +62 -10
- package/es/form/src/form.vue2.mjs.map +1 -1
- package/es/form/src/props.d.ts +7 -2
- package/es/form/src/props.mjs +7 -2
- package/es/form/src/props.mjs.map +1 -1
- package/es/icon/index.d.ts +12 -45
- package/es/icon/src/icon.vue.d.ts +6 -27
- package/es/icon/src/icon.vue2.mjs +9 -6
- package/es/icon/src/icon.vue2.mjs.map +1 -1
- package/es/icon/src/props.d.ts +3 -12
- package/es/icon/src/props.mjs +3 -12
- package/es/icon/src/props.mjs.map +1 -1
- package/es/index.d.ts +0 -1
- package/es/index.mjs +0 -1
- package/es/index.mjs.map +1 -1
- package/es/index.scss +5 -0
- package/es/table/index.d.ts +15 -0
- package/es/table/src/components/ComSearch.vue2.mjs +79 -19
- package/es/table/src/components/ComSearch.vue2.mjs.map +1 -1
- package/es/table/src/components/FieldRender.vue2.mjs +37 -15
- package/es/table/src/components/FieldRender.vue2.mjs.map +1 -1
- package/es/table/src/components/header.vue2.mjs +9 -1
- package/es/table/src/components/header.vue2.mjs.map +1 -1
- package/es/table/src/props.d.ts +4 -0
- package/es/table/src/props.mjs +4 -0
- package/es/table/src/props.mjs.map +1 -1
- package/es/table/src/table.vue.d.ts +9 -0
- package/es/table/src/table.vue2.mjs +7 -6
- package/es/table/src/table.vue2.mjs.map +1 -1
- package/es/table/style/index.css +1 -1
- package/es/table/style/index.scss +1 -1
- package/es/table/utils/dkTable.d.ts +2 -0
- package/es/table/utils/dkTable.mjs +19 -1
- package/es/table/utils/dkTable.mjs.map +1 -1
- package/es/table/utils/dkTableApi.mjs +15 -7
- package/es/table/utils/dkTableApi.mjs.map +1 -1
- package/es/tiny-editor/src/tiny-editor.vue2.mjs +5 -2
- package/es/tiny-editor/src/tiny-editor.vue2.mjs.map +1 -1
- package/lib/attachment/src/attachment.vue2.js +5 -4
- package/lib/attachment/src/attachment.vue2.js.map +1 -1
- package/lib/dialog/index.d.ts +15 -0
- package/lib/dialog/src/dialog.vue.d.ts +9 -0
- package/lib/dialog/src/dialog.vue2.js +3 -5
- package/lib/dialog/src/dialog.vue2.js.map +1 -1
- package/lib/dialog/src/props.d.ts +4 -0
- package/lib/dialog/src/props.js +4 -0
- package/lib/dialog/src/props.js.map +1 -1
- package/lib/file-input/src/file-input.vue2.js +4 -15
- package/lib/file-input/src/file-input.vue2.js.map +1 -1
- package/lib/file-input/style/index.css +1 -1
- package/lib/file-input/style/index.scss +3 -3
- package/lib/form/index.d.ts +24 -9
- package/lib/form/src/form.vue.d.ts +15 -5
- package/lib/form/src/form.vue2.js +60 -8
- package/lib/form/src/form.vue2.js.map +1 -1
- package/lib/form/src/props.d.ts +7 -2
- package/lib/form/src/props.js +7 -2
- package/lib/form/src/props.js.map +1 -1
- package/lib/icon/index.d.ts +12 -45
- package/lib/icon/src/icon.vue.d.ts +6 -27
- package/lib/icon/src/icon.vue2.js +9 -6
- package/lib/icon/src/icon.vue2.js.map +1 -1
- package/lib/icon/src/props.d.ts +3 -12
- package/lib/icon/src/props.js +3 -12
- package/lib/icon/src/props.js.map +1 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -1
- package/lib/index.js.map +1 -1
- package/lib/index.scss +5 -0
- package/lib/table/index.d.ts +15 -0
- package/lib/table/src/components/ComSearch.vue2.js +79 -19
- package/lib/table/src/components/ComSearch.vue2.js.map +1 -1
- package/lib/table/src/components/FieldRender.vue2.js +37 -15
- package/lib/table/src/components/FieldRender.vue2.js.map +1 -1
- package/lib/table/src/components/header.vue2.js +8 -0
- package/lib/table/src/components/header.vue2.js.map +1 -1
- package/lib/table/src/props.d.ts +4 -0
- package/lib/table/src/props.js +4 -0
- package/lib/table/src/props.js.map +1 -1
- package/lib/table/src/table.vue.d.ts +9 -0
- package/lib/table/src/table.vue2.js +7 -6
- package/lib/table/src/table.vue2.js.map +1 -1
- package/lib/table/style/index.css +1 -1
- package/lib/table/style/index.scss +1 -1
- package/lib/table/utils/dkTable.d.ts +2 -0
- package/lib/table/utils/dkTable.js +19 -1
- package/lib/table/utils/dkTable.js.map +1 -1
- package/lib/table/utils/dkTableApi.js +15 -7
- package/lib/table/utils/dkTableApi.js.map +1 -1
- package/lib/tiny-editor/src/tiny-editor.vue2.js +4 -1
- package/lib/tiny-editor/src/tiny-editor.vue2.js.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
import 'virtual:uno.css';
|
2
1
|
import axios from 'axios';
|
3
2
|
import { ElLoading, ElMessage, ElButton, ElMessageBox, ElNotification } from 'element-plus';
|
4
3
|
import require$$0, { ref, reactive, nextTick, defineComponent, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, createTextVNode, createElementVNode, toDisplayString, markRaw, watch, onMounted, normalizeClass, createBlock, createCommentVNode, unref, computed, normalizeStyle, renderSlot, resolveDynamicComponent, useSlots, useAttrs, mergeProps, createSlots, resolveDirective, renderList, withModifiers, withDirectives, vShow, vModelText, TransitionGroup, h, inject, toRefs, getCurrentInstance, provide, toRef, withKeys, normalizeProps, guardReactiveProps, warn } from 'vue';
|
@@ -177,7 +176,7 @@ const globalConfig = {
|
|
177
176
|
// TODO 参数如果未填写自动获取
|
178
177
|
ApiUrl: "https://independence.heiduoke.cn",
|
179
178
|
// 默认的 API 地址
|
180
|
-
AccessToken: "
|
179
|
+
AccessToken: "b5fe9c57-24fc-44da-b7f0-e655554c31d1",
|
181
180
|
// 用户登录后的 token
|
182
181
|
Plaid: 16,
|
183
182
|
// 平台ID
|
@@ -343,7 +342,7 @@ const request = (config, custom, loading) => {
|
|
343
342
|
}
|
344
343
|
config2.headers["Access-Token"] = getGlobalConfig().AccessToken;
|
345
344
|
config2.headers["Project-Type"] = getGlobalConfig().ProjectType;
|
346
|
-
config2.headers
|
345
|
+
config2.headers["Addon-Name"] = getGlobalConfig().AddonName;
|
347
346
|
config2.headers.Plaid = getGlobalConfig().Plaid;
|
348
347
|
config2.params = config2.params || {};
|
349
348
|
config2.params._ajax = 1;
|
@@ -10368,6 +10367,9 @@ var _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
10368
10367
|
const tinymceSrc = ref("https://registry.npmmirror.com/dk-tinymce/1.0.0/files/tinymce.min.js");
|
10369
10368
|
const attachmentRef = ref();
|
10370
10369
|
const editorRef = ref();
|
10370
|
+
const showDialog = computed(() => {
|
10371
|
+
return width.value >= props.showDialogWidth;
|
10372
|
+
});
|
10371
10373
|
watch(
|
10372
10374
|
() => props.modelValue,
|
10373
10375
|
(newValue) => {
|
@@ -10431,7 +10433,7 @@ var _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
10431
10433
|
class: "dk-tiny-editor"
|
10432
10434
|
},
|
10433
10435
|
[
|
10434
|
-
|
10436
|
+
showDialog.value ? (openBlock(), createElementBlock("div", _hoisted_1$I, [
|
10435
10437
|
createVNode(unref(Editor), {
|
10436
10438
|
ref_key: "editorRef",
|
10437
10439
|
ref: editorRef,
|
@@ -10528,20 +10530,11 @@ const iconProps = {
|
|
10528
10530
|
type: String
|
10529
10531
|
},
|
10530
10532
|
// icon color
|
10531
|
-
color:
|
10532
|
-
default: "",
|
10533
|
-
type: String
|
10534
|
-
},
|
10533
|
+
color: String,
|
10535
10534
|
// icon size
|
10536
|
-
size:
|
10537
|
-
default: 14,
|
10538
|
-
type: Number
|
10539
|
-
},
|
10535
|
+
size: Number,
|
10540
10536
|
// icon hover
|
10541
|
-
hoverColor:
|
10542
|
-
default: "",
|
10543
|
-
type: String
|
10544
|
-
},
|
10537
|
+
hoverColor: String,
|
10545
10538
|
showEl: {
|
10546
10539
|
default: true,
|
10547
10540
|
type: Boolean
|
@@ -10565,12 +10558,15 @@ var _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
10565
10558
|
return key;
|
10566
10559
|
});
|
10567
10560
|
const getIconifyStyle = computed(() => {
|
10568
|
-
const { color, size } = props;
|
10569
|
-
|
10570
|
-
|
10571
|
-
color
|
10572
|
-
|
10573
|
-
|
10561
|
+
const { color, size, hoverColor } = props;
|
10562
|
+
const style = {};
|
10563
|
+
if (color)
|
10564
|
+
style.color = color;
|
10565
|
+
if (size)
|
10566
|
+
style.fontSize = `${size}px`;
|
10567
|
+
if (hoverColor)
|
10568
|
+
style["--hover-color"] = hoverColor;
|
10569
|
+
return style;
|
10574
10570
|
});
|
10575
10571
|
const iconType = computed(() => {
|
10576
10572
|
let type = "cloud";
|
@@ -10711,6 +10707,10 @@ const dialogProps = {
|
|
10711
10707
|
maxHeight: {
|
10712
10708
|
type: String,
|
10713
10709
|
default: ""
|
10710
|
+
},
|
10711
|
+
draggable: {
|
10712
|
+
type: Boolean,
|
10713
|
+
default: true
|
10714
10714
|
}
|
10715
10715
|
};
|
10716
10716
|
|
@@ -10747,9 +10747,7 @@ var _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
10747
10747
|
const toggleFull = () => {
|
10748
10748
|
isFullscreen.value = !unref(isFullscreen);
|
10749
10749
|
};
|
10750
|
-
const dialogHeight = ref(
|
10751
|
-
isNumber(props.maxHeight) ? `${props.maxHeight}px` : props.maxHeight
|
10752
|
-
);
|
10750
|
+
const dialogHeight = ref(isNumber(props.maxHeight) ? `${props.maxHeight}px` : props.maxHeight);
|
10753
10751
|
watch(
|
10754
10752
|
() => isFullscreen.value,
|
10755
10753
|
async (val) => {
|
@@ -10779,7 +10777,7 @@ var _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
10779
10777
|
"destroy-on-close": "",
|
10780
10778
|
"append-to-body": "",
|
10781
10779
|
"lock-scroll": "",
|
10782
|
-
draggable:
|
10780
|
+
draggable: _ctx.draggable,
|
10783
10781
|
"close-on-click-modal": false,
|
10784
10782
|
"show-close": false,
|
10785
10783
|
class: "dk-dialog"
|
@@ -10835,7 +10833,7 @@ var _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
10835
10833
|
]),
|
10836
10834
|
key: "0"
|
10837
10835
|
} : void 0
|
10838
|
-
]), 1040, ["fullscreen"]);
|
10836
|
+
]), 1040, ["fullscreen", "draggable"]);
|
10839
10837
|
};
|
10840
10838
|
}
|
10841
10839
|
});
|
@@ -10863,7 +10861,7 @@ const formProps = {
|
|
10863
10861
|
// 显示加载
|
10864
10862
|
isLoading: { default: true, type: Boolean },
|
10865
10863
|
// 默认高度
|
10866
|
-
minHeight: { default: "
|
10864
|
+
minHeight: { default: "300px", type: String },
|
10867
10865
|
// 是否为弹窗
|
10868
10866
|
isDialog: { default: false, type: Boolean },
|
10869
10867
|
// 弹窗显示后获取formData
|
@@ -10871,7 +10869,12 @@ const formProps = {
|
|
10871
10869
|
// 弹窗配置
|
10872
10870
|
dialog: {
|
10873
10871
|
default: () => {
|
10874
|
-
return {
|
10872
|
+
return {
|
10873
|
+
width: "800px",
|
10874
|
+
fullscreen: false,
|
10875
|
+
minHeight: "200px",
|
10876
|
+
draggable: true
|
10877
|
+
};
|
10875
10878
|
},
|
10876
10879
|
type: Object
|
10877
10880
|
}
|
@@ -10969,7 +10972,6 @@ var _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
10969
10972
|
const fApi = ref();
|
10970
10973
|
const loading = ref(true);
|
10971
10974
|
const buttonLoading = ref(false);
|
10972
|
-
const minHeight = computed(() => isNumber(props.minHeight) ? `${props.minHeight}px` : props.minHeight);
|
10973
10975
|
const showDialog = ref(false);
|
10974
10976
|
const formConfig = computed(() => ({ ...config, ...props.extraConfig }));
|
10975
10977
|
const { width } = useWindowSize();
|
@@ -10981,6 +10983,58 @@ var _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
10981
10983
|
emit("update:modelValue", val || {});
|
10982
10984
|
}
|
10983
10985
|
);
|
10986
|
+
const dialogWidth = computed(() => {
|
10987
|
+
let defaultWidth = "800px";
|
10988
|
+
if (props.dialog?.width) {
|
10989
|
+
defaultWidth = props.dialog?.width;
|
10990
|
+
}
|
10991
|
+
if (_formData.value?.config?.width) {
|
10992
|
+
defaultWidth = _formData.value?.config?.width;
|
10993
|
+
}
|
10994
|
+
return width.value < 768 ? "100%" : defaultWidth;
|
10995
|
+
});
|
10996
|
+
const dialogStyle = computed(() => {
|
10997
|
+
const style = {
|
10998
|
+
minHeight: void 0,
|
10999
|
+
maxHeight: void 0
|
11000
|
+
};
|
11001
|
+
if (props.dialog?.minHeight) {
|
11002
|
+
style.minHeight = props.dialog?.minHeight;
|
11003
|
+
}
|
11004
|
+
if (props.dialog?.maxHeight) {
|
11005
|
+
style.maxHeight = props.dialog?.maxHeight;
|
11006
|
+
}
|
11007
|
+
if (_formData.value?.config?.minHeight) {
|
11008
|
+
style.minHeight = _formData.value?.config?.minHeight;
|
11009
|
+
}
|
11010
|
+
if (_formData.value?.config?.maxHeight) {
|
11011
|
+
style.maxHeight = _formData.value?.config?.maxHeight;
|
11012
|
+
}
|
11013
|
+
return style;
|
11014
|
+
});
|
11015
|
+
const draggable = computed(() => {
|
11016
|
+
let draggable2 = true;
|
11017
|
+
if (props.dialog?.draggable) {
|
11018
|
+
draggable2 = props.dialog?.draggable;
|
11019
|
+
}
|
11020
|
+
if (_formData.value?.config?.draggable !== void 0) {
|
11021
|
+
draggable2 = _formData.value?.config?.draggable;
|
11022
|
+
}
|
11023
|
+
return draggable2;
|
11024
|
+
});
|
11025
|
+
const isFullscreen = computed(() => {
|
11026
|
+
let defaultFullscreen = false;
|
11027
|
+
if (props.dialog?.width) {
|
11028
|
+
defaultFullscreen = props.dialog?.fullscreen;
|
11029
|
+
}
|
11030
|
+
if (_formData.value?.config?.fullscreen) {
|
11031
|
+
defaultFullscreen = _formData.value?.config?.fullscreen;
|
11032
|
+
}
|
11033
|
+
if (width.value < 768) {
|
11034
|
+
defaultFullscreen = true;
|
11035
|
+
}
|
11036
|
+
return defaultFullscreen;
|
11037
|
+
});
|
10984
11038
|
const setFormData = (formData) => {
|
10985
11039
|
value.value = null;
|
10986
11040
|
_formData.value = formData;
|
@@ -11069,16 +11123,17 @@ var _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
11069
11123
|
modelValue: showDialog.value,
|
11070
11124
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => showDialog.value = $event),
|
11071
11125
|
title: _formData.value?.title ? _formData.value?.title : "\u8868\u5355",
|
11072
|
-
width:
|
11073
|
-
"default-fullscreen":
|
11126
|
+
width: dialogWidth.value,
|
11127
|
+
"default-fullscreen": isFullscreen.value,
|
11074
11128
|
"min-height": "200px",
|
11129
|
+
draggable: draggable.value,
|
11075
11130
|
"append-to-body": ""
|
11076
11131
|
}, {
|
11077
11132
|
default: withCtx(() => [
|
11078
11133
|
createElementVNode(
|
11079
11134
|
"div",
|
11080
11135
|
{
|
11081
|
-
style: normalizeStyle(
|
11136
|
+
style: normalizeStyle(dialogStyle.value),
|
11082
11137
|
class: "dk-form"
|
11083
11138
|
},
|
11084
11139
|
[
|
@@ -11089,6 +11144,7 @@ var _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
11089
11144
|
rule: _formData.value.rules,
|
11090
11145
|
"handle-icon": false,
|
11091
11146
|
class: "formBox",
|
11147
|
+
style: { "padding": "10px" },
|
11092
11148
|
"onUpdate:api": _cache[1] || (_cache[1] = ($event) => fApi.value = $event),
|
11093
11149
|
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => value.value = $event)
|
11094
11150
|
}, null, 8, ["modelValue", "option", "rule"]),
|
@@ -11119,16 +11175,15 @@ var _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
11119
11175
|
],
|
11120
11176
|
4
|
11121
11177
|
/* STYLE */
|
11122
|
-
)
|
11123
|
-
createCommentVNode(' <div v-else :style="{ minHeight }"></div>')
|
11178
|
+
)
|
11124
11179
|
]),
|
11125
11180
|
_: 3
|
11126
11181
|
/* FORWARDED */
|
11127
|
-
}, 8, ["modelValue", "title", "width", "default-fullscreen"])) : (openBlock(), createElementBlock("div", _hoisted_1$F, [
|
11182
|
+
}, 8, ["modelValue", "title", "width", "default-fullscreen", "draggable"])) : (openBlock(), createElementBlock("div", _hoisted_1$F, [
|
11128
11183
|
createElementVNode(
|
11129
11184
|
"div",
|
11130
11185
|
{
|
11131
|
-
style: normalizeStyle({ minHeight: minHeight
|
11186
|
+
style: normalizeStyle({ minHeight: _ctx.minHeight }),
|
11132
11187
|
class: "dk-form"
|
11133
11188
|
},
|
11134
11189
|
[
|
@@ -11407,13 +11462,13 @@ const _hoisted_10$5 = ["onClick"];
|
|
11407
11462
|
const _hoisted_11$4 = { class: "ml-10px" };
|
11408
11463
|
const _hoisted_12$4 = { class: "op" };
|
11409
11464
|
const _hoisted_13$3 = { class: "attachment-container" };
|
11410
|
-
const _hoisted_14$
|
11465
|
+
const _hoisted_14$3 = {
|
11411
11466
|
key: 0,
|
11412
11467
|
class: "p2"
|
11413
11468
|
};
|
11414
|
-
const _hoisted_15$
|
11415
|
-
const _hoisted_16$
|
11416
|
-
const _hoisted_17$
|
11469
|
+
const _hoisted_15$3 = ["onClick", "onContextmenu"];
|
11470
|
+
const _hoisted_16$3 = { class: "file" };
|
11471
|
+
const _hoisted_17$2 = /* @__PURE__ */ createElementVNode(
|
11417
11472
|
"div",
|
11418
11473
|
{ class: "u-m-t-30" },
|
11419
11474
|
[
|
@@ -11448,6 +11503,7 @@ var _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
11448
11503
|
const chooseFileKey = ref([]);
|
11449
11504
|
const chooseFileList = ref([]);
|
11450
11505
|
const chooseFileId = ref([]);
|
11506
|
+
const globalConfig = getGlobalConfig();
|
11451
11507
|
const uploadUrl = ref(globalConfig.ApiUrl);
|
11452
11508
|
const headers = ref({
|
11453
11509
|
"Access-Token": globalConfig.AccessToken
|
@@ -11842,7 +11898,7 @@ var _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
11842
11898
|
]),
|
11843
11899
|
createCommentVNode(" \u5217\u8868"),
|
11844
11900
|
createElementVNode("div", _hoisted_13$3, [
|
11845
|
-
loading.value || list.value.length > 0 ? withDirectives((openBlock(), createElementBlock("div", _hoisted_14$
|
11901
|
+
loading.value || list.value.length > 0 ? withDirectives((openBlock(), createElementBlock("div", _hoisted_14$3, [
|
11846
11902
|
createElementVNode(
|
11847
11903
|
"ul",
|
11848
11904
|
{
|
@@ -11860,7 +11916,7 @@ var _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
11860
11916
|
onClick: ($event) => chooseAttachment(item, key),
|
11861
11917
|
onContextmenu: withModifiers(($event) => contextMenuId.value = item.id, ["prevent"])
|
11862
11918
|
}, [
|
11863
|
-
createElementVNode("div", _hoisted_16$
|
11919
|
+
createElementVNode("div", _hoisted_16$3, [
|
11864
11920
|
item.type === 1 ? (openBlock(), createBlock(_component_el_image, {
|
11865
11921
|
key: 0,
|
11866
11922
|
class: "file",
|
@@ -11868,7 +11924,7 @@ var _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
11868
11924
|
fit: "contain"
|
11869
11925
|
}, {
|
11870
11926
|
placeholder: withCtx(() => [
|
11871
|
-
_hoisted_17$
|
11927
|
+
_hoisted_17$2
|
11872
11928
|
]),
|
11873
11929
|
_: 2
|
11874
11930
|
/* DYNAMIC */
|
@@ -11907,7 +11963,7 @@ var _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
11907
11963
|
/* STABLE */
|
11908
11964
|
})
|
11909
11965
|
])
|
11910
|
-
], 42, _hoisted_15$
|
11966
|
+
], 42, _hoisted_15$3);
|
11911
11967
|
}),
|
11912
11968
|
128
|
11913
11969
|
/* KEYED_FRAGMENT */
|
@@ -12104,9 +12160,10 @@ var _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
12104
12160
|
return (_ctx, _cache) => {
|
12105
12161
|
const _component_el_button = resolveComponent("el-button");
|
12106
12162
|
const _component_el_input = resolveComponent("el-input");
|
12163
|
+
const _component_dk_icon = resolveComponent("dk-icon");
|
12164
|
+
const _component_el_image = resolveComponent("el-image");
|
12107
12165
|
const _component_Picture = resolveComponent("Picture");
|
12108
12166
|
const _component_el_icon = resolveComponent("el-icon");
|
12109
|
-
const _component_el_image = resolveComponent("el-image");
|
12110
12167
|
const _component_Close = resolveComponent("Close");
|
12111
12168
|
const _component_Plus = resolveComponent("Plus");
|
12112
12169
|
const _component_dk_attachment_dialog = resolveComponent("dk-attachment-dialog");
|
@@ -12151,13 +12208,7 @@ var _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
12151
12208
|
}, {
|
12152
12209
|
error: withCtx(() => [
|
12153
12210
|
createElementVNode("div", _hoisted_2$s, [
|
12154
|
-
createVNode(
|
12155
|
-
default: withCtx(() => [
|
12156
|
-
createVNode(_component_Picture)
|
12157
|
-
]),
|
12158
|
-
_: 1
|
12159
|
-
/* STABLE */
|
12160
|
-
})
|
12211
|
+
createVNode(_component_dk_icon, { icon: "Picture" })
|
12161
12212
|
])
|
12162
12213
|
]),
|
12163
12214
|
_: 1
|
@@ -12171,13 +12222,7 @@ var _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
12171
12222
|
createElementVNode("em", {
|
12172
12223
|
onClick: _cache[1] || (_cache[1] = ($event) => input.value = "")
|
12173
12224
|
}, [
|
12174
|
-
createVNode(
|
12175
|
-
default: withCtx(() => [
|
12176
|
-
createVNode(_component_Close)
|
12177
|
-
]),
|
12178
|
-
_: 1
|
12179
|
-
/* STABLE */
|
12180
|
-
})
|
12225
|
+
createVNode(_component_dk_icon, { icon: "Close" })
|
12181
12226
|
])
|
12182
12227
|
])
|
12183
12228
|
],
|
@@ -14007,16 +14052,16 @@ const _hoisted_11$3 = /* @__PURE__ */ createElementVNode(
|
|
14007
14052
|
);
|
14008
14053
|
const _hoisted_12$3 = { class: "anchor-wrapper" };
|
14009
14054
|
const _hoisted_13$2 = ["onMousedown"];
|
14010
|
-
const _hoisted_14$
|
14055
|
+
const _hoisted_14$2 = /* @__PURE__ */ createElementVNode(
|
14011
14056
|
"span",
|
14012
14057
|
{ class: "title" },
|
14013
14058
|
" \u5916\u8FB9\u8DDD ",
|
14014
14059
|
-1
|
14015
14060
|
/* HOISTED */
|
14016
14061
|
);
|
14017
|
-
const _hoisted_15$
|
14018
|
-
const _hoisted_16 = ["title", "onDblclick"];
|
14019
|
-
const _hoisted_17 = ["onUpdate:modelValue", "onBlur"];
|
14062
|
+
const _hoisted_15$2 = { class: "thumnail border" };
|
14063
|
+
const _hoisted_16$2 = ["title", "onDblclick"];
|
14064
|
+
const _hoisted_17$1 = ["onUpdate:modelValue", "onBlur"];
|
14020
14065
|
const _hoisted_18 = ["width", "height", "viewBox", "data-link-anchor", "innerHTML"];
|
14021
14066
|
const _hoisted_19 = { class: "anchor-wrapper" };
|
14022
14067
|
const _hoisted_20 = ["onMousedown"];
|
@@ -14439,10 +14484,10 @@ var _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
14439
14484
|
/* STABLE_FRAGMENT */
|
14440
14485
|
))
|
14441
14486
|
]),
|
14442
|
-
_hoisted_14$
|
14487
|
+
_hoisted_14$2,
|
14443
14488
|
createCommentVNode("\u5916\u8FB9\u8DDD Margin END"),
|
14444
14489
|
createCommentVNode("\u5185\u8FB9\u8DDD Padding"),
|
14445
|
-
createElementVNode("div", _hoisted_15$
|
14490
|
+
createElementVNode("div", _hoisted_15$2, [
|
14446
14491
|
createElementVNode(
|
14447
14492
|
"div",
|
14448
14493
|
{
|
@@ -14461,7 +14506,7 @@ var _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
14461
14506
|
title: item.title,
|
14462
14507
|
class: normalizeClass(`anchor-tip-${item.position} value-indicator`),
|
14463
14508
|
onDblclick: ($event) => onDblclick(item.value, key + 4)
|
14464
|
-
}, toDisplayString(getValue(styles[item.value])), 43, _hoisted_16),
|
14509
|
+
}, toDisplayString(getValue(styles[item.value])), 43, _hoisted_16$2),
|
14465
14510
|
withDirectives(createElementVNode("input", {
|
14466
14511
|
ref_for: true,
|
14467
14512
|
ref_key: "inputField",
|
@@ -14471,7 +14516,7 @@ var _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
14471
14516
|
"input-box anchor-tip-" + item.position + (showStyles[item.value] ? " show" : "")
|
14472
14517
|
),
|
14473
14518
|
onBlur: ($event) => onBlur(item.value)
|
14474
|
-
}, null, 42, _hoisted_17), [
|
14519
|
+
}, null, 42, _hoisted_17$1), [
|
14475
14520
|
[vModelText, styles[item.value]]
|
14476
14521
|
]),
|
14477
14522
|
(openBlock(), createElementBlock("svg", {
|
@@ -23158,6 +23203,10 @@ const tableProps = {
|
|
23158
23203
|
tableApi: {
|
23159
23204
|
default: "",
|
23160
23205
|
type: String
|
23206
|
+
},
|
23207
|
+
cacheTable: {
|
23208
|
+
default: true,
|
23209
|
+
type: Boolean
|
23161
23210
|
}
|
23162
23211
|
// ...ElTableNext.props,
|
23163
23212
|
};
|
@@ -26186,6 +26235,9 @@ class dkTableApi {
|
|
26186
26235
|
controllerUrl;
|
26187
26236
|
actionUrl;
|
26188
26237
|
constructor(controllerUrl) {
|
26238
|
+
if (!controllerUrl.endsWith("/")) {
|
26239
|
+
controllerUrl += "/";
|
26240
|
+
}
|
26189
26241
|
this.controllerUrl = controllerUrl;
|
26190
26242
|
this.actionUrl = /* @__PURE__ */ new Map([
|
26191
26243
|
["index", controllerUrl + "index"],
|
@@ -26345,20 +26397,26 @@ class dkTableApi {
|
|
26345
26397
|
* @param targetId
|
26346
26398
|
*/
|
26347
26399
|
sortableApi(id, targetId) {
|
26348
|
-
return request(
|
26349
|
-
|
26350
|
-
|
26351
|
-
|
26352
|
-
|
26353
|
-
|
26400
|
+
return request(
|
26401
|
+
{
|
26402
|
+
url: this.actionUrl.get("sortable"),
|
26403
|
+
method: "post",
|
26404
|
+
data: {
|
26405
|
+
id,
|
26406
|
+
targetId
|
26407
|
+
}
|
26408
|
+
},
|
26409
|
+
{
|
26410
|
+
code_error_show: true
|
26354
26411
|
}
|
26355
|
-
|
26412
|
+
);
|
26356
26413
|
}
|
26357
26414
|
}
|
26358
26415
|
|
26359
26416
|
class dkTable {
|
26360
26417
|
url;
|
26361
26418
|
api;
|
26419
|
+
buttonCallback;
|
26362
26420
|
table = reactive({
|
26363
26421
|
ref: void 0,
|
26364
26422
|
pk: "id",
|
@@ -26416,6 +26474,9 @@ class dkTable {
|
|
26416
26474
|
this.api = new dkTableApi(url);
|
26417
26475
|
this.before = before;
|
26418
26476
|
this.after = after;
|
26477
|
+
this.buttonCallback = (event, data) => {
|
26478
|
+
console.warn("\u8BF7\u8C03\u7528onClickButton((event,data)=>{})", event, data);
|
26479
|
+
};
|
26419
26480
|
}
|
26420
26481
|
/**
|
26421
26482
|
* 表格内部鉴权方法
|
@@ -26476,6 +26537,9 @@ class dkTable {
|
|
26476
26537
|
} else {
|
26477
26538
|
return this.api.table().then((res) => {
|
26478
26539
|
this.table.column = res.data.column;
|
26540
|
+
if (res.data.pk) {
|
26541
|
+
this.table.pk = res.data.pk;
|
26542
|
+
}
|
26479
26543
|
storage.set(this.url + "_table", JSON.stringify(res.data));
|
26480
26544
|
this.runAfter("getTable", { res });
|
26481
26545
|
}).finally(() => {
|
@@ -26542,6 +26606,9 @@ class dkTable {
|
|
26542
26606
|
});
|
26543
26607
|
return ids;
|
26544
26608
|
}
|
26609
|
+
onClickButton(callback) {
|
26610
|
+
this.buttonCallback = callback;
|
26611
|
+
}
|
26545
26612
|
/**
|
26546
26613
|
* 表格内的事件统一响应
|
26547
26614
|
* @param event 事件:selection-change=选中项改变,page-size-change=每页数量改变,current-page-change=翻页,sort-change=排序,edit=编辑,delete=删除,field-change=单元格值改变,com-search=公共搜索
|
@@ -26644,7 +26711,7 @@ class dkTable {
|
|
26644
26711
|
[
|
26645
26712
|
"default",
|
26646
26713
|
() => {
|
26647
|
-
|
26714
|
+
this.buttonCallback(event, data);
|
26648
26715
|
}
|
26649
26716
|
]
|
26650
26717
|
]);
|
@@ -26698,6 +26765,7 @@ class dkTable {
|
|
26698
26765
|
if (this.form.operateIds.length > 0) {
|
26699
26766
|
this.toggleForm("Edit", this.form.operateIds);
|
26700
26767
|
}
|
26768
|
+
this.getIndex();
|
26701
26769
|
};
|
26702
26770
|
/**
|
26703
26771
|
* 排序
|
@@ -26803,6 +26871,13 @@ class dkTable {
|
|
26803
26871
|
() => {
|
26804
26872
|
const columnKey = getArrayKey(this.table.column, "prop", data.field);
|
26805
26873
|
this.table.column[columnKey].show = data.value;
|
26874
|
+
if (this.url) {
|
26875
|
+
const key = this.url + "show_column";
|
26876
|
+
const cachedData = storage.get(key) || "{}";
|
26877
|
+
const cachedTableData = JSON.parse(cachedData);
|
26878
|
+
cachedTableData[data.field] = data.value;
|
26879
|
+
storage.set(key, JSON.stringify(cachedTableData));
|
26880
|
+
}
|
26806
26881
|
}
|
26807
26882
|
],
|
26808
26883
|
[
|
@@ -27752,23 +27827,29 @@ const _hoisted_8$4 = {
|
|
27752
27827
|
key: 0,
|
27753
27828
|
class: "com-search-col-label"
|
27754
27829
|
};
|
27755
|
-
const _hoisted_9$3 = {
|
27830
|
+
const _hoisted_9$3 = { class: "com-search-col-input-range" };
|
27831
|
+
const _hoisted_10$2 = { class: "com-search-col" };
|
27832
|
+
const _hoisted_11$1 = {
|
27833
|
+
key: 0,
|
27834
|
+
class: "com-search-col-label"
|
27835
|
+
};
|
27836
|
+
const _hoisted_12$1 = {
|
27756
27837
|
key: 1,
|
27757
27838
|
class: "com-search-col-input-range"
|
27758
27839
|
};
|
27759
|
-
const
|
27840
|
+
const _hoisted_13$1 = /* @__PURE__ */ createElementVNode(
|
27760
27841
|
"div",
|
27761
27842
|
{ class: "range-separator" },
|
27762
27843
|
"\u5230",
|
27763
27844
|
-1
|
27764
27845
|
/* HOISTED */
|
27765
27846
|
);
|
27766
|
-
const
|
27767
|
-
const
|
27847
|
+
const _hoisted_14$1 = { class: "com-search-col-input" };
|
27848
|
+
const _hoisted_15$1 = {
|
27768
27849
|
key: 3,
|
27769
27850
|
class: "com-search-col-input"
|
27770
27851
|
};
|
27771
|
-
const
|
27852
|
+
const _hoisted_16$1 = { class: "com-search-col pl-20" };
|
27772
27853
|
var _sfc_main$d = /* @__PURE__ */ defineComponent({
|
27773
27854
|
__name: "ComSearch",
|
27774
27855
|
setup(__props) {
|
@@ -27815,6 +27896,11 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
27815
27896
|
val = DkTable.comSearch.form[key][0] + "," + DkTable.comSearch.form[key][1];
|
27816
27897
|
}
|
27817
27898
|
}
|
27899
|
+
} else if (fieldDataTemp.render == "time" && (fieldDataTemp.operator == "RANGE" || fieldDataTemp.operator == "NOT RANGE")) {
|
27900
|
+
if (DkTable.comSearch.form[key] && DkTable.comSearch.form[key].length >= 2) {
|
27901
|
+
val = DkTable.comSearch.form[key][0] + "," + DkTable.comSearch.form[key][1];
|
27902
|
+
console.log("val", val, DkTable.comSearch.form[key]);
|
27903
|
+
}
|
27818
27904
|
} else if (fieldDataTemp.operator == "RANGE" || fieldDataTemp.operator == "NOT RANGE") {
|
27819
27905
|
if (!DkTable.comSearch.form[key + "-start"] && !DkTable.comSearch.form[key + "-end"]) {
|
27820
27906
|
continue;
|
@@ -27844,6 +27930,7 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
27844
27930
|
return (_ctx, _cache) => {
|
27845
27931
|
const _component_el_col = resolveComponent("el-col");
|
27846
27932
|
const _component_el_date_picker = resolveComponent("el-date-picker");
|
27933
|
+
const _component_el_time_picker = resolveComponent("el-time-picker");
|
27847
27934
|
const _component_el_input = resolveComponent("el-input");
|
27848
27935
|
const _component_el_checkbox = resolveComponent("el-checkbox");
|
27849
27936
|
const _component_el_option = resolveComponent("el-option");
|
@@ -27960,21 +28047,58 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
27960
28047
|
],
|
27961
28048
|
2112
|
27962
28049
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
28050
|
+
)) : item.render == "time" && (item.operator == "RANGE" || item.operator == "NOT RANGE") ? (openBlock(), createElementBlock(
|
28051
|
+
Fragment,
|
28052
|
+
{ key: 2 },
|
28053
|
+
[
|
28054
|
+
createCommentVNode("\u65F6\u95F4\u8303\u56F4"),
|
28055
|
+
createVNode(_component_el_col, {
|
28056
|
+
span: spans.value.datetime
|
28057
|
+
}, {
|
28058
|
+
default: withCtx(() => [
|
28059
|
+
createElementVNode("div", _hoisted_7$4, [
|
28060
|
+
item.comSearchShowLabel !== false ? (openBlock(), createElementBlock(
|
28061
|
+
"div",
|
28062
|
+
_hoisted_8$4,
|
28063
|
+
toDisplayString(item.label),
|
28064
|
+
1
|
28065
|
+
/* TEXT */
|
28066
|
+
)) : createCommentVNode("v-if", true),
|
28067
|
+
createElementVNode("div", _hoisted_9$3, [
|
28068
|
+
createVNode(_component_el_time_picker, {
|
28069
|
+
modelValue: unref(DkTable).comSearch.form[item.prop],
|
28070
|
+
"onUpdate:modelValue": ($event) => unref(DkTable).comSearch.form[item.prop] = $event,
|
28071
|
+
"is-range": "",
|
28072
|
+
"range-separator": "\u5230",
|
28073
|
+
format: "HH:mm:ss",
|
28074
|
+
"value-format": "HH:mm:ss",
|
28075
|
+
"start-placeholder": "\u5F00\u59CB\u65F6\u95F4",
|
28076
|
+
"end-placeholder": "\u7ED3\u675F\u65F6\u95F4"
|
28077
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
28078
|
+
])
|
28079
|
+
])
|
28080
|
+
]),
|
28081
|
+
_: 2
|
28082
|
+
/* DYNAMIC */
|
28083
|
+
}, 1032, ["span"])
|
28084
|
+
],
|
28085
|
+
2112
|
28086
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
27963
28087
|
)) : (openBlock(), createBlock(_component_el_col, {
|
27964
|
-
key:
|
28088
|
+
key: 3,
|
27965
28089
|
span: spans.value.common
|
27966
28090
|
}, {
|
27967
28091
|
default: withCtx(() => [
|
27968
|
-
createElementVNode("div",
|
28092
|
+
createElementVNode("div", _hoisted_10$2, [
|
27969
28093
|
item.comSearchShowLabel !== false ? (openBlock(), createElementBlock(
|
27970
28094
|
"div",
|
27971
|
-
|
28095
|
+
_hoisted_11$1,
|
27972
28096
|
toDisplayString(item.label),
|
27973
28097
|
1
|
27974
28098
|
/* TEXT */
|
27975
28099
|
)) : createCommentVNode("v-if", true),
|
27976
28100
|
createCommentVNode(" \u6570\u5B57\u8303\u56F4 "),
|
27977
|
-
item.operator == "RANGE" || item.operator == "NOT RANGE" ? (openBlock(), createElementBlock("div",
|
28101
|
+
item.operator == "RANGE" || item.operator == "NOT RANGE" ? (openBlock(), createElementBlock("div", _hoisted_12$1, [
|
27978
28102
|
createVNode(_component_el_input, {
|
27979
28103
|
modelValue: unref(DkTable).comSearch.form[item.prop + "-start"],
|
27980
28104
|
"onUpdate:modelValue": ($event) => unref(DkTable).comSearch.form[item.prop + "-start"] = $event,
|
@@ -27982,7 +28106,7 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
27982
28106
|
type: "string",
|
27983
28107
|
clearable: true
|
27984
28108
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"]),
|
27985
|
-
|
28109
|
+
_hoisted_13$1,
|
27986
28110
|
createVNode(_component_el_input, {
|
27987
28111
|
modelValue: unref(DkTable).comSearch.form[item.prop + "-end"],
|
27988
28112
|
"onUpdate:modelValue": ($event) => unref(DkTable).comSearch.form[item.prop + "-end"] = $event,
|
@@ -27995,7 +28119,7 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
27995
28119
|
{ key: 2 },
|
27996
28120
|
[
|
27997
28121
|
createCommentVNode(" \u662F\u5426 [NOT] NULL "),
|
27998
|
-
createElementVNode("div",
|
28122
|
+
createElementVNode("div", _hoisted_14$1, [
|
27999
28123
|
createVNode(_component_el_checkbox, {
|
28000
28124
|
modelValue: unref(DkTable).comSearch.form[item.prop],
|
28001
28125
|
"onUpdate:modelValue": ($event) => unref(DkTable).comSearch.form[item.prop] = $event,
|
@@ -28006,7 +28130,7 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
28006
28130
|
],
|
28007
28131
|
2112
|
28008
28132
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
28009
|
-
)) : item.operator ? (openBlock(), createElementBlock("div",
|
28133
|
+
)) : item.operator ? (openBlock(), createElementBlock("div", _hoisted_15$1, [
|
28010
28134
|
createCommentVNode(" \u65F6\u95F4\u7B5B\u9009 "),
|
28011
28135
|
item.render == "datetime" || item.comSearchRender == "date" ? (openBlock(), createBlock(_component_el_date_picker, {
|
28012
28136
|
key: 0,
|
@@ -28018,9 +28142,20 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
28018
28142
|
placeholder: item.operatorPlaceholder,
|
28019
28143
|
"default-value": unref(DkTable).comSearch.form[item.prop + "-default"] ? unref(DkTable).comSearch.form[item.prop + "-default"] : /* @__PURE__ */ new Date(),
|
28020
28144
|
teleported: false
|
28021
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "placeholder", "default-value"])) : (
|
28145
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "placeholder", "default-value"])) : createCommentVNode("v-if", true),
|
28146
|
+
createCommentVNode(" \u5E74\u7B5B\u9009 "),
|
28147
|
+
item.render == "year" ? (openBlock(), createBlock(_component_el_date_picker, {
|
28148
|
+
key: 1,
|
28149
|
+
modelValue: unref(DkTable).comSearch.form[item.prop],
|
28150
|
+
"onUpdate:modelValue": ($event) => unref(DkTable).comSearch.form[item.prop] = $event,
|
28151
|
+
class: "datetime-picker",
|
28152
|
+
type: "year",
|
28153
|
+
"value-format": "YYYY",
|
28154
|
+
style: { "width": "100%" },
|
28155
|
+
placeholder: item.operatorPlaceholder
|
28156
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : (item.render == "tag" || item.render == "tags" || item.comSearchRender == "select") && item.replaceValue ? (openBlock(), createElementBlock(
|
28022
28157
|
Fragment,
|
28023
|
-
{ key:
|
28158
|
+
{ key: 2 },
|
28024
28159
|
[
|
28025
28160
|
createCommentVNode(" tag\u3001tags\u3001select "),
|
28026
28161
|
createVNode(_component_el_select, {
|
@@ -28052,7 +28187,7 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
28052
28187
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
28053
28188
|
)) : item.comSearchRender == "remoteSelect" ? (openBlock(), createElementBlock(
|
28054
28189
|
Fragment,
|
28055
|
-
{ key:
|
28190
|
+
{ key: 3 },
|
28056
28191
|
[
|
28057
28192
|
createCommentVNode(" \u8FDC\u7A0B select "),
|
28058
28193
|
createVNode(_component_dk_select, {
|
@@ -28065,7 +28200,7 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
28065
28200
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
28066
28201
|
)) : item.render == "switch" ? (openBlock(), createElementBlock(
|
28067
28202
|
Fragment,
|
28068
|
-
{ key:
|
28203
|
+
{ key: 4 },
|
28069
28204
|
[
|
28070
28205
|
createCommentVNode(" \u5F00\u5173 "),
|
28071
28206
|
createVNode(_component_el_select, {
|
@@ -28112,7 +28247,7 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
28112
28247
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
28113
28248
|
)) : (openBlock(), createElementBlock(
|
28114
28249
|
Fragment,
|
28115
|
-
{ key:
|
28250
|
+
{ key: 5 },
|
28116
28251
|
[
|
28117
28252
|
createCommentVNode(" \u5B57\u7B26\u4E32 "),
|
28118
28253
|
createVNode(_component_el_input, {
|
@@ -28149,13 +28284,13 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
28149
28284
|
sm: 6
|
28150
28285
|
}, {
|
28151
28286
|
default: withCtx(() => [
|
28152
|
-
createElementVNode("div",
|
28287
|
+
createElementVNode("div", _hoisted_16$1, [
|
28153
28288
|
withDirectives((openBlock(), createBlock(_component_el_button, {
|
28154
28289
|
type: "primary",
|
28155
28290
|
onClick: onComSearch
|
28156
28291
|
}, {
|
28157
28292
|
default: withCtx(() => [
|
28158
|
-
createTextVNode(" \u641C\u7D22
|
28293
|
+
createTextVNode(" \u641C\u7D22")
|
28159
28294
|
]),
|
28160
28295
|
_: 1
|
28161
28296
|
/* STABLE */
|
@@ -28254,9 +28389,17 @@ var _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
28254
28389
|
const DkTable = inject("DkTable");
|
28255
28390
|
const columnDisplay = computed(() => {
|
28256
28391
|
const columnDisplayArr = [];
|
28392
|
+
let cachedTableData = {};
|
28393
|
+
if (DkTable.url) {
|
28394
|
+
cachedTableData = JSON.parse(storage.get(DkTable.url + "show_column") || "{}");
|
28395
|
+
}
|
28257
28396
|
for (const item of DkTable.table.column) {
|
28397
|
+
if (cachedTableData[item.prop] !== void 0) {
|
28398
|
+
item.show = cachedTableData[item.prop];
|
28399
|
+
}
|
28258
28400
|
item.type === "selection" || item.render === "buttons" || item.enableColumnDisplayControl === false ? "" : columnDisplayArr.push(item);
|
28259
28401
|
}
|
28402
|
+
console.log("columnDisplayArr", columnDisplayArr);
|
28260
28403
|
return columnDisplayArr;
|
28261
28404
|
});
|
28262
28405
|
const enableBatchOpt = computed(() => DkTable.table.selection.length > 0);
|
@@ -28610,21 +28753,23 @@ const _hoisted_6$2 = { key: 5 };
|
|
28610
28753
|
const _hoisted_7$2 = { key: 6 };
|
28611
28754
|
const _hoisted_8$2 = { key: 7 };
|
28612
28755
|
const _hoisted_9$1 = { key: 8 };
|
28613
|
-
const _hoisted_10 = { key:
|
28614
|
-
const _hoisted_11 = {
|
28756
|
+
const _hoisted_10 = { key: 9 };
|
28757
|
+
const _hoisted_11 = { key: 10 };
|
28758
|
+
const _hoisted_12 = { key: 12 };
|
28759
|
+
const _hoisted_13 = {
|
28615
28760
|
key: 0,
|
28616
28761
|
class: "table-operate-text"
|
28617
28762
|
};
|
28618
|
-
const
|
28763
|
+
const _hoisted_14 = {
|
28619
28764
|
key: 0,
|
28620
28765
|
class: "table-operate-text"
|
28621
28766
|
};
|
28622
|
-
const
|
28623
|
-
const
|
28767
|
+
const _hoisted_15 = { class: "dk-tooltip-button" };
|
28768
|
+
const _hoisted_16 = {
|
28624
28769
|
key: 0,
|
28625
28770
|
class: "table-operate-text"
|
28626
28771
|
};
|
28627
|
-
const
|
28772
|
+
const _hoisted_17 = {
|
28628
28773
|
key: 0,
|
28629
28774
|
class: "table-operate-text"
|
28630
28775
|
};
|
@@ -28839,8 +28984,22 @@ var _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
28839
28984
|
1
|
28840
28985
|
/* TEXT */
|
28841
28986
|
)) : createCommentVNode("v-if", true),
|
28987
|
+
_ctx.field.render == "time" ? (openBlock(), createElementBlock(
|
28988
|
+
"div",
|
28989
|
+
_hoisted_9$1,
|
28990
|
+
toDisplayString(fieldValue.value),
|
28991
|
+
1
|
28992
|
+
/* TEXT */
|
28993
|
+
)) : createCommentVNode("v-if", true),
|
28994
|
+
_ctx.field.render == "year" ? (openBlock(), createElementBlock(
|
28995
|
+
"div",
|
28996
|
+
_hoisted_10,
|
28997
|
+
toDisplayString(fieldValue.value),
|
28998
|
+
1
|
28999
|
+
/* TEXT */
|
29000
|
+
)) : createCommentVNode("v-if", true),
|
28842
29001
|
createCommentVNode(" color "),
|
28843
|
-
_ctx.field.render == "color" ? (openBlock(), createElementBlock("div",
|
29002
|
+
_ctx.field.render == "color" ? (openBlock(), createElementBlock("div", _hoisted_11, [
|
28844
29003
|
createElementVNode(
|
28845
29004
|
"div",
|
28846
29005
|
{
|
@@ -28854,7 +29013,7 @@ var _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
28854
29013
|
])) : createCommentVNode("v-if", true),
|
28855
29014
|
createCommentVNode(" \u81EA\u5B9A\u4E49\u7EC4\u4EF6/\u51FD\u6570\u6E32\u67D3 "),
|
28856
29015
|
_ctx.field.render == "customRender" ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.field.customRender), {
|
28857
|
-
key:
|
29016
|
+
key: 11,
|
28858
29017
|
"render-row": _ctx.row,
|
28859
29018
|
"render-field": _ctx.field,
|
28860
29019
|
"render-value": fieldValue.value,
|
@@ -28863,7 +29022,7 @@ var _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
28863
29022
|
}, null, 8, ["render-row", "render-field", "render-value", "render-column", "render-index"])) : createCommentVNode("v-if", true),
|
28864
29023
|
createCommentVNode(" \u6309\u94AE\u7EC4 "),
|
28865
29024
|
createCommentVNode(" \u53EA\u5BF9\u9ED8\u8BA4\u7684\u7F16\u8F91\u3001\u5220\u9664\u3001\u6392\u5E8F\u6309\u94AE\u8FDB\u884C\u9274\u6743\uFF0C\u5176\u4ED6\u6309\u94AE\u8BF7\u901A\u8FC7 display \u5C5E\u6027\u63A7\u5236\u6309\u94AE\u662F\u5426\u663E\u793A "),
|
28866
|
-
_ctx.field.render == "buttons" && _ctx.field.buttons ? (openBlock(), createElementBlock("div",
|
29025
|
+
_ctx.field.render == "buttons" && _ctx.field.buttons ? (openBlock(), createElementBlock("div", _hoisted_12, [
|
28867
29026
|
(openBlock(true), createElementBlock(
|
28868
29027
|
Fragment,
|
28869
29028
|
null,
|
@@ -28891,7 +29050,7 @@ var _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
28891
29050
|
}, null, 8, ["icon"]),
|
28892
29051
|
btn.text ? (openBlock(), createElementBlock(
|
28893
29052
|
"div",
|
28894
|
-
|
29053
|
+
_hoisted_13,
|
28895
29054
|
toDisplayString(btn.text),
|
28896
29055
|
1
|
28897
29056
|
/* TEXT */
|
@@ -28907,7 +29066,9 @@ var _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
28907
29066
|
key: 1,
|
28908
29067
|
disabled: !(btn.title && !btn.disabledTip),
|
28909
29068
|
content: btn.title ?? "",
|
28910
|
-
placement: "top"
|
29069
|
+
placement: "top",
|
29070
|
+
"hide-after": 0,
|
29071
|
+
"show-after": 100
|
28911
29072
|
}, {
|
28912
29073
|
default: withCtx(() => [
|
28913
29074
|
withDirectives((openBlock(), createBlock(_component_el_button, mergeProps({
|
@@ -28923,7 +29084,7 @@ var _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
28923
29084
|
}, null, 8, ["icon"]),
|
28924
29085
|
btn.text ? (openBlock(), createElementBlock(
|
28925
29086
|
"div",
|
28926
|
-
|
29087
|
+
_hoisted_14,
|
28927
29088
|
toDisplayString(btn.text),
|
28928
29089
|
1
|
28929
29090
|
/* TEXT */
|
@@ -28943,10 +29104,12 @@ var _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
28943
29104
|
key: 2,
|
28944
29105
|
disabled: btn.disabled && btn.disabled(_ctx.row, _ctx.field)
|
28945
29106
|
}, btn.popconfirm, {
|
29107
|
+
"hide-after": 0,
|
29108
|
+
"show-after": 100,
|
28946
29109
|
onConfirm: ($event) => onButtonClick(btn)
|
28947
29110
|
}), {
|
28948
29111
|
reference: withCtx(() => [
|
28949
|
-
createElementVNode("div",
|
29112
|
+
createElementVNode("div", _hoisted_15, [
|
28950
29113
|
createVNode(_component_el_tooltip, {
|
28951
29114
|
disabled: !btn.title,
|
28952
29115
|
content: btn.title ?? "",
|
@@ -28964,7 +29127,7 @@ var _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
28964
29127
|
}, null, 8, ["icon"]),
|
28965
29128
|
btn.text ? (openBlock(), createElementBlock(
|
28966
29129
|
"div",
|
28967
|
-
|
29130
|
+
_hoisted_16,
|
28968
29131
|
toDisplayString(btn.text),
|
28969
29132
|
1
|
28970
29133
|
/* TEXT */
|
@@ -28989,6 +29152,8 @@ var _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
28989
29152
|
key: 3,
|
28990
29153
|
disabled: !(btn.title && !btn.disabledTip),
|
28991
29154
|
content: btn.title ?? "",
|
29155
|
+
"hide-after": 0,
|
29156
|
+
"show-after": 100,
|
28992
29157
|
placement: "top"
|
28993
29158
|
}, {
|
28994
29159
|
default: withCtx(() => [
|
@@ -29003,7 +29168,7 @@ var _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
29003
29168
|
}, null, 8, ["icon"]),
|
29004
29169
|
btn.text ? (openBlock(), createElementBlock(
|
29005
29170
|
"div",
|
29006
|
-
|
29171
|
+
_hoisted_17,
|
29007
29172
|
toDisplayString(btn.text),
|
29008
29173
|
1
|
29009
29174
|
/* TEXT */
|
@@ -29314,7 +29479,7 @@ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
29314
29479
|
const DkTable = new dkTable(props.tableApi);
|
29315
29480
|
provide("DkTable", DkTable);
|
29316
29481
|
onMounted(() => {
|
29317
|
-
DkTable.getTable(
|
29482
|
+
DkTable.getTable(props.cacheTable)?.then(() => {
|
29318
29483
|
DkTable.getIndex()?.then(() => {
|
29319
29484
|
nextTick(() => {
|
29320
29485
|
DkTable.dragSort();
|
@@ -29332,6 +29497,9 @@ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
29332
29497
|
const onTableCurrentChange = (val) => {
|
29333
29498
|
DkTable.onTableAction("current-page-change", { page: val });
|
29334
29499
|
};
|
29500
|
+
const ondblclick = (row) => {
|
29501
|
+
DkTable.toggleForm("Edit", [row[DkTable.table.pk]]);
|
29502
|
+
};
|
29335
29503
|
const onSortChange = ({ order, prop }) => {
|
29336
29504
|
DkTable.onTableAction("sort-change", {
|
29337
29505
|
prop,
|
@@ -29459,7 +29627,8 @@ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
29459
29627
|
onSelectAll,
|
29460
29628
|
onSelect,
|
29461
29629
|
onSelectionChange,
|
29462
|
-
onSortChange
|
29630
|
+
onSortChange,
|
29631
|
+
onCellDblclick: ondblclick
|
29463
29632
|
}), {
|
29464
29633
|
default: withCtx(() => [
|
29465
29634
|
renderSlot(_ctx.$slots, "columnPrepend"),
|
@@ -29535,10 +29704,7 @@ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
29535
29704
|
onSizeChange: onTableSizeChange,
|
29536
29705
|
onCurrentChange: onTableCurrentChange
|
29537
29706
|
}, null, 8, ["current-page", "page-size", "page-sizes", "total"])
|
29538
|
-
])
|
29539
|
-
createCommentVNode(" <div>"),
|
29540
|
-
createCommentVNode(' <el-button @click="test()">\u6D4B\u8BD5</el-button>'),
|
29541
|
-
createCommentVNode(" </div>")
|
29707
|
+
])
|
29542
29708
|
]),
|
29543
29709
|
createVNode(_component_dk_form, {
|
29544
29710
|
ref_key: "FormRef",
|