{"remainingRequest":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\reform-fvue\\src\\views\\BigScreen\\components\\innerTables\\demandList.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\BigScreen\\components\\innerTables\\demandList.vue","mtime":1684123860905},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\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//\nimport utils from '@/utils.js';\nimport * as echarts from 'echarts';\nimport pagenation from \"./pagenation.vue\";\nimport apiList from '@/api/bigScreen/districView.js';\nexport default {\n components: {\n pagenation: pagenation\n },\n props: {\n tableOptions: {\n type: Object,\n default: function _default() {\n return {};\n }\n }\n },\n data: function data() {\n return {\n loadingColor: 'rgba(6, 46, 106, 0.4)',\n loading: false,\n stage: '',\n params: {\n pageBean: {\n page: 1,\n pageSize: 10,\n total: 0,\n showTotal: true\n },\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'DEMAND_NO_',\n // 字段名\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'a.propulsive_year_',\n // 字段名\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'LESS_EQUAL',\n parentGroup: '',\n property: 'a.propulsive_month_',\n // 字段名\n relation: 'AND',\n value: ''\n }],\n sorter: [{\n direction: 'DESC',\n property: 'create_time_'\n }]\n },\n tableData: [],\n pieChart: null,\n pieChartData: [],\n chartLoading: false,\n ggbb_ssly: [],\n ggbb_cyzty: [],\n processData: [{\n name: '纳入需求全量库',\n value: 1,\n num: 0\n }, {\n name: '纳入需求清单交办',\n value: 2,\n num: 0\n }, {\n name: '交办区县落实',\n value: 3,\n num: 0\n }, {\n name: '完成销号',\n value: 4,\n num: 0\n }],\n tableHeight: 300\n };\n },\n mounted: function mounted() {\n var _this = this;\n\n this.$nextTick(function () {\n _this.getTableHeight();\n });\n this.$root.$on('resize', function () {\n _this.getTableHeight();\n });\n this.loadData('dafault');\n this.ggbb_ssly = utils.getDictItemsFromCache('ggbb_ssly');\n this.ggbb_cyzty = utils.getDictItemsFromCache('ggbb_cyzty');\n },\n methods: {\n loadData: function loadData(type) {\n var _this2 = this;\n\n if (type) this.chartLoading = true;\n this.loading = true;\n var searchDate = sessionStorage.getItem('searchDate');\n searchDate = JSON.parse(searchDate);\n this.params.querys[1].value = searchDate.year;\n this.params.querys[2].value = searchDate.month;\n apiList.getDemandList(this.params, function (res) {\n if (res && res.domainChart && type) {\n _this2.ggbb_ssly.forEach(function (item) {\n var obj = {\n name: item.name,\n value: 0\n };\n res.domainChart.forEach(function (domain) {\n if (item.name == domain.description) {\n obj.value = domain.commonCount;\n }\n }); // res.domainChart = [{commonCount: 36, description: '党建统领'},\n // {commonCount: 36, description: '经济发展'},\n // {commonCount: 16, description: '社会民生'},\n // {commonCount: 4, description: '文化建设'},\n // {commonCount: 7, description: '平安法治'},\n // {commonCount: 2, description: '民主法制'},]\n // res.domainChart.forEach((domain) => {\n // if (item.name == domain.description) {\n // obj.value = domain.commonCount\n // }\n // })\n\n _this2.pieChartData.push(obj);\n });\n\n _this2.initPieChart();\n }\n\n if (res && res.processChart && type) {\n _this2.processData.forEach(function (item) {\n res.processChart.forEach(function (domain) {\n if (item.name == domain.description) {\n item.num = domain.commonCount;\n }\n });\n });\n\n console.log(_this2.processData);\n }\n\n if (res && res.recordList) {\n _this2.tableData = res.recordList.rows;\n _this2.params.pageBean.page = res.recordList.page;\n _this2.params.pageBean.pageSize = res.recordList.pageSize;\n _this2.params.pageBean.total = res.recordList.total;\n }\n\n _this2.loading = false;\n if (type) _this2.chartLoading = false;\n });\n },\n pageChange: function pageChange(key) {\n this.params.pageBean.page = key;\n this.loadData();\n },\n search: function search(key) {\n this.stage = key;\n this.params.querys[0].value = key;\n this.params.pageBean.page = 1;\n this.loadData();\n },\n initPieChart: function initPieChart() {\n var _this3 = this;\n\n var colorList = [{\n colorStart: '#53CD67',\n colorEnd: '#2F733A'\n }, {\n colorStart: '#FF9800',\n colorEnd: '#8F3E1D'\n }, {\n colorStart: '#1790FF',\n colorEnd: '#1161AA'\n }, {\n colorStart: '#FFC000',\n colorEnd: '#975A01'\n }, {\n colorStart: '#fdb9c7',\n colorEnd: '#d4818b'\n }, {\n colorStart: '#fcffaa',\n colorEnd: '#829562'\n }];\n var option = {\n series: [{\n name: '改革举措表现情况',\n type: 'pie',\n radius: ['28%', '45%'],\n center: ['50%', '45%'],\n left: 0,\n top: 0,\n labelLine: {\n //指示线样式设置\n length: 15,\n //设置指示线的长度\n length2: 50,\n //横线宽度\n lineStyle: {\n color: '#B1E3FF' // 设置标示线的颜色\n\n }\n },\n label: {\n textStyle: {\n color: '#B1E3FF',\n // 改变标示文字的颜色\n fontSize: 10 //文字大小\n\n },\n formatter: '{b} {c} \\n\\n',\n padding: [0, -60],\n alignTo: 'labelLine'\n },\n // itemStyle: {\n // color: list => {\n // return {\n // type: 'radial',\n // x: 0.5,\n // y: 0.5,\n // r: 1,\n // colorStops: [\n // {\n // offset: 0,\n // color: colorList[list.dataIndex]['colorStart'] // 0% 处的颜色\n // },\n // {\n // offset: 1,\n // color: colorList[list.dataIndex]['colorEnd'] // 100% 处的颜色\n // }\n // ],\n // global: false // 缺省为 false\n // }\n // // 注意 !!!!! 这里的数组一定要和实际的类目长度相等或大于,不然会缺少颜色报错\n // return new echarts.graphic.LinearGradient(1, 0, 0, 0, [\n // {\n // offset: 1,\n // color: colorList[list.dataIndex]['colorEnd']\n // },\n // {\n // //左、下、右、上\n // offset: 0,\n // color: colorList[list.dataIndex]['colorStart']\n // },\n // {\n // offset: 1,\n // color: colorList[list.dataIndex]['colorEnd']\n // }\n // ])\n // }\n // },\n data: this.pieChartData\n }]\n };\n this.pieChart = echarts.init(document.getElementById('pieChart'));\n option && this.pieChart.setOption(option);\n window.addEventListener('resize', function () {\n return _this3.pieChart.resize();\n });\n },\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n getSubDictName: function getSubDictName(code, subCode, value, subValue) {\n var dict = utils.getDictItemsFromCache(code);\n var name = '';\n dict.forEach(function (item) {\n if (item.value == value) {\n console.log(item.value, value);\n item.lowerDic[subCode].forEach(function (sub) {\n if (sub.value == subValue) {\n name = sub.name;\n }\n });\n }\n });\n return name;\n },\n getTableHeight: function getTableHeight() {\n this.tableHeight = this.$refs.tableContaier.clientHeight || this.$refs.tableContaier.$el.clientHeight;\n }\n }\n};",null]}