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 line
4.0 KiB

2 years ago
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["driverManagement/index/index"],{"3d91":function(t,e,n){"use strict";var a=n("5640"),i=n.n(a);i.a},5403:function(t,e,n){"use strict";n.r(e);var a=n("a6c4"),i=n("a019");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("3d91");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},5640:function(t,e,n){},"695d":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("1b48"));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"])},a019:function(t,e,n){"use strict";n.r(e);var a=n("695d"),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},a6c4: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,"fc76"))},uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,"65b9"))},uniEasyinput:function(){return n.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(n.bind(null,"fb2e"))}},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=[]},f6d0:function(t,e,n){"use strict";(function(t){n("84da");a(n("66fd"));var e=a(n("5403"));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"])}},[