manage-client 3.2.75 → 3.2.76-jb

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/.babelrc +5 -5
  2. package/.classpath +6 -6
  3. package/.editorconfig +9 -9
  4. package/.project +18 -18
  5. package/README.md +38 -38
  6. package/build/dev-server.js +8 -8
  7. package/config/dev.env.js +6 -6
  8. package/config/prod.env.js +3 -3
  9. package/config/test.env.js +6 -6
  10. package/package.json +14 -8
  11. package/release.bat +5 -5
  12. package/src/App.vue +71 -28
  13. package/src/components/MeterManage/ChangeMeterQuery.vue +82 -82
  14. package/src/components/MeterManage/HandQuery.vue +72 -72
  15. package/src/components/MeterManage/ReversalQuery.vue +77 -77
  16. package/src/components/SellReport/GaspriceHas.vue +141 -141
  17. package/src/components/SellReport/ManageBusSummary.vue +224 -224
  18. package/src/components/WebReport/AbnormalInfoEcharts.vue +120 -120
  19. package/src/components/WebReport/Communication.vue +131 -131
  20. package/src/components/WebReport/CompanyUser.vue +79 -79
  21. package/src/components/WebReport/GaspriceHas.vue +141 -141
  22. package/src/components/WebReport/ReportWorklist.vue +220 -220
  23. package/src/components/WebReport/SellType.vue +89 -89
  24. package/src/components/WebReport/Telemanlist.vue +221 -221
  25. package/src/components/WebReport/UserGasEcharts.vue +107 -107
  26. package/src/components/WebReport/ValueEcharts.vue +99 -99
  27. package/src/components/sale/businessquery/overDueQuery.vue +12 -0
  28. package/src/components/sale/config/DefaultPrint.js +6 -6
  29. package/src/components/sale/filesquery/detail/oper/ChangeMessage.vue +46 -46
  30. package/src/components/sale/filesquery/detail/oper/HandOper.vue +46 -46
  31. package/src/components/sale/filesquery/detail/oper/HandleMessage.vue +46 -46
  32. package/src/components/webmeter/gasAnalysis/GasAnalysisEcharts.vue +144 -144
  33. package/src/components/webmeter/gasAnalysis/GasAnalysisSummary.vue +162 -162
  34. package/src/components/webmeter/gasStatistics/GasStatistics.vue +462 -467
  35. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEform.vue +149 -149
  36. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  37. package/src/main.js +66 -66
  38. package/src/plugins/LodopFuncs.js +124 -124
  39. package/src/stores/GetParames.js +15 -15
  40. package/src/stores/Util.js +132 -132
  41. package/test/unit/.eslintrc +5 -5
  42. package/test/unit/TestUtil.js +35 -35
  43. package/test/unit/context.html +20 -20
  44. package/test/unit/index.js +13 -13
  45. package/test/unit/init.js +11 -11
  46. package/test/unit/karma.conf.js +45 -45
  47. package/test/unit/specs/components/CallReport/Repair.spec.js +25 -25
  48. package/test/unit/specs/components/ManageBusiness/EquipmentQuery.spec.js +21 -21
  49. package/test/unit/specs/components/ManageBusiness/TableWithQuery.spec.js +21 -21
  50. package/test/unit/specs/components/ManageBusiness/UserQuery.spec.js +21 -21
@@ -1,144 +1,144 @@
1
- <template lang="html">
2
- <div id="charts">
3
- <div id="gasanalysis" :style="{width:'100%',height:'100%'}"></div>
4
- </div>
5
- </template>
6
-
7
- <script>
8
- import co from 'co'
9
- import echarts from 'echarts'
10
- import { HttpResetClass } from 'vue-client'
11
-
12
- let getData = function * (self, condition) {
13
- let load = new HttpResetClass()
14
- console.log('startDate', self.startdate)
15
- console.log('endDate', self.enddate)
16
- load.load('POST', 'rs/sql/gasAnalysisEcharts',
17
- {data: {condition: condition, groupname: self.groupname, startDate: self.startdate,
18
- endDate: self.enddate}},
19
- {resolveMsg: null, rejectMsg: null})
20
- .then((res) => {
21
- let arrparams = []
22
- let gasdata = []
23
- for (var i = 0; i < res.data.length; i++) {
24
- arrparams[i] = res.data[i].f_type
25
- gasdata[i] = res.data[i].f_oughtamount
26
- }
27
- self.set(arrparams,gasdata)
28
- })
29
- }
30
- export default {
31
- data () {
32
- title: '业务类型'
33
- return {
34
- xc: ''
35
- }
36
- },
37
- props: {
38
- startdate: {
39
- type: String,
40
- default: ''
41
- },
42
- enddate: {
43
- type: String,
44
- default: ''
45
- },
46
- condition: {
47
- type: String,
48
- default: '1=1'
49
- },
50
- groupname: {
51
- type: String,
52
- default: 'year'
53
- }
54
- },
55
- methods: {
56
- set (arrparams,gasdata) {
57
- let name = ''
58
- if(this.groupname === 'year')
59
- {
60
- name = '年'
61
- } else if (this.groupname === 'month'){
62
- name = '月'
63
- } else if (this.groupname === 'week'){
64
- name = '周'
65
- } else {
66
- name = '日'
67
- }
68
- this.xc = echarts.init(document.getElementById('gasanalysis'))
69
- this.xc.setOption({
70
- title: {
71
- text: '用气' + name + '分析柱状图',
72
- subtext: '',
73
- textStyle:{
74
- color: '#000',
75
- fontStyle: 'normal',
76
- fontWeight: 'normal',
77
- fontSize: 40
78
- },
79
- x: 'center',
80
- subtextStyle: {
81
- color: '#000',
82
- fontSize: 40
83
- }
84
- },
85
- color: ['#3398DB'],
86
- tooltip : {
87
- trigger: 'axis',
88
- axisPointer : { // 坐标轴指示器,坐标轴触发有效
89
- type : 'shadow' // 默认为直线,可选为:'line' | 'shadow'
90
- }
91
- },
92
- grid: {
93
- left: '3%',
94
- right: '4%',
95
- bottom: '3%',
96
- containLabel: true
97
- },
98
- xAxis : [
99
- {
100
- name: '日期',
101
- type : 'category',
102
- data : arrparams,
103
- axisTick: {
104
- alignWithLabel: true
105
- }
106
- }
107
- ],
108
- yAxis : [
109
- {
110
- name: '用气量(m³)',
111
- type : 'value'
112
- }
113
- ],
114
- series : [
115
- {
116
- name:'用气量(m³)',
117
- type:'bar',
118
- barWidth: '30%',
119
- data:gasdata
120
- }
121
- ]
122
- })
123
- },
124
- searchdata (condition) {
125
- let getGen = getData(this, condition)
126
- co(getGen)
127
- }
128
- },
129
- watch: {
130
- 'condition' (val) {
131
- this.searchdata(val)
132
- },
133
- 'groupname' (val) {
134
- this.searchdata(this.condition)
135
- },
136
- 'startdate' (val) {
137
- this.startdate = val
138
- },
139
- 'enddate' (val) {
140
- this.enddate = val
141
- }
142
- }
143
- }
144
- </script>
1
+ <template lang="html">
2
+ <div id="charts">
3
+ <div id="gasanalysis" :style="{width:'100%',height:'100%'}"></div>
4
+ </div>
5
+ </template>
6
+
7
+ <script>
8
+ import co from 'co'
9
+ import echarts from 'echarts'
10
+ import { HttpResetClass } from 'vue-client'
11
+
12
+ let getData = function * (self, condition) {
13
+ let load = new HttpResetClass()
14
+ console.log('startDate', self.startdate)
15
+ console.log('endDate', self.enddate)
16
+ load.load('POST', 'rs/sql/gasAnalysisEcharts',
17
+ {data: {condition: condition, groupname: self.groupname, startDate: self.startdate,
18
+ endDate: self.enddate}},
19
+ {resolveMsg: null, rejectMsg: null})
20
+ .then((res) => {
21
+ let arrparams = []
22
+ let gasdata = []
23
+ for (var i = 0; i < res.data.length; i++) {
24
+ arrparams[i] = res.data[i].f_type
25
+ gasdata[i] = res.data[i].f_oughtamount
26
+ }
27
+ self.set(arrparams,gasdata)
28
+ })
29
+ }
30
+ export default {
31
+ data () {
32
+ title: '业务类型'
33
+ return {
34
+ xc: ''
35
+ }
36
+ },
37
+ props: {
38
+ startdate: {
39
+ type: String,
40
+ default: ''
41
+ },
42
+ enddate: {
43
+ type: String,
44
+ default: ''
45
+ },
46
+ condition: {
47
+ type: String,
48
+ default: '1=1'
49
+ },
50
+ groupname: {
51
+ type: String,
52
+ default: 'year'
53
+ }
54
+ },
55
+ methods: {
56
+ set (arrparams,gasdata) {
57
+ let name = ''
58
+ if(this.groupname === 'year')
59
+ {
60
+ name = '年'
61
+ } else if (this.groupname === 'month'){
62
+ name = '月'
63
+ } else if (this.groupname === 'week'){
64
+ name = '周'
65
+ } else {
66
+ name = '日'
67
+ }
68
+ this.xc = echarts.init(document.getElementById('gasanalysis'))
69
+ this.xc.setOption({
70
+ title: {
71
+ text: '用气' + name + '分析柱状图',
72
+ subtext: '',
73
+ textStyle:{
74
+ color: '#000',
75
+ fontStyle: 'normal',
76
+ fontWeight: 'normal',
77
+ fontSize: 40
78
+ },
79
+ x: 'center',
80
+ subtextStyle: {
81
+ color: '#000',
82
+ fontSize: 40
83
+ }
84
+ },
85
+ color: ['#3398DB'],
86
+ tooltip : {
87
+ trigger: 'axis',
88
+ axisPointer : { // 坐标轴指示器,坐标轴触发有效
89
+ type : 'shadow' // 默认为直线,可选为:'line' | 'shadow'
90
+ }
91
+ },
92
+ grid: {
93
+ left: '3%',
94
+ right: '4%',
95
+ bottom: '3%',
96
+ containLabel: true
97
+ },
98
+ xAxis : [
99
+ {
100
+ name: '日期',
101
+ type : 'category',
102
+ data : arrparams,
103
+ axisTick: {
104
+ alignWithLabel: true
105
+ }
106
+ }
107
+ ],
108
+ yAxis : [
109
+ {
110
+ name: '用气量(m³)',
111
+ type : 'value'
112
+ }
113
+ ],
114
+ series : [
115
+ {
116
+ name:'用气量(m³)',
117
+ type:'bar',
118
+ barWidth: '30%',
119
+ data:gasdata
120
+ }
121
+ ]
122
+ })
123
+ },
124
+ searchdata (condition) {
125
+ let getGen = getData(this, condition)
126
+ co(getGen)
127
+ }
128
+ },
129
+ watch: {
130
+ 'condition' (val) {
131
+ this.searchdata(val)
132
+ },
133
+ 'groupname' (val) {
134
+ this.searchdata(this.condition)
135
+ },
136
+ 'startdate' (val) {
137
+ this.startdate = val
138
+ },
139
+ 'enddate' (val) {
140
+ this.enddate = val
141
+ }
142
+ }
143
+ }
144
+ </script>
@@ -1,162 +1,162 @@
1
- <template lang="html">
2
- <div class="span" >
3
- <p class="bg-info text-center " style="padding: 8px;">用户用气汇总</p>
4
- <div class="mystyle2 " >
5
- <label class="control-label">汇总项</label>
6
- <input type="checkbox" id="year" value="year" v-model="nameForSql"/>
7
- <label for="year">年份</label>
8
- <input type="checkbox" id="month" value="month" v-model="nameForSql"/>
9
- <label for="month">月份</label>
10
- <input type="checkbox" id="week" value="week" v-model="nameForSql"/>
11
- <label for="week">周</label>
12
- <input type="checkbox" id="day" value="day" v-model="nameForSql"/>
13
- <label for="day">日</label>
14
- <input type="checkbox" id="f_userType" value="f_user_type" v-model="nameForSql"/>
15
- <label for="f_userType">用户类型</label>
16
- <input type="checkbox" id="f_gasproperties" value="f_gasproperties" v-model="nameForSql"/>
17
- <label for="f_gasproperties">用气性质</label>
18
- <input type="checkbox" id="f_orgstr" value="f_orgstr" v-model="nameForSql"/>
19
- <label for="f_orgstr">营业网点</label>
20
- <input type="checkbox" id="f_filialeids" value="f_filialeids" v-model="nameForSql"/>
21
- <label for="f_filialeids">分公司</label>
22
- <button class="btn btn-success" @click="searchData">查询</button>
23
- <span style="float: right">
24
- <report-excel class="btn btn-success" id="table"></report-excel>
25
- <report-print class="btn btn-success" id="table" top='3cm' left='0' width='100%' height='100%'></report-print></span>
26
- </div>
27
- <div id="table">
28
- <table class="table table-bordered">
29
- <thead class="text-left">
30
- <tr style="text-align:center">
31
- <p style="padding: 8px;text-align:center">用户用气汇总</p>
32
- </tr>
33
- <tr>
34
- <th v-if="nameForSql.includes('year')" style="text-align:center">年份</th>
35
- <th v-if="nameForSql.includes('month')" style="text-align:center">月份</th>
36
- <th v-if="nameForSql.includes('week')" style="text-align:center">周</th>
37
- <th v-if="nameForSql.includes('day')" style="text-align:center">日</th>
38
- <th v-if="nameForSql.includes('f_user_type')" style="text-align:center">用户类型</th>
39
- <th v-if="nameForSql.includes('f_gasproperties')" style="text-align:center">用气性质</th>
40
- <th v-if="nameForSql.includes('f_orgstr')" style="text-align:center">营业网点</th>
41
- <th v-if="nameForSql.includes('f_filialeids')" style="text-align:center">分公司</th>
42
- <th style="text-align:center"><nobr>总用气气量(m³)</nobr></th>
43
- <th style="text-align:center"><nobr>总用气金额(元)</nobr></th>
44
- <th style="text-align:center"><nobr>一阶总气量(m³)</nobr></th>
45
- <th style="text-align:center"><nobr>一阶总金额(元)</nobr></th>
46
- <th style="text-align:center"><nobr>二阶总气量(m³)</nobr></th>
47
- <th style="text-align:center"><nobr>二阶总金额(元)</nobr></th>
48
- <th style="text-align:center"><nobr>三阶总气量(m³)</nobr></th>
49
- <th style="text-align:center"><nobr>三阶总金额(元)</nobr></th>
50
- </tr></thead>
51
- <tbody>
52
- <tr v-for="item in model2">
53
- <td style="text-align:center" v-if="nameForSql.includes('year')">{{item.year}}</td>
54
- <td style="text-align:center" v-if="nameForSql.includes('month')">{{item.month}}</td>
55
- <td style="text-align:center" v-if="nameForSql.includes('week')">{{item.week}}</td>
56
- <td style="text-align:center" v-if="nameForSql.includes('day')">{{item.day}}</td>
57
- <td style="text-align:center" v-if="nameForSql.includes('f_user_type')">{{item.f_user_type}}</td>
58
- <td style="text-align:center" v-if="nameForSql.includes('f_gasproperties')">{{item.f_gasproperties}}</td>
59
- <td style="text-align:center" v-if="nameForSql.includes('f_orgstr')">{{item.f_orgstr}}</td>
60
- <td style="text-align:center" v-if="nameForSql.includes('f_filialeids')">{{item.f_filialeids}}</td>
61
- <td style="text-align:center">{{item.f_oughtamount}}</td>
62
- <td style="text-align:center">{{item.f_oughtfee}}</td>
63
- <td style="text-align:center">{{item.f_gas1}}</td>
64
- <td style="text-align:center">{{item.f_money1}}</td>
65
- <td style="text-align:center">{{item.f_gas2}}</td>
66
- <td style="text-align:center">{{item.f_money2}}</td>
67
- <td style="text-align:center">{{item.f_gas3}}</td>
68
- <td style="text-align:center">{{item.f_money3}}</td>
69
- </tr>
70
- </tbody>
71
- </table>
72
- </div>
73
- </div>
74
- </template>
75
-
76
- <script>
77
- import { HttpResetClass } from 'vue-client'
78
- export default {
79
- props:{
80
- startdate: {
81
- type: String,
82
- default: ''
83
- },
84
- enddate: {
85
- type: String,
86
- default: ''
87
- }
88
- },
89
- data(){
90
- return{
91
- model2:null,
92
- conditionForSql: '1=1',
93
- nameForSql:[],
94
- groupNameForSql :'',
95
-
96
- }
97
- },
98
- ready (){
99
- },
100
- methods :{
101
- async searchData(){
102
- if(this.groupNameForSql) {
103
- let load = new HttpResetClass()
104
- let res = await load.load('POST', 'rs/sql/gasAnalysisSummary',
105
- {data: {condition: this.conditionForSql, groupname: this.groupNameForSql}},
106
- {resolveMsg: null, rejectMsg: null})
107
- console.log('res返回', res)
108
- this.model2 = res.data
109
- console.log('res返回123', this.model2)
110
- }else{
111
- window.alert("请选择汇总项")
112
- }
113
- },
114
- //拼接groupName1
115
- getGroupName1(){
116
- console.log("this.nameForSql.length:"+this.nameForSql.length)
117
- let str= ''
118
- let i=0
119
- for(;i<this.nameForSql.length-1;i++){
120
- str +=this.nameForSql[i]+','
121
- }
122
- str +=this.nameForSql[i]
123
- this.groupNameForSql =str.trim()
124
- console.log("拼接的groupname为:"+this.groupNameForSql)
125
- console.log("拼接的groupname[][]为:"+this.nameForSql)
126
- },
127
-
128
-
129
- },
130
- watch:{
131
-
132
- 'nameForSql'(){
133
- // this.nameForSql =this.groupNameByDate;
134
- this.getGroupName1()
135
-
136
-
137
- },
138
- '$parent.condition'(val){
139
- console.log("监听groupNameByDate,新"+val+"旧:")
140
- this.conditionForSql = val
141
- }
142
- }
143
- }
144
- </script>
145
-
146
- <style scoped>
147
- .mystyle2{
148
- width: 100%;
149
- height: 35px;
150
- /*background: #00A3F0;*/
151
- padding-left: 15px;
152
- float: left;
153
- }
154
- .datapanel {
155
- color: #333;
156
- background-color: white;
157
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
158
- padding: 10px 30px 10px 30px;
159
- border-radius:15px;
160
- }
161
-
162
- </style>
1
+ <template lang="html">
2
+ <div class="span" >
3
+ <p class="bg-info text-center " style="padding: 8px;">用户用气汇总</p>
4
+ <div class="mystyle2 " >
5
+ <label class="control-label">汇总项</label>
6
+ <input type="checkbox" id="year" value="year" v-model="nameForSql"/>
7
+ <label for="year">年份</label>
8
+ <input type="checkbox" id="month" value="month" v-model="nameForSql"/>
9
+ <label for="month">月份</label>
10
+ <input type="checkbox" id="week" value="week" v-model="nameForSql"/>
11
+ <label for="week">周</label>
12
+ <input type="checkbox" id="day" value="day" v-model="nameForSql"/>
13
+ <label for="day">日</label>
14
+ <input type="checkbox" id="f_userType" value="f_user_type" v-model="nameForSql"/>
15
+ <label for="f_userType">用户类型</label>
16
+ <input type="checkbox" id="f_gasproperties" value="f_gasproperties" v-model="nameForSql"/>
17
+ <label for="f_gasproperties">用气性质</label>
18
+ <input type="checkbox" id="f_orgstr" value="f_orgstr" v-model="nameForSql"/>
19
+ <label for="f_orgstr">营业网点</label>
20
+ <input type="checkbox" id="f_filialeids" value="f_filialeids" v-model="nameForSql"/>
21
+ <label for="f_filialeids">分公司</label>
22
+ <button class="btn btn-success" @click="searchData">查询</button>
23
+ <span style="float: right">
24
+ <report-excel class="btn btn-success" id="table"></report-excel>
25
+ <report-print class="btn btn-success" id="table" top='3cm' left='0' width='100%' height='100%'></report-print></span>
26
+ </div>
27
+ <div id="table">
28
+ <table class="table table-bordered">
29
+ <thead class="text-left">
30
+ <tr style="text-align:center">
31
+ <p style="padding: 8px;text-align:center">用户用气汇总</p>
32
+ </tr>
33
+ <tr>
34
+ <th v-if="nameForSql.includes('year')" style="text-align:center">年份</th>
35
+ <th v-if="nameForSql.includes('month')" style="text-align:center">月份</th>
36
+ <th v-if="nameForSql.includes('week')" style="text-align:center">周</th>
37
+ <th v-if="nameForSql.includes('day')" style="text-align:center">日</th>
38
+ <th v-if="nameForSql.includes('f_user_type')" style="text-align:center">用户类型</th>
39
+ <th v-if="nameForSql.includes('f_gasproperties')" style="text-align:center">用气性质</th>
40
+ <th v-if="nameForSql.includes('f_orgstr')" style="text-align:center">营业网点</th>
41
+ <th v-if="nameForSql.includes('f_filialeids')" style="text-align:center">分公司</th>
42
+ <th style="text-align:center"><nobr>总用气气量(m³)</nobr></th>
43
+ <th style="text-align:center"><nobr>总用气金额(元)</nobr></th>
44
+ <th style="text-align:center"><nobr>一阶总气量(m³)</nobr></th>
45
+ <th style="text-align:center"><nobr>一阶总金额(元)</nobr></th>
46
+ <th style="text-align:center"><nobr>二阶总气量(m³)</nobr></th>
47
+ <th style="text-align:center"><nobr>二阶总金额(元)</nobr></th>
48
+ <th style="text-align:center"><nobr>三阶总气量(m³)</nobr></th>
49
+ <th style="text-align:center"><nobr>三阶总金额(元)</nobr></th>
50
+ </tr></thead>
51
+ <tbody>
52
+ <tr v-for="item in model2">
53
+ <td style="text-align:center" v-if="nameForSql.includes('year')">{{item.year}}</td>
54
+ <td style="text-align:center" v-if="nameForSql.includes('month')">{{item.month}}</td>
55
+ <td style="text-align:center" v-if="nameForSql.includes('week')">{{item.week}}</td>
56
+ <td style="text-align:center" v-if="nameForSql.includes('day')">{{item.day}}</td>
57
+ <td style="text-align:center" v-if="nameForSql.includes('f_user_type')">{{item.f_user_type}}</td>
58
+ <td style="text-align:center" v-if="nameForSql.includes('f_gasproperties')">{{item.f_gasproperties}}</td>
59
+ <td style="text-align:center" v-if="nameForSql.includes('f_orgstr')">{{item.f_orgstr}}</td>
60
+ <td style="text-align:center" v-if="nameForSql.includes('f_filialeids')">{{item.f_filialeids}}</td>
61
+ <td style="text-align:center">{{item.f_oughtamount}}</td>
62
+ <td style="text-align:center">{{item.f_oughtfee}}</td>
63
+ <td style="text-align:center">{{item.f_gas1}}</td>
64
+ <td style="text-align:center">{{item.f_money1}}</td>
65
+ <td style="text-align:center">{{item.f_gas2}}</td>
66
+ <td style="text-align:center">{{item.f_money2}}</td>
67
+ <td style="text-align:center">{{item.f_gas3}}</td>
68
+ <td style="text-align:center">{{item.f_money3}}</td>
69
+ </tr>
70
+ </tbody>
71
+ </table>
72
+ </div>
73
+ </div>
74
+ </template>
75
+
76
+ <script>
77
+ import { HttpResetClass } from 'vue-client'
78
+ export default {
79
+ props:{
80
+ startdate: {
81
+ type: String,
82
+ default: ''
83
+ },
84
+ enddate: {
85
+ type: String,
86
+ default: ''
87
+ }
88
+ },
89
+ data(){
90
+ return{
91
+ model2:null,
92
+ conditionForSql: '1=1',
93
+ nameForSql:[],
94
+ groupNameForSql :'',
95
+
96
+ }
97
+ },
98
+ ready (){
99
+ },
100
+ methods :{
101
+ async searchData(){
102
+ if(this.groupNameForSql) {
103
+ let load = new HttpResetClass()
104
+ let res = await load.load('POST', 'rs/sql/gasAnalysisSummary',
105
+ {data: {condition: this.conditionForSql, groupname: this.groupNameForSql}},
106
+ {resolveMsg: null, rejectMsg: null})
107
+ console.log('res返回', res)
108
+ this.model2 = res.data
109
+ console.log('res返回123', this.model2)
110
+ }else{
111
+ window.alert("请选择汇总项")
112
+ }
113
+ },
114
+ //拼接groupName1
115
+ getGroupName1(){
116
+ console.log("this.nameForSql.length:"+this.nameForSql.length)
117
+ let str= ''
118
+ let i=0
119
+ for(;i<this.nameForSql.length-1;i++){
120
+ str +=this.nameForSql[i]+','
121
+ }
122
+ str +=this.nameForSql[i]
123
+ this.groupNameForSql =str.trim()
124
+ console.log("拼接的groupname为:"+this.groupNameForSql)
125
+ console.log("拼接的groupname[][]为:"+this.nameForSql)
126
+ },
127
+
128
+
129
+ },
130
+ watch:{
131
+
132
+ 'nameForSql'(){
133
+ // this.nameForSql =this.groupNameByDate;
134
+ this.getGroupName1()
135
+
136
+
137
+ },
138
+ '$parent.condition'(val){
139
+ console.log("监听groupNameByDate,新"+val+"旧:")
140
+ this.conditionForSql = val
141
+ }
142
+ }
143
+ }
144
+ </script>
145
+
146
+ <style scoped>
147
+ .mystyle2{
148
+ width: 100%;
149
+ height: 35px;
150
+ /*background: #00A3F0;*/
151
+ padding-left: 15px;
152
+ float: left;
153
+ }
154
+ .datapanel {
155
+ color: #333;
156
+ background-color: white;
157
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
158
+ padding: 10px 30px 10px 30px;
159
+ border-radius:15px;
160
+ }
161
+
162
+ </style>