apply-clients 4.1.60-weinan → 4.1.61-weinan

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