Files
starRiverProperty/frontend/decompiled/cwos-portal/src/module_140.formatted.js
T
hpd840321 7b2bd307f1 Initial commit: reorganized source tree
- backend/: 13 Maven modules (cw-elevator-application, cloudwalk-cloud, intelligent-cwoscomponent, ninca-crk, etc.)
- frontend/: 4 Vue projects (elevator-front, cwos-portal, alarm-front, front_acs) + decompiled + scripts
- scripts/: build, test-env, tools (Docker Compose, service templates, API parity)
- docs/: AGENTS.md, superpowers specs, architecture docs
- .gitignore: standard Java/Maven exclusions

Moved from legacy maven-*/ root layout to backend/ organized structure.
2026-05-09 09:56:45 +08:00

2 lines
13 KiB
JavaScript

"140:function(t,e,n){\"use strict\";e.__esModule=!0;var i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r=x(n(1)),o=x(n(19)),a=x(n(5)),s=x(n(6)),u=x(n(141)),l=x(n(35)),c=x(n(25)),f=x(n(17)),h=x(n(14)),d=x(n(10)),p=n(2),v=n(18),m=n(12),g=x(n(26)),y=n(3),_=x(n(144)),b=n(23);function x(t){return t&&t.__esModule?t:{default:t}}var w={medium:36,small:32,mini:28};e.default={mixins:[r.default,a.default,(0,o.default)(\"reference\"),_.default],name:\"ElSelect\",componentName:\"ElSelect\",inject:{elForm:{default:\"\"},elFormItem:{default:\"\"}},provide:function(){return{select:this}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},readonly:function(){var t=!this.$isServer&&!isNaN(Number(document.documentMode));return!this.filterable||this.multiple||!t&&!this.visible},iconClass:function(){return this.clearable&&!this.selectDisabled&&this.inputHovering&&!this.multiple&&void 0!==this.value&&null!==this.value&&\"\"!==this.value?\"circle-close is-show-close\":this.remote&&this.filterable?\"\":\"arrow-up\"},debounce:function(){return this.remote?300:0},emptyText:function(){return this.loading?this.loadingText||this.t(\"el.select.loading\"):(!this.remote||\"\"!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&this.options.length>0&&0===this.filteredOptionsCount?this.noMatchText||this.t(\"el.select.noMatch\"):0===this.options.length?this.noDataText||this.t(\"el.select.noData\"):null)},showNewOption:function(){var t=this,e=this.options.filter(function(t){return!t.created}).some(function(e){return e.currentLabel===t.query});return this.filterable&&this.allowCreate&&\"\"!==this.query&&!e},selectSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},selectDisabled:function(){return this.disabled||(this.elForm||{}).disabled},collapseTagSize:function(){return[\"small\",\"mini\"].indexOf(this.selectSize)>-1?\"mini\":\"small\"}},components:{ElInput:s.default,ElSelectMenu:u.default,ElOption:l.default,ElTag:c.default,ElScrollbar:f.default},directives:{Clickoutside:d.default},props:{name:String,id:String,value:{required:!0},autoComplete:{type:String,default:\"off\"},automaticDropdown:Boolean,size:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,default:function(){return(0,m.t)(\"el.select.placeholder\")}},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:\"value\"},collapseTags:Boolean,popperAppendToBody:{type:Boolean,default:!0}},data:function(){return{options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:this.multiple?[]:{},inputLength:20,inputWidth:0,cachedPlaceHolder:\"\",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:\"\",hoverIndex:-1,query:\"\",previousQuery:null,inputHovering:!1,currentPlaceholder:\"\",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}},watch:{selectDisabled:function(){var t=this;this.$nextTick(function(){t.resetInputHeight()})},placeholder:function(t){this.cachedPlaceHolder=this.currentPlaceholder=t},value:function(t,e){this.multiple&&(this.resetInputHeight(),t.length>0||this.$refs.input&&\"\"!==this.query?this.currentPlaceholder=\"\":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query=\"\",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),(0,y.valueEquals)(t,e)||this.dispatch(\"ElFormItem\",\"el.form.change\",t)},visible:function(t){var e=this;t?(this.handleIconShow(),this.broadcast(\"ElSelectDropdown\",\"updatePopper\"),this.filterable&&(this.query=this.remote?\"\":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast(\"ElOption\",\"queryChange\",\"\"),this.broadcast(\"ElOptionGroup\",\"queryChange\")),this.broadcast(\"ElInput\",\"inputSelect\")))):(this.handleIconHide(),this.broadcast(\"ElSelectDropdown\",\"destroyPopper\"),this.$refs.input&&this.$refs.input.blur(),this.query=\"\",this.previousQuery=null,this.selectedLabel=\"\",this.inputLength=20,this.resetHoverIndex(),this.$nextTick(function(){e.$refs.input&&\"\"===e.$refs.input.value&&0===e.selected.length&&(e.currentPlaceholder=e.cachedPlaceHolder)}),this.multiple||this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel))),this.$emit(\"visible-change\",t)},options:function(){var t=this;if(!this.$isServer){this.$nextTick(function(){t.broadcast(\"ElSelectDropdown\",\"updatePopper\")}),this.multiple&&this.resetInputHeight();var e=this.$el.querySelectorAll(\"input\");-1===[].indexOf.call(e,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}}},methods:{handleComposition:function(t){var e=t.target.value;if(\"compositionend\"===t.type)this.isOnComposition=!1,this.handleQueryChange(e);else{var n=e[e.length-1]||\"\";this.isOnComposition=!(0,b.isKorean)(n)}},handleQueryChange:function(t){var e=this;if(this.previousQuery!==t&&!this.isOnComposition)if(null!==this.previousQuery||\"function\"!=typeof this.filterMethod&&\"function\"!=typeof this.remoteMethod){if(this.previousQuery=t,this.$nextTick(function(){e.visible&&e.broadcast(\"ElSelectDropdown\",\"updatePopper\")}),this.hoverIndex=-1,this.multiple&&this.filterable){var n=15*this.$refs.input.value.length+20;this.inputLength=this.collapseTags?Math.min(50,n):n,this.managePlaceholder(),this.resetInputHeight()}this.remote&&\"function\"==typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(t)):\"function\"==typeof this.filterMethod?(this.filterMethod(t),this.broadcast(\"ElOptionGroup\",\"queryChange\")):(this.filteredOptionsCount=this.optionsCount,this.broadcast(\"ElOption\",\"queryChange\",t),this.broadcast(\"ElOptionGroup\",\"queryChange\")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}else this.previousQuery=t},handleIconHide:function(){var t=this.$el.querySelector(\".el-input__icon\");t&&(0,p.removeClass)(t,\"is-reverse\")},handleIconShow:function(){var t=this.$el.querySelector(\".el-input__icon\");t&&!(0,p.hasClass)(t,\"el-icon-circle-close\")&&(0,p.addClass)(t,\"is-reverse\")},scrollToOption:function(t){var e=Array.isArray(t)&&t[0]?t[0].$el:t.$el;if(this.$refs.popper&&e){var n=this.$refs.popper.$el.querySelector(\".el-select-dropdown__wrap\");(0,g.default)(n,e)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var t=this;this.$nextTick(function(){return t.scrollToOption(t.selected)})},emitChange:function(t){(0,y.valueEquals)(this.value,t)||this.$emit(\"change\",t)},getOption:function(t){for(var e=void 0,n=\"[object object]\"===Object.prototype.toString.call(t).toLowerCase(),i=\"[object null]\"===Object.prototype.toString.call(t).toLowerCase(),r=this.cachedOptions.length-1;r>=0;r--){var o=this.cachedOptions[r];if(n?(0,y.getValueByPath)(o.value,this.valueKey)===(0,y.getValueByPath)(t,this.valueKey):o.value===t){e=o;break}}if(e)return e;var a={value:t,currentLabel:n||i?\"\":t};return this.multiple&&(a.hitState=!1),a},setSelected:function(){var t=this;if(!this.multiple){var e=this.getOption(this.value);return e.created?(this.createdLabel=e.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=e.currentLabel,this.selected=e,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach(function(e){n.push(t.getOption(e))}),this.selected=n,this.$nextTick(function(){t.resetInputHeight()})},handleFocus:function(t){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.visible=!0,this.menuVisibleOnFocus=!0),this.$emit(\"focus\",t))},blur:function(){this.visible=!1,this.$refs.reference.blur()},handleBlur:function(t){var e=this;setTimeout(function(){e.isSilentBlur?e.isSilentBlur=!1:e.$emit(\"blur\",t)},50),this.softFocus=!1},handleIconClick:function(t){this.iconClass.indexOf(\"circle-close\")>-1&&this.deleteSelected(t)},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose:function(){this.visible=!1},toggleLastOptionHitState:function(t){if(Array.isArray(this.selected)){var e=this.selected[this.selected.length-1];if(e)return!0===t||!1===t?(e.hitState=t,t):(e.hitState=!e.hitState,e.hitState)}},deletePrevTag:function(t){if(t.target.value.length<=0&&!this.toggleLastOptionHitState()){var e=this.value.slice();e.pop(),this.$emit(\"input\",e),this.emitChange(e)}},managePlaceholder:function(){\"\"!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?\"\":this.cachedPlaceHolder)},resetInputState:function(t){8!==t.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight:function(){var t=this;this.collapseTags&&!this.filterable||this.$nextTick(function(){if(t.$refs.reference){var e=t.$refs.reference.$el.childNodes,n=[].filter.call(e,function(t){return\"INPUT\"===t.tagName})[0],i=t.$refs.tags,r=w[t.selectSize]||40;n.style.height=0===t.selected.length?r+\"px\":Math.max(i?i.clientHeight+(i.clientHeight>r?6:0):0,r)+\"px\",t.visible&&!1!==t.emptyText&&t.broadcast(\"ElSelectDropdown\",\"updatePopper\")}})},resetHoverIndex:function(){var t=this;setTimeout(function(){t.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(function(e){return t.options.indexOf(e)})):t.hoverIndex=-1:t.hoverIndex=t.options.indexOf(t.selected)},300)},handleOptionSelect:function(t,e){var n=this;if(this.multiple){var i=this.value.slice(),r=this.getValueIndex(i,t.value);r>-1?i.splice(r,1):(this.multipleLimit<=0||i.length<this.multipleLimit)&&i.push(t.value),this.$emit(\"input\",i),this.emitChange(i),t.created&&(this.query=\"\",this.handleQueryChange(\"\"),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else this.$emit(\"input\",t.value),this.emitChange(t.value),this.visible=!1;this.isSilentBlur=e,this.setSoftFocus(),this.visible||this.$nextTick(function(){n.scrollToOption(t)})},setSoftFocus:function(){this.softFocus=!0;var t=this.$refs.input||this.$refs.reference;t&&t.focus()},getValueIndex:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments[1];if(!(\"[object object]\"===Object.prototype.toString.call(n).toLowerCase()))return e.indexOf(n);var r,o,a=(r=t.valueKey,o=-1,e.some(function(t,e){return(0,y.getValueByPath)(t,r)===(0,y.getValueByPath)(n,r)&&(o=e,!0)}),{v:o});return\"object\"===(void 0===a?\"undefined\":i(a))?a.v:void 0},toggleMenu:function(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},selectOption:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},deleteSelected:function(t){t.stopPropagation(),this.$emit(\"input\",\"\"),this.emitChange(\"\"),this.visible=!1,this.$emit(\"clear\")},deleteTag:function(t,e){var n=this.selected.indexOf(e);if(n>-1&&!this.selectDisabled){var i=this.value.slice();i.splice(n,1),this.$emit(\"input\",i),this.emitChange(i),this.$emit(\"remove-tag\",e.value)}t.stopPropagation()},onInputChange:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy:function(t){t>-1&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(t,1))},resetInputWidth:function(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize:function(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption:function(){this.hoverIndex=-1;for(var t=!1,e=this.options.length-1;e>=0;e--)if(this.options[e].created){t=!0,this.hoverIndex=e;break}if(!t)for(var n=0;n!==this.options.length;++n){var i=this.options[n];if(this.query){if(!i.disabled&&!i.groupDisabled&&i.visible){this.hoverIndex=n;break}}else if(i.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(t){return\"[object object]\"!==Object.prototype.toString.call(t.value).toLowerCase()?t.value:(0,y.getValueByPath)(t.value,this.valueKey)}},created:function(){var t=this;this.cachedPlaceHolder=this.currentPlaceholder=this.placeholder,this.multiple&&!Array.isArray(this.value)&&this.$emit(\"input\",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit(\"input\",\"\"),this.debouncedOnInputChange=(0,h.default)(this.debounce,function(){t.onInputChange()}),this.$on(\"handleOptionClick\",this.handleOptionSelect),this.$on(\"setSelected\",this.setSelected),this.$on(\"fieldReset\",function(){t.dispatch(\"ElFormItem\",\"el.form.change\")})},mounted:function(){var t=this;this.multiple&&Array.isArray(this.value)&&this.value.length>0&&(this.currentPlaceholder=\"\"),(0,v.addResizeListener)(this.$el,this.handleResize),this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick(function(){t.$refs.reference&&t.$refs.reference.$el&&(t.inputWidth=t.$refs.reference.$el.getBoundingClientRect().width)}),this.setSelected()},beforeDestroy:function(){this.$el&&this.handleResize&&(0,v.removeResizeListener)(this.$el,this.handleResize)}}}";