{"version":3,"sources":["webpack:///./src/components/no_rights.vue?2ef3","webpack:///./src/components/no_rights.vue?0622","webpack:///src/components/no_rights.vue","webpack:///./src/components/no_rights.vue?92b8","webpack:///./src/components/no_rights.vue","webpack:///./src/apis/regExp.js","webpack:///./src/apis/index.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_v","_s","name","phone","_e","staticRenderFns","data","created","$axios","get","Server","path","apiMps","$tools","auth","getCurrentUserInfo","partnerId","then","res","employeeName","component","email","apiCrmOS","apiCrmUs","constructor","http","axios","allError","window","global","$message","warning","$http","error","err","isadd","cb","response","headers","resData","msg","errors","map","item","message","join","obj","o","Array","forEach","push","clearAllNull","Object","assign","key","String","trim","type","regExp","self","stack"],"mappings":"6GAAA,W,2CCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,EAAG,IAAI,CAACE,YAAY,mBAAmB,CAACN,EAAIO,GAAG,8BAA8BH,EAAG,IAAI,CAACE,YAAY,iBAAiB,CAACN,EAAIO,GAAG,WAAYP,EAAS,MAAE,CAACA,EAAIO,GAAG,KAAKH,EAAG,OAAO,CAACE,YAAY,kBAAkB,CAACN,EAAIO,GAAGP,EAAIQ,GAAGR,EAAIS,MAAM,IAAIT,EAAIQ,GAAGR,EAAIU,UAAUV,EAAIO,GAAG,MAAMP,EAAIW,KAAKX,EAAIO,GAAG,UAAU,MAChaK,EAAkB,G,YCUP,GACfC,OACA,OACAH,MAAA,GACAD,KAAA,KAGAK,UACA,KAAAC,OAAAC,IAAA,GAAAC,OAAAC,KAAAC,kBAAA,KAAAC,OAAAC,KAAAC,qBAAAC,mBAAAC,KAAAC,IACAA,EAAAZ,OACA,KAAAH,MAAAe,EAAAZ,KAAAH,MACA,KAAAD,KAAAgB,EAAAZ,KAAAa,kBCtBkV,I,wBCQ9UC,EAAY,eACd,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A,EAAEO,IAAmB,IAAXP,EAAEO,IAEc,kBAAZP,EAAEO,IAAsBP,EAAEO,aAAgBC,UAC3DR,EAAEO,GAAOP,EAAEO,GAAKE,eAFTT,EAAEO,GAKb,OAAOP,EAGT,cAAeU,GACb,OAAOC,EAAOD,GAGhB,gBAAiBE,EAAMtB,GACfA,GAAYA,EAASC,SAAWD,EAASC,QAAQ,kBAA0D,YAAtCD,EAASC,QAAQ,iBAOhFD,EAASC,SACnBqB,EAAK7B,SAASO,GAAYA,EAASuB,OAPnCD,EAAK7B,SAAS,CACZ2B,KAAM,QACNb,QAAUP,GAAYA,EAAS/B,OAAS+B,EAAS/B,KAAKkC,KAAOH,EAAS/B,KAAKsC,SAAYP,EAAS/B,KAAKmC,QAAUJ,EAAS/B,KAAKmC,OAAOC,KAAI,SAAUC,GAChJ,OAAOA,EAAKC,WACXC,KAAK,OAAW,gBAQ3BnC,EAAOC,KAAOA,EACCD","file":"js/no_rights.0cf15b20.js","sourcesContent":["export * from \"-!../../node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./no_rights.vue?vue&type=style&index=0&id=60e4fa4e&prod&lang=less&scoped=true\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"no-rights\"},[_c('p',{staticClass:\"no-rights-title\"},[_vm._v(\"当前账号还未分配角色权限,无法查看产品内功能模块\")]),_c('p',{staticClass:\"no-rights-tip\"},[_vm._v(\"请联系管理员 \"),(_vm.phone)?[_vm._v(\"(\"),_c('span',{staticClass:\"no-rights-role\"},[_vm._v(_vm._s(_vm.name)+\" \"+_vm._s(_vm.phone))]),_vm._v(\")\")]:_vm._e(),_vm._v(\" 分配角色\")],2)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./no_rights.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./no_rights.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./no_rights.vue?vue&type=template&id=60e4fa4e&scoped=true\"\nimport script from \"./no_rights.vue?vue&type=script&lang=js\"\nexport * from \"./no_rights.vue?vue&type=script&lang=js\"\nimport style0 from \"./no_rights.vue?vue&type=style&index=0&id=60e4fa4e&prod&lang=less&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"60e4fa4e\",\n null\n \n)\n\nexport default component.exports","export default {\n email: /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/\n}\n","import regExp from './regExp'\nimport axios from 'axios'\nconst path = {\n apiMps: '/saas-ability-mps/v1',\n apiCrmOS: '/paas-ability-os/v1/',\n apiCrmUs: '/paas-ability-us/v1/'\n}\n\nclass Server {\n constructor (http = axios, allError = window.global.$message.warning) {\n this.$http = http\n this.error = function (err, isadd, cb) {\n return function (res) {\n const { response } = res\n if (!(response && response.headers && response.headers['x-response-by'] && response.headers['x-response-by'] === 'gateway')) {\n if (err) {\n err(res.data)\n }\n if (isadd || !err) {\n const resData = res.response.data\n const msg = resData.errors && resData.errors.map(function (item) {\n return item.message || item.msg\n }).join(',')\n allError(msg || resData.message || resData.msg || '系统异常,请稍后再试!')\n }\n }\n cb && cb()\n }\n }\n }\n // 提供方法清空所有为空的字段\n static clearAllNull (obj) {\n let o\n if (obj instanceof Array) {\n o = []\n obj.forEach(function (item) {\n o.push(Server.clearAllNull(item))\n })\n } else if (obj instanceof Object) {\n o = Object.assign({}, obj)\n for (const key in o) {\n if (!o[key] && o[key] !== 0) {\n delete o[key]\n } else {\n o[key] = Server.clearAllNull(o[key])\n }\n }\n }\n return o || obj\n }\n // 提供方法清空一层为空的obj字段\n static clearNull (obj) {\n const o = Object.assign({}, obj)\n for (const key in o) {\n if (!o[key] && o[key] !== 0) {\n delete o[key]\n }\n }\n return o\n }\n static clearTrim (obj) {\n const o = Object.assign({}, obj)\n for (const key in o) {\n if (!o[key] && o[key] !== 0) {\n delete o[key]\n } else if (typeof (o[key]) === 'string' || o[key] instanceof String) {\n o[key] = o[key].trim()\n }\n }\n return o\n }\n // 验证集合\n static regExp (type) {\n return regExp[type]\n }\n\n static $message (self, response) {\n if (!(response && response.headers && response.headers['x-response-by'] && response.headers['x-response-by'] === 'gateway')) {\n self.$message({\n type: 'error',\n message: (response && response.data && (response.data.msg || response.data.message || (response.data.errors && response.data.errors.map(function (item) {\n return item.message\n }).join(',')))) || '网络异常,请稍后再试'\n })\n } else if (!response.headers) {\n self.$message(response && response.stack)\n }\n }\n}\n\nServer.path = path\nexport default Server\n"],"sourceRoot":""}