{"remainingRequest":"/data/jenkins/workspace/admin.ws.baibaodun.com.cn/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/admin.ws.baibaodun.com.cn/src/views/distribution/index.vue?vue&type=script&lang=js","dependencies":[{"path":"/data/jenkins/workspace/admin.ws.baibaodun.com.cn/src/views/distribution/index.vue","mtime":1701741776311},{"path":"/data/jenkins/workspace/admin.ws.baibaodun.com.cn/node_modules/cache-loader/dist/cjs.js","mtime":1701741918737},{"path":"/data/jenkins/workspace/admin.ws.baibaodun.com.cn/node_modules/thread-loader/dist/cjs.js","mtime":1701741918386},{"path":"/data/jenkins/workspace/admin.ws.baibaodun.com.cn/node_modules/babel-loader/lib/index.js","mtime":1701741929501},{"path":"/data/jenkins/workspace/admin.ws.baibaodun.com.cn/node_modules/cache-loader/dist/cjs.js","mtime":1701741918737},{"path":"/data/jenkins/workspace/admin.ws.baibaodun.com.cn/node_modules/vue-loader/lib/index.js","mtime":1701741928146}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n// +---------------------------------------------------------------------\n// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]\n// +---------------------------------------------------------------------\n// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.\n// +---------------------------------------------------------------------\n// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权\n// +---------------------------------------------------------------------\n// | Author: CRMEB Team \n// +---------------------------------------------------------------------\nimport { promoterListApi } from '@/api/distribution';\nimport cardsData from '@/components/cards/index';\nimport promoterList from '@/components/distribution/promoterList'\nimport addSubordinateDialog from '@/components/distribution/addSubordinateDialog';\nimport { checkPermi } from '@/utils/permission'; // 权限判断函数\nimport AddSubordinateDialog from '@/components/distribution/addSubordinateDialog.vue';\nexport default {\n name: 'AccountsUser',\n components: { cardsData, promoterList, addSubordinateDialog, AddSubordinateDialog },\n\n data() {\n return {\n listLoading: false,\n showPromoterListDialog: false,\n showSubordinateDialog: false,\n titleName: '',\n uid: '',\n onName: '',\n fromList: this.$constants.fromList,\n distributorList: [],\n timeVal: [],\n checkList: [],\n searchInfo: {\n dateLimit: '',\n keywords: '',\n userType: null,\n org: ''\n },\n limit: 20,\n total: 0,\n page: 1,\n type: ''\n };\n },\n\n mounted() {\n if (checkPermi(['platform:retail:store:people:list'])) this.getList();\n console.info('debug');\n },\n\n methods: {\n checkPermi,\n\n getList() {\n this.listLoading = true;\n let params = {\n page: this.page,\n limit: this.limit\n }\n\n this.searchInfo.dateLimit ? params.dateLimit = this.searchInfo.dateLimit : null;\n this.searchInfo.keywords ? params.keywords = this.searchInfo.keywords : null;\n this.searchInfo.org ? params.org = this.searchInfo.org : null;\n this.searchInfo.userType > 0 ? params.userType = this.searchInfo.userType : null;\n\n promoterListApi(params)\n .then((res) => {\n let { limit, list, page, total, totalPage } = res;\n\n this.distributorList = list;\n this.limit = limit;\n this.total = total;\n this.page = page;\n this.totalPage = totalPage\n this.listLoading = false;\n })\n .catch(() => {\n this.listLoading = false;\n });\n },\n\n searchList() {\n this.page = 1;\n this.getList();\n },\n\n // 具体日期\n onchangeTime(e) {\n this.timeVal = e;\n this.searchInfo.dateLimit = e ? this.timeVal.join(',') : '';\n this.getList();\n },\n\n selectOptions(selection) {\n this.checkList = selection;\n },\n\n onSpread(uid, n, p) {\n this.onName = n;\n this.titleName = p;\n this.uid = uid;\n this.showPromoterListDialog = true;\n },\n\n // 清除\n // clearSpread(row) {\n // this.$modalSure('解除【' + row.nickname + '】的上级推广人吗').then(() => {\n // spreadClearApi(row.uid).then((res) => {\n // this.$message.success('清除成功');\n // this.getList(1);\n // });\n // });\n // },\n\n openSubordinateDialog(type) {\n this.type = type;\n this.showSubordinateDialog = true;\n },\n\n handleSizeChange(val) {\n this.limit = val;\n this.getList();\n },\n\n pageChange(page) {\n this.page = page;\n this.getList();\n },\n\n closePromoterListDialog() {\n this.showPromoterListDialog = false;\n }\n },\n};\n",null]}