@ctzy-web-client/plugin-component-vue 1.0.22 → 1.0.24
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/es/advance-select/advance-operation.mjs +51 -37
- package/es/advance-select/advance-option.mjs +167 -97
- package/es/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.mjs +7 -0
- package/es/advance-select/advance-select.mjs +368 -310
- package/es/advance-select/index.mjs +5 -5
- package/es/application-slot/breadcrumb-item.mjs +20 -17
- package/es/application-slot/header-tools-item.mjs +20 -17
- package/es/breadcrumb-select/breadcrumb-select.mjs +134 -112
- package/es/contextmenu/contextmenu-item.mjs +19 -15
- package/es/contextmenu/contextmenu.mjs +72 -56
- package/es/data-form/data-form-item.mjs +48 -30
- package/es/data-form/data-form.mjs +213 -166
- package/es/data-form/form-components/bwa-date-picker.mjs +51 -39
- package/es/data-form/form-components/bwa-date-time-picker.mjs +56 -44
- package/es/data-form/form-components/bwa-input-float.mjs +48 -37
- package/es/data-form/form-components/bwa-input-integer.mjs +68 -50
- package/es/data-form/form-components/bwa-input.mjs +43 -32
- package/es/data-form/form-components/bwa-multi-select.mjs +40 -29
- package/es/data-form/form-components/bwa-rich-text-tinymce.mjs +554 -218
- package/es/data-form/form-components/bwa-rich-text.mjs +404 -316
- package/es/data-form/form-components/bwa-select.mjs +84 -70
- package/es/data-form/form-components/bwa-textarea.mjs +38 -27
- package/es/data-form/form-components/bwa-upload.mjs +172 -148
- package/es/data-form/form-components/bwa-user-multi-select.mjs +35 -24
- package/es/data-form/form-components/bwa-user-select.mjs +86 -61
- package/es/data-table/data-column-view.mjs +146 -115
- package/es/data-table/data-table-card.mjs +48 -40
- package/es/data-table/data-table-column.mjs +58 -45
- package/es/data-table/data-table.mjs +402 -316
- package/es/datatable-settings/datatable-settings.mjs +329 -254
- package/es/date-range/date-picker.mjs +130 -116
- package/es/date-range/date-range.mjs +215 -168
- package/es/drag-list/drag-item.mjs +56 -42
- package/es/drag-list/drag-list.mjs +60 -47
- package/es/dragable/dragable-item.mjs +23 -18
- package/es/dragable/dragable-operation.mjs +32 -24
- package/es/dragable/dragable.mjs +32 -23
- package/es/filter-panel/conditions/date-range-condition.mjs +50 -40
- package/es/filter-panel/conditions/department-condition/department-condition.mjs +99 -72
- package/es/filter-panel/conditions/department-condition/department-node.mjs +73 -59
- package/es/filter-panel/conditions/input-condition.mjs +90 -76
- package/es/filter-panel/conditions/multi-user-condition.mjs +67 -57
- package/es/filter-panel/conditions/multiple-menu-condition.mjs +54 -35
- package/es/filter-panel/conditions/single-menu-condition.mjs +65 -60
- package/es/filter-panel/conditions/single-user-condition.mjs +67 -57
- package/es/filter-panel/filter-panel-item.mjs +54 -39
- package/es/filter-panel/filter-panel.mjs +153 -135
- package/es/layout/layout.mjs +85 -78
- package/es/menu/menu-item.mjs +67 -52
- package/es/menu/menu.mjs +70 -53
- package/es/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +28 -0
- package/es/panel/panel.mjs +53 -40
- package/es/pct-filter-panel/pct-compents/pct-Input-condition.mjs +74 -63
- package/es/pct-filter-panel/pct-compents/pct-date-range-condition.mjs +76 -67
- package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition.mjs +406 -178
- package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.mjs +153 -138
- package/es/pct-filter-panel/pct-filter-panel-item.mjs +55 -40
- package/es/pct-filter-panel/pct-filter-panel.mjs +247 -227
- package/es/progress/progress-item.mjs +81 -61
- package/es/progress/progress.mjs +78 -64
- package/es/where-filter-panel/where-filter-panel.mjs +15 -12
- package/lib/advance-select/advance-operation.js +50 -36
- package/lib/advance-select/advance-option.js +166 -96
- package/lib/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.js +12 -0
- package/lib/advance-select/advance-select.js +366 -308
- package/lib/application-slot/breadcrumb-item.js +19 -16
- package/lib/application-slot/header-tools-item.js +19 -16
- package/lib/breadcrumb-select/breadcrumb-select.js +133 -111
- package/lib/contextmenu/contextmenu-item.js +18 -14
- package/lib/contextmenu/contextmenu.js +71 -55
- package/lib/data-form/data-form-item.js +47 -29
- package/lib/data-form/data-form.js +212 -165
- package/lib/data-form/form-components/bwa-date-picker.js +50 -38
- package/lib/data-form/form-components/bwa-date-time-picker.js +55 -43
- package/lib/data-form/form-components/bwa-input-float.js +47 -36
- package/lib/data-form/form-components/bwa-input-integer.js +67 -49
- package/lib/data-form/form-components/bwa-input.js +42 -31
- package/lib/data-form/form-components/bwa-multi-select.js +39 -28
- package/lib/data-form/form-components/bwa-rich-text-tinymce.js +553 -217
- package/lib/data-form/form-components/bwa-rich-text.js +403 -315
- package/lib/data-form/form-components/bwa-select.js +83 -69
- package/lib/data-form/form-components/bwa-textarea.js +37 -26
- package/lib/data-form/form-components/bwa-upload.js +171 -147
- package/lib/data-form/form-components/bwa-user-multi-select.js +34 -23
- package/lib/data-form/form-components/bwa-user-select.js +85 -60
- package/lib/data-table/data-column-view.js +146 -115
- package/lib/data-table/data-table-card.js +48 -40
- package/lib/data-table/data-table-column.js +57 -44
- package/lib/data-table/data-table.js +401 -315
- package/lib/datatable-settings/datatable-settings.js +328 -253
- package/lib/date-range/date-picker.js +129 -115
- package/lib/date-range/date-range.js +213 -170
- package/lib/drag-list/drag-item.js +55 -41
- package/lib/drag-list/drag-list.js +59 -46
- package/lib/dragable/dragable-item.js +22 -17
- package/lib/dragable/dragable-operation.js +31 -23
- package/lib/dragable/dragable.js +31 -22
- package/lib/filter-panel/conditions/date-range-condition.js +49 -39
- package/lib/filter-panel/conditions/department-condition/department-condition.js +98 -71
- package/lib/filter-panel/conditions/department-condition/department-node.js +72 -58
- package/lib/filter-panel/conditions/input-condition.js +89 -75
- package/lib/filter-panel/conditions/multi-user-condition.js +66 -56
- package/lib/filter-panel/conditions/multiple-menu-condition.js +53 -34
- package/lib/filter-panel/conditions/single-menu-condition.js +64 -59
- package/lib/filter-panel/conditions/single-user-condition.js +66 -56
- package/lib/filter-panel/filter-panel-item.js +53 -38
- package/lib/filter-panel/filter-panel.js +152 -134
- package/lib/layout/layout.js +84 -77
- package/lib/menu/menu-item.js +66 -51
- package/lib/menu/menu.js +69 -52
- package/lib/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +32 -0
- package/lib/panel/panel.js +52 -39
- package/lib/pct-filter-panel/pct-compents/pct-Input-condition.js +73 -62
- package/lib/pct-filter-panel/pct-compents/pct-date-range-condition.js +75 -66
- package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition.js +405 -177
- package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.js +152 -137
- package/lib/pct-filter-panel/pct-filter-panel-item.js +54 -39
- package/lib/pct-filter-panel/pct-filter-panel.js +246 -226
- package/lib/progress/progress-item.js +80 -60
- package/lib/progress/progress.js +77 -63
- package/lib/where-filter-panel/where-filter-panel.js +14 -11
- package/package.json +2 -1
- package/src/advance-select/advance-option.vue +64 -13
- package/src/data-form/form-components/bwa-rich-text-tinymce.vue +1 -1
- package/src/datatable-settings/datatable-settings.vue +33 -3
- package/src/date-range/date-picker.vue +1 -1
- package/src/date-range/date-range.vue +3 -3
- package/src/filter-panel/filter-panel.vue +2 -2
- package/src/pct-filter-panel/pct-compents/pct-Input-condition.vue +64 -64
- package/src/pct-filter-panel/pct-compents/pct-date-range-condition.vue +61 -61
- package/src/pct-filter-panel/pct-compents/pct-multiple-menu-condition.vue +302 -178
- package/src/pct-filter-panel/pct-filter-panel.vue +4 -4
|
@@ -7,47 +7,61 @@ var webBaseClientVue = require('@ctzy-web-client/web-base-client-vue');
|
|
|
7
7
|
var constants = require('./constants.js');
|
|
8
8
|
var _pluginVue_exportHelper = require('../_virtual/_plugin-vue_export-helper.js');
|
|
9
9
|
|
|
10
|
-
const
|
|
11
|
-
|
|
10
|
+
const _sfc_main = {
|
|
11
|
+
__name: 'drag-item',
|
|
12
12
|
setup(__props, { expose }) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
13
|
+
|
|
14
|
+
const ns = webBaseClientVue.useNamespace('dragitem');
|
|
15
|
+
|
|
16
|
+
defineOptions({ name: 'BwaDragItem' });
|
|
17
|
+
|
|
18
|
+
const dragListContext = vue.inject(constants.dragListContextKey);
|
|
19
|
+
|
|
20
|
+
const id = dragListContext.nextID();
|
|
21
|
+
|
|
22
|
+
const instance = vue.getCurrentInstance();
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @param {MouseEvent} event
|
|
26
|
+
*/
|
|
27
|
+
const handleMousedown = (event) => {
|
|
28
|
+
if (event.button !== 0) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
dragListContext.startDrag(instance.proxy);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
vue.onMounted(() => {
|
|
35
|
+
dragListContext.handleItemCreate(id, instance.proxy);
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
vue.onBeforeUnmount(() => {
|
|
39
|
+
dragListContext.handleItemDestroy(id, instance.proxy);
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
expose({
|
|
43
|
+
id,
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
return (_ctx, _cache) => {
|
|
47
|
+
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
48
|
+
class: vue.normalizeClass(vue.unref(ns).b()),
|
|
49
|
+
"draggable-context-id": "",
|
|
50
|
+
onMousedown: handleMousedown
|
|
51
|
+
}, [
|
|
52
|
+
vue.createElementVNode("i", {
|
|
53
|
+
class: vue.normalizeClass([vue.unref(ns).e('drag-icon'), 'ptp-icon', 'ptp-buzhou-yidong'])
|
|
54
|
+
}, null, 2 /* CLASS */),
|
|
55
|
+
vue.createElementVNode("span", {
|
|
56
|
+
class: vue.normalizeClass(vue.unref(ns).e('content'))
|
|
57
|
+
}, [
|
|
58
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
59
|
+
], 2 /* CLASS */)
|
|
60
|
+
], 34 /* CLASS, HYDRATE_EVENTS */))
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
};
|
|
65
|
+
var DragItem = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['__file',"drag-item.vue"]]);
|
|
52
66
|
|
|
53
67
|
exports["default"] = DragItem;
|
|
@@ -9,52 +9,65 @@ var dragItem = require('./drag-item.js');
|
|
|
9
9
|
var useDragList = require('./use-drag-list.js');
|
|
10
10
|
var _pluginVue_exportHelper = require('../_virtual/_plugin-vue_export-helper.js');
|
|
11
11
|
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
props: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
emits: [
|
|
12
|
+
const _sfc_main = {
|
|
13
|
+
__name: 'drag-list',
|
|
14
|
+
props: {
|
|
15
|
+
data: {
|
|
16
|
+
type: Array,
|
|
17
|
+
default: () => [],
|
|
18
|
+
},
|
|
19
|
+
idAttr: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: 'id',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
emits: ['sort-change'],
|
|
25
25
|
setup(__props, { emit }) {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
26
|
+
|
|
27
|
+
const props = __props;
|
|
28
|
+
|
|
29
|
+
defineOptions({ name: 'BwaDragList' });
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
const ns = webBaseClientVue.useNamespace('draglist');
|
|
36
|
+
|
|
37
|
+
const { startDrag, nextID, handleItemCreate, handleItemDestroy, dragging } =
|
|
38
|
+
useDragList.useDragList(props, { emit });
|
|
39
|
+
|
|
40
|
+
vue.provide(
|
|
41
|
+
constants.dragListContextKey,
|
|
42
|
+
vue.reactive({
|
|
43
|
+
dragging,
|
|
44
|
+
startDrag,
|
|
45
|
+
nextID,
|
|
46
|
+
handleItemCreate,
|
|
47
|
+
handleItemDestroy,
|
|
48
|
+
})
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
return (_ctx, _cache) => {
|
|
52
|
+
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
53
|
+
class: vue.normalizeClass([vue.unref(ns).b(), vue.unref(ns).e('dragging', vue.unref(dragging))])
|
|
54
|
+
}, [
|
|
55
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.data, (item, i) => {
|
|
56
|
+
return (vue.openBlock(), vue.createBlock(dragItem["default"], {
|
|
57
|
+
key: item[__props.idAttr],
|
|
58
|
+
"data-key": item[__props.idAttr]
|
|
59
|
+
}, {
|
|
60
|
+
default: vue.withCtx(() => [
|
|
61
|
+
vue.renderSlot(_ctx.$slots, "default", { item: item })
|
|
62
|
+
]),
|
|
63
|
+
_: 2 /* DYNAMIC */
|
|
64
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["data-key"]))
|
|
65
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
66
|
+
], 2 /* CLASS */))
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
};
|
|
71
|
+
var DragList = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['__file',"drag-list.vue"]]);
|
|
59
72
|
|
|
60
73
|
exports["default"] = DragList;
|
|
@@ -7,23 +7,28 @@ var webBaseClientVue = require('@ctzy-web-client/web-base-client-vue');
|
|
|
7
7
|
var constants = require('./constants.js');
|
|
8
8
|
var _pluginVue_exportHelper = require('../_virtual/_plugin-vue_export-helper.js');
|
|
9
9
|
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
});
|
|
13
|
-
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
10
|
+
const _sfc_main = {
|
|
11
|
+
__name: 'dragable-item',
|
|
14
12
|
setup(__props) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
13
|
+
|
|
14
|
+
defineOptions({
|
|
15
|
+
name: 'BwaDragableItem',
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
const ns = webBaseClientVue.useNamespace('dragable-item');
|
|
19
|
+
|
|
20
|
+
vue.provide(constants.dragableItemContextKey, {});
|
|
21
|
+
|
|
22
|
+
return (_ctx, _cache) => {
|
|
23
|
+
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
24
|
+
class: vue.normalizeClass(vue.unref(ns).b())
|
|
25
|
+
}, [
|
|
26
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
27
|
+
], 2 /* CLASS */))
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
};
|
|
32
|
+
var DragableItem = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['__file',"dragable-item.vue"]]);
|
|
28
33
|
|
|
29
34
|
exports["default"] = DragableItem;
|
|
@@ -8,29 +8,37 @@ var constants = require('./constants.js');
|
|
|
8
8
|
var _pluginVue_exportHelper = require('../_virtual/_plugin-vue_export-helper.js');
|
|
9
9
|
|
|
10
10
|
const _hoisted_1 = ["dragable-operation"];
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
const _sfc_main = {
|
|
14
|
+
__name: 'dragable-operation',
|
|
15
15
|
setup(__props) {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
16
|
+
|
|
17
|
+
defineOptions({
|
|
18
|
+
name: 'BwaDragableOperation',
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
const ns = webBaseClientVue.useNamespace('dragable-operation');
|
|
22
|
+
|
|
23
|
+
const dragableContext = vue.inject(constants.dragableContextKey);
|
|
24
|
+
const dragableItemContext = vue.inject(constants.dragableItemContextKey);
|
|
25
|
+
|
|
26
|
+
const dragableOperation = vue.ref(
|
|
27
|
+
new Boolean(dragableContext && dragableItemContext).valueOf()
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
return (_ctx, _cache) => {
|
|
31
|
+
return (vue.openBlock(), vue.createElementBlock("span", {
|
|
32
|
+
class: vue.normalizeClass(vue.unref(ns).b()),
|
|
33
|
+
onMousedown: _cache[0] || (_cache[0] = (...args) => (_ctx.handleMousedown && _ctx.handleMousedown(...args))),
|
|
34
|
+
"dragable-operation": dragableOperation.value
|
|
35
|
+
}, [
|
|
36
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
37
|
+
], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_1))
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
};
|
|
42
|
+
var DragableOperation = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['__file',"dragable-operation.vue"]]);
|
|
35
43
|
|
|
36
44
|
exports["default"] = DragableOperation;
|
package/lib/dragable/dragable.js
CHANGED
|
@@ -8,28 +8,37 @@ var constants = require('./constants.js');
|
|
|
8
8
|
var useDragable = require('./use-dragable.js');
|
|
9
9
|
var _pluginVue_exportHelper = require('../_virtual/_plugin-vue_export-helper.js');
|
|
10
10
|
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
15
|
-
emits: ["move"],
|
|
11
|
+
const _sfc_main = {
|
|
12
|
+
__name: 'dragable',
|
|
13
|
+
emits: ['move'],
|
|
16
14
|
setup(__props, { emit }) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
15
|
+
|
|
16
|
+
defineOptions({
|
|
17
|
+
name: 'BwaDragable',
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
const ns = webBaseClientVue.useNamespace('dragable');
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
const el = vue.ref(null);
|
|
25
|
+
|
|
26
|
+
useDragable.useDragable(el, ns.b('item'), ns.b('operation'), { emit });
|
|
27
|
+
|
|
28
|
+
vue.provide(constants.dragableContextKey, {});
|
|
29
|
+
|
|
30
|
+
return (_ctx, _cache) => {
|
|
31
|
+
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
32
|
+
class: vue.normalizeClass(vue.unref(ns).b()),
|
|
33
|
+
ref_key: "el",
|
|
34
|
+
ref: el
|
|
35
|
+
}, [
|
|
36
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
37
|
+
], 2 /* CLASS */))
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
};
|
|
42
|
+
var Dragable = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['__file',"dragable.vue"]]);
|
|
34
43
|
|
|
35
44
|
exports["default"] = Dragable;
|
|
@@ -6,45 +6,55 @@ var vue = require('vue');
|
|
|
6
6
|
var index = require('../../date-range/index.js');
|
|
7
7
|
var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
|
|
8
8
|
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
default: "YYYY-MM-DD"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
emits: ["update:modelValue"],
|
|
9
|
+
const _sfc_main = {
|
|
10
|
+
__name: 'date-range-condition',
|
|
11
|
+
props: {
|
|
12
|
+
modelValue: {
|
|
13
|
+
type: null,
|
|
14
|
+
},
|
|
15
|
+
valueFormat: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: 'YYYY-MM-DD',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
emits: ['update:modelValue'],
|
|
25
21
|
setup(__props, { emit }) {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
22
|
+
|
|
23
|
+
const props = __props;
|
|
24
|
+
|
|
25
|
+
defineOptions({
|
|
26
|
+
name: 'BwaDateRangeCondition',
|
|
27
|
+
__conditionTitle__: '日期选择',
|
|
28
|
+
__conditionDefault__: () => ({ start: '', end: '' }),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
const value = vue.computed({
|
|
36
|
+
get: () => props.modelValue,
|
|
37
|
+
set: (v) => {
|
|
38
|
+
emit('update:modelValue', v);
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
return (_ctx, _cache) => {
|
|
43
|
+
return (vue.openBlock(), vue.createBlock(vue.unref(index.BwaDateRange), {
|
|
44
|
+
modelValue: vue.unref(value),
|
|
45
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (vue.isRef(value) ? (value).value = $event : null)),
|
|
46
|
+
multiple: true,
|
|
47
|
+
"value-format": __props.valueFormat
|
|
48
|
+
}, {
|
|
49
|
+
default: vue.withCtx(() => [
|
|
50
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
51
|
+
]),
|
|
52
|
+
_: 3 /* FORWARDED */
|
|
53
|
+
}, 8 /* PROPS */, ["modelValue", "value-format"]))
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
};
|
|
58
|
+
var DateRangeCondition = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['__file',"date-range-condition.vue"]]);
|
|
49
59
|
|
|
50
60
|
exports["default"] = DateRangeCondition;
|
|
@@ -8,78 +8,105 @@ var departmentNode = require('./department-node.js');
|
|
|
8
8
|
var webBaseClientVue = require('@ctzy-web-client/web-base-client-vue');
|
|
9
9
|
var _pluginVue_exportHelper = require('../../../_virtual/_plugin-vue_export-helper.js');
|
|
10
10
|
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
});
|
|
14
|
-
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
11
|
+
const _sfc_main = {
|
|
12
|
+
__name: 'department-condition',
|
|
15
13
|
props: {},
|
|
16
14
|
setup(__props) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
15
|
+
|
|
16
|
+
const props = __props;
|
|
17
|
+
|
|
18
|
+
defineOptions({
|
|
19
|
+
name: 'BwaDepartmentCondition',
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
const departmentService = webBaseClientVue.useService('DepartmentService');
|
|
25
|
+
|
|
26
|
+
const data = vue.ref([]);
|
|
27
|
+
|
|
28
|
+
const loading = vue.ref(false);
|
|
29
|
+
|
|
30
|
+
const map = new Map();
|
|
31
|
+
|
|
32
|
+
const formatValue = (selected) => {
|
|
33
|
+
selected = Array.isArray(selected) ? selected : selected ? [selected] : [];
|
|
34
|
+
|
|
35
|
+
selected = selected.map((item) => map.get(item.value + '')).filter(Boolean);
|
|
36
|
+
|
|
37
|
+
if (!selected.length) {
|
|
38
|
+
return '全部';
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return selected.map((item) => item.desc).join(',');
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
const handleVisibleChange = async (isShow) => {
|
|
45
|
+
if (!isShow || !vue.unref(departmentService)) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
try {
|
|
50
|
+
loading.value = true;
|
|
51
|
+
|
|
52
|
+
const departmentsResult = await vue.unref(departmentService).getDepartments();
|
|
53
|
+
|
|
54
|
+
if (departmentsResult.code != 0) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const departments = [];
|
|
59
|
+
for (let department of departmentsResult.data || []) {
|
|
60
|
+
department.children = [];
|
|
61
|
+
|
|
62
|
+
if (!department.pid) {
|
|
63
|
+
departments.push(department);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
map.set(department.id + '', department);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
for (const department of departmentsResult.data || []) {
|
|
70
|
+
if (!department.pid) {
|
|
71
|
+
continue;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
const parent = map.get(department.pid + '');
|
|
75
|
+
|
|
76
|
+
if (!parent) {
|
|
77
|
+
continue;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
parent.children.push(department);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
data.value = departments;
|
|
84
|
+
} finally {
|
|
85
|
+
loading.value = false;
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
return (_ctx, _cache) => {
|
|
90
|
+
return (vue.openBlock(), vue.createBlock(singleMenuCondition["default"], {
|
|
91
|
+
multiple: true,
|
|
92
|
+
showSearch: false,
|
|
93
|
+
loading: loading.value,
|
|
94
|
+
onVisibleChange: handleVisibleChange
|
|
95
|
+
}, {
|
|
96
|
+
value: vue.withCtx(({ selected }) => [
|
|
97
|
+
vue.createTextVNode(vue.toDisplayString(formatValue(selected)), 1 /* TEXT */)
|
|
98
|
+
]),
|
|
99
|
+
default: vue.withCtx(() => [
|
|
100
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(data.value, (item) => {
|
|
101
|
+
return (vue.openBlock(), vue.createBlock(departmentNode["default"], { item: item }, null, 8 /* PROPS */, ["item"]))
|
|
102
|
+
}), 256 /* UNKEYED_FRAGMENT */))
|
|
103
|
+
]),
|
|
104
|
+
_: 1 /* STABLE */
|
|
105
|
+
}, 8 /* PROPS */, ["loading"]))
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
};
|
|
110
|
+
var DepartmentCondition = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['__file',"department-condition.vue"]]);
|
|
84
111
|
|
|
85
112
|
exports["default"] = DepartmentCondition;
|