apply-clients 3.3.69 → 3.3.71-3

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