| 1 |
- {"remainingRequest":"/usr/local/develop/php/www/waibao/NN2022100801/NN2022100801/addons/admin/node_modules/thread-loader/dist/cjs.js!/usr/local/develop/php/www/waibao/NN2022100801/NN2022100801/addons/admin/node_modules/babel-loader/lib/index.js!/usr/local/develop/php/www/waibao/NN2022100801/NN2022100801/addons/admin/node_modules/cache-loader/dist/cjs.js??ref--0-0!/usr/local/develop/php/www/waibao/NN2022100801/NN2022100801/addons/admin/node_modules/vue-loader/lib/index.js??vue-loader-options!/usr/local/develop/php/www/waibao/NN2022100801/NN2022100801/addons/admin/src/view/count/agent_count.vue?vue&type=script&lang=js&","dependencies":[{"path":"/usr/local/develop/php/www/waibao/NN2022100801/NN2022100801/addons/admin/src/view/count/agent_count.vue","mtime":1618306924000},{"path":"/usr/local/develop/php/www/waibao/NN2022100801/NN2022100801/addons/admin/node_modules/cache-loader/dist/cjs.js","mtime":1665684022107},{"path":"/usr/local/develop/php/www/waibao/NN2022100801/NN2022100801/addons/admin/node_modules/thread-loader/dist/cjs.js","mtime":1665684003955},{"path":"/usr/local/develop/php/www/waibao/NN2022100801/NN2022100801/addons/admin/node_modules/babel-loader/lib/index.js","mtime":1665684010704},{"path":"/usr/local/develop/php/www/waibao/NN2022100801/NN2022100801/addons/admin/node_modules/cache-loader/dist/cjs.js","mtime":1665684022107},{"path":"/usr/local/develop/php/www/waibao/NN2022100801/NN2022100801/addons/admin/node_modules/vue-loader/lib/index.js","mtime":1665684006084}],"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//\nimport axios from '@/libs/api.request';\nexport default {\n name: 'voice',\n\n data() {\n return {\n queryDataPage: 1,\n total: 0,\n startDate: '',\n endDate: '',\n postData: {\n province: '',\n //省\n city: '',\n //市\n district: '' //区\n\n },\n provinceList: [],\n // 省列表\n cityList: [],\n // 市列表\n districtList: [],\n // 区列表\n // 查询条件\n queryData: {\n level: '',\n cp_id: '',\n mobile: '',\n pagenum: 10\n },\n columns: [{\n title: '代理ID',\n key: 'id' // width: 250,\n\n }, {\n title: '等级',\n key: 'level',\n render: (h, params) => {\n let text = '';\n\n if (params.row.level == 1) {\n text = 'A';\n } else if (params.row.level == 2) {\n text = 'B';\n } else if (params.row.level == 3) {\n text = 'C';\n } else if (params.row.level == 4) {\n text = 'D';\n } else if (params.row.level == 5) {\n text = 'E';\n } else if (params.row.level == 6) {\n text = 'F';\n } else if (params.row.level == 7) {\n text = 'G';\n }\n\n return h('span', {\n props: {}\n }, text);\n } // width: 150,\n\n }, {\n title: '昵称',\n key: 'nick_name' // width: 150,\n\n }, {\n title: '手机',\n key: 'mobile' // width: 150,\n\n }, {\n title: '代理数量',\n key: 'proxyNum' // width: 250,\n\n }, {\n title: '代理费总(元)',\n key: 'proxyTotalPrice' // width: 150,\n\n }, {\n title: '广告笔数',\n key: 'adverNum' // width: 150,\n\n } // {\n // title: '统计时间',\n // key: 'time',\n // render: (h, params) => {\n // \t\treturn h('div', [\n // \t\t\th('p', params.row.start.date + '至' + params.row.end.date)\n // \t\t])\n // \t}\n // // width: 250,\n // }\n ],\n tableData: [],\n isSearch: false\n };\n },\n\n created() {\n this.taskList();\n this.getProvince();\n },\n\n methods: {\n // 时间转换\n handleChange(date) {\n //console.log(date)\n this.startDate = date;\n },\n\n endChange(date) {\n this.endDate = date;\n },\n\n // 分页\n levelchangepage(res) {\n this.queryDataPage = res;\n\n if (this.isSearch) {\n this.cateadd(this.queryDataPage);\n } else {\n this.taskList();\n }\n },\n\n // 获取列表信息\n taskList() {\n axios.request({\n method: 'POST',\n url: '/admins/statistics/proxy',\n data: {\n page: this.queryDataPage,\n perPage: this.queryData.pagenum\n }\n }).then(res => {\n if (res.data.code === 'success') {\n this.isSearch = false;\n this.tableData = res.data.data.data;\n this.total = res.data.data.total;\n } else {\n this.$Message.error(res.data.message, 'middle');\n }\n });\n },\n\n cateadd(page) {\n var listData = {\n page: page,\n mobile: this.queryData.mobile,\n province: this.postData.province,\n city: this.postData.city,\n district: this.postData.district,\n start: this.startDate,\n end: this.endDate,\n perpage: 10\n }; // 清除对象中的空属性\n\n listData = this.clearNullData(listData); //listData = clearNullData(listData)\n\n axios.request({\n method: 'POST',\n url: '/admins/statistics/proxy',\n data: listData\n }).then(res => {\n if (res.data.code === 'success') {\n this.$refs['pages'].currentPage = page;\n this.isSearch = true;\n this.tableData = res.data.data.data;\n this.total = res.data.data.total;\n } else {\n this.$Message.error(res.data.message, 'middle');\n }\n });\n },\n\n // 省\n getProvince(type) {\n axios.request({\n method: 'GET',\n url: '/admins/area/0'\n }).then(res => {\n if (res.data.code === 'success') {\n //this.postData.province === '' && (this.postData.province = res.data.data.list[0].id)\n this.provinceList = res.data.data.list; // this.postData.province = res.data.data.list[0]\n } else {\n this.$Message.error(res.data.message, 'middle');\n }\n });\n },\n\n // 市\n getCity() {\n var id = this.postData.province;\n axios.request({\n method: 'GET',\n url: '/admins/area/' + id\n }).then(res => {\n if (res.data.code === 'success') {\n this.cityList = res.data.data.list;\n this.postData.city = res.data.data.list[0].id;\n this.getDistrict();\n } else {\n this.$Message.error(res.data.message, 'middle');\n }\n });\n },\n\n // 区\n getDistrict() {\n // var id = parseInt(this.$route.query.id)\n var id = this.postData.city;\n axios.request({\n method: 'GET',\n url: '/admins/area/' + this.postData.city\n }).then(res => {\n if (res.data.code === 'success') {\n this.districtList = res.data.data.list;\n this.postData.district = res.data.data.list[0].id;\n\n if (this.$route.query.id) {\n this.postData.district = this.bankList[id].district;\n }\n } else {\n this.$Message.error(res.data.message, 'middle');\n }\n });\n }\n\n }\n};",null]}
|