liyu-pc-base 1.0.14 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.js +647 -637
- package/dist/components/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/utils/function.js +7 -6
- package/dist/utils/function.js.map +1 -1
- package/package.json +1 -1
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.my-card[data-v-25d1dc13],.my-card[data-v-52b515e0]{padding:20px;background-color:#f6f7f9}.card[data-v-2f0260fd]{overflow:auto;max-height:300px;background:#f2f5f7}.condition-group[data-v-2f0260fd]{padding:5px}.range[data-v-2f0260fd]{margin-top:5px}.close-icon[data-v-2f0260fd]{width:15px;margin-top:5px;margin-left:5px;color:red}.search-bar[data-v-2f0260fd]{background:#f2f5f7;text-align:right}[data-v-2f0260fd] .divider .ant-divider{margin:0}.cards[data-v-1f94c291] .ant-card-head{padding:0 8px;min-height:44px;background-color:#00000005}.num{display:inline-block}.dropdown{display:none}.table:hover .dropdown{display:inline-block}.table:hover .num{display:none}.collapses .ant-collapse-item .ant-collapse-content .ant-collapse-content-box{padding:0}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgba(0,0,0,0);--un-ring-shadow:0 0 rgba(0,0,0,0);--un-shadow-inset: ;--un-shadow:0 0 rgba(0,0,0,0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgba(0,0,0,0);--un-ring-shadow:0 0 rgba(0,0,0,0);--un-shadow-inset: ;--un-shadow:0 0 rgba(0,0,0,0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.grid{display:grid}.block{display:block}.inline-block{display:inline-block}.hidden{display:none}.flex{display:flex}.table{display:table}.resize{resize:both}.break-all{word-break:break-all}.b,.border{border-width:1px}.px{padding-left:1rem;padding-right:1rem}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.attribute-table .ant-table-footer{padding:5px}.ant-calendar-picker[data-v-d71f8072]{width:100%!important}:root,:host{--w-e-textarea-bg-color: #fff;--w-e-textarea-color: #333;--w-e-textarea-border-color: #ccc;--w-e-textarea-slight-border-color: #e8e8e8;--w-e-textarea-slight-color: #d4d4d4;--w-e-textarea-slight-bg-color: #f5f2f0;--w-e-textarea-selected-border-color: #B4D5FF;--w-e-textarea-handler-bg-color: #4290f7;--w-e-toolbar-color: #595959;--w-e-toolbar-bg-color: #fff;--w-e-toolbar-active-color: #333;--w-e-toolbar-active-bg-color: #f1f1f1;--w-e-toolbar-disabled-color: #999;--w-e-toolbar-border-color: #e8e8e8;--w-e-modal-button-bg-color: #fafafa;--w-e-modal-button-border-color: #d9d9d9}.w-e-text-container *,.w-e-toolbar *{box-sizing:border-box;margin:0;outline:none;padding:0}.w-e-text-container blockquote,.w-e-text-container li,.w-e-text-container p,.w-e-text-container td,.w-e-text-container th,.w-e-toolbar *{line-height:1.5}.w-e-text-container{background-color:var(--w-e-textarea-bg-color);color:var(--w-e-textarea-color);height:100%;position:relative}.w-e-text-container .w-e-scroll{-webkit-overflow-scrolling:touch;height:100%}.w-e-text-container [data-slate-editor]{word-wrap:break-word;border-top:1px solid transparent;min-height:100%;outline:0;padding:0 10px;white-space:pre-wrap}.w-e-text-container [data-slate-editor] p{margin:15px 0}.w-e-text-container [data-slate-editor] h1,.w-e-text-container [data-slate-editor] h2,.w-e-text-container [data-slate-editor] h3,.w-e-text-container [data-slate-editor] h4,.w-e-text-container [data-slate-editor] h5{margin:20px 0}.w-e-text-container [data-slate-editor] img{cursor:default;display:inline!important;max-width:100%;min-height:20px;min-width:20px}.w-e-text-container [data-slate-editor] span{text-indent:0}.w-e-text-container [data-slate-editor] [data-selected=true]{box-shadow:0 0 0 2px var(--w-e-textarea-selected-border-color)}.w-e-text-placeholder{font-style:italic;left:10px;top:17px;width:90%}.w-e-max-length-info,.w-e-text-placeholder{color:var(--w-e-textarea-slight-color);pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.w-e-max-length-info{bottom:.5em;right:1em}.w-e-bar{background-color:var(--w-e-toolbar-bg-color);color:var(--w-e-toolbar-color);font-size:14px;padding:0 5px}.w-e-bar svg{fill:var(--w-e-toolbar-color);height:14px;width:14px}.w-e-bar-show{display:flex}.w-e-bar-hidden{display:none}.w-e-hover-bar{border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 5px #0000001f;position:absolute}.w-e-toolbar{flex-wrap:wrap;position:relative}.w-e-bar-divider{background-color:var(--w-e-toolbar-border-color);display:inline-flex;height:40px;margin:0 5px;width:1px}.w-e-bar-item{display:flex;height:40px;padding:4px;position:relative;text-align:center}.w-e-bar-item,.w-e-bar-item button{align-items:center;justify-content:center}.w-e-bar-item button{background:transparent;border:none;color:var(--w-e-toolbar-color);cursor:pointer;display:inline-flex;height:32px;overflow:hidden;padding:0 8px;white-space:nowrap}.w-e-bar-item button:hover{background-color:var(--w-e-toolbar-active-bg-color);color:var(--w-e-toolbar-active-color)}.w-e-bar-item button .title{margin-left:5px}.w-e-bar-item .active{background-color:var(--w-e-toolbar-active-bg-color);color:var(--w-e-toolbar-active-color)}.w-e-bar-item .disabled{color:var(--w-e-toolbar-disabled-color);cursor:not-allowed}.w-e-bar-item .disabled svg{fill:var(--w-e-toolbar-disabled-color)}.w-e-bar-item .disabled:hover{background-color:var(--w-e-toolbar-bg-color);color:var(--w-e-toolbar-disabled-color)}.w-e-bar-item .disabled:hover svg{fill:var(--w-e-toolbar-disabled-color)}.w-e-menu-tooltip-v5:before{background-color:var(--w-e-toolbar-active-color);border-radius:5px;color:var(--w-e-toolbar-bg-color);content:attr(data-tooltip);font-size:.75em;opacity:0;padding:5px 10px;position:absolute;text-align:center;top:40px;transition:opacity .6s;visibility:hidden;white-space:pre;z-index:1}.w-e-menu-tooltip-v5:after{border:5px solid transparent;border-bottom:5px solid var(--w-e-toolbar-active-color);content:"";opacity:0;position:absolute;top:30px;transition:opacity .6s;visibility:hidden}.w-e-menu-tooltip-v5:hover:after,.w-e-menu-tooltip-v5:hover:before{opacity:1;visibility:visible}.w-e-menu-tooltip-v5.tooltip-right:before{left:100%;top:10px}.w-e-menu-tooltip-v5.tooltip-right:after{border-bottom-color:transparent;border-left-color:transparent;border-right-color:var(--w-e-toolbar-active-color);border-top-color:transparent;left:100%;margin-left:-10px;top:16px}.w-e-bar-item-group .w-e-bar-item-menus-container{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;display:none;left:0;margin-top:40px;position:absolute;top:0;z-index:1}.w-e-bar-item-group:hover .w-e-bar-item-menus-container{display:block}.w-e-select-list{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;left:0;margin-top:40px;max-height:350px;min-width:100px;overflow-y:auto;position:absolute;top:0;z-index:1}.w-e-select-list ul{line-height:1;list-style:none}.w-e-select-list ul .selected{background-color:var(--w-e-toolbar-active-bg-color)}.w-e-select-list ul li{cursor:pointer;padding:7px 0 7px 25px;position:relative;text-align:left;white-space:nowrap}.w-e-select-list ul li:hover{background-color:var(--w-e-toolbar-active-bg-color)}.w-e-select-list ul li svg{left:0;margin-left:5px;margin-top:-7px;position:absolute;top:50%}.w-e-bar-bottom .w-e-select-list{bottom:0;margin-bottom:40px;margin-top:0;top:inherit}.w-e-drop-panel{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;margin-top:40px;min-width:200px;padding:10px;position:absolute;top:0;z-index:1}.w-e-bar-bottom .w-e-drop-panel{bottom:0;margin-bottom:40px;margin-top:0;top:inherit}.w-e-modal{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;color:var(--w-e-toolbar-color);font-size:14px;min-height:40px;min-width:100px;padding:20px 15px 0;position:absolute;text-align:left;z-index:1}.w-e-modal .btn-close{cursor:pointer;line-height:1;padding:5px;position:absolute;right:8px;top:7px}.w-e-modal .btn-close svg{fill:var(--w-e-toolbar-color);height:10px;width:10px}.w-e-modal .babel-container{display:block;margin-bottom:15px}.w-e-modal .babel-container span{display:block;margin-bottom:10px}.w-e-modal .button-container{margin-bottom:15px}.w-e-modal button{background-color:var(--w-e-modal-button-bg-color);border:1px solid var(--w-e-modal-button-border-color);border-radius:4px;color:var(--w-e-toolbar-color);cursor:pointer;font-weight:400;height:32px;padding:4.5px 15px;text-align:center;touch-action:manipulation;transition:all .3s cubic-bezier(.645,.045,.355,1);-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.w-e-modal input[type=number],.w-e-modal input[type=text],.w-e-modal textarea{font-feature-settings:"tnum";background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-modal-button-border-color);border-radius:4px;color:var(--w-e-toolbar-color);font-variant:tabular-nums;padding:4.5px 11px;transition:all .3s;width:100%}.w-e-modal textarea{min-height:60px}body .w-e-modal,body .w-e-modal *{box-sizing:border-box}.w-e-progress-bar{background-color:var(--w-e-textarea-handler-bg-color);height:1px;position:absolute;transition:width .3s;width:0}.w-e-full-screen-container{bottom:0!important;display:flex!important;flex-direction:column!important;height:100%!important;left:0!important;margin:0!important;padding:0!important;position:fixed;right:0!important;top:0!important;width:100%!important}.w-e-full-screen-container [data-w-e-textarea=true]{flex:1!important}.w-e-text-container [data-slate-editor] code{background-color:var(--w-e-textarea-slight-bg-color);border-radius:3px;font-family:monospace;padding:3px}.w-e-panel-content-color{list-style:none;text-align:left;width:230px}.w-e-panel-content-color li{border:1px solid var(--w-e-toolbar-bg-color);border-radius:3px;cursor:pointer;display:inline-block;padding:2px}.w-e-panel-content-color li:hover{border-color:var(--w-e-toolbar-color)}.w-e-panel-content-color li .color-block{border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;height:17px;width:17px}.w-e-panel-content-color .active{border-color:var(--w-e-toolbar-color)}.w-e-panel-content-color .clear{line-height:1.5;margin-bottom:5px;width:100%}.w-e-panel-content-color .clear svg{height:16px;margin-bottom:-4px;width:16px}.w-e-text-container [data-slate-editor] blockquote{background-color:var(--w-e-textarea-slight-bg-color);border-left:8px solid var(--w-e-textarea-selected-border-color);display:block;font-size:100%;line-height:1.5;margin:10px 0;padding:10px}.w-e-panel-content-emotion{font-size:20px;list-style:none;text-align:left;width:300px}.w-e-panel-content-emotion li{border-radius:3px;cursor:pointer;display:inline-block;padding:0 5px}.w-e-panel-content-emotion li:hover{background-color:var(--w-e-textarea-slight-bg-color)}.w-e-textarea-divider{border-radius:3px;margin:20px auto;padding:20px}.w-e-textarea-divider hr{background-color:var(--w-e-textarea-border-color);border:0;display:block;height:1px}.w-e-text-container [data-slate-editor] pre>code{background-color:var(--w-e-textarea-slight-bg-color);border:1px solid var(--w-e-textarea-slight-border-color);border-radius:4px;display:block;font-size:14px;padding:10px;text-indent:0}.w-e-text-container [data-slate-editor] .w-e-image-container{display:inline-block;margin:0 3px}.w-e-text-container [data-slate-editor] .w-e-image-container:hover{box-shadow:0 0 0 2px var(--w-e-textarea-selected-border-color)}.w-e-text-container [data-slate-editor] .w-e-selected-image-container{overflow:hidden;position:relative}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .w-e-image-dragger{background-color:var(--w-e-textarea-handler-bg-color);height:7px;position:absolute;width:7px}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .left-top{cursor:nwse-resize;left:0;top:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .right-top{cursor:nesw-resize;right:0;top:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .left-bottom{bottom:0;cursor:nesw-resize;left:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .right-bottom{bottom:0;cursor:nwse-resize;right:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container:hover,.w-e-text-container [contenteditable=false] .w-e-image-container:hover{box-shadow:none}.w-e-text-container [data-slate-editor] .table-container{border:1px dashed var(--w-e-textarea-border-color);border-radius:5px;margin-top:10px;overflow-x:auto;padding:10px;width:100%}.w-e-text-container [data-slate-editor] table{border-collapse:collapse}.w-e-text-container [data-slate-editor] table td,.w-e-text-container [data-slate-editor] table th{border:1px solid var(--w-e-textarea-border-color);line-height:1.5;min-width:30px;padding:3px 5px;text-align:left}.w-e-text-container [data-slate-editor] table th{background-color:var(--w-e-textarea-slight-bg-color);font-weight:700;text-align:center}.w-e-panel-content-table{background-color:var(--w-e-toolbar-bg-color)}.w-e-panel-content-table table{border-collapse:collapse}.w-e-panel-content-table td{border:1px solid var(--w-e-toolbar-border-color);cursor:pointer;height:15px;padding:3px 5px;width:20px}.w-e-panel-content-table td.active{background-color:var(--w-e-toolbar-active-bg-color)}.w-e-textarea-video-container{background-image:linear-gradient(45deg,#eee 25%,transparent 0,transparent 75%,#eee 0,#eee),linear-gradient(45deg,#eee 25%,#fff 0,#fff 75%,#eee 0,#eee);background-position:0 0,10px 10px;background-size:20px 20px;border:1px dashed var(--w-e-textarea-border-color);border-radius:5px;margin:10px auto 0;padding:10px 0;text-align:center}.w-e-text-container [data-slate-editor] pre>code{word-wrap:normal;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;-webkit-hyphens:none;hyphens:none;line-height:1.5;margin:.5em 0;overflow:auto;padding:1em;-moz-tab-size:4;-o-tab-size:4;tab-size:4;text-align:left;text-shadow:0 1px #fff;white-space:pre;word-break:normal;word-spacing:normal}.w-e-text-container [data-slate-editor] pre>code .token.cdata,.w-e-text-container [data-slate-editor] pre>code .token.comment,.w-e-text-container [data-slate-editor] pre>code .token.doctype,.w-e-text-container [data-slate-editor] pre>code .token.prolog{color:#708090}.w-e-text-container [data-slate-editor] pre>code .token.punctuation{color:#999}.w-e-text-container [data-slate-editor] pre>code .token.namespace{opacity:.7}.w-e-text-container [data-slate-editor] pre>code .token.boolean,.w-e-text-container [data-slate-editor] pre>code .token.constant,.w-e-text-container [data-slate-editor] pre>code .token.deleted,.w-e-text-container [data-slate-editor] pre>code .token.number,.w-e-text-container [data-slate-editor] pre>code .token.property,.w-e-text-container [data-slate-editor] pre>code .token.symbol,.w-e-text-container [data-slate-editor] pre>code .token.tag{color:#905}.w-e-text-container [data-slate-editor] pre>code .token.attr-name,.w-e-text-container [data-slate-editor] pre>code .token.builtin,.w-e-text-container [data-slate-editor] pre>code .token.char,.w-e-text-container [data-slate-editor] pre>code .token.inserted,.w-e-text-container [data-slate-editor] pre>code .token.selector,.w-e-text-container [data-slate-editor] pre>code .token.string{color:#690}.w-e-text-container [data-slate-editor] pre>code .language-css .token.string,.w-e-text-container [data-slate-editor] pre>code .style .token.string,.w-e-text-container [data-slate-editor] pre>code .token.entity,.w-e-text-container [data-slate-editor] pre>code .token.operator,.w-e-text-container [data-slate-editor] pre>code .token.url{color:#9a6e3a}.w-e-text-container [data-slate-editor] pre>code .token.atrule,.w-e-text-container [data-slate-editor] pre>code .token.attr-value,.w-e-text-container [data-slate-editor] pre>code .token.keyword{color:#07a}.w-e-text-container [data-slate-editor] pre>code .token.class-name,.w-e-text-container [data-slate-editor] pre>code .token.function{color:#dd4a68}.w-e-text-container [data-slate-editor] pre>code .token.important,.w-e-text-container [data-slate-editor] pre>code .token.regex,.w-e-text-container [data-slate-editor] pre>code .token.variable{color:#e90}.w-e-text-container [data-slate-editor] pre>code .token.bold,.w-e-text-container [data-slate-editor] pre>code .token.important{font-weight:700}.w-e-text-container [data-slate-editor] pre>code .token.italic{font-style:italic}.w-e-text-container [data-slate-editor] pre>code .token.entity{cursor:help}.icon-select-container[data-v-c90a1b8f]{position:relative;height:600px;display:flex;flex-direction:column}.icon-select-container .search-bar[data-v-c90a1b8f]{position:sticky;top:0;z-index:1;padding:12px;background:#fff;border-bottom:1px solid #f0f0f0}.icon-select-container .icon-content[data-v-c90a1b8f]{flex:1;overflow-y:auto;padding:12px}.icon-select-container .icon-groups .icon-group[data-v-c90a1b8f]{margin-bottom:4px}.icon-select-container .icon-groups .icon-group .group-title[data-v-c90a1b8f]{font-size:16px;font-weight:500;margin-bottom:2px;color:#1f1f1f}.icon-select-container .icon-groups .icon-group .icon-grid[data-v-c90a1b8f]{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:2px}.icon-select-container .icon-groups .icon-group .icon-grid .icon-item[data-v-c90a1b8f]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2px 20px;border-radius:4px;cursor:pointer;transition:all .3s}.icon-select-container .icon-groups .icon-group .icon-grid .icon-item[data-v-c90a1b8f]:hover{border-color:#1890ff;background-color:#e6f7ff}.icon-select-container .icon-groups .icon-group .icon-grid .icon-item.icon-selected[data-v-c90a1b8f]{border-color:#1890ff;background-color:#1677ff;color:#fff}.icon-select-container .icon-groups .icon-group .icon-grid .icon-item.icon-selected .icon-name[data-v-c90a1b8f]{color:#fff}.icon-select-container .icon-groups .icon-group .icon-grid .icon-item .anticon[data-v-c90a1b8f]{font-size:24px;margin-bottom:8px}.icon-select-container .icon-groups .icon-group .icon-grid .icon-item .icon-name[data-v-c90a1b8f]{font-size:12px;color:#666;text-align:center;word-break:break-all}.ant-calendar-picker[data-v-b6209cd7]{width:100%!important}
|
|
1
|
+
.my-card[data-v-25d1dc13],.my-card[data-v-52b515e0]{padding:20px;background-color:#f6f7f9}.card[data-v-f8102d16]{overflow:auto;max-height:300px;background:#f2f5f7}.condition-group[data-v-f8102d16]{padding:5px}.range[data-v-f8102d16]{margin-top:5px}.close-icon[data-v-f8102d16]{width:15px;margin-top:5px;margin-left:5px;color:red}.search-bar[data-v-f8102d16]{background:#f2f5f7;text-align:right}[data-v-f8102d16] .divider .ant-divider{margin:0}.cards[data-v-1f94c291] .ant-card-head{padding:0 8px;min-height:44px;background-color:#00000005}.num{display:inline-block}.dropdown{display:none}.table:hover .dropdown{display:inline-block}.table:hover .num{display:none}.collapses .ant-collapse-item .ant-collapse-content .ant-collapse-content-box{padding:0}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgba(0,0,0,0);--un-ring-shadow:0 0 rgba(0,0,0,0);--un-shadow-inset: ;--un-shadow:0 0 rgba(0,0,0,0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgba(0,0,0,0);--un-ring-shadow:0 0 rgba(0,0,0,0);--un-shadow-inset: ;--un-shadow:0 0 rgba(0,0,0,0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.grid{display:grid}.block{display:block}.inline-block{display:inline-block}.hidden{display:none}.flex{display:flex}.table{display:table}.resize{resize:both}.break-all{word-break:break-all}.b,.border{border-width:1px}.px{padding-left:1rem;padding-right:1rem}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.attribute-table .ant-table-footer{padding:5px}.ant-calendar-picker[data-v-d71f8072]{width:100%!important}:root,:host{--w-e-textarea-bg-color: #fff;--w-e-textarea-color: #333;--w-e-textarea-border-color: #ccc;--w-e-textarea-slight-border-color: #e8e8e8;--w-e-textarea-slight-color: #d4d4d4;--w-e-textarea-slight-bg-color: #f5f2f0;--w-e-textarea-selected-border-color: #B4D5FF;--w-e-textarea-handler-bg-color: #4290f7;--w-e-toolbar-color: #595959;--w-e-toolbar-bg-color: #fff;--w-e-toolbar-active-color: #333;--w-e-toolbar-active-bg-color: #f1f1f1;--w-e-toolbar-disabled-color: #999;--w-e-toolbar-border-color: #e8e8e8;--w-e-modal-button-bg-color: #fafafa;--w-e-modal-button-border-color: #d9d9d9}.w-e-text-container *,.w-e-toolbar *{box-sizing:border-box;margin:0;outline:none;padding:0}.w-e-text-container blockquote,.w-e-text-container li,.w-e-text-container p,.w-e-text-container td,.w-e-text-container th,.w-e-toolbar *{line-height:1.5}.w-e-text-container{background-color:var(--w-e-textarea-bg-color);color:var(--w-e-textarea-color);height:100%;position:relative}.w-e-text-container .w-e-scroll{-webkit-overflow-scrolling:touch;height:100%}.w-e-text-container [data-slate-editor]{word-wrap:break-word;border-top:1px solid transparent;min-height:100%;outline:0;padding:0 10px;white-space:pre-wrap}.w-e-text-container [data-slate-editor] p{margin:15px 0}.w-e-text-container [data-slate-editor] h1,.w-e-text-container [data-slate-editor] h2,.w-e-text-container [data-slate-editor] h3,.w-e-text-container [data-slate-editor] h4,.w-e-text-container [data-slate-editor] h5{margin:20px 0}.w-e-text-container [data-slate-editor] img{cursor:default;display:inline!important;max-width:100%;min-height:20px;min-width:20px}.w-e-text-container [data-slate-editor] span{text-indent:0}.w-e-text-container [data-slate-editor] [data-selected=true]{box-shadow:0 0 0 2px var(--w-e-textarea-selected-border-color)}.w-e-text-placeholder{font-style:italic;left:10px;top:17px;width:90%}.w-e-max-length-info,.w-e-text-placeholder{color:var(--w-e-textarea-slight-color);pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.w-e-max-length-info{bottom:.5em;right:1em}.w-e-bar{background-color:var(--w-e-toolbar-bg-color);color:var(--w-e-toolbar-color);font-size:14px;padding:0 5px}.w-e-bar svg{fill:var(--w-e-toolbar-color);height:14px;width:14px}.w-e-bar-show{display:flex}.w-e-bar-hidden{display:none}.w-e-hover-bar{border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 5px #0000001f;position:absolute}.w-e-toolbar{flex-wrap:wrap;position:relative}.w-e-bar-divider{background-color:var(--w-e-toolbar-border-color);display:inline-flex;height:40px;margin:0 5px;width:1px}.w-e-bar-item{display:flex;height:40px;padding:4px;position:relative;text-align:center}.w-e-bar-item,.w-e-bar-item button{align-items:center;justify-content:center}.w-e-bar-item button{background:transparent;border:none;color:var(--w-e-toolbar-color);cursor:pointer;display:inline-flex;height:32px;overflow:hidden;padding:0 8px;white-space:nowrap}.w-e-bar-item button:hover{background-color:var(--w-e-toolbar-active-bg-color);color:var(--w-e-toolbar-active-color)}.w-e-bar-item button .title{margin-left:5px}.w-e-bar-item .active{background-color:var(--w-e-toolbar-active-bg-color);color:var(--w-e-toolbar-active-color)}.w-e-bar-item .disabled{color:var(--w-e-toolbar-disabled-color);cursor:not-allowed}.w-e-bar-item .disabled svg{fill:var(--w-e-toolbar-disabled-color)}.w-e-bar-item .disabled:hover{background-color:var(--w-e-toolbar-bg-color);color:var(--w-e-toolbar-disabled-color)}.w-e-bar-item .disabled:hover svg{fill:var(--w-e-toolbar-disabled-color)}.w-e-menu-tooltip-v5:before{background-color:var(--w-e-toolbar-active-color);border-radius:5px;color:var(--w-e-toolbar-bg-color);content:attr(data-tooltip);font-size:.75em;opacity:0;padding:5px 10px;position:absolute;text-align:center;top:40px;transition:opacity .6s;visibility:hidden;white-space:pre;z-index:1}.w-e-menu-tooltip-v5:after{border:5px solid transparent;border-bottom:5px solid var(--w-e-toolbar-active-color);content:"";opacity:0;position:absolute;top:30px;transition:opacity .6s;visibility:hidden}.w-e-menu-tooltip-v5:hover:after,.w-e-menu-tooltip-v5:hover:before{opacity:1;visibility:visible}.w-e-menu-tooltip-v5.tooltip-right:before{left:100%;top:10px}.w-e-menu-tooltip-v5.tooltip-right:after{border-bottom-color:transparent;border-left-color:transparent;border-right-color:var(--w-e-toolbar-active-color);border-top-color:transparent;left:100%;margin-left:-10px;top:16px}.w-e-bar-item-group .w-e-bar-item-menus-container{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;display:none;left:0;margin-top:40px;position:absolute;top:0;z-index:1}.w-e-bar-item-group:hover .w-e-bar-item-menus-container{display:block}.w-e-select-list{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;left:0;margin-top:40px;max-height:350px;min-width:100px;overflow-y:auto;position:absolute;top:0;z-index:1}.w-e-select-list ul{line-height:1;list-style:none}.w-e-select-list ul .selected{background-color:var(--w-e-toolbar-active-bg-color)}.w-e-select-list ul li{cursor:pointer;padding:7px 0 7px 25px;position:relative;text-align:left;white-space:nowrap}.w-e-select-list ul li:hover{background-color:var(--w-e-toolbar-active-bg-color)}.w-e-select-list ul li svg{left:0;margin-left:5px;margin-top:-7px;position:absolute;top:50%}.w-e-bar-bottom .w-e-select-list{bottom:0;margin-bottom:40px;margin-top:0;top:inherit}.w-e-drop-panel{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;margin-top:40px;min-width:200px;padding:10px;position:absolute;top:0;z-index:1}.w-e-bar-bottom .w-e-drop-panel{bottom:0;margin-bottom:40px;margin-top:0;top:inherit}.w-e-modal{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;color:var(--w-e-toolbar-color);font-size:14px;min-height:40px;min-width:100px;padding:20px 15px 0;position:absolute;text-align:left;z-index:1}.w-e-modal .btn-close{cursor:pointer;line-height:1;padding:5px;position:absolute;right:8px;top:7px}.w-e-modal .btn-close svg{fill:var(--w-e-toolbar-color);height:10px;width:10px}.w-e-modal .babel-container{display:block;margin-bottom:15px}.w-e-modal .babel-container span{display:block;margin-bottom:10px}.w-e-modal .button-container{margin-bottom:15px}.w-e-modal button{background-color:var(--w-e-modal-button-bg-color);border:1px solid var(--w-e-modal-button-border-color);border-radius:4px;color:var(--w-e-toolbar-color);cursor:pointer;font-weight:400;height:32px;padding:4.5px 15px;text-align:center;touch-action:manipulation;transition:all .3s cubic-bezier(.645,.045,.355,1);-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.w-e-modal input[type=number],.w-e-modal input[type=text],.w-e-modal textarea{font-feature-settings:"tnum";background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-modal-button-border-color);border-radius:4px;color:var(--w-e-toolbar-color);font-variant:tabular-nums;padding:4.5px 11px;transition:all .3s;width:100%}.w-e-modal textarea{min-height:60px}body .w-e-modal,body .w-e-modal *{box-sizing:border-box}.w-e-progress-bar{background-color:var(--w-e-textarea-handler-bg-color);height:1px;position:absolute;transition:width .3s;width:0}.w-e-full-screen-container{bottom:0!important;display:flex!important;flex-direction:column!important;height:100%!important;left:0!important;margin:0!important;padding:0!important;position:fixed;right:0!important;top:0!important;width:100%!important}.w-e-full-screen-container [data-w-e-textarea=true]{flex:1!important}.w-e-text-container [data-slate-editor] code{background-color:var(--w-e-textarea-slight-bg-color);border-radius:3px;font-family:monospace;padding:3px}.w-e-panel-content-color{list-style:none;text-align:left;width:230px}.w-e-panel-content-color li{border:1px solid var(--w-e-toolbar-bg-color);border-radius:3px;cursor:pointer;display:inline-block;padding:2px}.w-e-panel-content-color li:hover{border-color:var(--w-e-toolbar-color)}.w-e-panel-content-color li .color-block{border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;height:17px;width:17px}.w-e-panel-content-color .active{border-color:var(--w-e-toolbar-color)}.w-e-panel-content-color .clear{line-height:1.5;margin-bottom:5px;width:100%}.w-e-panel-content-color .clear svg{height:16px;margin-bottom:-4px;width:16px}.w-e-text-container [data-slate-editor] blockquote{background-color:var(--w-e-textarea-slight-bg-color);border-left:8px solid var(--w-e-textarea-selected-border-color);display:block;font-size:100%;line-height:1.5;margin:10px 0;padding:10px}.w-e-panel-content-emotion{font-size:20px;list-style:none;text-align:left;width:300px}.w-e-panel-content-emotion li{border-radius:3px;cursor:pointer;display:inline-block;padding:0 5px}.w-e-panel-content-emotion li:hover{background-color:var(--w-e-textarea-slight-bg-color)}.w-e-textarea-divider{border-radius:3px;margin:20px auto;padding:20px}.w-e-textarea-divider hr{background-color:var(--w-e-textarea-border-color);border:0;display:block;height:1px}.w-e-text-container [data-slate-editor] pre>code{background-color:var(--w-e-textarea-slight-bg-color);border:1px solid var(--w-e-textarea-slight-border-color);border-radius:4px;display:block;font-size:14px;padding:10px;text-indent:0}.w-e-text-container [data-slate-editor] .w-e-image-container{display:inline-block;margin:0 3px}.w-e-text-container [data-slate-editor] .w-e-image-container:hover{box-shadow:0 0 0 2px var(--w-e-textarea-selected-border-color)}.w-e-text-container [data-slate-editor] .w-e-selected-image-container{overflow:hidden;position:relative}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .w-e-image-dragger{background-color:var(--w-e-textarea-handler-bg-color);height:7px;position:absolute;width:7px}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .left-top{cursor:nwse-resize;left:0;top:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .right-top{cursor:nesw-resize;right:0;top:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .left-bottom{bottom:0;cursor:nesw-resize;left:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .right-bottom{bottom:0;cursor:nwse-resize;right:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container:hover,.w-e-text-container [contenteditable=false] .w-e-image-container:hover{box-shadow:none}.w-e-text-container [data-slate-editor] .table-container{border:1px dashed var(--w-e-textarea-border-color);border-radius:5px;margin-top:10px;overflow-x:auto;padding:10px;width:100%}.w-e-text-container [data-slate-editor] table{border-collapse:collapse}.w-e-text-container [data-slate-editor] table td,.w-e-text-container [data-slate-editor] table th{border:1px solid var(--w-e-textarea-border-color);line-height:1.5;min-width:30px;padding:3px 5px;text-align:left}.w-e-text-container [data-slate-editor] table th{background-color:var(--w-e-textarea-slight-bg-color);font-weight:700;text-align:center}.w-e-panel-content-table{background-color:var(--w-e-toolbar-bg-color)}.w-e-panel-content-table table{border-collapse:collapse}.w-e-panel-content-table td{border:1px solid var(--w-e-toolbar-border-color);cursor:pointer;height:15px;padding:3px 5px;width:20px}.w-e-panel-content-table td.active{background-color:var(--w-e-toolbar-active-bg-color)}.w-e-textarea-video-container{background-image:linear-gradient(45deg,#eee 25%,transparent 0,transparent 75%,#eee 0,#eee),linear-gradient(45deg,#eee 25%,#fff 0,#fff 75%,#eee 0,#eee);background-position:0 0,10px 10px;background-size:20px 20px;border:1px dashed var(--w-e-textarea-border-color);border-radius:5px;margin:10px auto 0;padding:10px 0;text-align:center}.w-e-text-container [data-slate-editor] pre>code{word-wrap:normal;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;-webkit-hyphens:none;hyphens:none;line-height:1.5;margin:.5em 0;overflow:auto;padding:1em;-moz-tab-size:4;-o-tab-size:4;tab-size:4;text-align:left;text-shadow:0 1px #fff;white-space:pre;word-break:normal;word-spacing:normal}.w-e-text-container [data-slate-editor] pre>code .token.cdata,.w-e-text-container [data-slate-editor] pre>code .token.comment,.w-e-text-container [data-slate-editor] pre>code .token.doctype,.w-e-text-container [data-slate-editor] pre>code .token.prolog{color:#708090}.w-e-text-container [data-slate-editor] pre>code .token.punctuation{color:#999}.w-e-text-container [data-slate-editor] pre>code .token.namespace{opacity:.7}.w-e-text-container [data-slate-editor] pre>code .token.boolean,.w-e-text-container [data-slate-editor] pre>code .token.constant,.w-e-text-container [data-slate-editor] pre>code .token.deleted,.w-e-text-container [data-slate-editor] pre>code .token.number,.w-e-text-container [data-slate-editor] pre>code .token.property,.w-e-text-container [data-slate-editor] pre>code .token.symbol,.w-e-text-container [data-slate-editor] pre>code .token.tag{color:#905}.w-e-text-container [data-slate-editor] pre>code .token.attr-name,.w-e-text-container [data-slate-editor] pre>code .token.builtin,.w-e-text-container [data-slate-editor] pre>code .token.char,.w-e-text-container [data-slate-editor] pre>code .token.inserted,.w-e-text-container [data-slate-editor] pre>code .token.selector,.w-e-text-container [data-slate-editor] pre>code .token.string{color:#690}.w-e-text-container [data-slate-editor] pre>code .language-css .token.string,.w-e-text-container [data-slate-editor] pre>code .style .token.string,.w-e-text-container [data-slate-editor] pre>code .token.entity,.w-e-text-container [data-slate-editor] pre>code .token.operator,.w-e-text-container [data-slate-editor] pre>code .token.url{color:#9a6e3a}.w-e-text-container [data-slate-editor] pre>code .token.atrule,.w-e-text-container [data-slate-editor] pre>code .token.attr-value,.w-e-text-container [data-slate-editor] pre>code .token.keyword{color:#07a}.w-e-text-container [data-slate-editor] pre>code .token.class-name,.w-e-text-container [data-slate-editor] pre>code .token.function{color:#dd4a68}.w-e-text-container [data-slate-editor] pre>code .token.important,.w-e-text-container [data-slate-editor] pre>code .token.regex,.w-e-text-container [data-slate-editor] pre>code .token.variable{color:#e90}.w-e-text-container [data-slate-editor] pre>code .token.bold,.w-e-text-container [data-slate-editor] pre>code .token.important{font-weight:700}.w-e-text-container [data-slate-editor] pre>code .token.italic{font-style:italic}.w-e-text-container [data-slate-editor] pre>code .token.entity{cursor:help}.icon-select-container[data-v-c90a1b8f]{position:relative;height:600px;display:flex;flex-direction:column}.icon-select-container .search-bar[data-v-c90a1b8f]{position:sticky;top:0;z-index:1;padding:12px;background:#fff;border-bottom:1px solid #f0f0f0}.icon-select-container .icon-content[data-v-c90a1b8f]{flex:1;overflow-y:auto;padding:12px}.icon-select-container .icon-groups .icon-group[data-v-c90a1b8f]{margin-bottom:4px}.icon-select-container .icon-groups .icon-group .group-title[data-v-c90a1b8f]{font-size:16px;font-weight:500;margin-bottom:2px;color:#1f1f1f}.icon-select-container .icon-groups .icon-group .icon-grid[data-v-c90a1b8f]{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:2px}.icon-select-container .icon-groups .icon-group .icon-grid .icon-item[data-v-c90a1b8f]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2px 20px;border-radius:4px;cursor:pointer;transition:all .3s}.icon-select-container .icon-groups .icon-group .icon-grid .icon-item[data-v-c90a1b8f]:hover{border-color:#1890ff;background-color:#e6f7ff}.icon-select-container .icon-groups .icon-group .icon-grid .icon-item.icon-selected[data-v-c90a1b8f]{border-color:#1890ff;background-color:#1677ff;color:#fff}.icon-select-container .icon-groups .icon-group .icon-grid .icon-item.icon-selected .icon-name[data-v-c90a1b8f]{color:#fff}.icon-select-container .icon-groups .icon-group .icon-grid .icon-item .anticon[data-v-c90a1b8f]{font-size:24px;margin-bottom:8px}.icon-select-container .icon-groups .icon-group .icon-grid .icon-item .icon-name[data-v-c90a1b8f]{font-size:12px;color:#666;text-align:center;word-break:break-all}.ant-calendar-picker[data-v-b6209cd7]{width:100%!important}
|
package/dist/utils/function.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { l as h } from "../lodash-14d7cb6d.js";
|
|
2
|
-
import { message as
|
|
2
|
+
import { message as _ } from "ant-design-vue";
|
|
3
3
|
import i from "moment";
|
|
4
|
-
const N = (e) => (e && (e = e.substring(0, 5)), e), k = (e) => (e && (e = e.substring(11, 16)), e), M = (e) => (e && (e = e.substring(11, 19)), e), A = (e) => (e && (e = e.substring(0, 7)), e),
|
|
4
|
+
const N = (e) => (e && (e = e.substring(0, 5)), e), k = (e) => (e && (e = e.substring(11, 16)), e), M = (e) => (e && (e = e.substring(11, 19)), e), A = (e) => (e && (e = e.substring(0, 7)), e), b = (e) => e == "1900-01-01" ? "期初" : (e && (e = e.substring(0, 4) + "年" + e.substring(5, 7) + "月"), e), D = (e) => (e && (/* @__PURE__ */ new Date()).getFullYear().toString() == e.substring(0, 4) ? e = e.substring(5, 10) : e && (e = e.substring(0, 10)), e), j = (e) => (e && (e = e.substring(0, 10)), e), C = (e) => (e && (/* @__PURE__ */ new Date()).getFullYear().toString() == e.substring(0, 4) ? e = e.substring(5, 16) : e && (e = e.substring(0, 16)), e), E = (e) => (e && (/* @__PURE__ */ new Date()).getFullYear().toString() == e.substring(0, 4) ? e = e.substring(5, 19) : e && (e = e.substring(0, 19)), e), L = (e) => (e && (e = e.substring(0, 19)), e), O = (e) => h.isNumber(e) ? Number(e.toFixed(2)) == 0 ? 0 : e.toFixed(2) : "", T = (e) => h.isNumber(e) ? Number(e.toFixed(0)) == 0 ? 0 : e.toFixed(0) : "", Y = (e) => h.isNumber(e) ? Number(e.toFixed(3)) == 0 ? 0 : e.toFixed(3) : "", R = (e) => e.replace(/(^\s*)|(\s*$)/g, ""), B = (e) => h.isNumber(e) ? Number(e.toFixed(6)) == 0 ? 0 : e.toFixed(6) : "", q = (e) => {
|
|
5
5
|
let s = e;
|
|
6
6
|
if (e > 60) {
|
|
7
7
|
let n = e / 60;
|
|
@@ -100,13 +100,13 @@ const N = (e) => (e && (e = e.substring(0, 5)), e), k = (e) => (e && (e = e.subs
|
|
|
100
100
|
let s = "", n = "复制成功";
|
|
101
101
|
e != null && e.message ? (s = e.val, n = e.message) : s = e;
|
|
102
102
|
const t = document.createElement("input");
|
|
103
|
-
t.setAttribute("readonly", "readonly"), t.setAttribute("value", s), document.body.appendChild(t), t.select(), document.execCommand("copy") && (document.execCommand("copy"),
|
|
103
|
+
t.setAttribute("readonly", "readonly"), t.setAttribute("value", s), document.body.appendChild(t), t.select(), document.execCommand("copy") && (document.execCommand("copy"), _.info(n)), document.body.removeChild(t);
|
|
104
104
|
}, H = (e) => {
|
|
105
105
|
const s = {};
|
|
106
106
|
return Object.keys(e).forEach((n) => {
|
|
107
107
|
e[n] !== null && e[n] !== "" && JSON.stringify(e[n]) !== "[]" && (s[n] = e[n]);
|
|
108
108
|
}), s;
|
|
109
|
-
}, p = (e) => e != null && e !== "", I = (e, s) => (s == "getPeriod" && (e.group_info.display_name =
|
|
109
|
+
}, p = (e) => e != null && e !== "", I = (e, s) => (s == "getPeriod" && (e.group_info.display_name = b(e.group_info.display_name)), e), Q = ({ record: e }) => {
|
|
110
110
|
var n;
|
|
111
111
|
const s = {
|
|
112
112
|
props: {}
|
|
@@ -147,7 +147,8 @@ const N = (e) => (e && (e = e.substring(0, 5)), e), k = (e) => (e && (e = e.subs
|
|
|
147
147
|
not_blank_not_null: "是否非空",
|
|
148
148
|
json_list_not_blank_not_null: "是否非空",
|
|
149
149
|
json_list_is_blank_is_null: "是否为空",
|
|
150
|
-
is_or_not_blank_or_null: "是否为空"
|
|
150
|
+
is_or_not_blank_or_null: "是否为空",
|
|
151
|
+
is_or_not_null: "是否为空"
|
|
151
152
|
};
|
|
152
153
|
return e == "input" && s == "in" ? "等于" : n[s];
|
|
153
154
|
}, S = (e) => {
|
|
@@ -222,7 +223,7 @@ export {
|
|
|
222
223
|
q as format_datetime_hh_mm,
|
|
223
224
|
V as format_ms_hh_mm,
|
|
224
225
|
D as getDate,
|
|
225
|
-
|
|
226
|
+
b as getDateMonth,
|
|
226
227
|
C as getDateTime,
|
|
227
228
|
j as getFullDate,
|
|
228
229
|
E as getFullDateTime,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"function.js","sources":["../../src/utils/function.ts"],"sourcesContent":["import { isNumber } from 'lodash';\nimport { message } from 'ant-design-vue';\nimport moment from 'moment';\n\nexport const getTime = (time: any) => {\n if (time) {\n time = time.substring(0, 5);\n }\n return time;\n};\nexport const getTime2 = (time: any) => {\n if (time) {\n time = time.substring(11, 16);\n }\n return time;\n};\nexport const getTime3 = (time: any) => {\n if (time) {\n time = time.substring(11, 19);\n }\n return time;\n};\nexport const getMonth = (time: any) => {\n if (time) {\n time = time.substring(0, 7);\n }\n return time;\n};\nexport const getDateMonth = (time: any) => {\n if (time == '1900-01-01') {\n return '期初';\n } else if (time) {\n time = time.substring(0, 4) + '年' + time.substring(5, 7) + '月';\n }\n return time;\n};\nexport const getDate = (time: any) => {\n if (time && new Date().getFullYear().toString() == time.substring(0, 4)) {\n time = time.substring(5, 10);\n } else if (time) {\n time = time.substring(0, 10);\n }\n return time;\n};\nexport const getFullDate = (time: any) => {\n if (time) {\n time = time.substring(0, 10);\n }\n return time;\n};\nexport const getDateTime = (time: any) => {\n if (time && new Date().getFullYear().toString() == time.substring(0, 4)) {\n time = time.substring(5, 16);\n } else if (time) {\n time = time.substring(0, 16);\n }\n return time;\n};\nexport const getFullDateTime = (time: any) => {\n if (time && new Date().getFullYear().toString() == time.substring(0, 4)) {\n time = time.substring(5, 19);\n } else if (time) {\n time = time.substring(0, 19);\n }\n return time;\n};\nexport const getFullYearDateTime = (time: any) => {\n if (time) {\n time = time.substring(0, 19);\n }\n return time;\n};\nexport const toFixed2 = (num: any) => {\n if (isNumber(num)) {\n if (Number(num.toFixed(2)) == 0) {\n return 0;\n } else {\n return num.toFixed(2);\n }\n } else {\n return '';\n }\n};\nexport const toFixed0 = (num: any) => {\n if (isNumber(num)) {\n if (Number(num.toFixed(0)) == 0) {\n return 0;\n } else {\n return num.toFixed(0);\n }\n } else {\n return '';\n }\n};\nexport const toFixed3 = (num: any) => {\n if (isNumber(num)) {\n if (Number(num.toFixed(3)) == 0) {\n return 0;\n } else {\n return num.toFixed(3);\n }\n } else {\n return '';\n }\n};\n// 去掉字符串前后的空格\nexport const trim = (str: any) => {\n return str.replace(/(^\\s*)|(\\s*$)/g, '');\n};\nexport const toFixed6 = (num: any) => {\n if (isNumber(num)) {\n if (Number(num.toFixed(6)) == 0) {\n return 0;\n } else {\n return num.toFixed(6);\n }\n } else {\n return '';\n }\n};\n// 转换时分秒\nexport const format_datetime_hh_mm = (second_time: any) => {\n let time: any = second_time;\n if (second_time > 60) {\n let min = second_time / 60;\n time = Math.floor(min) + '分';\n if (min > 60) {\n min = (second_time / 60) % 60;\n let hour = second_time / 60 / 60;\n time = Math.floor(hour) + '小时' + Math.floor(min) + '分';\n if (hour > 24) {\n hour = (second_time / 60 / 60) % 24;\n const day = second_time / 60 / 60 / 24;\n time = Math.floor(day) + '天' + Math.floor(hour) + '小时' + Math.floor(min) + '分';\n }\n }\n } else {\n time = second_time + '秒';\n }\n return time;\n};\n\n// 转换时分秒\nexport const format_ms_hh_mm = milliseconds => {\n const seconds = Math.floor(milliseconds / 1000);\n const minutes = Math.floor(seconds / 60);\n const hours = Math.floor(minutes / 60);\n\n const remainingSeconds = seconds % 60;\n const remainingMinutes = minutes % 60;\n\n let formattedTime = '';\n\n if (hours > 0) {\n formattedTime += `${hours.toString().padStart(2, '0')}:`;\n }\n formattedTime += `${remainingMinutes.toString().padStart(2, '0')}:${remainingSeconds\n .toString()\n .padStart(2, '0')}`;\n\n // 只添加毫秒部分如果毫秒数不为0\n if (milliseconds % 1000 !== 0) {\n formattedTime += `.${milliseconds.toString().slice(-2)}`;\n }\n return formattedTime;\n};\n// 字段对应错误————>转化正确\nexport const getObjList = (api_fields: any, record: any) => {\n const obj: any = {};\n for (const key in api_fields) {\n if (record[api_fields[key] as string]) {\n obj[key] = record[api_fields[key] as string];\n }\n }\n return obj;\n};\nexport const getObjListBySelectedRowKeys = (\n api_fields: any,\n dataSource: any[],\n selectedRowKeys: any[],\n) => {\n const obj: any = {};\n for (const key in api_fields) {\n obj[key] = dataSource\n .filter(item => selectedRowKeys.includes(item.id))\n .map(item => item[api_fields[key] as string]);\n }\n return obj;\n};\n// 时间区间格式转化 数组-->字符串\nexport const getRangePicker = (api_fields: any, record: any) => {\n const obj: any = {};\n for (const key in api_fields) {\n if (record[api_fields[key] as string]) {\n obj[key] = record[api_fields[key] as string].join(',');\n }\n }\n return obj;\n};\n\n// 小数转整数--> 过钢量是小数,单位为吨。转化为整数。\nexport const getTon = (kgnum: number) => {\n return Math.floor(kgnum);\n};\n\nexport const get_tag_color_by_slots = ({ column, text }) => {\n const color_list = [\n 'green',\n 'orange',\n 'red',\n 'pink',\n 'cyan',\n 'blue',\n 'purple',\n '#f50',\n '#2db7f5',\n '#87d068',\n '#108ee9',\n ];\n const value_list = Object.keys(column)\n .filter((key: string) => key.indexOf('field_') == 0)\n .map((key: string) => key.replace('field_', ''))\n .sort();\n return color_list[value_list.indexOf(text.toString())];\n};\n\nexport const get_remote_tree_data = (res: any) => {\n const treeData: any = [];\n const search_tree_remote = (item: any, list: []) => {\n list.map((item1: any) => {\n if (item.parent_id == item1.id) {\n if (item1.children == undefined) {\n item1.children = [];\n }\n item1.children.push({\n key: item.id,\n value: item.id,\n title: item.name,\n ...item,\n children: [],\n });\n } else {\n search_tree_remote(item, item1.children);\n }\n });\n };\n res.data.map((item: any) => {\n if (!item.parent_id) {\n treeData.push({\n key: item.id,\n value: item.id,\n title: item.name,\n ...item,\n children: [],\n });\n } else {\n search_tree_remote(item, treeData);\n }\n });\n return treeData;\n};\n\nexport const get_page_tree_data = (res: any) => {\n const treeData: any = [];\n const search_tree = (item: any, list: []) => {\n list.map((item1: any) => {\n if (item.parent_id == item1.id) {\n if (!('children' in item1)) {\n item1.children = [];\n }\n item1.children.push({\n id: item.id,\n name: item.name,\n key: item.id,\n });\n } else {\n if (item1.children != undefined && item1.children.length > 0) {\n search_tree(item, item1.children);\n }\n }\n });\n };\n treeData.push({\n key: 999999,\n name: '全部',\n children: [],\n });\n\n res.data.map((item: any) => {\n if (!item.parent_id) {\n treeData.push({\n id: item.id,\n name: item.name,\n key: item.id,\n children: [],\n });\n } else {\n search_tree(item, treeData);\n }\n });\n treeData.map((item1: any) => {\n if (item1.children.length == 0) {\n delete item1.children;\n }\n });\n return treeData;\n};\n// 浮点数加减 相加:countSum( [ a, b, c ] ) 相减:countSum( [ a, -b, -c ] ) 传参必须是 number\nexport const countSum: (arr: number[]) => number = arr => {\n if (!arr.length) return 0;\n arr = arr.map((v: number) => {\n if (v && !Number.isNaN(Number(v))) return Math.round(v * 10000);\n return 0;\n });\n const result = arr.reduce((prev: number, curr: number) => {\n return prev + curr;\n }, 0);\n return result / 10000;\n};\n\nexport const copyValue = val => {\n let str = '';\n let messages = '复制成功';\n if (val?.message) {\n str = val.val;\n messages = val.message;\n } else {\n str = val;\n }\n const input = document.createElement('input');\n input.setAttribute('readonly', 'readonly');\n input.setAttribute('value', str);\n document.body.appendChild(input);\n input.select();\n if (document.execCommand('copy')) {\n document.execCommand('copy');\n message.info(messages);\n }\n document.body.removeChild(input);\n};\n\nexport const filterNullAndEmptyKeys = record => {\n const obj: any = {};\n Object.keys(record).forEach(key => {\n if (record[key] !== null && record[key] !== '' && JSON.stringify(record[key]) !== '[]') {\n obj[key] = record[key];\n }\n });\n return obj;\n};\n\nexport const isNotEmpty = value => {\n return value !== null && value !== undefined && value !== '';\n};\n\nexport const showGroupFormat = (item, format) => {\n if (format == 'getPeriod') {\n item.group_info.display_name = getDateMonth(item.group_info.display_name);\n }\n return item;\n};\n\nexport const customRenderMetaData = ({ record }) => {\n const obj = {\n props: {} as any,\n };\n if (record?.meta_data?.rowSpan != undefined) {\n obj.props.rowSpan = record.meta_data.rowSpan;\n }\n return obj;\n};\n\nexport const isEmpty = value => {\n return value === null || value == undefined || value === '';\n};\n\nexport const convertValueByClassName = (value, class_name) => {\n let new_value;\n if (class_name == 'int') {\n if (isNotEmpty(value) && value instanceof Array) {\n new_value = [];\n value.forEach(item => {\n if (isNotEmpty(item) && typeof item === 'string') {\n new_value.push(Number(item));\n } else {\n new_value.push(item);\n }\n });\n } else if (isNotEmpty(value) && typeof value === 'string') {\n new_value = Number(value);\n } else {\n new_value = value;\n }\n } else if (['bool', 'boolean'].includes(class_name)) {\n new_value = [];\n const true_list = ['true', 'True', 'TRUE', '1', 1, true];\n const false_list = ['false', 'False', 'FALSE', '0', 0, false];\n value.forEach(item => {\n if (true_list.includes(item)) {\n new_value.push(true);\n } else if (false_list.includes(item)) {\n new_value.push(false);\n } else {\n new_value.push(item);\n }\n });\n } else {\n new_value = value;\n }\n return new_value;\n};\n\nexport const get_operator_type_map = (format, operator) => {\n const operator_type_map = {\n between: '介于',\n gt: '大于',\n lt: '小于',\n gte: '大于等于',\n lte: '小于等于',\n in: '包含',\n eq: '等于',\n contains: '包含',\n icontains: '包含',\n startswith: '开头',\n notbetween: '不介于',\n notin: '不包含',\n notcontains: '不包含',\n _eq: '选择',\n not_eq: '不等于',\n not_blank_not_null: '是否非空',\n json_list_not_blank_not_null: '是否非空',\n json_list_is_blank_is_null: '是否为空',\n is_or_not_blank_or_null: '是否为空',\n };\n if (format == 'input' && operator == 'in') {\n return '等于';\n }\n return operator_type_map[operator];\n};\nexport const nested_sort_list = (list: any) => {\n list.sort((a: any, b: any) => {\n return (a.order || 0) - (b.order || 0);\n });\n list.forEach((item: any) => {\n if (item.children) {\n nested_sort_list(item.children);\n }\n });\n};\n\n// 判断是否为有效日期\nexport const isValidDate = (dateString, format = 'YYYY-MM-DD') => {\n const date = moment(dateString, format, true);\n return date.isValid();\n};\n\nexport const checkCondition = ({\n record,\n conditions,\n dataSource,\n selectedRowKeys,\n}: {\n record?: Object;\n conditions: any;\n dataSource?: any[];\n selectedRowKeys?: any[];\n}) => {\n // 如果条件组为空,直接返回true\n if (!conditions || conditions.length === 0) {\n return true;\n }\n\n // 计算每个条件组的结果\n const groupResults = conditions.map(group => {\n // 如果组内没有条件,返回true\n if (!group || group.length === 0) return true;\n\n // 计算组内每个条件的结果\n const conditionResults = group.map(item => {\n if (!item) return false;\n let record_value = null;\n if (selectedRowKeys instanceof Array) {\n record_value = dataSource\n .filter(_item => selectedRowKeys.includes(_item.id))\n .map(_item => _item[item.flag]);\n } else {\n record_value = record[item.flag];\n }\n let newValue = convertValueByClassName(item.value, item.type);\n\n if (!(newValue instanceof Array)) {\n newValue = [newValue];\n }\n\n // 根据操作符判断条件\n switch (item.operator) {\n case 'lt':\n if (typeof newValue[0] === 'number') {\n return !isEmpty(record_value) && record_value < newValue[0];\n } else if (isValidDate(newValue[0])) {\n return !isEmpty(record_value) && moment(record_value).isBefore(moment(newValue[0]));\n }\n return false;\n\n case 'lte':\n if (typeof newValue[0] === 'number') {\n return !isEmpty(record_value) && record_value <= newValue[0];\n } else if (isValidDate(newValue[0])) {\n return (\n !isEmpty(record_value) &&\n (moment(record_value).isBefore(moment(newValue[0])) ||\n moment(record_value).isSame(moment(newValue[0])))\n );\n }\n return false;\n\n case 'gt':\n if (typeof newValue[0] === 'number') {\n return !isEmpty(record_value) && record_value > newValue[0];\n } else if (isValidDate(newValue[0])) {\n return !isEmpty(record_value) && moment(record_value).isAfter(moment(newValue[0]));\n }\n return false;\n\n case 'gte':\n if (typeof newValue[0] === 'number') {\n return !isEmpty(record_value) && record_value >= newValue[0];\n } else if (isValidDate(newValue[0])) {\n return (\n !isEmpty(record_value) &&\n (moment(record_value).isAfter(moment(newValue[0])) ||\n moment(record_value).isSame(moment(newValue[0])))\n );\n }\n return false;\n\n case 'between':\n if (typeof newValue[0] === 'number' && typeof newValue[1] === 'number') {\n return (\n !isEmpty(record_value) && record_value >= newValue[0] && record_value <= newValue[1]\n );\n } else if (isValidDate(newValue[0]) && isValidDate(newValue[1])) {\n return (\n !isEmpty(record_value) &&\n (moment(record_value).isAfter(moment(newValue[0])) ||\n moment(record_value).isSame(moment(newValue[0]))) &&\n (moment(record_value).isBefore(moment(newValue[1])) ||\n moment(record_value).isSame(moment(newValue[1])))\n );\n }\n return false;\n\n case 'notbetween':\n if (typeof newValue[0] === 'number' && typeof newValue[1] === 'number') {\n return (\n !isEmpty(record_value) && (record_value < newValue[0] || record_value > newValue[1])\n );\n } else if (isValidDate(newValue[0]) && isValidDate(newValue[1])) {\n return (\n !isEmpty(record_value) &&\n (moment(record_value).isBefore(moment(newValue[0])) ||\n moment(record_value).isAfter(moment(newValue[1])))\n );\n }\n return false;\n\n case 'in':\n if (record_value instanceof Array) {\n return newValue.some(x => record_value.includes(x));\n } else {\n return newValue.some(x => record_value == x);\n }\n case 'notin':\n if (record_value instanceof Array) {\n return !newValue.some(x => record_value.includes(x));\n } else {\n return !newValue.some(x => record_value == x);\n }\n case 'eq':\n return record_value === newValue[0];\n case 'not_eq':\n return record_value !== newValue[0];\n\n case 'contains':\n return record_value && record_value.toString().indexOf(newValue[0]) > -1;\n case 'icontains':\n return (\n record_value &&\n record_value.toString().toLowerCase().indexOf(newValue[0].toLowerCase()) > -1\n );\n\n case 'notcontains':\n return !record_value || record_value.toString().indexOf(newValue[0]) === -1;\n case 'noticontains':\n return (\n !record_value ||\n record_value.toString().toLowerCase().indexOf(newValue[0].toLowerCase()) === -1\n );\n\n case 'startswith':\n return record_value && record_value.toString().startsWith(newValue[0]);\n case 'istartswith':\n return (\n record_value &&\n record_value.toString().toLowerCase().startsWith(newValue[0].toLowerCase())\n );\n case 'notstartswith':\n return !record_value || record_value.toString().startsWith(newValue[0]);\n case 'notistartswith':\n return (\n !record_value ||\n record_value.toString().toLowerCase().startsWith(newValue[0].toLowerCase())\n );\n\n case 'json_list_not_blank_not_null':\n case 'not_blank_not_null':\n if (record_value instanceof Array) {\n return record_value.length !== 0;\n } else {\n return !!record_value;\n }\n case 'is_blank':\n case 'json_list_is_blank_is_null':\n if (record_value instanceof Array) {\n return record_value.length === 0;\n } else {\n return !record_value;\n }\n\n default:\n return false;\n }\n });\n\n // 组内条件是与逻辑,所有条件都要满足\n return conditionResults.every(result => result);\n });\n\n // 组间条件是或逻辑,只要有一个组满足条件即可\n return groupResults.some(result => result);\n};\n"],"names":["getTime","time","getTime2","getTime3","getMonth","getDateMonth","getDate","getFullDate","getDateTime","getFullDateTime","getFullYearDateTime","toFixed2","num","isNumber","toFixed0","toFixed3","trim","str","toFixed6","format_datetime_hh_mm","second_time","min","hour","day","format_ms_hh_mm","milliseconds","seconds","minutes","hours","remainingSeconds","remainingMinutes","formattedTime","getObjList","api_fields","record","obj","key","getObjListBySelectedRowKeys","dataSource","selectedRowKeys","item","getRangePicker","getTon","kgnum","get_tag_color_by_slots","column","text","color_list","value_list","get_remote_tree_data","res","treeData","search_tree_remote","list","item1","get_page_tree_data","search_tree","countSum","arr","v","prev","curr","copyValue","val","messages","input","message","filterNullAndEmptyKeys","isNotEmpty","value","showGroupFormat","format","customRenderMetaData","_a","isEmpty","convertValueByClassName","class_name","new_value","true_list","false_list","get_operator_type_map","operator","operator_type_map","nested_sort_list","a","b","isValidDate","dateString","moment","checkCondition","conditions","group","record_value","_item","newValue","x","result"],"mappings":";;;AAIa,MAAAA,IAAU,CAACC,OAClBA,MACKA,IAAAA,EAAK,UAAU,GAAG,CAAC,IAErBA,IAEIC,IAAW,CAACD,OACnBA,MACKA,IAAAA,EAAK,UAAU,IAAI,EAAE,IAEvBA,IAEIE,IAAW,CAACF,OACnBA,MACKA,IAAAA,EAAK,UAAU,IAAI,EAAE,IAEvBA,IAEIG,IAAW,CAACH,OACnBA,MACK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,MAAUA,CAAM;"}
|
|
1
|
+
{"version":3,"file":"function.js","sources":["../../src/utils/function.ts"],"sourcesContent":["import { isNumber } from 'lodash';\nimport { message } from 'ant-design-vue';\nimport moment from 'moment';\n\nexport const getTime = (time: any) => {\n if (time) {\n time = time.substring(0, 5);\n }\n return time;\n};\nexport const getTime2 = (time: any) => {\n if (time) {\n time = time.substring(11, 16);\n }\n return time;\n};\nexport const getTime3 = (time: any) => {\n if (time) {\n time = time.substring(11, 19);\n }\n return time;\n};\nexport const getMonth = (time: any) => {\n if (time) {\n time = time.substring(0, 7);\n }\n return time;\n};\nexport const getDateMonth = (time: any) => {\n if (time == '1900-01-01') {\n return '期初';\n } else if (time) {\n time = time.substring(0, 4) + '年' + time.substring(5, 7) + '月';\n }\n return time;\n};\nexport const getDate = (time: any) => {\n if (time && new Date().getFullYear().toString() == time.substring(0, 4)) {\n time = time.substring(5, 10);\n } else if (time) {\n time = time.substring(0, 10);\n }\n return time;\n};\nexport const getFullDate = (time: any) => {\n if (time) {\n time = time.substring(0, 10);\n }\n return time;\n};\nexport const getDateTime = (time: any) => {\n if (time && new Date().getFullYear().toString() == time.substring(0, 4)) {\n time = time.substring(5, 16);\n } else if (time) {\n time = time.substring(0, 16);\n }\n return time;\n};\nexport const getFullDateTime = (time: any) => {\n if (time && new Date().getFullYear().toString() == time.substring(0, 4)) {\n time = time.substring(5, 19);\n } else if (time) {\n time = time.substring(0, 19);\n }\n return time;\n};\nexport const getFullYearDateTime = (time: any) => {\n if (time) {\n time = time.substring(0, 19);\n }\n return time;\n};\nexport const toFixed2 = (num: any) => {\n if (isNumber(num)) {\n if (Number(num.toFixed(2)) == 0) {\n return 0;\n } else {\n return num.toFixed(2);\n }\n } else {\n return '';\n }\n};\nexport const toFixed0 = (num: any) => {\n if (isNumber(num)) {\n if (Number(num.toFixed(0)) == 0) {\n return 0;\n } else {\n return num.toFixed(0);\n }\n } else {\n return '';\n }\n};\nexport const toFixed3 = (num: any) => {\n if (isNumber(num)) {\n if (Number(num.toFixed(3)) == 0) {\n return 0;\n } else {\n return num.toFixed(3);\n }\n } else {\n return '';\n }\n};\n// 去掉字符串前后的空格\nexport const trim = (str: any) => {\n return str.replace(/(^\\s*)|(\\s*$)/g, '');\n};\nexport const toFixed6 = (num: any) => {\n if (isNumber(num)) {\n if (Number(num.toFixed(6)) == 0) {\n return 0;\n } else {\n return num.toFixed(6);\n }\n } else {\n return '';\n }\n};\n// 转换时分秒\nexport const format_datetime_hh_mm = (second_time: any) => {\n let time: any = second_time;\n if (second_time > 60) {\n let min = second_time / 60;\n time = Math.floor(min) + '分';\n if (min > 60) {\n min = (second_time / 60) % 60;\n let hour = second_time / 60 / 60;\n time = Math.floor(hour) + '小时' + Math.floor(min) + '分';\n if (hour > 24) {\n hour = (second_time / 60 / 60) % 24;\n const day = second_time / 60 / 60 / 24;\n time = Math.floor(day) + '天' + Math.floor(hour) + '小时' + Math.floor(min) + '分';\n }\n }\n } else {\n time = second_time + '秒';\n }\n return time;\n};\n\n// 转换时分秒\nexport const format_ms_hh_mm = milliseconds => {\n const seconds = Math.floor(milliseconds / 1000);\n const minutes = Math.floor(seconds / 60);\n const hours = Math.floor(minutes / 60);\n\n const remainingSeconds = seconds % 60;\n const remainingMinutes = minutes % 60;\n\n let formattedTime = '';\n\n if (hours > 0) {\n formattedTime += `${hours.toString().padStart(2, '0')}:`;\n }\n formattedTime += `${remainingMinutes.toString().padStart(2, '0')}:${remainingSeconds\n .toString()\n .padStart(2, '0')}`;\n\n // 只添加毫秒部分如果毫秒数不为0\n if (milliseconds % 1000 !== 0) {\n formattedTime += `.${milliseconds.toString().slice(-2)}`;\n }\n return formattedTime;\n};\n// 字段对应错误————>转化正确\nexport const getObjList = (api_fields: any, record: any) => {\n const obj: any = {};\n for (const key in api_fields) {\n if (record[api_fields[key] as string]) {\n obj[key] = record[api_fields[key] as string];\n }\n }\n return obj;\n};\nexport const getObjListBySelectedRowKeys = (\n api_fields: any,\n dataSource: any[],\n selectedRowKeys: any[],\n) => {\n const obj: any = {};\n for (const key in api_fields) {\n obj[key] = dataSource\n .filter(item => selectedRowKeys.includes(item.id))\n .map(item => item[api_fields[key] as string]);\n }\n return obj;\n};\n// 时间区间格式转化 数组-->字符串\nexport const getRangePicker = (api_fields: any, record: any) => {\n const obj: any = {};\n for (const key in api_fields) {\n if (record[api_fields[key] as string]) {\n obj[key] = record[api_fields[key] as string].join(',');\n }\n }\n return obj;\n};\n\n// 小数转整数--> 过钢量是小数,单位为吨。转化为整数。\nexport const getTon = (kgnum: number) => {\n return Math.floor(kgnum);\n};\n\nexport const get_tag_color_by_slots = ({ column, text }) => {\n const color_list = [\n 'green',\n 'orange',\n 'red',\n 'pink',\n 'cyan',\n 'blue',\n 'purple',\n '#f50',\n '#2db7f5',\n '#87d068',\n '#108ee9',\n ];\n const value_list = Object.keys(column)\n .filter((key: string) => key.indexOf('field_') == 0)\n .map((key: string) => key.replace('field_', ''))\n .sort();\n return color_list[value_list.indexOf(text.toString())];\n};\n\nexport const get_remote_tree_data = (res: any) => {\n const treeData: any = [];\n const search_tree_remote = (item: any, list: []) => {\n list.map((item1: any) => {\n if (item.parent_id == item1.id) {\n if (item1.children == undefined) {\n item1.children = [];\n }\n item1.children.push({\n key: item.id,\n value: item.id,\n title: item.name,\n ...item,\n children: [],\n });\n } else {\n search_tree_remote(item, item1.children);\n }\n });\n };\n res.data.map((item: any) => {\n if (!item.parent_id) {\n treeData.push({\n key: item.id,\n value: item.id,\n title: item.name,\n ...item,\n children: [],\n });\n } else {\n search_tree_remote(item, treeData);\n }\n });\n return treeData;\n};\n\nexport const get_page_tree_data = (res: any) => {\n const treeData: any = [];\n const search_tree = (item: any, list: []) => {\n list.map((item1: any) => {\n if (item.parent_id == item1.id) {\n if (!('children' in item1)) {\n item1.children = [];\n }\n item1.children.push({\n id: item.id,\n name: item.name,\n key: item.id,\n });\n } else {\n if (item1.children != undefined && item1.children.length > 0) {\n search_tree(item, item1.children);\n }\n }\n });\n };\n treeData.push({\n key: 999999,\n name: '全部',\n children: [],\n });\n\n res.data.map((item: any) => {\n if (!item.parent_id) {\n treeData.push({\n id: item.id,\n name: item.name,\n key: item.id,\n children: [],\n });\n } else {\n search_tree(item, treeData);\n }\n });\n treeData.map((item1: any) => {\n if (item1.children.length == 0) {\n delete item1.children;\n }\n });\n return treeData;\n};\n// 浮点数加减 相加:countSum( [ a, b, c ] ) 相减:countSum( [ a, -b, -c ] ) 传参必须是 number\nexport const countSum: (arr: number[]) => number = arr => {\n if (!arr.length) return 0;\n arr = arr.map((v: number) => {\n if (v && !Number.isNaN(Number(v))) return Math.round(v * 10000);\n return 0;\n });\n const result = arr.reduce((prev: number, curr: number) => {\n return prev + curr;\n }, 0);\n return result / 10000;\n};\n\nexport const copyValue = val => {\n let str = '';\n let messages = '复制成功';\n if (val?.message) {\n str = val.val;\n messages = val.message;\n } else {\n str = val;\n }\n const input = document.createElement('input');\n input.setAttribute('readonly', 'readonly');\n input.setAttribute('value', str);\n document.body.appendChild(input);\n input.select();\n if (document.execCommand('copy')) {\n document.execCommand('copy');\n message.info(messages);\n }\n document.body.removeChild(input);\n};\n\nexport const filterNullAndEmptyKeys = record => {\n const obj: any = {};\n Object.keys(record).forEach(key => {\n if (record[key] !== null && record[key] !== '' && JSON.stringify(record[key]) !== '[]') {\n obj[key] = record[key];\n }\n });\n return obj;\n};\n\nexport const isNotEmpty = value => {\n return value !== null && value !== undefined && value !== '';\n};\n\nexport const showGroupFormat = (item, format) => {\n if (format == 'getPeriod') {\n item.group_info.display_name = getDateMonth(item.group_info.display_name);\n }\n return item;\n};\n\nexport const customRenderMetaData = ({ record }) => {\n const obj = {\n props: {} as any,\n };\n if (record?.meta_data?.rowSpan != undefined) {\n obj.props.rowSpan = record.meta_data.rowSpan;\n }\n return obj;\n};\n\nexport const isEmpty = value => {\n return value === null || value == undefined || value === '';\n};\n\nexport const convertValueByClassName = (value, class_name) => {\n let new_value;\n if (class_name == 'int') {\n if (isNotEmpty(value) && value instanceof Array) {\n new_value = [];\n value.forEach(item => {\n if (isNotEmpty(item) && typeof item === 'string') {\n new_value.push(Number(item));\n } else {\n new_value.push(item);\n }\n });\n } else if (isNotEmpty(value) && typeof value === 'string') {\n new_value = Number(value);\n } else {\n new_value = value;\n }\n } else if (['bool', 'boolean'].includes(class_name)) {\n new_value = [];\n const true_list = ['true', 'True', 'TRUE', '1', 1, true];\n const false_list = ['false', 'False', 'FALSE', '0', 0, false];\n value.forEach(item => {\n if (true_list.includes(item)) {\n new_value.push(true);\n } else if (false_list.includes(item)) {\n new_value.push(false);\n } else {\n new_value.push(item);\n }\n });\n } else {\n new_value = value;\n }\n return new_value;\n};\n\nexport const get_operator_type_map = (format, operator) => {\n const operator_type_map = {\n between: '介于',\n gt: '大于',\n lt: '小于',\n gte: '大于等于',\n lte: '小于等于',\n in: '包含',\n eq: '等于',\n contains: '包含',\n icontains: '包含',\n startswith: '开头',\n notbetween: '不介于',\n notin: '不包含',\n notcontains: '不包含',\n _eq: '选择',\n not_eq: '不等于',\n not_blank_not_null: '是否非空',\n json_list_not_blank_not_null: '是否非空',\n json_list_is_blank_is_null: '是否为空',\n is_or_not_blank_or_null: '是否为空',\n is_or_not_null: '是否为空',\n };\n if (format == 'input' && operator == 'in') {\n return '等于';\n }\n return operator_type_map[operator];\n};\nexport const nested_sort_list = (list: any) => {\n list.sort((a: any, b: any) => {\n return (a.order || 0) - (b.order || 0);\n });\n list.forEach((item: any) => {\n if (item.children) {\n nested_sort_list(item.children);\n }\n });\n};\n\n// 判断是否为有效日期\nexport const isValidDate = (dateString, format = 'YYYY-MM-DD') => {\n const date = moment(dateString, format, true);\n return date.isValid();\n};\n\nexport const checkCondition = ({\n record,\n conditions,\n dataSource,\n selectedRowKeys,\n}: {\n record?: Object;\n conditions: any;\n dataSource?: any[];\n selectedRowKeys?: any[];\n}) => {\n // 如果条件组为空,直接返回true\n if (!conditions || conditions.length === 0) {\n return true;\n }\n\n // 计算每个条件组的结果\n const groupResults = conditions.map(group => {\n // 如果组内没有条件,返回true\n if (!group || group.length === 0) return true;\n\n // 计算组内每个条件的结果\n const conditionResults = group.map(item => {\n if (!item) return false;\n let record_value = null;\n if (selectedRowKeys instanceof Array) {\n record_value = dataSource\n .filter(_item => selectedRowKeys.includes(_item.id))\n .map(_item => _item[item.flag]);\n } else {\n record_value = record[item.flag];\n }\n let newValue = convertValueByClassName(item.value, item.type);\n\n if (!(newValue instanceof Array)) {\n newValue = [newValue];\n }\n\n // 根据操作符判断条件\n switch (item.operator) {\n case 'lt':\n if (typeof newValue[0] === 'number') {\n return !isEmpty(record_value) && record_value < newValue[0];\n } else if (isValidDate(newValue[0])) {\n return !isEmpty(record_value) && moment(record_value).isBefore(moment(newValue[0]));\n }\n return false;\n\n case 'lte':\n if (typeof newValue[0] === 'number') {\n return !isEmpty(record_value) && record_value <= newValue[0];\n } else if (isValidDate(newValue[0])) {\n return (\n !isEmpty(record_value) &&\n (moment(record_value).isBefore(moment(newValue[0])) ||\n moment(record_value).isSame(moment(newValue[0])))\n );\n }\n return false;\n\n case 'gt':\n if (typeof newValue[0] === 'number') {\n return !isEmpty(record_value) && record_value > newValue[0];\n } else if (isValidDate(newValue[0])) {\n return !isEmpty(record_value) && moment(record_value).isAfter(moment(newValue[0]));\n }\n return false;\n\n case 'gte':\n if (typeof newValue[0] === 'number') {\n return !isEmpty(record_value) && record_value >= newValue[0];\n } else if (isValidDate(newValue[0])) {\n return (\n !isEmpty(record_value) &&\n (moment(record_value).isAfter(moment(newValue[0])) ||\n moment(record_value).isSame(moment(newValue[0])))\n );\n }\n return false;\n\n case 'between':\n if (typeof newValue[0] === 'number' && typeof newValue[1] === 'number') {\n return (\n !isEmpty(record_value) && record_value >= newValue[0] && record_value <= newValue[1]\n );\n } else if (isValidDate(newValue[0]) && isValidDate(newValue[1])) {\n return (\n !isEmpty(record_value) &&\n (moment(record_value).isAfter(moment(newValue[0])) ||\n moment(record_value).isSame(moment(newValue[0]))) &&\n (moment(record_value).isBefore(moment(newValue[1])) ||\n moment(record_value).isSame(moment(newValue[1])))\n );\n }\n return false;\n\n case 'notbetween':\n if (typeof newValue[0] === 'number' && typeof newValue[1] === 'number') {\n return (\n !isEmpty(record_value) && (record_value < newValue[0] || record_value > newValue[1])\n );\n } else if (isValidDate(newValue[0]) && isValidDate(newValue[1])) {\n return (\n !isEmpty(record_value) &&\n (moment(record_value).isBefore(moment(newValue[0])) ||\n moment(record_value).isAfter(moment(newValue[1])))\n );\n }\n return false;\n\n case 'in':\n if (record_value instanceof Array) {\n return newValue.some(x => record_value.includes(x));\n } else {\n return newValue.some(x => record_value == x);\n }\n case 'notin':\n if (record_value instanceof Array) {\n return !newValue.some(x => record_value.includes(x));\n } else {\n return !newValue.some(x => record_value == x);\n }\n case 'eq':\n return record_value === newValue[0];\n case 'not_eq':\n return record_value !== newValue[0];\n\n case 'contains':\n return record_value && record_value.toString().indexOf(newValue[0]) > -1;\n case 'icontains':\n return (\n record_value &&\n record_value.toString().toLowerCase().indexOf(newValue[0].toLowerCase()) > -1\n );\n\n case 'notcontains':\n return !record_value || record_value.toString().indexOf(newValue[0]) === -1;\n case 'noticontains':\n return (\n !record_value ||\n record_value.toString().toLowerCase().indexOf(newValue[0].toLowerCase()) === -1\n );\n\n case 'startswith':\n return record_value && record_value.toString().startsWith(newValue[0]);\n case 'istartswith':\n return (\n record_value &&\n record_value.toString().toLowerCase().startsWith(newValue[0].toLowerCase())\n );\n case 'notstartswith':\n return !record_value || record_value.toString().startsWith(newValue[0]);\n case 'notistartswith':\n return (\n !record_value ||\n record_value.toString().toLowerCase().startsWith(newValue[0].toLowerCase())\n );\n\n case 'json_list_not_blank_not_null':\n case 'not_blank_not_null':\n if (record_value instanceof Array) {\n return record_value.length !== 0;\n } else {\n return !!record_value;\n }\n case 'is_blank':\n case 'json_list_is_blank_is_null':\n if (record_value instanceof Array) {\n return record_value.length === 0;\n } else {\n return !record_value;\n }\n\n default:\n return false;\n }\n });\n\n // 组内条件是与逻辑,所有条件都要满足\n return conditionResults.every(result => result);\n });\n\n // 组间条件是或逻辑,只要有一个组满足条件即可\n return groupResults.some(result => result);\n};\n"],"names":["getTime","time","getTime2","getTime3","getMonth","getDateMonth","getDate","getFullDate","getDateTime","getFullDateTime","getFullYearDateTime","toFixed2","num","isNumber","toFixed0","toFixed3","trim","str","toFixed6","format_datetime_hh_mm","second_time","min","hour","day","format_ms_hh_mm","milliseconds","seconds","minutes","hours","remainingSeconds","remainingMinutes","formattedTime","getObjList","api_fields","record","obj","key","getObjListBySelectedRowKeys","dataSource","selectedRowKeys","item","getRangePicker","getTon","kgnum","get_tag_color_by_slots","column","text","color_list","value_list","get_remote_tree_data","res","treeData","search_tree_remote","list","item1","get_page_tree_data","search_tree","countSum","arr","v","prev","curr","copyValue","val","messages","input","message","filterNullAndEmptyKeys","isNotEmpty","value","showGroupFormat","format","customRenderMetaData","_a","isEmpty","convertValueByClassName","class_name","new_value","true_list","false_list","get_operator_type_map","operator","operator_type_map","nested_sort_list","a","b","isValidDate","dateString","moment","checkCondition","conditions","group","record_value","_item","newValue","x","result"],"mappings":";;;AAIa,MAAAA,IAAU,CAACC,OAClBA,MACKA,IAAAA,EAAK,UAAU,GAAG,CAAC,IAErBA,IAEIC,IAAW,CAACD,OACnBA,MACKA,IAAAA,EAAK,UAAU,IAAI,EAAE,IAEvBA,IAEIE,IAAW,CAACF,OACnBA,MACKA,IAAAA,EAAK,UAAU,IAAI,EAAE,IAEvBA,IAEIG,IAAW,CAACH,OACnBA,MACKA,IAAAA,EAAK,UAAU,GAAG,CAAC,IAErBA,IAEII,IAAe,CAACJ,MACvBA,KAAQ,eACH,QACEA,MACFA,IAAAA,EAAK,UAAU,GAAG,CAAC,IAAI,MAAMA,EAAK,UAAU,GAAG,CAAC,IAAI,MAEtDA,IAEIK,IAAU,CAACL,OAClBA,MAAQ,oBAAI,KAAK,GAAE,YAAY,EAAE,SAAS,KAAKA,EAAK,UAAU,GAAG,CAAC,IAC7DA,IAAAA,EAAK,UAAU,GAAG,EAAE,IAClBA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