apply-clients 3.3.16 → 3.3.17

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 (57) hide show
  1. package/index.html +33 -33
  2. package/package.json +1 -1
  3. package/src/AndroidApp.vue +30 -30
  4. package/src/android.js +21 -21
  5. package/src/apply.js +3 -6
  6. package/src/applyAndroid.js +35 -35
  7. package/src/components/android/AppOnetomany.vue +285 -285
  8. package/src/components/android/AppServiceView.vue +570 -570
  9. package/src/components/android/AppTakePic.vue +143 -143
  10. package/src/components/android/Function/AppFunctionServiceControl.vue +329 -329
  11. package/src/components/android/Function/AppInstallFunction.vue +327 -327
  12. package/src/components/android/Process/AppExplorationUser.vue +268 -268
  13. package/src/components/android/Process/AppServiceControl.vue +711 -686
  14. package/src/components/android/Process/Processes/AppChargeManagement.vue +468 -468
  15. package/src/components/android/Process/Processes/AppDevicesManagement.vue +490 -490
  16. package/src/components/android/Process/Processes/AppInstallationDetails.vue +466 -466
  17. package/src/components/android/Process/Processes/AppSupplementalAgreement.vue +297 -297
  18. package/src/components/android/Supervisory/AppProcessSupervisory.vue +261 -261
  19. package/src/components/android/Supervisory/AppSupervisoryCart.vue +115 -115
  20. package/src/components/product/ApplyCharge/ApplyChargeList.vue +265 -265
  21. package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +30 -30
  22. package/src/components/product/Function/InstallFunction.vue +122 -122
  23. package/src/components/product/Function/InstallInfoSelect.vue +289 -289
  24. package/src/components/product/Function/Service/FunctionServiceControl.vue +254 -254
  25. package/src/components/product/Onetomany.vue +296 -296
  26. package/src/components/product/Order/OrderApply.vue +47 -47
  27. package/src/components/product/Order/OrderApplyList.vue +62 -62
  28. package/src/components/product/Order/OrderMessage.vue +237 -237
  29. package/src/components/product/Process/ExplorationSelect.vue +145 -143
  30. package/src/components/product/Process/ExplorationUser.vue +128 -128
  31. package/src/components/product/Process/Processes/InstallationDetails.vue +421 -352
  32. package/src/components/product/Process/Processes/Print/img/10101.png +0 -0
  33. package/src/components/product/Process/Processes/Print/img/1010109.png +0 -0
  34. package/src/components/product/Process/Processes/Print/img/1010110.png +0 -0
  35. package/src/components/product/Process/Processes/Print/img/1010111.png +0 -0
  36. package/src/components/product/Process/Processes/Print/img/1010112.png +0 -0
  37. package/src/components/product/Process/Processes/{printCharge.vue → Print/printCharge.vue} +139 -121
  38. package/src/components/product/Process/Processes/Print/printRefund.vue +193 -0
  39. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +181 -181
  40. package/src/components/product/Process/Processes/chargeManagement.vue +639 -639
  41. package/src/components/product/Process/Processes/devicesManagement.vue +458 -458
  42. package/src/components/product/Process/Processes/selectApply.vue +250 -250
  43. package/src/components/product/Process/Processes/selectUserinfo.vue +182 -182
  44. package/src/components/product/Process/Processes/supplementalAgreement.vue +298 -298
  45. package/src/components/product/Process/Service/ServiceControl.vue +916 -810
  46. package/src/components/product/Process/ShowBackReason.vue +33 -33
  47. package/src/components/product/ServiceView.vue +301 -307
  48. package/src/components/product/Stop/StopApplyList.vue +254 -254
  49. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +512 -517
  50. package/src/components/product/Supervisory/SupervisoryControl.vue +100 -100
  51. package/src/components/product/Supervisory/SupervisoryList.vue +226 -226
  52. package/src/components/product/Supervisory/SupervisoryhCart.vue +124 -124
  53. package/src/components/product/VueUtils/ApplyUpload.vue +262 -262
  54. package/src/components/product/VueUtils/GaoPaiYi/HighMeter.vue +1090 -1090
  55. package/src/main.js +23 -23
  56. package/src/components/product/Function/Inform.vue +0 -74
  57. package/src/components/product/Function/MarketSurvey.vue +0 -80
@@ -1,262 +1,262 @@
1
- <template>
2
- <div class="col-sm-12" style="background-color: #FFFFFF">
3
- <div class="col-sm-12" style="padding:50px 100px;height: 25%">
4
- <div class="form-group col-sm-5" v-if="issearch">
5
- <v-select
6
- class="select select_list"
7
- :value.sync="useType"
8
- width="90%"
9
- v-model="useType"
10
- :options='typeOfUse'
11
- :valueSingle="true"></v-select>
12
- </div>
13
- <div class="form-group col-sm-2" style="text-align: center" v-if="issearch">
14
- <button type="button" class="btn btn-primary item_btn" @click="load">搜索</button>
15
- </div>
16
- <div class="form-group col-sm-2" style="text-align: center" v-if="isupload">
17
- <button type="button" class="btn btn-primary item_btn" @click="showUpload = !showUpload">本地上传</button>
18
- </div>
19
- <div class="form-group col-sm-2" style="text-align: center" v-if="takeimg">
20
- <button type="button" class="btn btn-primary item_btn" @click="upload()">拍照</button>
21
- </div>
22
- </div>
23
- <hr style="width: 90%;margin: 0px auto;border: #999999 1px solid;"/>
24
- <div class="col-sm-12" style="overflow: scroll;height: 75%">
25
- <div :class="bootstraped ? bootstraped + ' showData' : 'col-sm-6 showData'" v-for="row in fileInfoData">
26
- <div class="col-sm-12 item">
27
- <div class="left col-sm-5">
28
- <a href="#" class="thumbnail" style="width: 100%;height: 100%">
29
- <img v-if="row.f_filetype === 'jpg'||row.f_filetype === 'png'||row.f_filetype === 'gif'||row.f_filetype === 'bmp'" :src="row.f_downloadURL" alt="..."/>
30
- <img v-if="row.f_filetype === 'pdf'" src="../../image/pdf.jpg" alt="" />
31
- <img v-if="row.f_filetype === 'xls'||row.f_filetype === 'xlsx'" src="../../image/excel.jpg" alt="" />
32
- <img v-if="row.f_filetype === 'doc'||row.f_filetype === 'docx'" src="../../image/doc.jpg" alt="" />
33
- </a>
34
- </div>
35
- <div class="right col-sm-7">
36
- <p :title="row.f_filename" class="clears"><strong>文件名:</strong>{{row.f_filename}}</p>
37
- <p :title="row.f_username" class="clears"><strong>操作员:</strong><span>{{row.f_username}}</span></p>
38
- <p :title="row.fusetype" class="clears"><strong>使用类型:</strong><span>{{row.fusetype}}</span></p>
39
- <p :title="row.f_uploaddate" class="clears"><strong>上传时间:</strong><span>{{row.f_uploaddate}}</span></p>
40
- <p :title="row.fremarks" class="clears"><strong>文件说明:</strong>{{row.fremarks}}</p>
41
- <p class="clears">
42
- <a v-if="row.f_filetype === 'jpg' || row.f_filetype==='png' || row.f_filetype==='gif' || row.f_filetype==='bmp'" :href="row.f_downloadURL" style="background:#6aa6e2" class="btn btn-primary" target="_blank" role="button">预览</a>
43
- <a v-else @click="downloadfile(row.f_downloadURL)" style="background:#6aa6e2" class="btn btn-primary" role="button">下载</a>
44
- <a v-if="isdelete" @click="delet($index, row)" href="#" class="btn btn-default" role="button" role="button">删除</a>
45
- </p>
46
- </div>
47
- </div>
48
- </div>
49
- </div>
50
- </div>
51
- <apply-high-meter v-if="showhighmeter" :show.sync="showhighmeter" @photo-finish="newPhoto" v-ref:ltgao ></apply-high-meter>
52
- <modal :show.sync="showUpload" v-ref:modal backdrop="false">
53
- <header slot="modal-header" class="modal-header">
54
- <button type="button" class="close" @click="close"><span class="glyphicon glyphicon-remove"></span></button>
55
- <h4 class="modal-title" style="text-align: center">文件上传</h4>
56
- </header>
57
- <article slot="modal-body" class="modal-body form-horizontal">
58
- <div class="form-group" style="text-align: center">
59
- <file-upload class="my-file-uploader" :name="'myFile' + blodid"
60
- action="rs/file/uploadFile" tagname="文件上传" :headers="headers" multiple v-ref:file></file-upload>
61
- </div>
62
- <div class="form-group" v-if="isusetype">
63
- <label class="col-sm-2 control-label">文件类型:</label>
64
- <div class="col-sm-10">
65
- <input-select
66
- class="select select_list"
67
- :value.sync="headers.fusetype"
68
- v-model="headers.fusetype"
69
- :options="$appdata.getParam('使用类型')"
70
- :valueSingle="true"></input-select>
71
- </div>
72
- </div>
73
- <div class="form-group" v-if="isremark">
74
- <label class="col-sm-2 control-label">文件说明:</label>
75
- <div class="col-sm-10">
76
- <input class="form-control input_view" style=""
77
- v-model="headers.fremarks"
78
- :value="headers.fremarks"/>
79
- </div>
80
- </div>
81
- </article>
82
- <footer slot="modal-footer" class="modal-footer">
83
- </footer>
84
- </modal>
85
- </template>
86
-
87
- <script>
88
- import {HttpResetClass} from 'vue-client'
89
- import {isEmpty} from "../../Util";
90
- export default {
91
- title: '附件',
92
- props: ['blodid', 'businessid', 'isremark', 'isusetype', 'takeimg', 'defname', 'isupload', 'isdelete', 'bootstraped', 'issearch'],
93
- data () {
94
- return {
95
- fileInfoData: [], // 数据库存储的文件记录对象数组
96
- headers: {'username': this.$login.f.name, 'blodid': '','businessid':'', 'fremarks': '','defname':'','fusetype':''}, // 调用rs/file/uploadFile 的参数
97
- showUpload: false, // 上传模态框控制
98
- showhighmeter: false, // 高拍仪组件控制
99
- useType: null
100
- }
101
- },
102
- ready () {
103
- this.headers.blodid = this.blodid
104
- this.headers.businessid = this.businessid
105
- this.headers.defname = this.defname
106
- if (this.blodid || this.businessid) {
107
- this.load()
108
- }
109
- },
110
- methods: {
111
- delet(index, row) {
112
- this.$resetdelete('rs/entity/t_files', {id: row.id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
113
- this.$dispatch("delResid",row.id)
114
- this.load()
115
- })
116
- },
117
- // 下载
118
- downloadfile(filepath){
119
- var link = document.createElement('a');
120
- link.href = filepath;
121
- link.target='_blank'
122
- link.dispatchEvent(new MouseEvent('click'));
123
- },
124
- // 关闭文件上传对话框
125
- close () {
126
- this.showUpload = false
127
- // 将选的文件清空
128
- this.$refs.file.$el.querySelector('input').value = ''
129
- this.headers.fusetype = ''
130
- this.headers.fremarks = ''
131
- this.load()
132
- },
133
- // 查询
134
- async load() {
135
- let condition = ''
136
- if(this.businessid){
137
- condition = `f_businessid= '${this.headers.businessid}' `
138
- }else{
139
- condition = `f_blobid= '${this.headers.blodid}' `
140
- }
141
- if (!isEmpty(this.useType)) {
142
- condition += `and fusetype like '${this.useType}'`
143
- }
144
- let http = new HttpResetClass()
145
- let data = {
146
- tablename: 't_files',
147
- condition: condition + ` order by f_uploaddate desc `
148
- }
149
- let getFile = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
150
- warnMsg: null,
151
- resolveMsg: null
152
- })
153
-
154
- for (var i = 0; i < getFile.data.length; i++) {
155
- // 如果使用类型包含导入字样,则是execl文件导入的,不做显示
156
- if(getFile.data[i].fusetype&&(getFile.data[i].fusetype.includes('execl导入'))){
157
- getFile.data.splice(i,1)
158
- i--
159
- continue
160
- }
161
- let temp = getFile.data[i].f_downloadpath
162
- let URL = temp.substring(temp.lastIndexOf(":\\") + 2)
163
- getFile.data[i].f_downloadURL = "http://" + location.host + "/" + URL
164
- }
165
- this.fileInfoData = []
166
- this.fileInfoData = getFile.data
167
- },
168
- // 打开高拍仪
169
- upload () {
170
- if(this.showhighmeter){
171
- this.$refs.ltgao.closeVideo()
172
- }
173
- this.showhighmeter = !this.showhighmeter
174
- },
175
- // 高拍仪回调
176
- newPhoto(Imgbase64) {
177
- let form = new FormData()
178
- let xhr = new XMLHttpRequest()
179
- let formDataBoundary = "----WebkitFormBoundary" + "GaoPaiYi";
180
- form.append('Content-Type', 'multipart/form-data;boundary=' + formDataBoundary)
181
- form.append('file', this.convertBase64ToBlob(Imgbase64), "GaoPaiYi.jpg")
182
- xhr.open("POST", "rs/file/uploadFile")
183
-
184
- if (this.headers) {
185
- for (var header in this.headers) {
186
- xhr.setRequestHeader(header, encodeURIComponent(this.headers[header]))
187
- }
188
- }
189
- xhr.send(form)
190
- setTimeout(() => {
191
- this.load()
192
- }, 5000)
193
- },
194
- convertBase64ToBlob(base64String) {
195
- // 将base64解码
196
- var bytes = atob(base64String);
197
- //var bytes = base64;
198
- var bytesCode = new ArrayBuffer(bytes.length);
199
- // 转换为类型化数组
200
- var byteArray = new Uint8Array(bytesCode);
201
-
202
- // 将base64转换为ascii码
203
- for (var i = 0; i < bytes.length; i++) {
204
- byteArray[i] = bytes.charCodeAt(i);
205
- }
206
- // 生成Blob对象(文件对象)
207
- return new Blob([bytesCode], {type: 'image/jpeg'});
208
- },
209
- },
210
- computed: {
211
- typeOfUse () {
212
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('使用类型')]
213
- }
214
- },
215
- events: {
216
- onFileUpload: function (file, res) {
217
- this.$dispatch("resid",res.id)
218
- this.headers.fremarks=''
219
- this.close()
220
- }
221
- }
222
- }
223
- </script>
224
-
225
- <style scoped>
226
- .clears{
227
- overflow:hidden;
228
- text-overflow:ellipsis;
229
- white-space:nowrap;
230
- }
231
- .showData {
232
- padding: 15px 10px 0px 10px;
233
- box-sizing: border-box;
234
- height: 230px;
235
- font-family: "微软雅黑";
236
- }
237
- .showData .item{
238
- padding-bottom: 10px;
239
- border-bottom: solid 1px #c1c1c1;
240
- }
241
- .left {
242
- padding-right: 10px;
243
- }
244
- .left img{
245
- height: 100%;
246
- width: 100%;
247
- }
248
- .right{
249
- height: 100%;
250
- /*display: -webkit-flex;*/
251
- /*display: flex;*/
252
- /*flex-direction: column;*/
253
- /*justify-content: space-around;*/
254
- }
255
- .item_btn{
256
- width: 80%;
257
- background-color: #6aa6e2;
258
- border-radius: 4px;
259
- color: #FFFFFF;
260
- font-family: PingFang;
261
- }
262
- </style>
1
+ <template>
2
+ <div class="col-sm-12" style="background-color: #FFFFFF">
3
+ <div class="col-sm-12" style="padding:50px 100px;height: 25%">
4
+ <div class="form-group col-sm-5" v-if="issearch">
5
+ <v-select
6
+ class="select select_list"
7
+ :value.sync="useType"
8
+ width="90%"
9
+ v-model="useType"
10
+ :options='typeOfUse'
11
+ :valueSingle="true"></v-select>
12
+ </div>
13
+ <div class="form-group col-sm-2" style="text-align: center" v-if="issearch">
14
+ <button type="button" class="btn btn-primary item_btn" @click="load">搜索</button>
15
+ </div>
16
+ <div class="form-group col-sm-2" style="text-align: center" v-if="isupload">
17
+ <button type="button" class="btn btn-primary item_btn" @click="showUpload = !showUpload">本地上传</button>
18
+ </div>
19
+ <div class="form-group col-sm-2" style="text-align: center" v-if="takeimg">
20
+ <button type="button" class="btn btn-primary item_btn" @click="upload()">拍照</button>
21
+ </div>
22
+ </div>
23
+ <hr style="width: 90%;margin: 0px auto;border: #999999 1px solid;"/>
24
+ <div class="col-sm-12" style="overflow: scroll;height: 75%">
25
+ <div :class="bootstraped ? bootstraped + ' showData' : 'col-sm-6 showData'" v-for="row in fileInfoData">
26
+ <div class="col-sm-12 item">
27
+ <div class="left col-sm-5">
28
+ <a href="#" class="thumbnail" style="width: 100%;height: 100%">
29
+ <img v-if="row.f_filetype === 'jpg'||row.f_filetype === 'png'||row.f_filetype === 'gif'||row.f_filetype === 'bmp'" :src="row.f_downloadURL" alt="..."/>
30
+ <img v-if="row.f_filetype === 'pdf'" src="../../image/pdf.jpg" alt="" />
31
+ <img v-if="row.f_filetype === 'xls'||row.f_filetype === 'xlsx'" src="../../image/excel.jpg" alt="" />
32
+ <img v-if="row.f_filetype === 'doc'||row.f_filetype === 'docx'" src="../../image/doc.jpg" alt="" />
33
+ </a>
34
+ </div>
35
+ <div class="right col-sm-7">
36
+ <p :title="row.f_filename" class="clears"><strong>文件名:</strong>{{row.f_filename}}</p>
37
+ <p :title="row.f_username" class="clears"><strong>操作员:</strong><span>{{row.f_username}}</span></p>
38
+ <p :title="row.fusetype" class="clears"><strong>使用类型:</strong><span>{{row.fusetype}}</span></p>
39
+ <p :title="row.f_uploaddate" class="clears"><strong>上传时间:</strong><span>{{row.f_uploaddate}}</span></p>
40
+ <p :title="row.fremarks" class="clears"><strong>文件说明:</strong>{{row.fremarks}}</p>
41
+ <p class="clears">
42
+ <a v-if="row.f_filetype === 'jpg' || row.f_filetype==='png' || row.f_filetype==='gif' || row.f_filetype==='bmp'" :href="row.f_downloadURL" style="background:#6aa6e2" class="btn btn-primary" target="_blank" role="button">预览</a>
43
+ <a v-else @click="downloadfile(row.f_downloadURL)" style="background:#6aa6e2" class="btn btn-primary" role="button">下载</a>
44
+ <a v-if="isdelete" @click="delet($index, row)" href="#" class="btn btn-default" role="button" role="button">删除</a>
45
+ </p>
46
+ </div>
47
+ </div>
48
+ </div>
49
+ </div>
50
+ </div>
51
+ <apply-high-meter v-if="showhighmeter" :show.sync="showhighmeter" @photo-finish="newPhoto" v-ref:ltgao ></apply-high-meter>
52
+ <modal :show.sync="showUpload" v-ref:modal backdrop="false">
53
+ <header slot="modal-header" class="modal-header">
54
+ <button type="button" class="close" @click="close"><span class="glyphicon glyphicon-remove"></span></button>
55
+ <h4 class="modal-title" style="text-align: center">文件上传</h4>
56
+ </header>
57
+ <article slot="modal-body" class="modal-body form-horizontal">
58
+ <div class="form-group" style="text-align: center">
59
+ <file-upload class="my-file-uploader" :name="'myFile' + blodid"
60
+ action="rs/file/uploadFile" tagname="文件上传" :headers="headers" multiple v-ref:file></file-upload>
61
+ </div>
62
+ <div class="form-group" v-if="isusetype">
63
+ <label class="col-sm-2 control-label">文件类型:</label>
64
+ <div class="col-sm-10">
65
+ <input-select
66
+ class="select select_list"
67
+ :value.sync="headers.fusetype"
68
+ v-model="headers.fusetype"
69
+ :options="$appdata.getParam('使用类型')"
70
+ :valueSingle="true"></input-select>
71
+ </div>
72
+ </div>
73
+ <div class="form-group" v-if="isremark">
74
+ <label class="col-sm-2 control-label">文件说明:</label>
75
+ <div class="col-sm-10">
76
+ <input class="form-control input_view" style=""
77
+ v-model="headers.fremarks"
78
+ :value="headers.fremarks"/>
79
+ </div>
80
+ </div>
81
+ </article>
82
+ <footer slot="modal-footer" class="modal-footer">
83
+ </footer>
84
+ </modal>
85
+ </template>
86
+
87
+ <script>
88
+ import {HttpResetClass} from 'vue-client'
89
+ import {isEmpty} from "../../Util";
90
+ export default {
91
+ title: '附件',
92
+ props: ['blodid', 'businessid', 'isremark', 'isusetype', 'takeimg', 'defname', 'isupload', 'isdelete', 'bootstraped', 'issearch'],
93
+ data () {
94
+ return {
95
+ fileInfoData: [], // 数据库存储的文件记录对象数组
96
+ headers: {'username': this.$login.f.name, 'blodid': '','businessid':'', 'fremarks': '','defname':'','fusetype':''}, // 调用rs/file/uploadFile 的参数
97
+ showUpload: false, // 上传模态框控制
98
+ showhighmeter: false, // 高拍仪组件控制
99
+ useType: null
100
+ }
101
+ },
102
+ ready () {
103
+ this.headers.blodid = this.blodid
104
+ this.headers.businessid = this.businessid
105
+ this.headers.defname = this.defname
106
+ if (this.blodid || this.businessid) {
107
+ this.load()
108
+ }
109
+ },
110
+ methods: {
111
+ delet(index, row) {
112
+ this.$resetdelete('rs/entity/t_files', {id: row.id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
113
+ this.$dispatch("delResid",row.id)
114
+ this.load()
115
+ })
116
+ },
117
+ // 下载
118
+ downloadfile(filepath){
119
+ var link = document.createElement('a');
120
+ link.href = filepath;
121
+ link.target='_blank'
122
+ link.dispatchEvent(new MouseEvent('click'));
123
+ },
124
+ // 关闭文件上传对话框
125
+ close () {
126
+ this.showUpload = false
127
+ // 将选的文件清空
128
+ this.$refs.file.$el.querySelector('input').value = ''
129
+ this.headers.fusetype = ''
130
+ this.headers.fremarks = ''
131
+ this.load()
132
+ },
133
+ // 查询
134
+ async load() {
135
+ let condition = ''
136
+ if(this.businessid){
137
+ condition = `f_businessid= '${this.headers.businessid}' `
138
+ }else{
139
+ condition = `f_blobid= '${this.headers.blodid}' `
140
+ }
141
+ if (!isEmpty(this.useType)) {
142
+ condition += `and fusetype like '${this.useType}'`
143
+ }
144
+ let http = new HttpResetClass()
145
+ let data = {
146
+ tablename: 't_files',
147
+ condition: condition + ` order by f_uploaddate desc `
148
+ }
149
+ let getFile = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
150
+ warnMsg: null,
151
+ resolveMsg: null
152
+ })
153
+
154
+ for (var i = 0; i < getFile.data.length; i++) {
155
+ // 如果使用类型包含导入字样,则是execl文件导入的,不做显示
156
+ if(getFile.data[i].fusetype&&(getFile.data[i].fusetype.includes('execl导入'))){
157
+ getFile.data.splice(i,1)
158
+ i--
159
+ continue
160
+ }
161
+ let temp = getFile.data[i].f_downloadpath
162
+ let URL = temp.substring(temp.lastIndexOf(":\\") + 2)
163
+ getFile.data[i].f_downloadURL = "http://" + location.host + "/" + URL
164
+ }
165
+ this.fileInfoData = []
166
+ this.fileInfoData = getFile.data
167
+ },
168
+ // 打开高拍仪
169
+ upload () {
170
+ if(this.showhighmeter){
171
+ this.$refs.ltgao.closeVideo()
172
+ }
173
+ this.showhighmeter = !this.showhighmeter
174
+ },
175
+ // 高拍仪回调
176
+ newPhoto(Imgbase64) {
177
+ let form = new FormData()
178
+ let xhr = new XMLHttpRequest()
179
+ let formDataBoundary = "----WebkitFormBoundary" + "GaoPaiYi";
180
+ form.append('Content-Type', 'multipart/form-data;boundary=' + formDataBoundary)
181
+ form.append('file', this.convertBase64ToBlob(Imgbase64), "GaoPaiYi.jpg")
182
+ xhr.open("POST", "rs/file/uploadFile")
183
+
184
+ if (this.headers) {
185
+ for (var header in this.headers) {
186
+ xhr.setRequestHeader(header, encodeURIComponent(this.headers[header]))
187
+ }
188
+ }
189
+ xhr.send(form)
190
+ setTimeout(() => {
191
+ this.load()
192
+ }, 5000)
193
+ },
194
+ convertBase64ToBlob(base64String) {
195
+ // 将base64解码
196
+ var bytes = atob(base64String);
197
+ //var bytes = base64;
198
+ var bytesCode = new ArrayBuffer(bytes.length);
199
+ // 转换为类型化数组
200
+ var byteArray = new Uint8Array(bytesCode);
201
+
202
+ // 将base64转换为ascii码
203
+ for (var i = 0; i < bytes.length; i++) {
204
+ byteArray[i] = bytes.charCodeAt(i);
205
+ }
206
+ // 生成Blob对象(文件对象)
207
+ return new Blob([bytesCode], {type: 'image/jpeg'});
208
+ },
209
+ },
210
+ computed: {
211
+ typeOfUse () {
212
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('使用类型')]
213
+ }
214
+ },
215
+ events: {
216
+ onFileUpload: function (file, res) {
217
+ this.$dispatch("resid",res.id)
218
+ this.headers.fremarks=''
219
+ this.close()
220
+ }
221
+ }
222
+ }
223
+ </script>
224
+
225
+ <style scoped>
226
+ .clears{
227
+ overflow:hidden;
228
+ text-overflow:ellipsis;
229
+ white-space:nowrap;
230
+ }
231
+ .showData {
232
+ padding: 15px 10px 0px 10px;
233
+ box-sizing: border-box;
234
+ height: 230px;
235
+ font-family: "微软雅黑";
236
+ }
237
+ .showData .item{
238
+ padding-bottom: 10px;
239
+ border-bottom: solid 1px #c1c1c1;
240
+ }
241
+ .left {
242
+ padding-right: 10px;
243
+ }
244
+ .left img{
245
+ height: 100%;
246
+ width: 100%;
247
+ }
248
+ .right{
249
+ height: 100%;
250
+ /*display: -webkit-flex;*/
251
+ /*display: flex;*/
252
+ /*flex-direction: column;*/
253
+ /*justify-content: space-around;*/
254
+ }
255
+ .item_btn{
256
+ width: 80%;
257
+ background-color: #6aa6e2;
258
+ border-radius: 4px;
259
+ color: #FFFFFF;
260
+ font-family: PingFang;
261
+ }
262
+ </style>