You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
4.0 KiB
1 lines
4.0 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["driverManagement/index/index"],{"525e":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("f9bd"));function i(t){return t&&t.__esModule?t:{default:t}}var o={data:function(){return{companyName:"",candidates:[],getData:{pageSize:15,currentPage:1,params:{userSource:"",companyId:"",id:"",enableMark:""},sorted:{createTime:"desc"},columns:[],totalCount:1,totalPage:1},seachValue:"",styles:{},seleindex:0,navigation:[{text:"所有",index:-1},{text:"启用",index:1},{text:"禁用",index:0}],listData:[]}},onPullDownRefresh:function(){this.getData.currentPage=1,this.getList(),console.log("下拉的生命周期")},onLoad:function(){var e=this;this.styles=t.getMenuButtonBoundingClientRect(),t.$on("company",(function(t){var n=getCurrentPages(),a=-1!=n[n.length-2].$page.fullPath.indexOf("?")?n[n.length-2].$page.fullPath.split("?")[0].split("/")[n[n.length-2].$page.fullPath.split("?")[0].split("/").length-1]:n[n.length-2].$page.fullPath.split("/")[n[n.length-2].$page.fullPath.split("/").length-1];console.log(n,a,"获取当前打开过的页面路由数组"),"index"===a&&(t?(e.getData.params.companyId=t.id,e.companyName=t.name,console.log(e.getData)):(e.getData.params.companyId="",e.companyName=""))}))},onShow:function(){this.getList()},methods:{scrolltolower:function(){this.getData.currentPage+=1,console.log("触底了"),this.getList()},seachFn:function(){this.getData.currentPage=1,this.getList(),console.log("确定")},getList:function(){var e=this,n=t.getStorageSync("user");console.log(n,"---"),a.default.getByPagesApp(this.getData).then((function(t){2e4===t.code&&(1===e.getData.currentPage?e.listData=t.data.list:e.listData=e.listData.concat(t.data.list))}))},jump:function(e,n){switch(e){case-1:t.navigateBack();break;case 0:t.navigateTo({url:"../company/company?jsData="+JSON.stringify(this.companyName)});break;case 1:console.log(n,JSON.stringify(n)),t.navigateTo({url:"../driverDetails/driverDetails?jsData="+encodeURIComponent(JSON.stringify(n))});break;case 2:t.getStorageSync("user").authList.includes("driver:info:add")?t.navigateTo({url:"../addDiver/addDiver"}):t.showToast({title:"暂无权限请联系管理员",icon:"none"});break}},seleFn:function(t){-1!=t.index?this.getData.params.enableMark=t.index:this.getData.params.enableMark="",this.getData.currentPage=1,this.listData=[],this.getList()},onClick:function(){console.log("点击图标事件")}}};e.default=o}).call(this,n("543d")["default"])},"55ff":function(t,e,n){"use strict";n.r(e);var a=n("525e"),i=n.n(a);for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},"939f":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var a={uniNavBar:function(){return n.e("uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar").then(n.bind(null,"eaea"))},uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,"3b32"))},uniEasyinput:function(){return n.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(n.bind(null,"2572"))}},i=function(){var t=this,e=t.$createElement;t._self._c;t._isMounted||(t.e0=function(e,n,a){var i=arguments[arguments.length-1].currentTarget.dataset,o=i.eventParams||i["event-params"];n=o.item,a=o.index;t.seleFn(n),t.seleindex=a})},o=[]},"9f30":function(t,e,n){},c4f1:function(t,e,n){"use strict";n.r(e);var a=n("939f"),i=n("55ff");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("d597");var u,s=n("f0c5"),r=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],u);e["default"]=r.exports},d597:function(t,e,n){"use strict";var a=n("9f30"),i=n.n(a);i.a},fd95:function(t,e,n){"use strict";(function(t){n("6e43");a(n("66fd"));var e=a(n("c4f1"));function a(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n("543d")["createPage"])}},[["fd95","common/runtime","common/vendor"]]]); |