manage-client 3.1.46 → 3.1.47
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/.gradle/{7.1 → 4.4}/fileChanges/last-build.bin +0 -0
- package/.gradle/{buildOutputCleanup/outputFiles.bin → 4.4/fileHashes/fileHashes.bin} +0 -0
- package/.gradle/4.4/fileHashes/fileHashes.lock +0 -0
- package/.gradle/{7.1 → 6.1}/executionHistory/executionHistory.bin +0 -0
- package/.gradle/6.1/executionHistory/executionHistory.lock +0 -0
- package/.gradle/6.1/fileChanges/last-build.bin +0 -0
- package/.gradle/{7.1 → 6.1}/fileHashes/fileHashes.bin +0 -0
- package/.gradle/6.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/{7.1/dependencies-accessors → 6.1}/gc.properties +0 -0
- package/build/dev-server.js +33 -25
- package/package.json +1 -1
- package/src/App.vue +29 -28
- package/src/components/BasisEcharts/BarChart.vue +247 -247
- package/src/components/BasisEcharts/RingChart.vue +196 -196
- package/src/components/SellReport/BusinessClassify.vue +317 -317
- package/src/components/SellReport/ChargePrick.vue +284 -284
- package/src/components/SellReport/DepartmentPrick.vue +288 -288
- package/src/components/SellReport/FinanceSellType.vue +254 -254
- package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
- package/src/components/SellReport/GasMoneyReport.vue +254 -254
- package/src/components/SellReport/GasPrice.vue +244 -244
- package/src/components/SellReport/ManageBusSummary.vue +242 -242
- package/src/components/SellReport/ManageHandInputtor.vue +281 -281
- package/src/components/SellReport/ManageOtherCharge.vue +250 -250
- package/src/components/SellReport/ManageSellType.vue +284 -284
- package/src/components/SellReport/ManageUserCount.vue +347 -347
- package/src/components/SellReport/MarketMonth.vue +297 -297
- package/src/components/SellReport/ReportItems.vue +241 -241
- package/src/components/SellReport/SaleMonthReport.vue +227 -227
- package/src/components/SellReport/SellDepReport.vue +251 -251
- package/src/components/SellReport/SellingTable.vue +220 -220
- package/src/components/SellReport/UserClassify.vue +271 -271
- package/src/components/SellReport/UserSellingGas.vue +251 -251
- package/src/components/daping/CallCenter.vue +366 -366
- package/src/components/daping/DataManagement.vue +537 -537
- package/src/components/daping/GMap.vue +636 -636
- package/src/components/daping/ManageMain.vue +270 -270
- package/src/components/daping/NetWork.vue +238 -238
- package/src/components/daping/RedactDaPing.vue +468 -468
- package/src/components/daping/Ring.vue +212 -212
- package/src/components/daping/SafeCheck.vue +446 -446
- package/src/components/daping/SafeCheckRing.vue +166 -166
- package/src/components/daping/SafecheckBarChart.vue +233 -233
- package/src/components/daping/WuHaiMap.vue +418 -418
- package/src/components/qinhua/BarChart.vue +256 -256
- package/src/components/qinhua/Pie.vue +132 -132
- package/src/components/qinhua/SellEcharts.vue +115 -115
- package/src/components/qinhua/qinHuaMap.vue +414 -414
- package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +500 -500
- package/src/components/sale/businessquery/CollectManage.vue +135 -135
- package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
- package/src/components/sale/businessquery/FillGasQuery.vue +491 -491
- package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
- package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
- package/src/components/sale/businessquery/ProceedsOper.vue +377 -377
- package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
- package/src/components/sale/config/exportConfig.js +879 -879
- package/src/components/sale/filesquery/DeviceQuery.vue +524 -524
- package/src/components/statistical/StatisticalAnalysis.vue +247 -247
- package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
- package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
- package/src/components/webmeter/DrillData/UserGasAll.vue +597 -597
- package/src/components/webmeter/DrillData/UserGasEcharts.vue +220 -210
- package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
- package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
- package/src/components/webmeter/newwebmeter/NewException/NewContactEcharts.vue +171 -171
- package/src/components/webmeter/newwebmeter/NewException/NewEchartsAll.vue +111 -111
- package/src/components/webmeter/newwebmeter/NewException/NewExceptionEcharsTotal.vue +288 -275
- package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +209 -209
- package/src/components/webmeter/newwebmeter/NewException/NewHandplanEcharts.vue +213 -213
- package/src/components/webmeter/newwebmeter/NewException/NewInstructEcharts.vue +240 -240
- package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
- package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +283 -218
- package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
- package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
- package/src/components/webmeter/newwebmeter/UserInstructList.vue +332 -332
- package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
- package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
- package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
- package/src/filiale/alashan/SellingTable.vue +234 -234
- package/src/filiale/alashan/reportManage.js +10 -10
- package/src/filiale/jingwei/ChargeQuery.vue +1241 -1241
- package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
- package/src/filiale/jingzhou/config/exportConfig.js +861 -861
- package/src/filiale/liaoyuan/ChargeQuery.vue +1284 -1284
- package/src/filiale/liaoyuan/exportConfig.js +718 -718
- package/src/filiale/meihekou/UserGasEform.vue +267 -267
- package/src/filiale/meihekou/sale.js +26 -26
- package/src/filiale/rongcheng/exportConfig.js +257 -257
- package/src/filiale/rongchuang/SellingTable.vue +250 -250
- package/src/filiale/rongchuang/reportManage.js +11 -11
- package/src/filiale/shaoguan/ChargeQuery.vue +1034 -1034
- package/src/filiale/shaoguan/OtherChargeQuery.vue +596 -596
- package/src/filiale/shaoguan/config/exportConfig.js +433 -433
- package/src/filiale/shaoguan/sale/businessquery/oldList.vue +41 -41
- package/src/filiale/shaoguan/sale/businessquery/oldMeterList.vue +290 -290
- package/src/filiale/shaoguan/sale.js +35 -35
- package/src/filiale/tongchuan/ManageBusSummary.vue +302 -302
- package/src/main.js +1 -1
- package/src/newmanage.js +525 -525
- package/src/reportManage.js +470 -470
- package/static/wuhai.json +1610 -1610
- package/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
- package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/7.1/gc.properties +0 -0
- package/.gradle/configuration-cache/gc.properties +0 -0
|
@@ -1,241 +1,241 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="flex">
|
|
3
|
-
<partial-view v-ref:pv>
|
|
4
|
-
<div class="span" v-show="!filtrate">
|
|
5
|
-
<p class="bg-info text-center" style="padding: 8px;background: #5ac0d9;color: white;border-radius:10px 10px 0 0" title="选中报表后双击查看报表的配置信息" @dblclick="filtrate=!filtrate">报表类型</p>
|
|
6
|
-
<div style="height: 94%;overflow: auto;width: 104%">
|
|
7
|
-
<div style="padding:3px" :style="{background: index===row ? '#dfedfb' : 'white'}" :class="styles=='2'?'col-sm-6 auto':'col-sm-12 auto'" v-for="(index,type) in types"
|
|
8
|
-
@click="$dispatch('select-type',index, type),changecolor(index,type)"
|
|
9
|
-
:id="'div-'+index">
|
|
10
|
-
<div class="row auto"><img :src="type.f_image_path" alt="图片加载失败" class="img-rounded" style="width: 60px;"></div>
|
|
11
|
-
<div style="height:40px" class="row auto">{{index+1}}、{{type.f_report_name}}</div>
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
|
14
|
-
|
|
15
|
-
</div>
|
|
16
|
-
<div class="span" v-show="filtrate">
|
|
17
|
-
<p class="bg-info text-center" style="padding: 8px;" @dblclick="filtrate=!filtrate">相关配置</p>
|
|
18
|
-
<div style="height: 94%;overflow: auto;width: 104%">
|
|
19
|
-
<table style="border-style: none;width: 95%;">
|
|
20
|
-
<tr style="display:block;margin:15px 0;">
|
|
21
|
-
<td style="text-align: left">
|
|
22
|
-
<label class="font_normal_body">报表名称:</label>
|
|
23
|
-
<v-select multiple
|
|
24
|
-
:value.sync="modelinfo.f_report_name"
|
|
25
|
-
class="select_list select"
|
|
26
|
-
v-model="modelinfo.f_report_name"
|
|
27
|
-
:options='reportNames' placeholder='请选择'
|
|
28
|
-
close-on-select></v-select>
|
|
29
|
-
</td>
|
|
30
|
-
</tr>
|
|
31
|
-
<tr style="display:block;margin:15px 0;">
|
|
32
|
-
<td style="text-align: left">
|
|
33
|
-
<label class="font_normal_body">报表类型:</label>
|
|
34
|
-
<v-select
|
|
35
|
-
:value.sync="modelinfo.f_report_type"
|
|
36
|
-
:search="false"
|
|
37
|
-
class="select_list select"
|
|
38
|
-
v-model="modelinfo.f_report_type"
|
|
39
|
-
:options='reportTypes' placeholder='请选择'
|
|
40
|
-
close-on-select></v-select>
|
|
41
|
-
</td>
|
|
42
|
-
</tr>
|
|
43
|
-
<tr style="display:block;margin:15px 0;">
|
|
44
|
-
<td style="text-align: left">
|
|
45
|
-
<label class="font_normal_body">报表状态:</label>
|
|
46
|
-
<v-select
|
|
47
|
-
:value.sync="modelinfo.f_rank"
|
|
48
|
-
:search="false"
|
|
49
|
-
class="select_list select"
|
|
50
|
-
v-model="modelinfo.f_rank"
|
|
51
|
-
:options='reportState' placeholder='请选择'
|
|
52
|
-
close-on-select></v-select>
|
|
53
|
-
</td>
|
|
54
|
-
</tr>
|
|
55
|
-
<tr style="display:block;margin:15px 0;">
|
|
56
|
-
<td style="text-align: right;width: 50%;"><button class="button_clear button_spacing" @click="filtrate=!filtrate">返回</button></td>
|
|
57
|
-
<td style="text-align: right;width: 25%;"><button class="button_clear button_spacing" @click="clear()">清空</button></td>
|
|
58
|
-
<td style="text-align: left;width: 25%;"><button class="button_search button_spacing" @click="chaxun()">查询</button></td>
|
|
59
|
-
</tr>
|
|
60
|
-
<tr style="display:block;margin:15px 0;" v-for="(key,value) in infos">
|
|
61
|
-
<td style="text-align: left;">
|
|
62
|
-
<label class="font_normal_body" style="text-align: right;">{{key}}:</label>
|
|
63
|
-
<input type="text" style="width: 70%;" class="input_search" v-model="value" v-bind:title="[key =='报表状态'?'1表示显示其他表示不显示':'']"/>
|
|
64
|
-
</td>
|
|
65
|
-
</tr>
|
|
66
|
-
<tr style="display:block;margin:15px 0;">
|
|
67
|
-
<td style="text-align: right;width: 50%;"><button class="button_clear button_spacing" @click="saveOrUpdate(1)">修改</button></td>
|
|
68
|
-
<td style="text-align: right;width: 25%;"><button class="button_clear button_spacing" @click="clear(true)">清空</button></td>
|
|
69
|
-
<td style="text-align: left;width: 25%;"><button class="button_search button_spacing" @click="saveOrUpdate(2)">保存</button></td>
|
|
70
|
-
</tr>
|
|
71
|
-
</table>
|
|
72
|
-
</div>
|
|
73
|
-
|
|
74
|
-
</div>
|
|
75
|
-
</partial-view>
|
|
76
|
-
</div>
|
|
77
|
-
</template>
|
|
78
|
-
|
|
79
|
-
<script>
|
|
80
|
-
import {HttpResetClass} from "vue-client";
|
|
81
|
-
|
|
82
|
-
export default {
|
|
83
|
-
title: '报表选项',
|
|
84
|
-
props: {
|
|
85
|
-
inindex:{}
|
|
86
|
-
},
|
|
87
|
-
data () {
|
|
88
|
-
return {
|
|
89
|
-
types: [],
|
|
90
|
-
row:null,
|
|
91
|
-
infos: {
|
|
92
|
-
'报表名称': '',
|
|
93
|
-
'连接页面': '',
|
|
94
|
-
'报表类型': '',
|
|
95
|
-
'图片路径': '',
|
|
96
|
-
'添 加 人': '',
|
|
97
|
-
'报表状态': ''
|
|
98
|
-
},
|
|
99
|
-
styles:this.$appdata.getSingleValue('报表样式')?this.$appdata.getSingleValue('报表样式'):'2',
|
|
100
|
-
saveinfo:{},
|
|
101
|
-
filtrate:false,
|
|
102
|
-
modelinfo: {
|
|
103
|
-
f_report_name: '',
|
|
104
|
-
f_report_type: '',
|
|
105
|
-
f_rank: '1'
|
|
106
|
-
},
|
|
107
|
-
config:{
|
|
108
|
-
f_report_name: '报表名称',
|
|
109
|
-
f_report_path: '连接页面',
|
|
110
|
-
f_report_type: '报表类型',
|
|
111
|
-
f_image_path: '图片路径',
|
|
112
|
-
f_operator: '添 加 人',
|
|
113
|
-
f_rank: '报表状态'
|
|
114
|
-
},
|
|
115
|
-
conditionStr:'1=1',
|
|
116
|
-
reportNames: [],
|
|
117
|
-
reportTypes: [],
|
|
118
|
-
reportState : [{label: '全部', value: ''},{label: '显示', value: '1'},{label: '未显示', value: 'null'},],
|
|
119
|
-
tablename: 't_report_type'
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
ready (){
|
|
123
|
-
// 获取所有报表类型
|
|
124
|
-
this.getReportInfo(null,'1=1 and f_rank=1')
|
|
125
|
-
this.getReportName()
|
|
126
|
-
this.getReportType()
|
|
127
|
-
},
|
|
128
|
-
methods: {
|
|
129
|
-
getReportInfo(tname,cond){
|
|
130
|
-
this.$refs.pv.load('rs/sql/manageSingleTable', {
|
|
131
|
-
data: {
|
|
132
|
-
tablename: tname ? tname:this.tablename,
|
|
133
|
-
condition: cond ? cond:this.conditionStr
|
|
134
|
-
}
|
|
135
|
-
}).then((res) => {
|
|
136
|
-
this.types = res.data
|
|
137
|
-
}).catch((error) => {
|
|
138
|
-
|
|
139
|
-
})
|
|
140
|
-
},
|
|
141
|
-
chaxun(){
|
|
142
|
-
this.getReportInfo()
|
|
143
|
-
this.filtrate = !this.filtrate
|
|
144
|
-
},
|
|
145
|
-
changecolor(index,type){
|
|
146
|
-
this.row=index
|
|
147
|
-
},
|
|
148
|
-
async getReportName(){
|
|
149
|
-
let HttpReset = new HttpResetClass()
|
|
150
|
-
var data = await HttpReset.load('POST', 'rs/sql/singleTable_Final', {
|
|
151
|
-
data: {
|
|
152
|
-
condition: this.conditionStr,
|
|
153
|
-
tablename: this.tablename,
|
|
154
|
-
groupitem: 'f_report_name',
|
|
155
|
-
orderitem: 'f_report_name',
|
|
156
|
-
items: 'f_report_name'
|
|
157
|
-
}
|
|
158
|
-
}, {resolveMsg: null, rejectMsg: '获取报表名称失败!'})
|
|
159
|
-
let nameArr = [{label: '全部', value: ''}]
|
|
160
|
-
for (let row of data.data){
|
|
161
|
-
nameArr.push({label: row.f_report_name, value: row.f_report_name})
|
|
162
|
-
}
|
|
163
|
-
this.reportNames = nameArr
|
|
164
|
-
},
|
|
165
|
-
clear(val){
|
|
166
|
-
if(val){
|
|
167
|
-
for (let key in this.infos) {
|
|
168
|
-
this.infos[key] =''
|
|
169
|
-
}
|
|
170
|
-
}else{
|
|
171
|
-
for (let key in this.modelinfo) {
|
|
172
|
-
this.modelinfo[key] =[]
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
},
|
|
176
|
-
async getReportType(){
|
|
177
|
-
let HttpReset = new HttpResetClass()
|
|
178
|
-
var data = await HttpReset.load('POST', 'rs/sql/singleTable_Final', {
|
|
179
|
-
data: {
|
|
180
|
-
condition: this.conditionStr,
|
|
181
|
-
tablename: this.tablename,
|
|
182
|
-
groupitem: 'f_report_type',
|
|
183
|
-
orderitem: 'f_report_type',
|
|
184
|
-
items: 'f_report_type'
|
|
185
|
-
}
|
|
186
|
-
}, {resolveMsg: null, rejectMsg: '获取报表类型失败!'})
|
|
187
|
-
let typeArr = [{label: '全部', value: ''}]
|
|
188
|
-
for (let row of data.data){
|
|
189
|
-
typeArr.push({label: row.f_report_type, value: row.f_report_type})
|
|
190
|
-
}
|
|
191
|
-
this.reportTypes = typeArr
|
|
192
|
-
},
|
|
193
|
-
saveOrUpdate(val){
|
|
194
|
-
// let sv={}
|
|
195
|
-
for(let [key, value] of Object.entries(this.config)){
|
|
196
|
-
let vl=this.infos[value]
|
|
197
|
-
this.saveinfo[key]=vl
|
|
198
|
-
}
|
|
199
|
-
this.saveinfo['type']=val
|
|
200
|
-
|
|
201
|
-
this.$resetpost('rs/logic/saveReport', this.saveinfo, {resolveMsg: '恭喜!提交成功!', rejectMsg: '提交错误!'}).then((res) => {
|
|
202
|
-
this.$showAlert('保存成功', 'success', 3000)
|
|
203
|
-
this.getReportInfo(null,'1=1 and f_rank=1')
|
|
204
|
-
this.filtrate=!this.filtrate
|
|
205
|
-
})
|
|
206
|
-
console.log('this.saveinfo+++++',this.saveinfo)
|
|
207
|
-
}
|
|
208
|
-
},
|
|
209
|
-
watch :{
|
|
210
|
-
'modelinfo': {
|
|
211
|
-
deep: true,
|
|
212
|
-
handler(val) {
|
|
213
|
-
let c='1=1 '
|
|
214
|
-
for (let [key, value] of Object.entries(val)) {
|
|
215
|
-
if (value && value!='') {
|
|
216
|
-
if(key=='f_rank' && value=='null'){
|
|
217
|
-
c+='and '+ key + " is " + value +' or '+ key +" = ''"
|
|
218
|
-
}else{
|
|
219
|
-
c+='and '+ key + " in ('" + value.toString().replace(new RegExp(',','g'),"','") + "') "
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
this.conditionStr = c
|
|
225
|
-
}
|
|
226
|
-
},
|
|
227
|
-
'inindex' (val){
|
|
228
|
-
this.infos={}
|
|
229
|
-
this.saveinfo=this.types[val]
|
|
230
|
-
let flag={}
|
|
231
|
-
for(let [key, value] of Object.entries(this.saveinfo)){
|
|
232
|
-
let name=this.config[key]
|
|
233
|
-
if (name!=null){
|
|
234
|
-
flag[name]=value
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
this.infos=flag
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex">
|
|
3
|
+
<partial-view v-ref:pv>
|
|
4
|
+
<div class="span" v-show="!filtrate">
|
|
5
|
+
<p class="bg-info text-center" style="padding: 8px;background: #5ac0d9;color: white;border-radius:10px 10px 0 0" title="选中报表后双击查看报表的配置信息" @dblclick="filtrate=!filtrate">报表类型</p>
|
|
6
|
+
<div style="height: 94%;overflow: auto;width: 104%">
|
|
7
|
+
<div style="padding:3px" :style="{background: index===row ? '#dfedfb' : 'white'}" :class="styles=='2'?'col-sm-6 auto':'col-sm-12 auto'" v-for="(index,type) in types"
|
|
8
|
+
@click="$dispatch('select-type',index, type),changecolor(index,type)"
|
|
9
|
+
:id="'div-'+index">
|
|
10
|
+
<div class="row auto"><img :src="type.f_image_path" alt="图片加载失败" class="img-rounded" style="width: 60px;"></div>
|
|
11
|
+
<div style="height:40px" class="row auto">{{index+1}}、{{type.f_report_name}}</div>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
</div>
|
|
16
|
+
<div class="span" v-show="filtrate">
|
|
17
|
+
<p class="bg-info text-center" style="padding: 8px;" @dblclick="filtrate=!filtrate">相关配置</p>
|
|
18
|
+
<div style="height: 94%;overflow: auto;width: 104%">
|
|
19
|
+
<table style="border-style: none;width: 95%;">
|
|
20
|
+
<tr style="display:block;margin:15px 0;">
|
|
21
|
+
<td style="text-align: left">
|
|
22
|
+
<label class="font_normal_body">报表名称:</label>
|
|
23
|
+
<v-select multiple
|
|
24
|
+
:value.sync="modelinfo.f_report_name"
|
|
25
|
+
class="select_list select"
|
|
26
|
+
v-model="modelinfo.f_report_name"
|
|
27
|
+
:options='reportNames' placeholder='请选择'
|
|
28
|
+
close-on-select></v-select>
|
|
29
|
+
</td>
|
|
30
|
+
</tr>
|
|
31
|
+
<tr style="display:block;margin:15px 0;">
|
|
32
|
+
<td style="text-align: left">
|
|
33
|
+
<label class="font_normal_body">报表类型:</label>
|
|
34
|
+
<v-select
|
|
35
|
+
:value.sync="modelinfo.f_report_type"
|
|
36
|
+
:search="false"
|
|
37
|
+
class="select_list select"
|
|
38
|
+
v-model="modelinfo.f_report_type"
|
|
39
|
+
:options='reportTypes' placeholder='请选择'
|
|
40
|
+
close-on-select></v-select>
|
|
41
|
+
</td>
|
|
42
|
+
</tr>
|
|
43
|
+
<tr style="display:block;margin:15px 0;">
|
|
44
|
+
<td style="text-align: left">
|
|
45
|
+
<label class="font_normal_body">报表状态:</label>
|
|
46
|
+
<v-select
|
|
47
|
+
:value.sync="modelinfo.f_rank"
|
|
48
|
+
:search="false"
|
|
49
|
+
class="select_list select"
|
|
50
|
+
v-model="modelinfo.f_rank"
|
|
51
|
+
:options='reportState' placeholder='请选择'
|
|
52
|
+
close-on-select></v-select>
|
|
53
|
+
</td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr style="display:block;margin:15px 0;">
|
|
56
|
+
<td style="text-align: right;width: 50%;"><button class="button_clear button_spacing" @click="filtrate=!filtrate">返回</button></td>
|
|
57
|
+
<td style="text-align: right;width: 25%;"><button class="button_clear button_spacing" @click="clear()">清空</button></td>
|
|
58
|
+
<td style="text-align: left;width: 25%;"><button class="button_search button_spacing" @click="chaxun()">查询</button></td>
|
|
59
|
+
</tr>
|
|
60
|
+
<tr style="display:block;margin:15px 0;" v-for="(key,value) in infos">
|
|
61
|
+
<td style="text-align: left;">
|
|
62
|
+
<label class="font_normal_body" style="text-align: right;">{{key}}:</label>
|
|
63
|
+
<input type="text" style="width: 70%;" class="input_search" v-model="value" v-bind:title="[key =='报表状态'?'1表示显示其他表示不显示':'']"/>
|
|
64
|
+
</td>
|
|
65
|
+
</tr>
|
|
66
|
+
<tr style="display:block;margin:15px 0;">
|
|
67
|
+
<td style="text-align: right;width: 50%;"><button class="button_clear button_spacing" @click="saveOrUpdate(1)">修改</button></td>
|
|
68
|
+
<td style="text-align: right;width: 25%;"><button class="button_clear button_spacing" @click="clear(true)">清空</button></td>
|
|
69
|
+
<td style="text-align: left;width: 25%;"><button class="button_search button_spacing" @click="saveOrUpdate(2)">保存</button></td>
|
|
70
|
+
</tr>
|
|
71
|
+
</table>
|
|
72
|
+
</div>
|
|
73
|
+
|
|
74
|
+
</div>
|
|
75
|
+
</partial-view>
|
|
76
|
+
</div>
|
|
77
|
+
</template>
|
|
78
|
+
|
|
79
|
+
<script>
|
|
80
|
+
import {HttpResetClass} from "vue-client";
|
|
81
|
+
|
|
82
|
+
export default {
|
|
83
|
+
title: '报表选项',
|
|
84
|
+
props: {
|
|
85
|
+
inindex:{}
|
|
86
|
+
},
|
|
87
|
+
data () {
|
|
88
|
+
return {
|
|
89
|
+
types: [],
|
|
90
|
+
row:null,
|
|
91
|
+
infos: {
|
|
92
|
+
'报表名称': '',
|
|
93
|
+
'连接页面': '',
|
|
94
|
+
'报表类型': '',
|
|
95
|
+
'图片路径': '',
|
|
96
|
+
'添 加 人': '',
|
|
97
|
+
'报表状态': ''
|
|
98
|
+
},
|
|
99
|
+
styles:this.$appdata.getSingleValue('报表样式')?this.$appdata.getSingleValue('报表样式'):'2',
|
|
100
|
+
saveinfo:{},
|
|
101
|
+
filtrate:false,
|
|
102
|
+
modelinfo: {
|
|
103
|
+
f_report_name: '',
|
|
104
|
+
f_report_type: '',
|
|
105
|
+
f_rank: '1'
|
|
106
|
+
},
|
|
107
|
+
config:{
|
|
108
|
+
f_report_name: '报表名称',
|
|
109
|
+
f_report_path: '连接页面',
|
|
110
|
+
f_report_type: '报表类型',
|
|
111
|
+
f_image_path: '图片路径',
|
|
112
|
+
f_operator: '添 加 人',
|
|
113
|
+
f_rank: '报表状态'
|
|
114
|
+
},
|
|
115
|
+
conditionStr:'1=1',
|
|
116
|
+
reportNames: [],
|
|
117
|
+
reportTypes: [],
|
|
118
|
+
reportState : [{label: '全部', value: ''},{label: '显示', value: '1'},{label: '未显示', value: 'null'},],
|
|
119
|
+
tablename: 't_report_type'
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
ready (){
|
|
123
|
+
// 获取所有报表类型
|
|
124
|
+
this.getReportInfo(null,'1=1 and f_rank=1')
|
|
125
|
+
this.getReportName()
|
|
126
|
+
this.getReportType()
|
|
127
|
+
},
|
|
128
|
+
methods: {
|
|
129
|
+
getReportInfo(tname,cond){
|
|
130
|
+
this.$refs.pv.load('rs/sql/manageSingleTable', {
|
|
131
|
+
data: {
|
|
132
|
+
tablename: tname ? tname:this.tablename,
|
|
133
|
+
condition: cond ? cond:this.conditionStr
|
|
134
|
+
}
|
|
135
|
+
}).then((res) => {
|
|
136
|
+
this.types = res.data
|
|
137
|
+
}).catch((error) => {
|
|
138
|
+
|
|
139
|
+
})
|
|
140
|
+
},
|
|
141
|
+
chaxun(){
|
|
142
|
+
this.getReportInfo()
|
|
143
|
+
this.filtrate = !this.filtrate
|
|
144
|
+
},
|
|
145
|
+
changecolor(index,type){
|
|
146
|
+
this.row=index
|
|
147
|
+
},
|
|
148
|
+
async getReportName(){
|
|
149
|
+
let HttpReset = new HttpResetClass()
|
|
150
|
+
var data = await HttpReset.load('POST', 'rs/sql/singleTable_Final', {
|
|
151
|
+
data: {
|
|
152
|
+
condition: this.conditionStr,
|
|
153
|
+
tablename: this.tablename,
|
|
154
|
+
groupitem: 'f_report_name',
|
|
155
|
+
orderitem: 'f_report_name',
|
|
156
|
+
items: 'f_report_name'
|
|
157
|
+
}
|
|
158
|
+
}, {resolveMsg: null, rejectMsg: '获取报表名称失败!'})
|
|
159
|
+
let nameArr = [{label: '全部', value: ''}]
|
|
160
|
+
for (let row of data.data){
|
|
161
|
+
nameArr.push({label: row.f_report_name, value: row.f_report_name})
|
|
162
|
+
}
|
|
163
|
+
this.reportNames = nameArr
|
|
164
|
+
},
|
|
165
|
+
clear(val){
|
|
166
|
+
if(val){
|
|
167
|
+
for (let key in this.infos) {
|
|
168
|
+
this.infos[key] =''
|
|
169
|
+
}
|
|
170
|
+
}else{
|
|
171
|
+
for (let key in this.modelinfo) {
|
|
172
|
+
this.modelinfo[key] =[]
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
async getReportType(){
|
|
177
|
+
let HttpReset = new HttpResetClass()
|
|
178
|
+
var data = await HttpReset.load('POST', 'rs/sql/singleTable_Final', {
|
|
179
|
+
data: {
|
|
180
|
+
condition: this.conditionStr,
|
|
181
|
+
tablename: this.tablename,
|
|
182
|
+
groupitem: 'f_report_type',
|
|
183
|
+
orderitem: 'f_report_type',
|
|
184
|
+
items: 'f_report_type'
|
|
185
|
+
}
|
|
186
|
+
}, {resolveMsg: null, rejectMsg: '获取报表类型失败!'})
|
|
187
|
+
let typeArr = [{label: '全部', value: ''}]
|
|
188
|
+
for (let row of data.data){
|
|
189
|
+
typeArr.push({label: row.f_report_type, value: row.f_report_type})
|
|
190
|
+
}
|
|
191
|
+
this.reportTypes = typeArr
|
|
192
|
+
},
|
|
193
|
+
saveOrUpdate(val){
|
|
194
|
+
// let sv={}
|
|
195
|
+
for(let [key, value] of Object.entries(this.config)){
|
|
196
|
+
let vl=this.infos[value]
|
|
197
|
+
this.saveinfo[key]=vl
|
|
198
|
+
}
|
|
199
|
+
this.saveinfo['type']=val
|
|
200
|
+
|
|
201
|
+
this.$resetpost('rs/logic/saveReport', this.saveinfo, {resolveMsg: '恭喜!提交成功!', rejectMsg: '提交错误!'}).then((res) => {
|
|
202
|
+
this.$showAlert('保存成功', 'success', 3000)
|
|
203
|
+
this.getReportInfo(null,'1=1 and f_rank=1')
|
|
204
|
+
this.filtrate=!this.filtrate
|
|
205
|
+
})
|
|
206
|
+
console.log('this.saveinfo+++++',this.saveinfo)
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
watch :{
|
|
210
|
+
'modelinfo': {
|
|
211
|
+
deep: true,
|
|
212
|
+
handler(val) {
|
|
213
|
+
let c='1=1 '
|
|
214
|
+
for (let [key, value] of Object.entries(val)) {
|
|
215
|
+
if (value && value!='') {
|
|
216
|
+
if(key=='f_rank' && value=='null'){
|
|
217
|
+
c+='and '+ key + " is " + value +' or '+ key +" = ''"
|
|
218
|
+
}else{
|
|
219
|
+
c+='and '+ key + " in ('" + value.toString().replace(new RegExp(',','g'),"','") + "') "
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
this.conditionStr = c
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
'inindex' (val){
|
|
228
|
+
this.infos={}
|
|
229
|
+
this.saveinfo=this.types[val]
|
|
230
|
+
let flag={}
|
|
231
|
+
for(let [key, value] of Object.entries(this.saveinfo)){
|
|
232
|
+
let name=this.config[key]
|
|
233
|
+
if (name!=null){
|
|
234
|
+
flag[name]=value
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
this.infos=flag
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
</script>
|