Merge branch 'master' into test
2 files added
2 files deleted
7 files modified
| | |
| | | <include>**/*.woff</include> |
| | | <include>**/*.woff2</include> |
| | | <include>**/*.ttf</include> |
| | | <include>**/*.xls</include> |
| | | </includes> |
| | | </resource> |
| | | <resource> |
| | |
| | | import com.matrix.core.pojo.AjaxResult; |
| | | import com.matrix.core.tools.WebUtil; |
| | | import com.matrix.system.common.bean.SysUsers; |
| | | import com.matrix.system.common.tools.DataAuthUtil; |
| | | import com.matrix.system.hive.bean.SysShopInfo; |
| | | import com.matrix.system.hive.dao.SysShopInfoDao; |
| | | import com.matrix.system.hiveErp.analysUtil.*; |
| | |
| | | |
| | | //获取所有门店 |
| | | SysUsers user = WebUtil.getSessionAttribute(MatrixConstance.LOGIN_KEY); |
| | | List<SysShopInfo> shops= shopInfoDao.selectShopInfo(user.getCompanyId()); |
| | | |
| | | List<SysShopInfo> shops=null; |
| | | if(DataAuthUtil.hasAllShopAuth()){ |
| | | shops= shopInfoDao.selectShopInfo(user.getCompanyId()); |
| | | }else{ |
| | | shops=Arrays.asList(shopInfoDao.selectById(user.getShopId())); |
| | | } |
| | | //定义数据项内容 |
| | | List<SeriesVo> series=new ArrayList<>(); |
| | | |
| | |
| | | this.$unitSelect = $("#unitSelect"); |
| | | //记录当前视图的格式化字符串 |
| | | this.dateFmt = ""; |
| | | |
| | | //绑定搜索事件 |
| | | $('#serach').on("click",{charts:this},this.updateChartsDate); |
| | | //时间单位选择变化 |
| | |
| | | event.data.charts.loadChartData(); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | *指定图表的配置项和数据 |
| | | */ |
| | | ChartsUtils.prototype.getption=function(title) { |
| | | return { |
| | | title: { |
| | | text: title, |
| | | padding: 20 |
| | | }, |
| | | legend: {}, |
| | | toolbox: { |
| | | show: true, |
| | | feature: { |
| | | mark: {show: true}, |
| | | dataView: {show: true, readOnly: false}, |
| | | magicType: {show: true, type: ['line', 'bar']}, |
| | | restore: {show: true}, |
| | | saveAsImage: {show: true} |
| | | } |
| | | }, |
| | | tooltip: { |
| | | trigger: 'axis' |
| | | }, |
| | | xAxis: { |
| | | type: 'category', |
| | | boundaryGap: false, |
| | | axisLabel: { |
| | | rotate: 30 |
| | | }, |
| | | splitLine: { |
| | | show: false, |
| | | }, |
| | | data: [] |
| | | }, |
| | | yAxis: { |
| | | type: 'value' |
| | | }, |
| | | dataZoom: [ |
| | | { |
| | | id: 'dataZoomX', |
| | | type: 'slider', |
| | | xAxisIndex: [0], |
| | | filterMode: 'filter' |
| | | } |
| | | ], |
| | | animation: true, |
| | | animationDuration: 1000, |
| | | animationDurationUpdate: 1000, |
| | | animationEasing: 'linear', |
| | | animationEasingUpdate: 'linear', |
| | | } |
| | | |
| | | }; |
| | | |
| | |
| | | var myChart1 = echarts.init(document.getElementById('echarts-line-chart1'), 'macarons'); |
| | | var myChart2 = echarts.init(document.getElementById('echarts-line-chart2'), 'macarons'); |
| | | var myChart3 = echarts.init(document.getElementById('echarts-line-chart3'), 'macarons'); |
| | | /* |
| | | 点击事件 |
| | | myChart1.on('click', function (params) { |
| | | console.log(params); |
| | | }); |
| | | */ |
| | | /* |
| | | 点击事件 |
| | | myChart1.on('click', function (params) { |
| | | console.log(params); |
| | | }); |
| | | */ |
| | | // 指定图表的配置项和数据 |
| | | function getption() { |
| | | return { |
| | |
| | | }; |
| | | |
| | | |
| | | function exportExcelexportExcel(){ |
| | | function exportExcel(){ |
| | | |
| | | var param=MForm.toUrlParam("#serchform"); |
| | | |
| | |
| | | |
| | | |
| | | function download() { |
| | | window.location.href=basePath + "/templates/vipProjUse.zip"; |
| | | window.location.href=basePath + "/templates/vipProjUse.xls"; |
| | | } |
| | | </script> |
| | | </body> |
| | |
| | | |
| | | |
| | | function download() { |
| | | window.location.href= "https://filehive2.jyymatrix.cc/uploadeFile/vipInfoImport.zip"; |
| | | window.location.href= "https://filehive2.jyymatrix.cc/uploadeFile/vipInfoImport.xls"; |
| | | } |
| | | </script> |
| | | </body> |