{"version":3,"sources":["webpack:///./src/components/main.vue?7058","webpack:///./src/components/main.vue?d2a8","webpack:///src/components/main.vue","webpack:///./src/components/main.vue?2026","webpack:///./src/components/main.vue","webpack:///./src/services/main.js","webpack:///./src/apis/regExp.js","webpack:///./src/apis/index.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","menus","currentMenuPath","staticStyle","slot","_v","_s","partnerName","class","isActive","employeeName","employeeNo","on","$event","redirectTo","logout","_e","staticRenderFns","data","window","location","hash","substring","show","currentType","userInfo","$tools","auth","getCurrentUserInfo","computed","sessionStorage","getItem","JSON","parse","organName","beforeCreate","$router","beforeEach","to","from","next","path","partnerId","employeeId","isPartTime","setItem","push","axios","post","Server","apiMps","partner_id","created_id","created_name","login_day","parseInt","Date","now","customerId","mpsData","get","params","custoemrpartnerid","type","ismpsAdmin","ismpsTimeOut","status","operations","getAllActionsoperations","operate","forEach","router","children","length","meta","actions","concat","map","it","opKid","id","title","options","routes","setAuto","setCurrentUserInfo","Object","assign","res","ownPort","pageIndex","pageSize","isDeleted","platform","partnerData","$axios","apiCrmOS","admin","emps","sitList","find","employee_id","getAdmin","mainService","getMenus","permission","addClassMenus","syncRouterParentsStatus","noSortMenus","sortMenus","systemSet","reduce","total","item","sort","finallyMenus","a","b","$route","name","methods","headers","global","getToken","clearToken","clearCurrentUserInfo","clear","href","encodeURIComponent","origin","url","stringify","removeItem","openMenu","closeMenu","component","routers","root","permissionCb","row","startsWith","aPath","productClass","Number","product_class","menu","icon","promote","option","serviceLoginHide","partnerType","includes","isNorightHide","isCard","isMarket","needKey","ignore","controlProductType","productImg","currentProductType","tree","i","getClass","result","cell","filter","email","apiCrmUs","constructor","http","allError","$message","warning","$http","error","err","isadd","cb","response","resData","msg","errors","message","join","obj","o","Array","clearAllNull","key","String","trim","regExp","self","stack"],"mappings":"wGAAA,W,yCCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,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.57f2f7c5.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!./main.vue?vue&type=style&index=0&id=c2991700&prod&lang=less\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.show)?_c('jw-frame',{staticClass:\"mps-iframe\",attrs:{\"home-page\":'#/',\"logo\":\"/logo.png\",\"menus\":_vm.menus,\"title\":\"用户运营系统\",\"current-menu-path\":_vm.currentMenuPath,\"tools\":['top', 'breadcrumb']}},[_c('router-view'),_c('div',{staticClass:\"company_name\",staticStyle:{\"float\":\"left\"},attrs:{\"slot\":\"top\"},slot:\"top\"},[_vm._v(\" \"+_vm._s(_vm.partnerName)+\" \")]),_c('div',{staticStyle:{\"float\":\"right\"},attrs:{\"slot\":\"top\"},slot:\"top\"},[_c('el-menu',{staticClass:\"el-menu-demo home-top\",attrs:{\"mode\":\"horizontal\"}},[_c('el-submenu',{attrs:{\"index\":\"1\",\"popper-class\":\"el-user-out\"}},[_c('template',{slot:\"title\"},[_c('span',{class:{'employ-name': true, 'employ-no': _vm.isActive}},[_vm._v(_vm._s(_vm.employeeName)+_vm._s(_vm.employeeNo ? (\"(\" + _vm.employeeNo + \")\") : ''))])]),_c('el-menu-item',{attrs:{\"index\":\"1-1\"}},[_c('p',{staticClass:\"login-out\",on:{\"click\":function($event){return _vm.redirectTo('/user_manage/information')}}},[_c('i',{staticClass:\"mps-icon icon-gerenziliao login-out-close\"}),_c('span',{staticClass:\"login-out-text\"},[_vm._v(\"个人资料\")])])]),_c('el-menu-item',{attrs:{\"index\":\"1-2\"}},[_c('p',{staticClass:\"login-out\",on:{\"click\":function($event){return _vm.redirectTo('/user_manage/modify')}}},[_c('i',{staticClass:\"mps-icon icon-xiugaimima login-out-close\"}),_c('span',{staticClass:\"login-out-text\"},[_vm._v(\"修改密码\")])])]),_c('el-menu-item',{staticClass:\"login-out-wrap\",attrs:{\"index\":\"1-3\"}},[_c('p',{staticClass:\"login-out\",on:{\"click\":_vm.logout}},[_c('span',{staticClass:\"login-out-text\"},[_vm._v(\"退出登录\")])])])],2)],1)],1)],1):_vm._e()}\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!./main.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!./main.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./main.vue?vue&type=template&id=c2991700\"\nimport script from \"./main.vue?vue&type=script&lang=js\"\nexport * from \"./main.vue?vue&type=script&lang=js\"\nimport style0 from \"./main.vue?vue&type=style&index=0&id=c2991700&prod&lang=less\"\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 null,\n null\n \n)\n\nexport default component.exports","export default {\n /**\n * 根据路由配置获取菜单数据\n * @param {*} routers 路由配置\n * @param {*} root 根路径,如果没有就以 '/' 为根路径\n * @param {function} permissionCb 更具权限id判断权限\n * @param {number} currentType 用户身份 2、普通用户 1、代理商 0、运营商\n */\n getMenus (routers, root, permissionCb, currentType) {\n const menus = []\n const customerId = window.sessionStorage.getItem('mps_customer_id')\n routers.forEach(row => {\n /**\n * @param {object} row.meta\n * @param {number} row.meta.id 菜单 Id 生成uuid\n *\n * @param {string} row.meta.partnerType 该菜单所属的企业类型,逗号分隔\n * @description\n * OS-MPS对应不同 OS 0: 企业 1: 服务商 2:运营商 MPS 0: 运营 1: 服务商 2: 企业\n * 在router中配置的是os的对应关系,要根据router生成os、us\n * 在项目中使用的currentType 是MPS的对应关系\n *\n * @param {string} row.meta.title 菜单名称\n * @param {string} row.meta.icon 菜单图片 iconfont字体库\n * @param {boolean} row.meta.isNorightHide 没有权限时菜单是否隐藏,服务商进入客户操作该菜单隐藏\n * @param {boolean} row.meta.isCard 该菜单是否属于智能名片产品\n * @param {boolean} row.meta.isMarket 该菜单是否属于全员营销产品\n * @param {string} row.meta.needKey 该菜单是否受产品内容控制,受控制的字段\n *\n * @param {number[]} row.meta.controlProductType 菜单所属产品类型 0 - 全员营销产品 1 - 智能名片产品\n * @description\n * isCard: true,\n isMarket: true,\n needKey: 'is_name_card',\n controlProductType: [0],\n *当前购买的产品为全员营销(type为0)时 验证全员营销产品 is_name_card 功能是否开启\n *当前购买的产品为智能名片(type为1)时 不需要验证\n\n * @param {string} row.meta.ignore 不验证改菜单权限\n * @param {string} row.meta.productImg 没开通产品功能时提示图片\n * @param {string} row.meta.productTitle 没开通产品功能时提示文字\n * @param {string} row.meta.noRightTip 没有角色权限时提示文字\n */\n\n let path = row.path\n if (path.startsWith('/')) {\n path = path.substring(1)\n }\n const aPath = (root || '') + '/' + path\n const userInfo = window.global.$tools.auth.getCurrentUserInfo()\n const productClass = Number(userInfo.product_class)\n const children = row.children && row.children.length > 0 ? this.getMenus(row.children, aPath, permissionCb, currentType) : []\n const menu = {\n id: row.meta.id, //\n title: row.meta.title, // 菜单名称\n icon: row.meta.icon, // 菜单图标,\n path: aPath, // 访问路径\n promote: row.meta.promote, // 是否提升菜单\n option: row.meta.option,\n component: row.component,\n sort: row.meta.sort,\n children: children // 子菜单\n }\n\n // 代理商进入客户\n if (customerId && !row.meta.serviceLoginHide && row.meta.partnerType.includes('0')) {\n menus.push(menu)\n } else if (!customerId) {\n // 运营商\n if (currentType === 0) {\n if ((!menu.id && row.meta.partnerType.includes('2')) || permissionCb(menu.id)) {\n menus.push(menu)\n }\n // 服务商\n } else if (currentType === 1) {\n if ((!menu.id && row.meta.partnerType.includes('1')) || permissionCb(menu.id)) {\n menus.push(menu)\n }\n } else {\n // 企业\n if (!row.meta.isNorightHide && row.meta.partnerType.includes('0')) {\n const { isCard, isMarket, needKey, ignore, controlProductType, productImg } = row.meta\n\n const currentProductType = productClass === 0 ? isMarket : isCard\n if ((typeof productImg !== 'undefined' ? (ignore || (currentProductType && !needKey) || (currentProductType && needKey && !controlProductType.includes(productClass)) || (currentProductType && needKey && controlProductType.includes(productClass) && Number(userInfo[needKey]) === 1)) : true) && ((permissionCb(menu.id) || !menu.id))) {\n menus.push(menu)\n } else {\n menus.push(Object.assign(menu, { class: 'menu-noright' }))\n }\n } else if (row.meta.isNorightHide && permissionCb(menu.id)) {\n const { isCard, isMarket, needKey, ignore, controlProductType, productImg } = row.meta\n\n const currentProductType = productClass === 0 ? isMarket : isCard\n if ((typeof productImg !== 'undefined' ? (ignore || (currentProductType && !needKey) || (currentProductType && needKey && !controlProductType.includes(productClass)) || (currentProductType && needKey && controlProductType.includes(productClass) && Number(userInfo[needKey]) === 1)) : true) && ((permissionCb(menu.id) || !menu.id))) {\n menus.push(menu)\n } else {\n menus.push(Object.assign(menu, { class: 'menu-noright' }))\n }\n }\n }\n }\n })\n return menus\n },\n syncRouterParentsStatus (tree) {\n for (let i = 0; i < tree.length; i++) {\n const item = tree[i]\n if (!((item.children && item.children.length === 0) || (item.class && item.class.includes('menu-noright')))) {\n item.class = this.getClass(item)\n }\n }\n return tree\n },\n getClass (item) {\n const result = []\n for (let i = 0; i < item.children.length; i++) {\n const cell = item.children[i]\n if (cell.children.length === 0) {\n result.push(cell.class)\n } else {\n result.push(this.getClass(cell))\n }\n }\n return result.filter(it => !it).length > 0 ? null : 'menu-noright'\n }\n}\n","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":""}