12 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_managedata/lableSetup"],{353:function(e,t,n){"use strict";(function(e,t){var o=n(4);n(26);o(n(25));var i=o(n(354));e.__webpack_require_UNI_MP_PLUGIN__=n,t(i.default)}).call(this,n(1)["default"],n(2)["createPage"])},354:function(e,t,n){"use strict";n.r(t);var o=n(355),i=n(357);for(var l in i)["default"].indexOf(l)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(l);n(359);var a,c=n(34),s=Object(c["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],a);s.options.__file="pages_managedata/lableSetup.vue",t["default"]=s.exports},355:function(e,t,n){"use strict";n.r(t);var o=n(356);n.d(t,"render",(function(){return o["render"]})),n.d(t,"staticRenderFns",(function(){return o["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return o["recyclableRender"]})),n.d(t,"components",(function(){return o["components"]}))},356:function(e,t,n){"use strict";var o;n.r(t),n.d(t,"render",(function(){return i})),n.d(t,"staticRenderFns",(function(){return a})),n.d(t,"recyclableRender",(function(){return l})),n.d(t,"components",(function(){return o}));try{o={uIcon:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-icon/u-icon")]).then(n.bind(null,505))},uSearch:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-search/u-search")]).then(n.bind(null,666))},uCheckboxGroup:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-checkbox-group/u-checkbox-group")]).then(n.bind(null,706))},uCheckbox:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-checkbox/u-checkbox")]).then(n.bind(null,714))},uLoadmore:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-loadmore/u-loadmore")]).then(n.bind(null,604))},uModal:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-modal/u-modal")]).then(n.bind(null,682))},uInput:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-input/u-input")]).then(n.bind(null,690))},uLoadingPage:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-loading-page/u-loading-page")]).then(n.bind(null,644))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var e=this,t=e.$createElement;e._self._c;e._isMounted||(e.e0=function(t){e.isShowSelectAll=!e.isShowSelectAll},e.e1=function(t){e.triggereds=!1},e.e2=function(t){e.triggereds=!1})},l=!1,a=[];i._withStripped=!0},357:function(e,t,n){"use strict";n.r(t);var o=n(358),i=n.n(o);for(var l in o)["default"].indexOf(l)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(l);t["default"]=i.a},358:function(e,t,n){"use strict";(function(e){var o=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(18)),l=o(n(11)),a=n(274);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,l.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var r={data:function(){return{viewload:!0,loadingtext:"数据加载中...",isShowSelectAll:!1,showlist:!1,addlable:"",companylabel:[],isSelectAll:!1,isSelected:!1,selectedCount:0,selectidAll:[],tagpageNum:1,tagpageSize:13,tagkeywords:"",statusA:"nomore",triggereds:!1,isEnabled:!0}},mounted:function(){this.getcompanylabel()},watch:{selectedCount:function(e,t){return e}},methods:{getcompanyTag:function(e){this.companylabel=[],this.tagkeywords=e,this.tagpageNum=1,this.getcompanylabel()},reachBottoms:function(){var t=this;console.log(111),"loadmore"===this.statusA&&(this.statusA="loading",e.showNavigationBarLoading(),setTimeout((function(){t.tagpageNum++,t.getcompanylabel(),e.hideNavigationBarLoading()}),1e3))},pullDownRefreshs:function(){var t=this;this.triggereds=!0,setTimeout((function(){t.triggereds=!1,e.stopPullDownRefresh(),t.tagpageNum=1,t.getcompanylabel("refresh")}),1e3)},changeProhibit:function(){var t=this,n=this.selectidAll.join(",");if(console.log(this.selectidAll),""!=this.selectidAll){console.log(this.selectidAll),(0,a.deleteCompanyLabel)(n).then((function(n){200==n.code?(t.companylabel=[],t.tagpageNum=1,t.selectidAll=[],e.showToast({icon:"none",title:"标签删除成功"}),t.isSelectAll=!1,t.selectedCount=0,t.getcompanylabel()):e.showToast({icon:"none",title:n.msg})}))}else e.showToast({icon:"none",title:"请选择标签"})},getcompanylabel:function(t){var n=this;this.tagkeywords=this.tagkeywords.replace(/,/g,",");var o={pageNum:this.tagpageNum,pageSize:this.tagpageSize,keyword:this.tagkeywords};(0,a.getallTags)(o).then((function(o){if(200==o.code){n.viewload=!1;var l=o.data.list.map((function(e){return s(s({},e),{},{checked:!1})}));n.companylabel="refresh"==t?l:[].concat((0,i.default)(n.companylabel),(0,i.default)(l)),o.data.isLastPage?n.statusA="nomore":n.statusA="loadmore"}else e.showToast({icon:"none",title:o.msg})}))},addcompanySingle:function(){var t=this,n={tag:this.addlable};(0,a.addCompanyLabel)(n).then((function(n){200==n.code?(t.tagpageNum=1,t.companylabel=[],t.addlable="",e.showToast({icon:"none",title:"标签添加成功"}),t.getcompanylabel()):e.showToast({icon:"none",title:n.msg})}))},addLable:function(){this.showlist=!this.showlist},selectlist:function(e){var t=this,n=s(s({},this.companylabel[e]),{},{checked:!this.companylabel[e].checked});this.$set(this.companylabel,e,n);var o=this.companylabel.filter((function(e){return e.checked})).map((function(e){return e.tagId}));this.selectidAll=this.companylabel.filter((function(e){return e.checked})).map((function(e){return e.tagId})),this.selectedCount=o.length,this.isSelectAll=this.companylabel.every((function(e){return e.checked})),this.isSelectAll&&(this.companylabel=this.companylabel.map((function(e){return s(s({},e),{},{checked:t.isSelectAll})})))},selectAll:function(){var e=this;this.isSelectAll=!this.isSelectAll,console.log(this.isSelectAll),this.companylabel=this.companylabel.map((function(t){return s(s({},t),{},{checked:e.isSelectAll})})),this.selectidAll=this.companylabel.filter((function(e){return e.checked})).map((function(e){return e.tagId}));var t=this.companylabel.filter((function(e){return e.checked})).map((function(e){return e.tagId}));this.selectedCount=t.length,console.log(this.companylabel)},confirmchange:function(){""==this.addlable?e.showToast({icon:"none",title:"请输入标签"}):(this.addcompanySingle(),this.showlist=!this.showlist)},cancel:function(){this.showlist=!this.showlist}}};t.default=r}).call(this,n(2)["default"])},359:function(e,t,n){"use strict";n.r(t);var o=n(360),i=n.n(o);for(var l in o)["default"].indexOf(l)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(l);t["default"]=i.a},360:function(e,t,n){}},[[353,"common/runtime","common/vendor"]]]);
- //# sourceMappingURL=../../.sourcemap/mp-weixin/pages_managedata/lableSetup.js.map
|