| 1 |
- {"remainingRequest":"/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//\n\nimport axios from '@/libs/api.request'\nexport default {\n\n name: 'voice',\n data () {\n return {\n queryDataPage: 1,\n total: 0,\n startDate: '',\n endDate: '',\n postData: {\n province: '', //省\n city: '', //市\n district: '', //区\n },\n provinceList: [], // 省列表\n cityList: [], // 市列表\n districtList: [], // 区列表\n // 查询条件\n queryData: {\n level: '',\n cp_id: '',\n mobile: '',\n pagenum: 10\n },\n columns: [\n\n {\n title: '代理ID',\n key: 'id'\n // width: 250,\n },\n {\n title: '等级',\n key: 'level',\n render: (h, params) => {\n let text = ''\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 return h('span', {\n props: {},\n }, text)\n }\n // width: 150,\n },\n {\n title: '昵称',\n key: 'nick_name'\n // width: 150,\n },\n {\n title: '手机',\n key: 'mobile'\n // width: 150,\n },\n {\n title: '代理数量',\n key: 'proxyNum'\n // width: 250,\n },\n {\n title: '代理费总(元)',\n key: 'proxyTotalPrice'\n // width: 150,\n },\n {\n title: '广告笔数',\n key: 'adverNum'\n // 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 ],\n tableData: [],\n isSearch: false\n }\n },\n created () {\n this.taskList()\n this.getProvince()\n },\n methods: {\n // 时间转换\n handleChange(date) {\n //console.log(date)\n this.startDate = date\n },\n endChange(date){\n this.endDate = date\n },\n // 分页\n levelchangepage (res) {\n this.queryDataPage = res\n if (this.isSearch) {\n this.cateadd(this.queryDataPage);\n } else {\n this.taskList()\n }\n },\n // 获取列表信息\n taskList () {\n axios\n .request({\n method: 'POST',\n url: '/admins/statistics/proxy',\n data: {\n page: this.queryDataPage,\n perPage: this.queryData.pagenum\n }\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 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)\n //listData = clearNullData(listData)\n axios\n .request({\n method: 'POST',\n url: '/admins/statistics/proxy',\n data: listData\n })\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 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\n // this.postData.province = res.data.data.list[0]\n } else {\n this.$Message.error(res.data.message, 'middle')\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 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 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}\n",null]}
|