manage-client 3.2.75 → 3.2.78
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.
- package/.babelrc +5 -5
- package/.classpath +6 -6
- package/.editorconfig +9 -9
- package/.gradle/4.4/fileContent/fileContent.lock +0 -0
- package/.gradle/4.4/fileHashes/fileHashes.bin +0 -0
- package/.gradle/4.4/fileHashes/fileHashes.lock +0 -0
- package/.gradle/4.4/taskHistory/taskHistory.bin +0 -0
- package/.gradle/4.4/taskHistory/taskHistory.lock +0 -0
- package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/.project +18 -18
- package/README.md +38 -38
- package/build/dev-server.js +2 -2
- package/build/libs/ManageClient-3.1.0-17.jar +0 -0
- package/build/tmp/jar/MANIFEST.MF +2 -0
- package/config/dev.env.js +6 -6
- package/config/prod.env.js +3 -3
- package/config/test.env.js +6 -6
- package/package.json +2 -2
- package/release.bat +5 -5
- package/src/components/MeterManage/ChangeMeterQuery.vue +82 -82
- package/src/components/MeterManage/HandQuery.vue +72 -72
- package/src/components/MeterManage/ReversalQuery.vue +77 -77
- package/src/components/SellReport/GaspriceHas.vue +141 -141
- package/src/components/SellReport/ManageBusSummary.vue +224 -224
- package/src/components/WebReport/AbnormalInfoEcharts.vue +120 -120
- package/src/components/WebReport/Communication.vue +131 -131
- package/src/components/WebReport/CompanyUser.vue +79 -79
- package/src/components/WebReport/GaspriceHas.vue +141 -141
- package/src/components/WebReport/ReportWorklist.vue +220 -220
- package/src/components/WebReport/SellType.vue +89 -89
- package/src/components/WebReport/Telemanlist.vue +221 -221
- package/src/components/WebReport/UserGasEcharts.vue +107 -107
- package/src/components/WebReport/ValueEcharts.vue +99 -99
- package/src/components/sale/businessquery/ChargeQuery.vue +1277 -1276
- package/src/components/sale/businessquery/overDueQuery.vue +12 -0
- package/src/components/sale/config/DefaultPrint.js +6 -6
- package/src/components/sale/config/exportConfig.js +925 -925
- package/src/components/sale/filesquery/detail/oper/ChangeMessage.vue +46 -46
- package/src/components/sale/filesquery/detail/oper/HandOper.vue +46 -46
- package/src/components/sale/filesquery/detail/oper/HandleMessage.vue +46 -46
- package/src/components/webmeter/gasAnalysis/GasAnalysisEcharts.vue +144 -144
- package/src/components/webmeter/gasAnalysis/GasAnalysisSummary.vue +162 -162
- package/src/components/webmeter/instruction/NewQueryInstruct.vue +446 -446
- package/src/components/webmeter/newwebmeter/NewException/NewExceptionEform.vue +149 -149
- package/src/filiale/macheng/FxGasTable.vue +236 -0
- package/src/filiale/macheng/ManageBusSummary.vue +224 -0
- package/src/filiale/macheng/ManageDayGas.vue +248 -0
- package/src/filiale/macheng/ManageHandSellMoney.vue +249 -0
- package/src/filiale/macheng/ManageMonthGas.vue +250 -0
- package/src/filiale/macheng/ManageOtherCharge.vue +251 -0
- package/src/filiale/macheng/ManageSellType.vue +287 -0
- package/src/filiale/macheng/RecordInfoQuery.vue +2 -2
- package/src/filiale/macheng/SellingTable.vue +219 -0
- package/src/filiale/macheng/UserBalanceReport.vue +178 -0
- package/src/filiale/macheng/config/exportConfig.js +67 -67
- package/src/filiale/macheng/reportManage.js +19 -0
- package/src/filiale/macheng/sale.js +11 -11
- package/src/main.js +2 -2
- package/src/plugins/LodopFuncs.js +124 -124
- package/src/stores/GetParames.js +15 -15
- package/src/stores/Util.js +132 -132
- package/test/unit/.eslintrc +5 -5
- package/test/unit/TestUtil.js +35 -35
- package/test/unit/context.html +20 -20
- package/test/unit/index.js +13 -13
- package/test/unit/init.js +11 -11
- package/test/unit/karma.conf.js +45 -45
- package/test/unit/specs/components/CallReport/Repair.spec.js +25 -25
- package/test/unit/specs/components/ManageBusiness/EquipmentQuery.spec.js +21 -21
- package/test/unit/specs/components/ManageBusiness/TableWithQuery.spec.js +21 -21
- package/test/unit/specs/components/ManageBusiness/UserQuery.spec.js +21 -21
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="auto">
|
|
3
|
-
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
-
<data-grid :model="model" partial='list' v-ref:grid >
|
|
5
|
-
<template partial='head'>
|
|
6
|
-
<tr>
|
|
7
|
-
<th><nobr>序号</nobr></th>
|
|
8
|
-
<th><nobr>下发时间</nobr></th>
|
|
9
|
-
<th><nobr>抄表时间</nobr></th>
|
|
10
|
-
<th><nobr>上期底数</nobr></th>
|
|
11
|
-
<th><nobr>本期底数</nobr></th>
|
|
12
|
-
</tr>
|
|
13
|
-
</template>
|
|
14
|
-
<template partial='body'>
|
|
15
|
-
<td ><nobr>{{$index + 1}}</nobr></td>
|
|
16
|
-
<td ><nobr>{{row.f_hand_date}}</nobr></td>
|
|
17
|
-
<td ><nobr>{{row.f_input_date}}</nobr></td>
|
|
18
|
-
<td ><nobr>{{row.f_last_tablebase}}</nobr></td>
|
|
19
|
-
<td ><nobr>{{row.f_tablebase}}</nobr></td>
|
|
20
|
-
</template>
|
|
21
|
-
<template partial='foot'>
|
|
22
|
-
</template>
|
|
23
|
-
</data-grid>
|
|
24
|
-
</criteria-paged>
|
|
25
|
-
</div>
|
|
26
|
-
</template>
|
|
27
|
-
|
|
28
|
-
<script>
|
|
29
|
-
import { PagedList } from 'vue-client'
|
|
30
|
-
|
|
31
|
-
export default {
|
|
32
|
-
title: '抄表明细',
|
|
33
|
-
data () {
|
|
34
|
-
return {
|
|
35
|
-
model: new PagedList('rs/sql/newhandplanQuery', 15,{})
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
props: ['data'],
|
|
39
|
-
ready () {
|
|
40
|
-
console.log('抄表明细查询',this.data)
|
|
41
|
-
//u.f_userinfo_code=${data.f_userinfo_code} and h.f_filialeids = ${data.f_filialeids}
|
|
42
|
-
this.model.search(`f_userinfo_code='${this.data.f_userinfo_code}' and f_filialeids = '${this.data.f_filialeids}'`)
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto">
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
+
<data-grid :model="model" partial='list' v-ref:grid >
|
|
5
|
+
<template partial='head'>
|
|
6
|
+
<tr>
|
|
7
|
+
<th><nobr>序号</nobr></th>
|
|
8
|
+
<th><nobr>下发时间</nobr></th>
|
|
9
|
+
<th><nobr>抄表时间</nobr></th>
|
|
10
|
+
<th><nobr>上期底数</nobr></th>
|
|
11
|
+
<th><nobr>本期底数</nobr></th>
|
|
12
|
+
</tr>
|
|
13
|
+
</template>
|
|
14
|
+
<template partial='body'>
|
|
15
|
+
<td ><nobr>{{$index + 1}}</nobr></td>
|
|
16
|
+
<td ><nobr>{{row.f_hand_date}}</nobr></td>
|
|
17
|
+
<td ><nobr>{{row.f_input_date}}</nobr></td>
|
|
18
|
+
<td ><nobr>{{row.f_last_tablebase}}</nobr></td>
|
|
19
|
+
<td ><nobr>{{row.f_tablebase}}</nobr></td>
|
|
20
|
+
</template>
|
|
21
|
+
<template partial='foot'>
|
|
22
|
+
</template>
|
|
23
|
+
</data-grid>
|
|
24
|
+
</criteria-paged>
|
|
25
|
+
</div>
|
|
26
|
+
</template>
|
|
27
|
+
|
|
28
|
+
<script>
|
|
29
|
+
import { PagedList } from 'vue-client'
|
|
30
|
+
|
|
31
|
+
export default {
|
|
32
|
+
title: '抄表明细',
|
|
33
|
+
data () {
|
|
34
|
+
return {
|
|
35
|
+
model: new PagedList('rs/sql/newhandplanQuery', 15,{})
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
props: ['data'],
|
|
39
|
+
ready () {
|
|
40
|
+
console.log('抄表明细查询',this.data)
|
|
41
|
+
//u.f_userinfo_code=${data.f_userinfo_code} and h.f_filialeids = ${data.f_filialeids}
|
|
42
|
+
this.model.search(`f_userinfo_code='${this.data.f_userinfo_code}' and f_filialeids = '${this.data.f_filialeids}'`)
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
</script>
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="auto">
|
|
3
|
-
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
-
<data-grid :model="model" partial='list' v-ref:grid >
|
|
5
|
-
<template partial='head'>
|
|
6
|
-
<tr>
|
|
7
|
-
<th><nobr>序号</nobr></th>
|
|
8
|
-
<th><nobr>下发时间</nobr></th>
|
|
9
|
-
<th><nobr>抄表时间</nobr></th>
|
|
10
|
-
<th><nobr>上期底数</nobr></th>
|
|
11
|
-
<th><nobr>本期底数</nobr></th>
|
|
12
|
-
</tr>
|
|
13
|
-
</template>
|
|
14
|
-
<template partial='body'>
|
|
15
|
-
<td ><nobr>{{$index + 1}}</nobr></td>
|
|
16
|
-
<td ><nobr>{{row.f_hand_date}}</nobr></td>
|
|
17
|
-
<td ><nobr>{{row.f_input_date}}</nobr></td>
|
|
18
|
-
<td ><nobr>{{row.f_last_tablebase}}</nobr></td>
|
|
19
|
-
<td ><nobr>{{row.f_tablebase}}</nobr></td>
|
|
20
|
-
</template>
|
|
21
|
-
<template partial='foot'>
|
|
22
|
-
</template>
|
|
23
|
-
</data-grid>
|
|
24
|
-
</criteria-paged>
|
|
25
|
-
</div>
|
|
26
|
-
</template>
|
|
27
|
-
|
|
28
|
-
<script>
|
|
29
|
-
import { PagedList } from 'vue-client'
|
|
30
|
-
|
|
31
|
-
export default {
|
|
32
|
-
title: '抄表明细',
|
|
33
|
-
data () {
|
|
34
|
-
return {
|
|
35
|
-
model: new PagedList('rs/sql/newhandplanQuery', 15,{})
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
props: ['data'],
|
|
39
|
-
ready () {
|
|
40
|
-
console.log('抄表明细查询',this.data)
|
|
41
|
-
//u.f_userinfo_code=${data.f_userinfo_code} and h.f_filialeids = ${data.f_filialeids}
|
|
42
|
-
this.model.search(`f_userinfo_code='${this.data.f_userinfo_code}' and f_filialeids = '${this.data.f_filialeids}'`)
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto">
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
+
<data-grid :model="model" partial='list' v-ref:grid >
|
|
5
|
+
<template partial='head'>
|
|
6
|
+
<tr>
|
|
7
|
+
<th><nobr>序号</nobr></th>
|
|
8
|
+
<th><nobr>下发时间</nobr></th>
|
|
9
|
+
<th><nobr>抄表时间</nobr></th>
|
|
10
|
+
<th><nobr>上期底数</nobr></th>
|
|
11
|
+
<th><nobr>本期底数</nobr></th>
|
|
12
|
+
</tr>
|
|
13
|
+
</template>
|
|
14
|
+
<template partial='body'>
|
|
15
|
+
<td ><nobr>{{$index + 1}}</nobr></td>
|
|
16
|
+
<td ><nobr>{{row.f_hand_date}}</nobr></td>
|
|
17
|
+
<td ><nobr>{{row.f_input_date}}</nobr></td>
|
|
18
|
+
<td ><nobr>{{row.f_last_tablebase}}</nobr></td>
|
|
19
|
+
<td ><nobr>{{row.f_tablebase}}</nobr></td>
|
|
20
|
+
</template>
|
|
21
|
+
<template partial='foot'>
|
|
22
|
+
</template>
|
|
23
|
+
</data-grid>
|
|
24
|
+
</criteria-paged>
|
|
25
|
+
</div>
|
|
26
|
+
</template>
|
|
27
|
+
|
|
28
|
+
<script>
|
|
29
|
+
import { PagedList } from 'vue-client'
|
|
30
|
+
|
|
31
|
+
export default {
|
|
32
|
+
title: '抄表明细',
|
|
33
|
+
data () {
|
|
34
|
+
return {
|
|
35
|
+
model: new PagedList('rs/sql/newhandplanQuery', 15,{})
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
props: ['data'],
|
|
39
|
+
ready () {
|
|
40
|
+
console.log('抄表明细查询',this.data)
|
|
41
|
+
//u.f_userinfo_code=${data.f_userinfo_code} and h.f_filialeids = ${data.f_filialeids}
|
|
42
|
+
this.model.search(`f_userinfo_code='${this.data.f_userinfo_code}' and f_filialeids = '${this.data.f_filialeids}'`)
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
</script>
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="auto">
|
|
3
|
-
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
-
<data-grid :model="model" partial='list' v-ref:grid >
|
|
5
|
-
<template partial='head'>
|
|
6
|
-
<tr>
|
|
7
|
-
<th><nobr>序号</nobr></th>
|
|
8
|
-
<th><nobr>操作信息</nobr></th>
|
|
9
|
-
<th><nobr>操作人</nobr></th>
|
|
10
|
-
<th><nobr>操作状态</nobr></th>
|
|
11
|
-
<th><nobr>操作时间</nobr></th>
|
|
12
|
-
</tr>
|
|
13
|
-
</template>
|
|
14
|
-
<template partial='body'>
|
|
15
|
-
<td ><nobr>{{$index + 1}}</nobr></td>
|
|
16
|
-
<td ><nobr>{{row.f_operat_type}}</nobr></td>
|
|
17
|
-
<td ><nobr>{{row.f_operator}}</nobr></td>
|
|
18
|
-
<td ><nobr>{{row.f_state}}</nobr></td>
|
|
19
|
-
<td ><nobr>{{row.f_operate_date}}</nobr></td>
|
|
20
|
-
</template>
|
|
21
|
-
<template partial='foot'>
|
|
22
|
-
</template>
|
|
23
|
-
</data-grid>
|
|
24
|
-
</criteria-paged>
|
|
25
|
-
</div>
|
|
26
|
-
</template>
|
|
27
|
-
|
|
28
|
-
<script>
|
|
29
|
-
import { PagedList } from 'vue-client'
|
|
30
|
-
|
|
31
|
-
export default {
|
|
32
|
-
title: '操作信息',
|
|
33
|
-
data () {
|
|
34
|
-
return {
|
|
35
|
-
model: new PagedList('rs/sql/newhandleRecord', 15,{})
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
props: ['data'],
|
|
39
|
-
ready () {
|
|
40
|
-
//console.log('操作信息',this.data)
|
|
41
|
-
//u.f_userinfo_code=${data.f_userinfo_code} and h.f_filialeids = ${data.f_filialeids}
|
|
42
|
-
this.model.search(`f_userinfo_code='${this.data.f_userinfo_code}' and f_filialeids = '${this.data.f_filialeids}'`)
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto">
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
+
<data-grid :model="model" partial='list' v-ref:grid >
|
|
5
|
+
<template partial='head'>
|
|
6
|
+
<tr>
|
|
7
|
+
<th><nobr>序号</nobr></th>
|
|
8
|
+
<th><nobr>操作信息</nobr></th>
|
|
9
|
+
<th><nobr>操作人</nobr></th>
|
|
10
|
+
<th><nobr>操作状态</nobr></th>
|
|
11
|
+
<th><nobr>操作时间</nobr></th>
|
|
12
|
+
</tr>
|
|
13
|
+
</template>
|
|
14
|
+
<template partial='body'>
|
|
15
|
+
<td ><nobr>{{$index + 1}}</nobr></td>
|
|
16
|
+
<td ><nobr>{{row.f_operat_type}}</nobr></td>
|
|
17
|
+
<td ><nobr>{{row.f_operator}}</nobr></td>
|
|
18
|
+
<td ><nobr>{{row.f_state}}</nobr></td>
|
|
19
|
+
<td ><nobr>{{row.f_operate_date}}</nobr></td>
|
|
20
|
+
</template>
|
|
21
|
+
<template partial='foot'>
|
|
22
|
+
</template>
|
|
23
|
+
</data-grid>
|
|
24
|
+
</criteria-paged>
|
|
25
|
+
</div>
|
|
26
|
+
</template>
|
|
27
|
+
|
|
28
|
+
<script>
|
|
29
|
+
import { PagedList } from 'vue-client'
|
|
30
|
+
|
|
31
|
+
export default {
|
|
32
|
+
title: '操作信息',
|
|
33
|
+
data () {
|
|
34
|
+
return {
|
|
35
|
+
model: new PagedList('rs/sql/newhandleRecord', 15,{})
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
props: ['data'],
|
|
39
|
+
ready () {
|
|
40
|
+
//console.log('操作信息',this.data)
|
|
41
|
+
//u.f_userinfo_code=${data.f_userinfo_code} and h.f_filialeids = ${data.f_filialeids}
|
|
42
|
+
this.model.search(`f_userinfo_code='${this.data.f_userinfo_code}' and f_filialeids = '${this.data.f_filialeids}'`)
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
</script>
|
|
@@ -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>
|