manage-client 3.2.26 → 3.2.30

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 (54) hide show
  1. package/.gradle/5.4.1/fileChanges/last-build.bin +0 -0
  2. package/.gradle/5.4.1/fileHashes/fileHashes.lock +0 -0
  3. package/.gradle/5.4.1/gc.properties +0 -0
  4. package/build/dev-server.js +28 -9
  5. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  6. package/package.json +1 -1
  7. package/src/.idea/misc.xml +9 -0
  8. package/src/.idea/modules.xml +8 -0
  9. package/src/.idea/src.iml +9 -0
  10. package/src/.idea/vcs.xml +6 -0
  11. package/src/.idea/workspace.xml +93 -0
  12. package/src/components/SellReport/ChargePrick.vue +43 -122
  13. package/src/components/sale/businessquery/BusinesQuery.vue +358 -348
  14. package/src/components/sale/businessquery/ChangeMeterQuery.vue +632 -627
  15. package/src/components/sale/businessquery/ChangeUserQuery.vue +357 -348
  16. package/src/components/sale/businessquery/ChargeQuery.vue +1245 -1235
  17. package/src/components/sale/businessquery/DisableQuery.vue +451 -441
  18. package/src/components/sale/businessquery/EnableQuery.vue +408 -398
  19. package/src/components/sale/businessquery/FillCardQuery.vue +486 -477
  20. package/src/components/sale/businessquery/FillGasQuery.vue +511 -491
  21. package/src/components/sale/businessquery/InspectListUser.vue +433 -433
  22. package/src/components/sale/businessquery/OtherChargeQuery.vue +634 -619
  23. package/src/components/sale/businessquery/ReverseQuery.vue +402 -392
  24. package/src/components/sale/businessquery/SalesGasClassification.vue +168 -168
  25. package/src/components/sale/businessquery/TransferQuery.vue +418 -404
  26. package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +308 -308
  27. package/src/components/sale/filesquery/ArchivesManage.vue +3 -0
  28. package/src/components/sale/filesquery/DeviceQuery.vue +534 -524
  29. package/src/components/sale/filesquery/FireQuery.vue +477 -0
  30. package/src/components/sale/filesquery/RecordInfoQuery.vue +1260 -1250
  31. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  32. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  33. package/src/filiale/WEINAN/config/tableConfig.js +20 -20
  34. package/src/filiale/jingwei/RecordInfoQuery.vue +1142 -1142
  35. package/src/filiale/liaoyuan/ReportList.vue +421 -421
  36. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  37. package/src/filiale/meihekou/CardHandplanQuery.vue +612 -612
  38. package/src/filiale/meihekou/RecordInfoQuery.vue +1158 -1158
  39. package/src/filiale/pingxiang/sale.js +9 -9
  40. package/src/filiale/qingtongxia/sale.js +13 -13
  41. package/src/filiale/rongcheng/UserQuery.vue +827 -827
  42. package/src/filiale/shaoguan/HandplanQuery.vue +1314 -1314
  43. package/src/filiale/shaoguan/TransferQuery.vue +403 -403
  44. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  45. package/src/filiale/shaoguan/errorHandplanQuery.vue +366 -366
  46. package/src/filiale/shaoguan/sale/businessquery/ExemptQuery.vue +314 -314
  47. package/src/filiale/shaoguan/sale/businessquery/FMYGasQuery.vue +687 -687
  48. package/src/filiale/shaoguan/sale/businessquery/PaymentChangeQuery.vue +338 -338
  49. package/src/filiale/shaoguan/sale/businessquery/ReconcileQuery.vue +426 -426
  50. package/src/filiale/tongchuan/ChargeQuery.vue +1270 -1252
  51. package/src/filiale/tongchuan/FillGasQuery.vue +523 -508
  52. package/src/filiale/tongchuan/config/exportConfig.js +1 -1
  53. package/src/main.js +10 -11
  54. package/src/saleManage.js +5 -0
File without changes
@@ -11,17 +11,29 @@ var compiler = webpack(config)
11
11
  // Define HTTP proxies to your custom API backend
12
12
  // https://github.com/chimurai/http-proxy-middleware
13
13
  // var bendi = 'http://127.0.0.1:8089/manage', fuwu = 'http://36.103.224.217:6300/'
14
- var shaoguan='http://119.146.1.106:8300/'
14
+ //韶关
15
+ // var fuwu='http://119.146.1.106:8300/'
15
16
  var qtx='http://36.103.222.144:6300/'
16
- var bendi = 'http://119.36.179.19:8000', fuwu_login = 'http://192.168.50.4:8400'
17
- var fuwu = 'http://119.36.179.19:8000'
18
- var system = 'http://192.168.50.4:8400'
17
+ var bendi = 'http://127.0.0.1:8083/'
18
+ var fuwu_login = 'http://192.168.50.4:8400'
19
+ //公司
20
+ var fuwu='http://192.168.50.4:8400/'
21
+ // var fuwu='http://139.214.92.34:8301/'
22
+ // var fuwu='http://61.134.55.234:9999/'
23
+
24
+ // var fuwu='http://172.168.1.11:8400/'
25
+ // var fuwu='http://172.168.1.11:9001/'
26
+ //经纬
27
+ // var fuwu='http://60.222.250.39:8300/'
19
28
  //192.168.
20
29
  // var str = 'http://127.0.0.1:8080/manage', str2 = 'http://192.168.50.199:8300'
21
30
  // var str = 'http://192.168.10.233:8300', str2 = 'http://192.168.10.14:8300'
22
31
  var proxyTable = {
23
32
  '/rs/logic/exportfile': {
24
- target: fuwu
33
+ target: bendi
34
+ },
35
+ '/rs/entity':{
36
+ target:'http://127.0.0.1:8080'
25
37
  },
26
38
  '/files': {
27
39
  target: fuwu
@@ -67,7 +79,7 @@ var proxyTable = {
67
79
  target: fuwu
68
80
  },
69
81
  '/rs/report': {
70
- target: fuwu
82
+ target: bendi
71
83
  },
72
84
  '/rs/vue': {
73
85
  target: fuwu
@@ -78,8 +90,15 @@ var proxyTable = {
78
90
  '/rs/logic/SumSettleFileImport': {
79
91
  target: 'http://127.0.0.1:8080'
80
92
  },
93
+ '/rs/logic/getBatchOperaPro':{
94
+ target: 'http://127.0.0.1:8080'
95
+ },
96
+ '/rs/logic/machineChargePay':{
97
+ target: 'http://127.0.0.1:8080'
98
+ },
81
99
  '/rs': {
82
- target: bendi
100
+ target: 'http://127.0.0.1:8079'
101
+ // target: fuwu
83
102
  }
84
103
  }
85
104
 
@@ -165,10 +184,10 @@ app.use('/static', express.static('./static'))
165
184
  // })
166
185
  // })
167
186
 
168
- module.exports = app.listen(8087, function (err) {
187
+ module.exports = app.listen(8085, function (err) {
169
188
  if (err) {
170
189
  console.log(err)
171
190
  return
172
191
  }
173
- console.log('Listening at http://localhost:8087')
192
+ console.log('Listening at http://localhost:8085')
174
193
  })
@@ -1,5 +1,5 @@
1
- distributionBase=GRADLE_USER_HOME
2
- distributionPath=wrapper/dists
3
- distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-bin.zip
4
- zipStoreBase=GRADLE_USER_HOME
5
- zipStorePath=wrapper/dists
1
+ distributionBase=GRADLE_USER_HOME
2
+ distributionPath=wrapper/dists
3
+ distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-bin.zip
4
+ zipStoreBase=GRADLE_USER_HOME
5
+ zipStorePath=wrapper/dists
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "3.2.26",
3
+ "version": "3.2.30",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="JavaScriptSettings">
4
+ <option name="languageLevel" value="ES6" />
5
+ </component>
6
+ <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
7
+ <output url="file://$PROJECT_DIR$/out" />
8
+ </component>
9
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/src.iml" filepath="$PROJECT_DIR$/.idea/src.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="JAVA_MODULE" version="4">
3
+ <component name="NewModuleRootManager" inherit-compiler-output="true">
4
+ <exclude-output />
5
+ <content url="file://$MODULE_DIR$" />
6
+ <orderEntry type="inheritedJdk" />
7
+ <orderEntry type="sourceFolder" forTests="false" />
8
+ </component>
9
+ </module>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$/.." vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,93 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="BranchesTreeState">
4
+ <expand>
5
+ <path>
6
+ <item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
7
+ <item name="LOCAL_ROOT" type="e8cecc67:BranchNodeDescriptor" />
8
+ </path>
9
+ <path>
10
+ <item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
11
+ <item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
12
+ </path>
13
+ <path>
14
+ <item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
15
+ <item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
16
+ <item name="GROUP_NODE:origin" type="e8cecc67:BranchNodeDescriptor" />
17
+ </path>
18
+ </expand>
19
+ <select />
20
+ </component>
21
+ <component name="ChangeListManager">
22
+ <list default="true" id="2087ff6c-d9e6-466c-b193-f0d5d2482d6c" name="Default Changelist" comment="">
23
+ <change beforePath="$PROJECT_DIR$/../build/dev-server.js" beforeDir="false" afterPath="$PROJECT_DIR$/../build/dev-server.js" afterDir="false" />
24
+ <change beforePath="$PROJECT_DIR$/main.js" beforeDir="false" afterPath="$PROJECT_DIR$/main.js" afterDir="false" />
25
+ </list>
26
+ <option name="SHOW_DIALOG" value="false" />
27
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
28
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
29
+ <option name="LAST_RESOLUTION" value="IGNORE" />
30
+ </component>
31
+ <component name="Git.Settings">
32
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/.." />
33
+ </component>
34
+ <component name="ProjectId" id="1sTJyFXFMzYrD44cO32T0JVBAbk" />
35
+ <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
36
+ <component name="ProjectViewState">
37
+ <option name="hideEmptyMiddlePackages" value="true" />
38
+ <option name="showLibraryContents" value="true" />
39
+ </component>
40
+ <component name="PropertiesComponent">
41
+ <property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
42
+ <property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
43
+ <property name="WebServerToolWindowFactoryState" value="false" />
44
+ <property name="aspect.path.notification.shown" value="true" />
45
+ <property name="last_opened_file_path" value="$PROJECT_DIR$" />
46
+ </component>
47
+ <component name="SvnConfiguration">
48
+ <configuration />
49
+ </component>
50
+ <component name="TaskManager">
51
+ <task active="true" id="Default" summary="Default task">
52
+ <changelist id="2087ff6c-d9e6-466c-b193-f0d5d2482d6c" name="Default Changelist" comment="" />
53
+ <created>1620890898982</created>
54
+ <option name="number" value="Default" />
55
+ <option name="presentableId" value="Default" />
56
+ <updated>1620890898982</updated>
57
+ <workItem from="1620890900685" duration="47000" />
58
+ </task>
59
+ <servers />
60
+ </component>
61
+ <component name="TypeScriptGeneratedFilesManager">
62
+ <option name="version" value="2" />
63
+ </component>
64
+ <component name="Vcs.Log.Tabs.Properties">
65
+ <option name="TAB_STATES">
66
+ <map>
67
+ <entry key="MAIN">
68
+ <value>
69
+ <State>
70
+ <option name="FILTERS">
71
+ <map>
72
+ <entry key="text">
73
+ <value>
74
+ <list>
75
+ <option value="流水查询" />
76
+ </list>
77
+ </value>
78
+ </entry>
79
+ </map>
80
+ </option>
81
+ </State>
82
+ </value>
83
+ </entry>
84
+ </map>
85
+ </option>
86
+ </component>
87
+ <component name="WindowStateProjectService">
88
+ <state x="468" y="125" width="600" height="584" key="find.popup" timestamp="1620890946519">
89
+ <screen x="0" y="0" width="1536" height="834" />
90
+ </state>
91
+ <state x="468" y="125" width="600" height="584" key="find.popup/0.0.1536.834@0.0.1536.834" timestamp="1620890946519" />
92
+ </component>
93
+ </project>
@@ -2,11 +2,9 @@
2
2
  <div class="basic-main" style="height: 100%">
3
3
  <criteria-paged :model="model" :pager='false' v-ref:paged>
4
4
  <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
- <p class="bg-info text-center" style="padding: 8px;">操作员收款日结账单</p>
6
- <div class="form-group" v-if="!$parent.$parent.data.f_files_path"></div>
7
5
  <div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
8
6
  <div class="row">
9
- <div class="col-sm-3" >
7
+ <div class="col-sm-2" >
10
8
  <label class="font_normal_body" for="startDate">开始日期:</label>
11
9
  <datepicker id="startDate" placeholder="开始日期" style="width: 60%"
12
10
  v-model="model.startDate"
@@ -16,7 +14,7 @@
16
14
  :show-reset-button="reset">
17
15
  </datepicker>
18
16
  </div>
19
- <div class="col-sm-3" >
17
+ <div class="col-sm-2" >
20
18
  <label class="font_normal_body" for="endDate">结束日期:</label>
21
19
  <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
22
20
  v-model="model.endDate"
@@ -26,22 +24,24 @@
26
24
  :show-reset-button="reset">
27
25
  </datepicker>
28
26
  </div>
29
- <div class="col-sm-3 form-group" >
30
- <label class="font_normal_body" for="org">公&emsp;&emsp;司:</label>
31
- <right-tree id="org" @re-res="$parent.$parent.getRes" style="width: 60%"></right-tree>
32
- </div>
33
- <div class="col-sm-3 form-group">
34
- <label class="font_normal_body" for="oper">人&emsp;&emsp;员:</label>
35
- <v-select id="oper" style="width: 60%"
36
- :multiple="false"
37
- @change="$parent.$parent.getOpe"
38
- :value.sync="model.f_operatorid"
39
- v-model="model.f_operatorid"
40
- :options='$parent.$parent.userresid' placeholder='请选择'
41
- condition="f_operatorid in {}">
42
- </v-select>
43
- </div>
44
- <div class="col-sm-3 form-group">
27
+ <res-select-group :show-component="['company','operator']" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
28
+ <!-- <div class="col-sm-3 form-group" >-->
29
+ <!-- <label class="font_normal_body" for="org">公&emsp;&emsp;司:</label>-->
30
+ <!-- <right-tree id="org" @re-res="$parent.$parent.getRes" style="width: 60%"-->
31
+ <!-- ></right-tree>-->
32
+ <!-- </div>-->
33
+ <!-- <div class="col-sm-2 form-group">-->
34
+ <!-- <label class="font_normal_body" for="oper">人&emsp;&emsp;员:</label>-->
35
+ <!-- <v-select id="oper" style="width: 60%"-->
36
+ <!-- :multiple="false"-->
37
+ <!-- @change="$parent.$parent.getOpe"-->
38
+ <!-- :value.sync="model.f_operatorid"-->
39
+ <!-- v-model="model.f_operatorid"-->
40
+ <!-- :options='$parent.$parent.userresid' placeholder='请选择'-->
41
+ <!-- condition="f_operatorid in {}">-->
42
+ <!-- </v-select>-->
43
+ <!-- </div>-->
44
+ <div class="col-sm-2 form-group">
45
45
  <label class="font_normal_body" title="参数:付款方式查询">付款方式</label>
46
46
  <v-select :value.sync="model.f_payment" multiple
47
47
  v-model="model.f_payment"
@@ -94,56 +94,21 @@
94
94
  </tr>
95
95
  </tfoot>
96
96
  </table>
97
- {{{ $parent.reportStr}}}
98
97
  </div>
99
98
  </criteria-paged>
100
- <modal :show.sync="show" v-ref:modal small backdrop="false">
101
- <header slot="modal-header" class="modal-header">
102
- <h4 class="modal-title">输入文件名称</h4>
103
- </header>
104
- <article slot="modal-body" class="modal-body">
105
- <div class="form-group">
106
- <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
107
- </div>
108
- </article>
109
- <footer slot="modal-footer" class="modal-footer">
110
- <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
111
- <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
112
- </footer>
113
- </modal>
114
99
  </div>
115
100
  </template>
116
101
 
117
102
  <script>
118
103
  import {DataModel, HttpResetClass} from 'vue-client'
119
104
  import co from 'co'
120
- let saveFile = function * (self) {
121
- // 线验证文件是否重名
122
- let count = yield self.$resetpost('rs/sql/manageSingleTable',
123
- {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
124
- {resolveMsg: null, rejectMsg: null})
125
- if (count.data.length > 0) {
126
- self.$showAlert('无法保存,文件名重名', 'warning', 3000)
127
- return
128
- }
129
- let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
130
- f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
131
- f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
132
- f_outlets: this.$login.f.depname})
133
- if (saveBack.data.status === 'succeed') {
134
- self.show = false
135
- self.filename = ''
136
- // 后台保存完成,通知刷新
137
- self.$dispatch('save-success', self.filename)
138
- }
139
- }
105
+
140
106
  let getData = function * (self) {
141
- let load = new HttpResetClass()
142
- load.load("POST",'rs/sql/manageSingleTable',
107
+ new HttpResetClass().load("POST",'rs/sql/manageSingleTable',
143
108
  {
144
109
  data: {
145
110
  tablename: 't_user',
146
- condition: `state = '在职' and f_department_name is not null`
111
+ condition: `1=1`
147
112
  }
148
113
  },
149
114
  {resolveMsg: null, rejectMsg: null})
@@ -161,16 +126,20 @@ let getData = function * (self) {
161
126
  printTime: this.$login.toStandardTimeString(),
162
127
  depresid: [],
163
128
  userresid: [],
164
- f_orgid: '',
129
+ initres: {
130
+ org:[this.$login.f.orgid],
131
+ user:[]
132
+ },
133
+ //f_orgid: '',
165
134
  // f_depid: this.$login.f.depids,
166
- f_operatorid: '',
167
- operatorid: [],
168
- depid: [],
169
- tablen:0,
135
+ // f_operatorid: '',
136
+ // operatorid: [],
137
+ // depid: [],
138
+ tablen: 0,
170
139
  orgname: '',
171
- depname: '',
140
+ // depname: '',
172
141
  operatorname: '',
173
- orgCondtionStr: '1=1',
142
+ orgCondtionStr: '',
174
143
  model: new DataModel('rs/report/chargePrick', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
175
144
  f_orgid: 'this.model.f_orgid'}),
176
145
  reportStr: null,
@@ -196,78 +165,30 @@ let getData = function * (self) {
196
165
  console.log(this.$login.f)
197
166
  },
198
167
  methods: {
199
- getOpe(val){
200
- this.operatorname = this.userresid.filter(x => x.value == val).map(x=>x.label).toString()
201
- console.log('dep',this.operatorname )
202
- },
203
168
  searchData () {
204
169
  this.$refs.paged.$refs.criteria.search()
205
170
  },
206
171
  selfSearch (args) {
207
172
  this.printTime = this.$login.toStandardTimeString()
173
+
208
174
  let orgcondition = '1 = 1'
209
- if(this.f_orgid[0]){
210
- orgcondition += ' and f_orgid in (' + this.f_orgid + ')'
175
+ if (this.orgCondtionStr) {
176
+ orgcondition += this.orgCondtionStr
211
177
  }
212
-
213
- // if(this.f_operatorid[0]) {
214
- // orgcondition += ' and f_operatorid in(' + this.f_operatorid + ')'
215
- // }
216
178
  this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
217
179
  this.$refs.paged.search(args)
218
180
  },
219
- getRes (obj) {
181
+ getRes (condition,obj) {
220
182
  console.log('gs>>>>>>>>>>>>', obj)
221
- this.orgname = obj.res[0]
222
- // this.depresid = obj.resids
223
- // this.userresid = obj.resids
224
- this.f_orgid = obj.resids
225
- },
226
- getuser ( obj, val) {
227
- this.operatorname = val[0]
228
- this.f_operatorid = obj
229
- },
230
- // 根据文件路径获取储存的报表内容
231
- getFileContent (path) {
232
- this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
233
- this.reportStr = res.data.filecontent
234
- this.model.state = '正确'
235
- })
236
- },
237
- confirm () {
238
- if (!this.filename || this.filename === '') {
239
- this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
240
- }
241
- let saveGen = saveFile(this)
242
- co(saveGen)
243
- },
244
- close () {
245
- this.show = false
246
- },
247
- // 将报表保存成文件
248
- confirmReport () {
249
- this.show = true
250
- this.filename = this.data.f_report_name + this.$login.toStandardDateString()
183
+ this.orgCondtionStr = condition
184
+ this.orgname = obj.orgnames.map(item => item.split('-')[0]).toString()
185
+ this.operatorname = this.userresid.filter(x => obj.operatornames.includes(x.value)).map(x=>x.label).toString()
186
+
251
187
  }
252
188
  },
253
189
  watch: {
254
- 'data' (val) {
255
- if (val.f_files_path) {
256
- this.getFileContent(val.f_files_path)
257
- } else {
258
- this.reportStr = null
259
- }
260
- },
261
190
  'model.data' (val) {
262
- let len=0
263
- let a=val.split('</tr>')
264
- for(let i=0;i<a.length;i++){
265
- if(a[i].split('</td>').length-1>len){
266
- len=a[i].split('</td>').length-1
267
- }
268
- continue
269
- }
270
- this.tablen=len
191
+ this.tablen = val.split('</tr>').map(item => item.split('</td>').length-1).reduce((x, y) => x > y ? x : y)
271
192
  }
272
193
  },
273
194
  computed: {