safecheck-client 3.0.30-62-t6 → 3.0.30-62-t8

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 (46) hide show
  1. package/package.json +1 -1
  2. package/src/components/DefectDealMain/DefectListNew.vue +597 -597
  3. package/src/components/NewDefectList/DefectListNew.vue +52 -12
  4. package/src/components/Util/SafecheckUpload.vue +276 -265
  5. package/src/components/android/CurrentCreate.vue +2 -2
  6. package/src/components/android/PhoneUpDetail.vue +1040 -1040
  7. package/src/components/android/PhoneUpUserinfo.vue +1230 -1230
  8. package/src/components/pc/NewCheckpaperTemp.vue +1295 -1295
  9. package/src/components/rongcheng/DefectList.vue +560 -560
  10. package/src/components/rongcheng/PhoneDevicesInfo.vue +248 -248
  11. package/src/components/rongcheng/PhoneUpUserinfo.vue +1236 -1236
  12. package/src/components/userfile/SecurityAudit.vue +243 -243
  13. package/src/components/userfile/UserInfoAudit.vue +316 -316
  14. package/src/components/userfileNew/UserInfoAuditNew.vue +274 -274
  15. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
  16. package/src/filiale/bayan/android/PhoneUpUserinfo.vue +1377 -1377
  17. package/src/filiale/bayan/pc/DefectListNew.vue +597 -597
  18. package/src/filiale/ganquan/android/PhoneUpUserinfo.vue +986 -986
  19. package/src/filiale/jiaxian/android/PhoneUpUserinfo.vue +1229 -1229
  20. package/src/filiale/jinbin/android/PhoneUpUserinfo.vue +878 -878
  21. package/src/filiale/jingyang/android/PhoneUpUserinfo.vue +1234 -1234
  22. package/src/filiale/jingyang/pc/UserInfoAuditNew.vue +272 -272
  23. package/src/filiale/kelai/android/PhoneUpUserinfo.vue +1053 -1053
  24. package/src/filiale/kelai/pc/UserInfoAudit.vue +254 -254
  25. package/src/filiale/minsheng/android/PhoneUpUserinfo.vue +1269 -1269
  26. package/src/filiale/qianneng/android/PhoneUpUserinfo.vue +1127 -1127
  27. package/src/filiale/qianneng/pc/UserInfoAudit.vue +286 -286
  28. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +1270 -1270
  29. package/src/filiale/qingtongxia/android/PhoneUpUserinfo.vue +1230 -1230
  30. package/src/filiale/shanxian/android/PhoneUpUserinfo.vue +939 -939
  31. package/src/filiale/shexian/android/PhoneUpUserinfo.vue +1153 -1153
  32. package/src/filiale/tongchuan/android/PhoneUpDetail.vue +707 -707
  33. package/src/filiale/tongchuan/android/PhoneUpUserinfo.vue +1323 -1323
  34. package/src/filiale/weinan/android/PhoneUpDetail.vue +968 -968
  35. package/src/filiale/weinan/android/PhoneUpUserinfo.vue +1038 -1038
  36. package/src/filiale/wenxi/android/PhoneUpUserinfo.vue +1076 -1076
  37. package/src/filiale/wuhai/android/PhoneUpUserinfo.vue +926 -926
  38. package/src/filiale/yangchunboneng/android/PhoneUpUserinfo.vue +1235 -1235
  39. package/src/filiale/yongzhou/android/PhoneUpUserinfo.vue +1257 -1257
  40. package/src/filiale/yuansheng/android/PhoneUpUserinfo.vue +942 -942
  41. package/src/filiale/yunchengminsheng/android/PhoneUpUserinfo.vue +1198 -1198
  42. package/src/filiale/zhongsheng/android/PhoneUpUserinfo.vue +926 -926
  43. package/src/filiale/zhongsheng/pc/UserInfoAudit.vue +252 -252
  44. package/src/filiale/zhongyi/pc/DefectListNew.vue +514 -514
  45. package/src/filiale/zhoukou/android/PhoneUpUserinfo.vue +957 -957
  46. package/src/main.js +33 -33
@@ -1,265 +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%">
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-12" 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-12" style="text-align: center" v-if="isupload">
17
- <button type="button" class="btn btn-primary item_btn" @click="showUpload = !showUpload">本地上传</button>
18
- </div>
19
-
20
- </div>
21
- <hr style="width: 90%;margin: 0px auto;border: #999999 1px solid;"/>
22
- <div class="col-sm-12" style="overflow: scroll;height: 75%">
23
- <div :class="bootstraped ? bootstraped + ' showData' : 'col-sm-15 showData'" v-for="row in fileInfoData">
24
- <div class="col-sm-12 item">
25
- <div class="left col-sm-5">
26
- <a href="#" class="thumbnail" style="width: 88%;height: 98%;margin-left: 16px">
27
- <img v-if="row.f_filetype === 'jpg'||row.f_filetype === 'png'||row.f_filetype === 'jpeg'||row.f_filetype === 'gif'||row.f_filetype === 'bmp'||row.f_filetype === 'MP3'" :src="row.f_downloadURL" alt="..."/>
28
- <img v-if="row.f_filetype === 'pdf'" src="../../assets/pdf.jpg" alt="" />
29
- <img v-if="row.f_filetype === 'xls'||row.f_filetype === 'xlsx'" src="../../assets/excel.jpg" alt="" />
30
- <img v-if="row.f_filetype === 'doc'||row.f_filetype === 'docx'" src="../../assets/doc.jpg" alt="" />
31
- <img v-if="row.f_filetype === 'mp3'" src="../../assets/mp3.png" alt="" />
32
- </a>
33
- </div>
34
- <div class="right col-sm-15">
35
- <p :title="row.f_filename" class="clears"><strong>文件名:</strong>{{row.f_filename}}</p>
36
- <p :title="row.f_username" class="clears"><strong>操作员:</strong><span>{{row.f_username}}</span></p>
37
- <p :title="row.fusetype" class="clears"><strong>使用类型:</strong><span>{{row.fusetype}}</span></p>
38
- <p :title="row.f_uploaddate" class="clears"><strong>上传时间:</strong><span>{{row.f_uploaddate}}</span></p>
39
- <p :title="row.fremarks" class="clears"><strong>文件说明:</strong>{{row.fremarks}}</p>
40
- <p class="clears">
41
- <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>
42
- <a v-else @click="downloadfile(row.f_downloadURL)" style="background:#6aa6e2" class="btn btn-primary" role="button">下载</a>
43
- <a v-if="isdelete" @click="delet($index, row)" href="#" class="btn btn-default" role="button" role="button">删除</a>
44
- </p>
45
- </div>
46
- </div>
47
- </div>
48
- </div>
49
- </div>
50
- <work-busy :is-busy="loading"></work-busy>
51
- <modal :show.sync="showUpload" v-ref:modal backdrop="false">
52
- <header slot="modal-header" class="modal-header">
53
- <button type="button" class="close" @click="close">
54
- <img src="../../assets/x.png" style="margin: -4px;margin-right: -15px;height: 37px"/>
55
- <!-- <span class="glyphicon glyphicon-remove"></span>--></button>
56
- <h4 class="modal-title" style="text-align: center" v-if="headers.fusetype=='MP3'">文件上传</h4>
57
- </header>
58
- <article slot="modal-body" class="modal-body form-horizontal" >
59
- <div class="form-group" >
60
- <!-blodid:在上传时候绑定用户标识-->
61
- <file-upload style="margin-top: -8px;margin-left: 45px" :name="'myFile' + blodid"
62
- action="rs/file/uploadFile" tagname="文件上传" :headers="headers" multiple v-ref:file>
63
- </file-upload>
64
- </div>
65
- <div class="form-group" v-if="isusetype" style="padding-top: 15px">
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
- import FileUpload from './FileUpload'
94
-
95
- export default {
96
- title: '附件',
97
- props: ['blodid', 'businessid', 'isremark', 'isusetype', 'takeimg', 'defname', 'isupload', 'isdelete', 'bootstraped', 'issearch'],
98
- components: {
99
- FileUpload
100
- },
101
- data () {
102
- return {
103
- fileInfoData: [], // 数据库存储的文件记录对象数组
104
- headers: {'username': this.$login.f.name, 'blodid': '','businessid':'', 'fremarks': '','defname':'','fusetype':''}, // 调用rs/file/uploadFile 的参数
105
- showUpload: false, // 上传模态框控制
106
- useType: null,
107
- loading:false
108
- }
109
- },
110
- ready () {
111
- this.headers.blodid = this.blodid
112
- this.headers.businessid = this.businessid
113
- this.headers.defname = this.defname
114
- //tag;
115
- //tag;
116
- if (this.blodid || this.businessid) {
117
- //tag;
118
- //tag;
119
- this.load()
120
- }
121
- },
122
- methods: {
123
- delet(index, row) {
124
- this.$resetdelete('rs/entity/t_files', {id: row.id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
125
- this.$dispatch("delResid",row.id)
126
- this.load()
127
- })
128
- },
129
- // 下载
130
- downloadfile(filepath){
131
- var link = document.createElement('a');
132
- link.href = filepath;
133
- link.target='_blank'
134
- link.dispatchEvent(new MouseEvent('click'));
135
- },
136
- // 关闭文件上传对话框
137
- close () {
138
- this.showUpload = false
139
- // 将选的文件清空
140
- this.$refs.file.$el.querySelector('input').value = ''
141
- this.headers.fusetype = ''
142
- this.headers.fremarks = ''
143
- this.load()
144
- },
145
- // 查询
146
- async load() {
147
- let condition = ''
148
- if(this.businessid){
149
- condition = `f_businessid= '${this.businessid}' `
150
- }else{
151
- condition = `f_blobid= '${this.blodid}' `
152
- }
153
- if (!isEmpty(this.useType)) {
154
- condition += `and fusetype like '${this.useType}'`
155
- }
156
- let http = new HttpResetClass()
157
- let data = {
158
- tablename: 't_files',
159
- condition: condition + ` order by f_uploaddate desc `
160
- }
161
- let getFile = await http.load('POST', 'api/af-safecheck/sql/singleTable', {data: data}, {
162
- warnMsg: null,
163
- resolveMsg: null
164
- })
165
-
166
- for (var i = 0; i < getFile.data.length; i++) {
167
- // 如果使用类型包含导入字样,则是execl文件导入的,不做显示
168
- if(getFile.data[i].fusetype&&(getFile.data[i].fusetype.includes('execl导入'))){
169
- getFile.data.splice(i,1)
170
- i--
171
- continue
172
- }
173
- let temp = getFile.data[i].f_downloadpath
174
- let URL = temp.substring(temp.lastIndexOf(":\\") + 2)
175
- getFile.data[i].f_downloadURL = "http://" + location.host + "/" + URL
176
- }
177
- this.fileInfoData = []
178
- this.fileInfoData = getFile.data
179
- },
180
- convertBase64ToBlob(base64String) {
181
- // 将base64解码
182
- var bytes = atob(base64String);
183
- //var bytes = base64;
184
- var bytesCode = new ArrayBuffer(bytes.length);
185
- // 转换为类型化数组
186
- var byteArray = new Uint8Array(bytesCode);
187
-
188
- // 将base64转换为ascii码
189
- for (var i = 0; i < bytes.length; i++) {
190
- byteArray[i] = bytes.charCodeAt(i);
191
- }
192
- // 生成Blob对象(文件对象)
193
- return new Blob([bytesCode], {type: 'image/jpeg'});
194
- },
195
- },
196
- computed: {
197
- typeOfUse () {
198
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('使用类型')]
199
- }
200
- },
201
- events: {
202
- onFileUpload: function (file, res) {
203
- this.$dispatch("resid",res.id)
204
- this.headers.fremarks=''
205
- this.close()
206
- },
207
- beforeFileUpload:function (file) {
208
- this.loading = true
209
- },
210
- onAllFilesUploaded:function (file) {
211
- this.loading = false
212
- }
213
-
214
- },
215
- watch:{
216
- //监听blodid值的变化
217
- 'blodid'(val){
218
- //tag;
219
- if (val) {
220
- //tag;
221
- this.load()
222
- }
223
- }
224
- },
225
- }
226
- </script>
227
-
228
- <style scoped>
229
- .clears{
230
- overflow:hidden;
231
- text-overflow:ellipsis;
232
- white-space:nowrap;
233
- }
234
- .showData {
235
- padding: 15px 10px 0px 10px;
236
- box-sizing: border-box;
237
- height: 230px;
238
- font-family: "微软雅黑";
239
- }
240
- .showData .item{
241
- padding-bottom: 10px;
242
- border-bottom: solid 1px #c1c1c1;
243
- }
244
- .left {
245
- padding-right: 10px;
246
- }
247
- .left img{
248
- height: 100%;
249
- width: 100%;
250
- }
251
- .right{
252
- height: 100%;
253
- /*display: -webkit-flex;*/
254
- /*display: flex;*/
255
- /*flex-direction: column;*/
256
- /*justify-content: space-around;*/
257
- }
258
- .item_btn{
259
- width: 80%;
260
- background-color: #6aa6e2;
261
- border-radius: 4px;
262
- color: #FFFFFF;
263
- font-family: PingFang;
264
- }
265
- </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-12" 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-12" style="text-align: center" v-if="isupload">
17
+ <button type="button" class="btn btn-primary item_btn" @click="showUpload = !showUpload">本地上传</button>
18
+ </div>
19
+
20
+ </div>
21
+ <hr style="width: 90%;margin: 0px auto;border: #999999 1px solid;"/>
22
+ <div class="col-sm-12" style="overflow: scroll;height: 75%">
23
+ <div :class="bootstraped ? bootstraped + ' showData' : 'col-sm-15 showData'" v-for="row in fileInfoData">
24
+ <div class="col-sm-12 item">
25
+ <div class="left col-sm-5">
26
+ <a href="#" class="thumbnail" style="width: 88%;height: 98%;margin-left: 16px">
27
+ <img v-if="row.f_filetype === 'jpg'||row.f_filetype === 'png'||row.f_filetype === 'jpeg'||row.f_filetype === 'gif'||row.f_filetype === 'bmp'||row.f_filetype === 'MP3'" :src="row.f_downloadURL" alt="..."/>
28
+ <img v-if="row.f_filetype === 'pdf'" src="../../assets/pdf.jpg" alt="" />
29
+ <img v-if="row.f_filetype === 'xls'||row.f_filetype === 'xlsx'" src="../../assets/excel.jpg" alt="" />
30
+ <img v-if="row.f_filetype === 'doc'||row.f_filetype === 'docx'" src="../../assets/doc.jpg" alt="" />
31
+ <img v-if="row.f_filetype === 'mp3'" src="../../assets/mp3.png" alt="" />
32
+ </a>
33
+ </div>
34
+ <div class="right col-sm-15">
35
+ <p :title="row.f_filename" class="clears"><strong>文件名:</strong>{{row.f_filename}}</p>
36
+ <p :title="row.f_username" class="clears"><strong>操作员:</strong><span>{{row.f_username}}</span></p>
37
+ <p :title="row.fusetype" class="clears"><strong>使用类型:</strong><span>{{row.fusetype}}</span></p>
38
+ <p :title="row.f_uploaddate" class="clears"><strong>上传时间:</strong><span>{{row.f_uploaddate}}</span></p>
39
+ <p :title="row.fremarks" class="clears"><strong>文件说明:</strong>{{row.fremarks}}</p>
40
+ <p class="clears">
41
+ <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>
42
+ <a v-else @click="downloadfile(row.f_downloadURL)" style="background:#6aa6e2" class="btn btn-primary" role="button">下载</a>
43
+ <a v-if="isdelete" @click="delet($index, row)" href="#" class="btn btn-default" role="button" role="button">删除</a>
44
+ </p>
45
+ </div>
46
+ </div>
47
+ </div>
48
+ </div>
49
+ </div>
50
+ <work-busy :is-busy="loading"></work-busy>
51
+ <modal :show.sync="showUpload" v-ref:modal backdrop="false">
52
+ <header slot="modal-header" class="modal-header">
53
+ <button type="button" class="close" @click="close">
54
+ <img src="../../assets/x.png" style="margin: -4px;margin-right: -15px;height: 37px"/>
55
+ <!-- <span class="glyphicon glyphicon-remove"></span>--></button>
56
+ <h4 class="modal-title" style="text-align: center" v-if="headers.fusetype=='MP3'">文件上传</h4>
57
+ </header>
58
+ <article slot="modal-body" class="modal-body form-horizontal" >
59
+ <div class="form-group" >
60
+ <!-blodid:在上传时候绑定用户标识-->
61
+ <file-upload style="margin-top: -8px;margin-left: 45px" :name="'myFile' + blodid"
62
+ action="api/af-revenue/file/uploadFile" tagname="文件上传" :headers="headers" multiple v-ref:file>
63
+ </file-upload>
64
+ </div>
65
+ <div class="form-group" v-if="isusetype" style="padding-top: 15px">
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
+ import FileUpload from './FileUpload'
94
+
95
+ export default {
96
+ title: '附件',
97
+ props: ['blodid', 'businessid', 'isremark', 'isusetype', 'takeimg', 'defname', 'isupload', 'isdelete', 'bootstraped', 'issearch','flag'],
98
+ components: {
99
+ FileUpload
100
+ },
101
+ data () {
102
+ return {
103
+ fileInfoData: [], // 数据库存储的文件记录对象数组
104
+ headers: {'username': this.$login.f.name, 'blodid': '','businessid':'', 'fremarks': '','defname':'','fusetype':''}, // 调用rs/file/uploadFile 的参数
105
+ showUpload: false, // 上传模态框控制
106
+ useType: null,
107
+ loading:false
108
+ }
109
+ },
110
+ ready () {
111
+ this.headers.blodid = this.blodid
112
+ this.headers.businessid = this.businessid
113
+ this.headers.defname = this.defname
114
+ if(this.flag==='safeCheck'){
115
+ this.headers.fusetype='safeCheck'
116
+ }
117
+ //tag;
118
+ //tag;
119
+ if (this.blodid || this.businessid) {
120
+ //tag;
121
+ //tag;
122
+ this.load()
123
+ }
124
+ },
125
+ methods: {
126
+ delet(index, row) {
127
+ this.$resetdelete('api/af-revenue/entity/t_files', {id: row.id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
128
+ this.$dispatch("delResid",row.id)
129
+ this.load()
130
+ })
131
+ },
132
+ // 下载
133
+ downloadfile(filepath){
134
+ var link = document.createElement('a');
135
+ link.href = filepath;
136
+ link.target='_blank'
137
+ link.dispatchEvent(new MouseEvent('click'));
138
+ },
139
+ // 关闭文件上传对话框
140
+ close () {
141
+ this.showUpload = false
142
+ // 将选的文件清空
143
+ this.$refs.file.$el.querySelector('input').value = ''
144
+ this.headers.fusetype = ''
145
+ this.headers.fremarks = ''
146
+ this.load()
147
+ },
148
+ // 查询
149
+ async load() {
150
+ let condition = ''
151
+ if(this.businessid){
152
+ condition = `f_businessid= '${this.businessid}'`
153
+ }else{
154
+ condition = `f_blobid= '${this.blodid}'`
155
+ }
156
+ if (!isEmpty(this.useType)) {
157
+ condition += `and fusetype like '${this.useType}'`
158
+ }
159
+ if(this.flag==='safeCheck'){
160
+ condition += `and fusetype ='safeCheck'`
161
+ }
162
+ let http = new HttpResetClass()
163
+ let data = {
164
+ items: '*',
165
+ tablename: 't_files',
166
+ condition: condition,
167
+ orderitem: 'id'
168
+ }
169
+ let getFile = await http.load('POST', 'api/af-safecheck/sql/safe_singleTable_OrderBy', {data: data}, {
170
+ warnMsg: null,
171
+ resolveMsg: null
172
+ })
173
+ for (var i = 0; i < getFile.data.length; i++) {
174
+ // 如果使用类型包含导入字样,则是execl文件导入的,不做显示
175
+ if(getFile.data[i].fusetype&&(getFile.data[i].fusetype.includes('execl导入'))){
176
+ getFile.data.splice(i,1)
177
+ i--
178
+ continue
179
+ }
180
+ let temp = getFile.data[i].f_realpath
181
+ getFile.data[i].f_downloadURL = "http://" + location.host+ temp
182
+ }
183
+ this.fileInfoData = []
184
+ this.fileInfoData = getFile.data
185
+
186
+ },
187
+ convertBase64ToBlob(base64String) {
188
+ // 将base64解码
189
+ var bytes = atob(base64String);
190
+ //var bytes = base64;
191
+ var bytesCode = new ArrayBuffer(bytes.length);
192
+ // 转换为类型化数组
193
+ var byteArray = new Uint8Array(bytesCode);
194
+
195
+ // 将base64转换为ascii码
196
+ for (var i = 0; i < bytes.length; i++) {
197
+ byteArray[i] = bytes.charCodeAt(i);
198
+ }
199
+ // 生成Blob对象(文件对象)
200
+ return new Blob([bytesCode], {type: 'image/jpeg'});
201
+ },
202
+ },
203
+ computed: {
204
+ typeOfUse () {
205
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('使用类型')]
206
+ }
207
+ },
208
+ events: {
209
+ onFileUpload: function (file, res) {
210
+ this.$dispatch("resid",res.id)
211
+ this.$dispatch("filename",res)
212
+ this.headers.fremarks=''
213
+ this.close()
214
+ if(this.flag==='safeCheck'){
215
+ this.isupload=false
216
+ }
217
+ },
218
+ beforeFileUpload:function (file) {
219
+ this.loading = true
220
+ },
221
+ onAllFilesUploaded:function (file) {
222
+ this.loading = false
223
+ }
224
+
225
+ },
226
+ watch:{
227
+ //监听blodid值的变化
228
+ 'blodid'(val){
229
+ //tag;
230
+ if (val) {
231
+ //tag;
232
+ this.load()
233
+ }
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>
@@ -499,8 +499,8 @@
499
499
  let select = function * (self) {
500
500
  let http = new HttpResetClass()
501
501
  http.load('POST', `${self.$androidUtil.getProxyUrl()}/rs/search`, {
502
- source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
503
- userid: Vue.user.id
502
+ source: 'this.getSpecialResByType($user$).where(row.getAttributes().get($rolestr$)!=null ).where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1)',
503
+ userid: Vue.user.orgid
504
504
  }, {resolveMsg: null, rejectMsg: null}).then((res) => {
505
505
  //tag
506
506
  self.checkers.push({label:'全部',value:''})