f53c6ea0612af26a1a43f7140b722530.json 25 KB

1
  1. {"remainingRequest":"D:\\qianger\\7\\jindouyunNewFront\\node_modules\\babel-loader\\lib\\index.js!D:\\qianger\\7\\jindouyunNewFront\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\qianger\\7\\jindouyunNewFront\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\qianger\\7\\jindouyunNewFront\\src\\views\\Enterprise\\index.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\qianger\\7\\jindouyunNewFront\\src\\views\\Enterprise\\index.vue","mtime":1655374732000},{"path":"D:\\qianger\\7\\jindouyunNewFront\\babel.config.js","mtime":1655374732000},{"path":"D:\\qianger\\7\\jindouyunNewFront\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\qianger\\7\\jindouyunNewFront\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\qianger\\7\\jindouyunNewFront\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\qianger\\7\\jindouyunNewFront\\node_modules\\vue-loader\\lib\\index.js","mtime":1655715099000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:Ly8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy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Agc2Vzc2lvblN0b3JhZ2UuY2xlYXIoKTsKICAgICAgICB0aGlzLmxvZ291dCgpOwogICAgICB9KTsKICAgIH0KCiAgfQp9Ow=="},{"version":3,"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8GA,SACAA,gBADA,EAEAC,WAFA,EAGAC,UAHA,EAIAC,eAJA,QAKA,YALA;AAMA;AACA;AACA;AACA;AACA;EACAC,mBADA;EAEAC;IACAC;EADA,CAFA;;EAKAC;IACA;MACAC,eADA;MAEAC,0BAFA;MAGAC,kCAHA;MAIAC,mBAJA;MAKAC,kBALA;MAMAC,gBANA;MAOAC,YAPA;MAQAC,OARA;MASAC,aATA;MAUAC,cAVA;MAWAC;IAXA;EAaA,CAnBA;;EAoBAC,YACA;MACAC;IADA;EADA,CApBA;;EAyBAC;IACA;EACA,CA3BA;;EA4BAC;IACAC;MACAC;MACA;MACA;IACA,CALA;;IAMAC;MACA;MACA;IACA,CATA;;IAUA;MACAC,qCADA;MAEAC,6BAFA;MAGAC,0CAHA;MAIAC,sCAJA;MAKAC,kDALA;MAMAC,8CANA;MAOAC,oDAPA;MAQAC;IARA,EAVA;;IAqBA;IACA;MACA;QAAA1B;MAAA;;MACA;QACA;UACA;QACA,CAFA;QAGA;UACA;QACA,CAFA;QAGA;MACA;IACA,CAjCA;;IAkCA2B;MACA;QACA;MACA,CAFA;MAGA;IACA,CAvCA;;IAwCA;IACA;MACA;MACA;MACA;AACA;AACA;AACA;AACA;MACA;;MACA;MACA;MACA,sCAXA,CAYA;;MACA;MAEAV;MAEA;MACA,oCAlBA,CAmBA;;MACA;QACA;QACA;MACA,CAHA,MAGA;QACA;MACA;;MACAW;IACA,CApEA;;IAqEA;IACA;MACA;QAAA5B;MAAA;;MACA;QACA;MACA;;MACA;;MACA;QACA;QACA;MACA,CAHA,MAGA;QACA;MACA;IACA,CAlFA;;IAmFA;IACA;MACA;QAAAA;MAAA;MACAiB;MACAA;MACAA,6DAJA,CAMA;;MACA;MACAY;IACA,CA7FA;;IA8FAC;MACAb;MACAc;QACA;QACAd;MACA,CAHA,EAGA,GAHA;MAIAc;QACA;MACA,CAFA,EAEA,GAFA;IAGA,CAvGA;;IAwGA;MACA;;MACA;QACA;QACA;MACA,CAHA,MAGA;QACA;MACA,CAFA,MAEA;QACA;MACA;IACA,CAlHA;;IAmHAC;MACA;QACAC,uBADA;QAEAC,sBAFA;QAGAC;MAHA,GAIAC,IAJA,CAIA;QACAnB;QACA;MACA,CAPA;IAQA;;EA5HA;AA5BA","names":["getAllEnterprise","createToken","getAclList","getStaffByToken","name","components","CreateStore","data","enterpriseId","centerDialogVisible","fullYear","enterprise_list","enterprise_all","overdue_list","tab_index","page","page_size","total_count","user_info","computed","avatar","mounted","methods","addModel","sessionStorage","confirmAdd","setAccessToken","setEnToken","changeExpireTime","changeUserName","changeShelfLifeSetUp","changeUserCenterId","changeEnterpriseScope","changeEnterprise","changeTab","Loading","router","editData","setTimeout","loginOut","confirmButtonText","cancelButtonText","type","then"],"sourceRoot":"src/views/Enterprise","sources":["index.vue"],"sourcesContent":["<template>\n <div class=\"out-box\">\n <div class=\"top-view\">\n <div class=\"main-content clearfix\">\n <div class=\"logo-img float_left\">\n <img src=\"../../assets/img/logo-21249f@2x.png\" alt=\"logo\" />\n <span class=\"line\"></span>\n <span class=\"txt\">企业中心</span>\n </div>\n <div class=\"float_right\" style=\"color: #0a001f\">\n <el-popover placement=\"bottom\" width=\"200\" trigger=\"hover\">\n <div slot=\"reference\">\n <img :src=\"avatar\" alt=\"用户头像\" class=\"user-avatar\" />\n <span>{{ userName }}</span>\n </div>\n <p class=\"logo-out\" @click=\"loginOut\">退出登录</p>\n </el-popover>\n </div>\n </div>\n </div>\n <!-- <div class=\"tab\">-->\n <div class=\"tab-list clearfix\">\n <div\n class=\"tab-li\"\n :class=\"[tab_index === 1 ? 'tab-on' : '']\"\n @click=\"changeTab(false, 1)\"\n >\n 企业中心\n </div>\n <div\n class=\"tab-li\"\n :class=\"[tab_index === 2 ? 'tab-on' : '']\"\n @click=\"changeTab(true, 2)\"\n >\n 到期企业\n </div>\n <div class=\"add-btn float_right\" @click=\"addModel\">新建企业</div>\n </div>\n <!-- </div>-->\n <div class=\"e-main-div\">\n <ul v-if=\"enterprise_list.length\" class=\"enterprise-ul\">\n <li\n v-for=\"(item, index) in enterprise_list\"\n :key=\"index\"\n class=\"enterprise-li\"\n >\n <div class=\"center-div clearfix\">\n <div class=\"float_left\">\n <img :src=\"item.logo\" class=\"enter-logo\" alt=\"\" />\n </div>\n <div class=\"float_left enter-name\">\n {{ item.enterpriseName }}\n <i class=\"iconfont icon-bianji\" @click=\"editData(item)\"></i>\n </div>\n </div>\n <div class=\"left-div\">\n <div class=\"tag-li info-tag\">\n {{ item.scope === 4 ? \"单店铺\" : \"连锁店铺\" }}\n </div>\n <div v-if=\"item.expireStatus\" class=\"tag-li warning-tag\">到期</div>\n <div class=\"tag-li success-tag\">正常</div>\n </div>\n <div class=\"clearfix bottom-div\">\n <div class=\"time-p float_left\">\n <img src=\"@/assets/img/ic-yxtime.png\" class=\"ic-yxtime\" alt=\"\" />\n {{ $_common.formatDate(item.expireTime) }}\n </div>\n <div class=\"float_right btn-ul\" @click=\"goEnterprise(item)\">\n 进入企业\n </div>\n </div>\n </li>\n </ul>\n <div v-else class=\"no_enterprise-div\">\n <img\n class=\"no_enterprise\"\n src=\"../../assets/img/no_enterprise.png\"\n alt=\"\"\n />\n <p>\n 您还没有企业,快去创建吧!\n <el-button type=\"text\" @click=\"$router.push('/CreateStore')\">\n 立即创建\n </el-button>\n </p>\n </div>\n <div class=\"bottom-slogin\">\n ©2019- {{ fullYear }} {{ enterprise_title }} -\n 为传统企业量身打造的全渠道产业互联网线上线下一体化新零售营销系统!\n </div>\n </div>\n <el-dialog\n title=\"新建企业\"\n :visible.sync=\"centerDialogVisible\"\n width=\"40%\"\n :close-on-press-escape=\"false\"\n :close-on-click-modal=\"false\"\n @close=\"centerDialogVisible = false\"\n >\n <CreateStore\n v-if=\"centerDialogVisible\"\n :enterprise-id=\"enterpriseId\"\n @confirm=\"confirmAdd\"\n @cancel=\"centerDialogVisible = false\"\n ></CreateStore>\n </el-dialog>\n </div>\n</template>\n\n<script>\n import {\n getAllEnterprise,\n createToken,\n getAclList,\n getStaffByToken,\n } from \"@/api/user\";\n import CreateStore from \"./CreateStore.vue\";\n import { recordRoute } from \"@/config/settings\";\n import { mapActions, mapGetters } from \"vuex\";\n import router from \"@/router\";\n export default {\n name: \"SystemIndex\",\n components: {\n CreateStore,\n },\n data() {\n return {\n enterpriseId: 0,\n centerDialogVisible: false,\n fullYear: new Date().getFullYear(),\n enterprise_list: [],\n enterprise_all: [],\n overdue_list: [],\n tab_index: 1,\n page: 1,\n page_size: 10,\n total_count: 0,\n user_info: \"18888888888\",\n };\n },\n computed: {\n ...mapGetters({\n avatar: \"user/avatar\",\n }),\n },\n mounted() {\n this.getAllEnterprise();\n },\n methods: {\n addModel() {\n sessionStorage.removeItem(\"enToken\");\n this.enterpriseId = 0;\n this.centerDialogVisible = true;\n },\n confirmAdd() {\n this.centerDialogVisible = false;\n this.getAllEnterprise();\n },\n ...mapActions({\n setAccessToken: \"user/setAccessToken\",\n setEnToken: \"user/setEnToken\",\n changeExpireTime: \"MUser/changeExpireTime\",\n changeUserName: \"MUser/changeUserName\",\n changeShelfLifeSetUp: \"MUser/changeShelfLifeSetUp\",\n changeUserCenterId: \"MUser/changeUserCenterId\",\n changeEnterpriseScope: \"MUser/changeEnterpriseScope\",\n changeEnterprise: \"MUser/changeEnterprise\",\n }),\n\n // 获取企业列表\n async getAllEnterprise() {\n const { data } = await getAllEnterprise();\n if (data.length) {\n this.enterprise_list = data.filter((item) => {\n return !item.expireStatus;\n });\n this.overdue_list = data.filter((item) => {\n return item.expireStatus;\n });\n this.enterprise_all = data;\n }\n },\n changeTab(val, index) {\n this.enterprise_list = this.enterprise_all.filter((item) => {\n return item.expireStatus === val;\n });\n this.tab_index = index;\n },\n // 进入企业\n async goEnterprise(row) {\n const Loading = this.$baseColorfullLoading(1, \"正在进入企业...\");\n this.setEnToken(row.token);\n /*const { data } = await createToken({\n userCenterId: row.userCenterId,\n });\n // 重新生成token\n this.setAccessToken(data.token);*/\n // 保存店铺类型 区分单店和连锁\n this.changeEnterpriseScope(row.scope);\n this.changeEnterprise(row);\n this.changeExpireTime(row.expireTime);\n // 存储开启保质期设置状态\n this.changeShelfLifeSetUp(row.shelfLifeSetUp);\n\n sessionStorage.setItem(\"roleType\", row.roleType);\n\n await this.$store.dispatch(\"user/getUserInfo\", row.roleType);\n await this.getAclList(row.roleType);\n // await this.getStaffByToken(row.roleType);\n if (!this.$route.params.isCashier) {\n // await this.$router.push(`/`);\n this.$router.push(`/SelectStore`);\n } else {\n this.$router.push(`/CashierShop/CashierShop`);\n }\n Loading.close();\n },\n // 获取当前登录员工信息\n async getStaffByToken(roleType) {\n const { data } = await getStaffByToken(roleType);\n if (data.name) {\n this.changeUserName(data.name);\n }\n this.changeUserCenterId(data.userCenterId);\n if (!this.$route.params.isCashier) {\n // await this.$router.push(`/`);\n this.$router.push(`/SelectStore`);\n } else {\n this.$router.push(`/CashierShop/CashierShop`);\n }\n },\n // 获取员工权限\n async getAclList(roleType) {\n const { data } = await getAclList(roleType);\n sessionStorage.setItem(\"dataField\", JSON.stringify(data.dataField));\n sessionStorage.setItem(\"isSuper\", data.isAdministrator);\n sessionStorage.setItem(\"nodes\", JSON.stringify(data.custom));\n\n // 进入企业设置,根据权限设置菜单\n let accessRoutes = await this.$store.dispatch(\"routes/setRoutes\");\n router.addRoutes(accessRoutes);\n },\n editData(item) {\n sessionStorage.removeItem(\"enToken\");\n setTimeout(() => {\n this.enterpriseId = item.enterpriseId;\n sessionStorage.setItem(\"enToken\", item.token);\n }, 100);\n setTimeout(() => {\n this.centerDialogVisible = true;\n }, 500);\n },\n async logout() {\n await this.$store.dispatch(\"user/logout\");\n if (recordRoute) {\n const fullPath = this.$route.fullPath;\n this.$router.push(`/login?redirect=${fullPath}`);\n } else if (this.systemType === 3) {\n this.$router.push(\"/MerchantsLogin\");\n } else {\n this.$router.push(\"/login\");\n }\n },\n loginOut() {\n this.$confirm(\"确定要退出登录吗?\", \"提示\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n type: \"warning\",\n }).then(() => {\n sessionStorage.clear();\n this.logout();\n });\n },\n },\n };\n</script>\n\n<style scoped lang=\"scss\">\n .out-box {\n background-color: #f8fafd;\n height: 100vh;\n }\n .top-view {\n height: 80px;\n line-height: 80px;\n position: relative;\n background-color: #ffffff;\n box-shadow: 0 2px 20px 0 rgba(202, 208, 215, 0.3);\n .main-content {\n width: 1200px;\n margin: 0 auto;\n .logo-img {\n width: 320px;\n font-size: 18px;\n img {\n height: 36px;\n display: inline-block;\n vertical-align: middle;\n }\n .line {\n margin: 0 20px;\n width: 1px;\n height: 24px;\n display: inline-block;\n background-color: #e6e6e6;\n vertical-align: middle;\n /*margin-left: 20px;*/\n }\n .txt {\n font-size: 18px;\n font-weight: 400;\n color: #000000;\n margin-top: 20px;\n vertical-align: center;\n }\n }\n .float_right {\n cursor: pointer;\n .user-avatar {\n width: 48px;\n height: 48px;\n border-radius: 100%;\n vertical-align: middle;\n margin-right: 8px;\n }\n }\n }\n }\n\n .right {\n position: relative;\n top: 10px;\n right: 10px;\n }\n .tab-list {\n font-weight: bold;\n margin: 36px auto 0;\n height: 64px;\n line-height: 64px;\n background-color: #ffffff;\n width: 1200px;\n padding-left: 28px;\n border-radius: 2px 2px 0px 0px;\n border-bottom: 1px solid #dee2ee;\n .add-btn {\n margin-top: 12px;\n margin-right: 20px;\n width: 103px;\n height: 40px;\n line-height: 40px;\n background: #2153d4;\n border-radius: 6px;\n color: #ffffff;\n text-align: center;\n cursor: pointer;\n }\n .tab-li {\n float: left;\n margin-right: 32px;\n font-size: 16px;\n cursor: pointer;\n color: #4f5e7b;\n font-weight: 400;\n }\n .tab-on {\n font-weight: bold;\n color: #2153d4;\n position: relative;\n &::after {\n display: block;\n content: \"\";\n width: 32px;\n height: 2px;\n background: #2153d4;\n border-radius: 1px;\n bottom: 0;\n left: 50%;\n transform: translate(50%, -2px);\n }\n }\n }\n\n .btn {\n float: right;\n margin-top: -7px;\n }\n\n .tab-li:hover {\n color: #2153d4;\n }\n\n .e-label {\n font-size: 24px;\n padding-top: 40px;\n }\n .e-main-div {\n width: 1200px;\n margin: 0 auto;\n padding-bottom: 50px;\n }\n .head-div {\n padding: 20px 0 40px;\n line-height: 50px;\n }\n .i {\n width: 24px;\n height: 26px;\n /*background: #4f5e7b;*/\n }\n\n .enterprise-ul {\n padding-top: 30px;\n }\n .enterprise-li {\n width: 390px;\n border-radius: 6px;\n margin-bottom: 16px;\n padding: 16px;\n margin-right: 15px;\n background-color: #ffffff;\n display: inline-block;\n &:nth-child(3n) {\n margin-right: 0;\n }\n .center-div {\n .enter-name {\n vertical-align: center;\n line-height: 40px;\n font-size: 20px;\n color: #333;\n font-weight: bold;\n .iconfont {\n font-size: 16px;\n margin-left: 16px;\n color: #6c6c6c;\n font-weight: normal;\n cursor: pointer;\n &:hover {\n color: #2153d4;\n }\n }\n }\n .enter-logo {\n width: 40px;\n height: 40px;\n object-fit: contain;\n border-radius: 100%;\n margin-right: 8px;\n border: 1px solid #ddd;\n overflow: hidden;\n }\n }\n\n .left-div {\n padding-left: 48px;\n padding-top: 6px;\n .tag-li {\n width: 80px;\n height: 28px;\n line-height: 28px;\n border: 1px solid #cad0d7;\n text-align: center;\n display: inline-block;\n border-radius: 3px;\n font-size: 14px;\n margin-right: 8px;\n &:last-child {\n margin-right: 0;\n }\n &.info-tag {\n color: #4f5e7b;\n }\n &.warning-tag {\n color: #f7bd1b;\n border-color: #f7bd1b;\n background: rgba(247, 189, 27, 0.2);\n }\n &.success-tag {\n color: #36b365;\n border-color: #36b365;\n background: rgba(54, 179, 101, 0.16);\n }\n }\n }\n\n .bottom-div {\n padding-top: 20px;\n .btn-ul {\n width: 103px;\n height: 36px;\n border-radius: 4px;\n text-align: center;\n border: 1px solid #2153d4;\n font-size: 14px;\n font-weight: 500;\n color: #2153d4;\n line-height: 36px;\n cursor: pointer;\n &:hover {\n background-color: #2153d4;\n color: #ffffff;\n }\n }\n .time-p {\n font-size: 16px;\n color: #2d405e;\n padding-top: 5px;\n line-height: 20px;\n font-family: DINCond-Medium, DINCond;\n .ic-yxtime {\n width: 20px;\n height: 20px;\n vertical-align: middle;\n margin-right: 6px;\n transform: translateY(-2px);\n }\n }\n }\n }\n\n .logo-out {\n text-align: center;\n cursor: pointer;\n line-height: 30px;\n }\n .logo-out:hover {\n background-color: #f4f4f4;\n }\n .bottom-slogin {\n height: 52px;\n line-height: 52px;\n font-size: 12px;\n color: #4f5e7b;\n text-align: center;\n position: fixed;\n left: 0;\n background-color: #ffffff;\n bottom: 0;\n width: 100%;\n }\n .no_enterprise {\n width: 200px;\n margin-bottom: 20px;\n }\n .no_enterprise-div {\n font-size: 14px;\n text-align: center;\n padding: 40px 0;\n }\n</style>\n"]}]}