projectDropDown.js 4.0 KB

12345678910
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/common/projectDropDown"],{1573:function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={onPageScroll:function(){this.$refs.dropDown.init()},computed:{dropItem:function(e){var t=this;return function(e){var l={},n=t.result.find((function(t){return t.name===e}));return n?(l.label=n.label,l.value=n.value):(l.label=t[e].label,l.value=t[e].value),l}},currentDropItem:function(){return this[this.activeName]}},data:function(){return{defaultValue:[0,"all","0"],result:[],activeName:"item",item:{label:"建筑楼宇",value:"all",activeIndex:0,color:"#1f1f1f",activeColor:"#08979c",size:"28rpx",activeSize:"28rpx",child:[{label:"全部楼宇",value:"all"},{label:"1号楼",value:"1"}]},target:{label:"楼层位置",value:"all",activeIndex:0,color:"#1f1f1f",activeColor:"#08979c",size:"28rpx",activeSize:"28rpx",child:[{label:"全部楼层",value:"all"},{label:"1层",value:"1"}]},room:{label:"区域位置",value:"all",activeIndex:0,color:"#1f1f1f",activeColor:"#08979c",size:"28rpx",activeSize:"28rpx",child:[{label:"全部区域",value:"all"},{label:"办公室101",value:"1"},{label:"办公室102",value:"2"},{label:"办公室103",value:"3"}]}}},methods:{selectMenu:function(e){var t=this,l=e.name;e.active,e.type;this.activeName=l;var n=this.result.find((function(e){return e.name==t.activeName}));if(n){var a=this[this.activeName].child.findIndex((function(e){return e.label==n.label&&e.value==n.value}));this[this.activeName].activeIndex=a}else this[this.activeName].activeIndex=0},clickItem:function(e){var t=this,l=e.label,n=e.value,a=this.result.findIndex((function(e){return e.name==t.activeName}));this.defaultValue.indexOf(n)>-1&&this[this.activeName].label&&(l=this[this.activeName].label),a>-1?this.$set(this.result,a,{name:this.activeName,label:l,value:n}):this.result.push({name:this.activeName,label:l,value:n}),this.result=this.result.filter((function(e){return-1==t.defaultValue.indexOf(e.value)})),this.$emit("change",{name:this.activeName,label:l,value:n})}}}},6762:function(e,t,l){"use strict";l.d(t,"b",(function(){return a})),l.d(t,"c",(function(){return i})),l.d(t,"a",(function(){return n}));var n={uvDropDown:function(){return Promise.all([l.e("common/vendor"),l.e("uni_modules/uv-drop-down/components/uv-drop-down/uv-drop-down")]).then(l.bind(null,"dca2"))},uvDropDownItem:function(){return Promise.all([l.e("common/vendor"),l.e("uni_modules/uv-drop-down/components/uv-drop-down-item/uv-drop-down-item")]).then(l.bind(null,"7828"))},uvDropDownPopup:function(){return Promise.all([l.e("common/vendor"),l.e("uni_modules/uv-drop-down/components/uv-drop-down-popup/uv-drop-down-popup")]).then(l.bind(null,"cb97"))}},a=function(){var e=this,t=e.$createElement,l=(e._self._c,e.dropItem("item")),n=l.label?e.dropItem("item"):null,a=l.label?e.dropItem("item"):null,i=l.label?e.dropItem("target"):null,u=l.label?e.dropItem("target"):null,o=l.label?e.dropItem("room"):null,r=l.label?e.dropItem("room"):null;e.$mp.data=Object.assign({},{$root:{m0:l,m1:n,m2:a,m3:i,m4:u,m5:o,m6:r}})},i=[]},"7c5a":function(e,t,l){"use strict";l.r(t);var n=l("1573"),a=l.n(n);for(var i in n)["default"].indexOf(i)<0&&function(e){l.d(t,e,(function(){return n[e]}))}(i);t["default"]=a.a},d9c8:function(e,t,l){"use strict";l.r(t);var n=l("6762"),a=l("7c5a");for(var i in a)["default"].indexOf(i)<0&&function(e){l.d(t,e,(function(){return a[e]}))}(i);l("eeb9");var u=l("828b"),o=Object(u["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);t["default"]=o.exports},eeb9:function(e,t,l){"use strict";var n=l("ff6a"),a=l.n(n);a.a},ff6a:function(e,t,l){}}]);
  2. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  3. 'components/common/projectDropDown-create-component',
  4. {
  5. 'components/common/projectDropDown-create-component':(function(module, exports, __webpack_require__){
  6. __webpack_require__('df3c')['createComponent'](__webpack_require__("d9c8"))
  7. })
  8. },
  9. [['components/common/projectDropDown-create-component']]
  10. ]);