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.
- package/package.json +1 -1
- package/src/components/DefectDealMain/DefectListNew.vue +597 -597
- package/src/components/NewDefectList/DefectListNew.vue +52 -12
- package/src/components/Util/SafecheckUpload.vue +276 -265
- package/src/components/android/CurrentCreate.vue +2 -2
- package/src/components/android/PhoneUpDetail.vue +1040 -1040
- package/src/components/android/PhoneUpUserinfo.vue +1230 -1230
- package/src/components/pc/NewCheckpaperTemp.vue +1295 -1295
- package/src/components/rongcheng/DefectList.vue +560 -560
- package/src/components/rongcheng/PhoneDevicesInfo.vue +248 -248
- package/src/components/rongcheng/PhoneUpUserinfo.vue +1236 -1236
- package/src/components/userfile/SecurityAudit.vue +243 -243
- package/src/components/userfile/UserInfoAudit.vue +316 -316
- package/src/components/userfileNew/UserInfoAuditNew.vue +274 -274
- package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
- package/src/filiale/bayan/android/PhoneUpUserinfo.vue +1377 -1377
- package/src/filiale/bayan/pc/DefectListNew.vue +597 -597
- package/src/filiale/ganquan/android/PhoneUpUserinfo.vue +986 -986
- package/src/filiale/jiaxian/android/PhoneUpUserinfo.vue +1229 -1229
- package/src/filiale/jinbin/android/PhoneUpUserinfo.vue +878 -878
- package/src/filiale/jingyang/android/PhoneUpUserinfo.vue +1234 -1234
- package/src/filiale/jingyang/pc/UserInfoAuditNew.vue +272 -272
- package/src/filiale/kelai/android/PhoneUpUserinfo.vue +1053 -1053
- package/src/filiale/kelai/pc/UserInfoAudit.vue +254 -254
- package/src/filiale/minsheng/android/PhoneUpUserinfo.vue +1269 -1269
- package/src/filiale/qianneng/android/PhoneUpUserinfo.vue +1127 -1127
- package/src/filiale/qianneng/pc/UserInfoAudit.vue +286 -286
- package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +1270 -1270
- package/src/filiale/qingtongxia/android/PhoneUpUserinfo.vue +1230 -1230
- package/src/filiale/shanxian/android/PhoneUpUserinfo.vue +939 -939
- package/src/filiale/shexian/android/PhoneUpUserinfo.vue +1153 -1153
- package/src/filiale/tongchuan/android/PhoneUpDetail.vue +707 -707
- package/src/filiale/tongchuan/android/PhoneUpUserinfo.vue +1323 -1323
- package/src/filiale/weinan/android/PhoneUpDetail.vue +968 -968
- package/src/filiale/weinan/android/PhoneUpUserinfo.vue +1038 -1038
- package/src/filiale/wenxi/android/PhoneUpUserinfo.vue +1076 -1076
- package/src/filiale/wuhai/android/PhoneUpUserinfo.vue +926 -926
- package/src/filiale/yangchunboneng/android/PhoneUpUserinfo.vue +1235 -1235
- package/src/filiale/yongzhou/android/PhoneUpUserinfo.vue +1257 -1257
- package/src/filiale/yuansheng/android/PhoneUpUserinfo.vue +942 -942
- package/src/filiale/yunchengminsheng/android/PhoneUpUserinfo.vue +1198 -1198
- package/src/filiale/zhongsheng/android/PhoneUpUserinfo.vue +926 -926
- package/src/filiale/zhongsheng/pc/UserInfoAudit.vue +252 -252
- package/src/filiale/zhongyi/pc/DefectListNew.vue +514 -514
- package/src/filiale/zhoukou/android/PhoneUpUserinfo.vue +957 -957
- 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="
|
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
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
})
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
link.
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
this.
|
142
|
-
|
143
|
-
this.
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
condition
|
155
|
-
}
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
getFile.data[i].
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
// 将base64
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
//
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
this.
|
206
|
-
}
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
this
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
}
|
224
|
-
|
225
|
-
}
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
.
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
height:
|
249
|
-
|
250
|
-
}
|
251
|
-
.
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
}
|
258
|
-
.
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
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.
|
503
|
-
userid: Vue.user.
|
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:''})
|