1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1e2c9460"],{2268:function(t,e,a){"use strict";a.d(e,"e",function(){return o}),a.d(e,"a",function(){return c}),a.d(e,"d",function(){return i}),a.d(e,"c",function(){return u}),a.d(e,"b",function(){return d});var n=a("8982"),s="/industryParkApi",r="/wx/addressBook";function o(t){return Object(n["a"])({url:s+r+"/list",method:"post",data:t})}function c(t){return Object(n["a"])({url:s+r+"/bizMainList",method:"post",data:t})}function i(t){return Object(n["a"])({url:s+r+"/getWxByName",method:"post",data:t})}function u(t){return Object(n["a"])({url:s+r+"/getCompanyAddressBookById",method:"post",data:t})}function d(t){return Object(n["a"])({url:s+r+"/getById",method:"post",data:t})}},"41b0":function(t,e,a){},8982:function(t,e,a){"use strict";a.d(e,"a",function(){return f}),a.d(e,"b",function(){return m});var n=a("795b"),s=a.n(n),r=a("bc3a"),o=a.n(r),c=a("4328"),i=a.n(c),u=a("4360"),d=a("5cab"),l=a("a18c"),h=a("3089");function f(t,e){t.headers||(t.headers={}),t.headers&&d["a"].getToken()&&(t.headers["RC-Token"]=d["a"].getToken());var a={method:t.method,url:t.url,data:i.a.stringify(t.data)};return e&&(a.data=t.data),t.headers&&(a.headers=t.headers),new s.a(function(e,n){o()(a).then(function(t){if(t&&t.data&&200===t.status){var a=t.data;switch(a.errno){case 501:Object(h["Toast"])(a.errmsg),setTimeout(function(){u["a"].dispatch("user/logout").then(function(){l["a"].push("/login")})},1500),n(a.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(h["Toast"])(a.errmsg),n(a.errmsg);break}e(a)}else console.log(t),n(t)}).catch(function(e,a){console.log(t.url+" fail",e,a),Object(h["Toast"])(e),n(e,a)})})}function m(t){t.headers||(t.headers={}),t.headers&&d["a"].getToken()&&(t.headers["RC-Token"]=d["a"].getToken());var e={method:t.method,url:t.url};return e.data=t.data,t.headers&&(e.headers=t.headers,e.headers["MVVM-Key"]=String((new Date).getTime()),e.headers["xx"]="anything",e.headers["Content-Type"]="application/json;charset=UTF-8"),console.log("request: ",t),new s.a(function(a,n){o.a.defaults.withCredentials=!0,o()(e).then(function(t){if(console.log("response:",t),t&&t.data&&200===t.status){var e=t.data;switch(e.errno){case 501:Object(h["Toast"])(e.errmsg),setTimeout(function(){u["a"].dispatch("user/logout").then(function(){l["a"].push("/login")})},1500),n(e.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(h["Toast"])(e.errmsg),n(e.errmsg);break}a(e)}else console.log(t),n(t)}).catch(function(e,a){console.log(t.url+" fail",e,a),Object(h["Toast"])(e),n(e,a)})})}},a65e:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"addressBook"},[a("van-tabs",{attrs:{"title-active-color":"#2A3980",color:"#2A3980","title-inactive-color":"#666666"},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[a("van-tab",{attrs:{title:"设备运维"}},[a("div",{staticClass:"tabs-box"},t._l(t.list2,function(e){return a("div",{staticClass:"white-box"},[a("div",{staticClass:"custom-item-tit"},[a("div",{staticClass:"tit"},[t._v(t._s(e.department))])]),t._l(e.nameList,function(e){return a("div",{staticClass:"cell-item",on:{click:function(a){return t.goNavigator("addressBook-operationAndMaintenance-app",{name:e.deptName})}}},[a("p",{staticClass:"label"},[t._v(t._s(e.deptName))])])})],2)}),0)])],1)],1)},s=[],r=(a("ac6a"),a("2268")),o={data:function(){return{active:0,list2:[],params:{}}},mounted:function(){this.initAddressList()},methods:{getTips:function(t){this.tip=t.value},initAddressList:function(){var t=this;Object(r["e"])(t.params).then(function(e){console.log(e),e.length>0&&e.forEach(function(e){"3"===e.type&&(t.list2=e.unitList)})})}}},c=o,i=(a("cea5"),a("2877")),u=Object(i["a"])(c,n,s,!1,null,"244723de",null);e["default"]=u.exports},cea5:function(t,e,a){"use strict";var n=a("41b0"),s=a.n(n);s.a}}]);
|