ocpview-plus 1.3.8 → 1.3.10
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
CHANGED
|
@@ -32,7 +32,7 @@ import EditGridCardS from './editgridcard.vue';
|
|
|
32
32
|
import DetailsBoxs from './detailsbox.vue';
|
|
33
33
|
import AppendixBoxs from './appendix.vue';
|
|
34
34
|
import AppendixBoxs2 from './contractappendix.vue';
|
|
35
|
-
import FormCardBox2 from '../form/
|
|
35
|
+
import FormCardBox2 from '../form/formcardbox2.vue';
|
|
36
36
|
import random from '../../utils/random_str';
|
|
37
37
|
import Formcard from './formcard.vue';
|
|
38
38
|
export default {
|
|
@@ -199,11 +199,11 @@ export default {
|
|
|
199
199
|
if (this.myConfig.fileSize !== undefined) {
|
|
200
200
|
this.fileSize = Number(this.myConfig.fileSize) * 1024;
|
|
201
201
|
}
|
|
202
|
-
if (this.myConfig.notdelfile) {
|
|
203
|
-
|
|
204
|
-
} else {
|
|
205
|
-
|
|
206
|
-
}
|
|
202
|
+
// if (this.myConfig.notdelfile) {
|
|
203
|
+
// this.myConfig.items[0].visible = true;
|
|
204
|
+
// } else {
|
|
205
|
+
// this.myConfig.items[0].visible = false;
|
|
206
|
+
// }
|
|
207
207
|
|
|
208
208
|
if (this.myConfig.uploadfile.indexOf('?') != -1) {
|
|
209
209
|
this.uploadfile = this.myConfig.uploadfile + '&token=' + this.getToken();
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
>
|
|
11
11
|
<template #prepend>
|
|
12
12
|
<p v-if="!filename" @click.stop="uploadClick" style="cursor:pointer;width:30px">
|
|
13
|
-
<Icon custom="iconfont icon-custom-shangchuanlogo" :color="iconColor"/>
|
|
13
|
+
<Icon custom="iconfont icon-custom-shangchuanlogo" :color="iconColor"/>
|
|
14
14
|
</p>
|
|
15
15
|
<p v-else @click.stop="uploadClick" style="cursor:pointer;width:30px">
|
|
16
|
-
<Icon type="md-checkmark-circle" size="18" :color="iconColor2"/>
|
|
16
|
+
<Icon type="md-checkmark-circle" size="18" :color="iconColor2"/>
|
|
17
17
|
</p>
|
|
18
18
|
</template>
|
|
19
19
|
</Input>
|
|
@@ -22,20 +22,20 @@
|
|
|
22
22
|
<Col v-if="showPreview" style="cursor:pointer">
|
|
23
23
|
<p @click.stop="searchFile">
|
|
24
24
|
预览
|
|
25
|
-
</p>
|
|
25
|
+
</p>
|
|
26
26
|
</Col>
|
|
27
27
|
<Col style="cursor:pointer" v-if="showDownBtn" >
|
|
28
28
|
<p @click.stop="downFile">
|
|
29
29
|
下载
|
|
30
|
-
</p>
|
|
30
|
+
</p>
|
|
31
31
|
</Col>
|
|
32
32
|
<Col style="cursor:pointer" v-if="!myConfig.readOnly && showDelBtn">
|
|
33
33
|
<p @click.stop="delFile">
|
|
34
34
|
删除
|
|
35
|
-
</p>
|
|
35
|
+
</p>
|
|
36
36
|
</Col>
|
|
37
37
|
|
|
38
|
-
</Row>
|
|
38
|
+
</Row>
|
|
39
39
|
</div>
|
|
40
40
|
<div ref="photo" v-show="false">
|
|
41
41
|
<li><img :src="imgUrl" :data-original="`${imgUrl}`" style="width: 100%; height: 100%;" /></li>
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
notdelfile:'N',
|
|
69
69
|
downfile:'',
|
|
70
70
|
delfile:'',
|
|
71
|
+
pdffile:'/mss-sysconf-boot/downloadPdf?filekey=',
|
|
71
72
|
scenetype:'1',
|
|
72
73
|
proName:{
|
|
73
74
|
'billmoduleid':'billmoduleid',
|
|
@@ -104,14 +105,14 @@
|
|
|
104
105
|
return '#e3e5e8';
|
|
105
106
|
} else {
|
|
106
107
|
return '#f3b352'
|
|
107
|
-
}
|
|
108
|
+
}
|
|
108
109
|
},
|
|
109
110
|
iconColor2 () {
|
|
110
111
|
if (this.myConfig.readOnly) {
|
|
111
112
|
return '#e3e5e8';
|
|
112
113
|
} else {
|
|
113
114
|
return '#739943'
|
|
114
|
-
}
|
|
115
|
+
}
|
|
115
116
|
}
|
|
116
117
|
} ,
|
|
117
118
|
props:{
|
|
@@ -137,7 +138,7 @@
|
|
|
137
138
|
if (this.myConfig.headers !== undefined) {
|
|
138
139
|
this.headers = Object.assign({},this.headers,this.myConfig.headers);
|
|
139
140
|
}
|
|
140
|
-
|
|
141
|
+
|
|
141
142
|
if (!this.myConfig.downfile) {
|
|
142
143
|
this.myConfig.downfile = this.OmdUrl.downfile;
|
|
143
144
|
}
|
|
@@ -147,9 +148,12 @@
|
|
|
147
148
|
if (!this.myConfig.uploadfile) {
|
|
148
149
|
this.myConfig.uploadfile = this.OmdUrl.uploadfile;
|
|
149
150
|
}
|
|
151
|
+
if (!this.myConfig.pdffile) {
|
|
152
|
+
this.myConfig.pdffile = this.OmdUrl.pdffile;
|
|
153
|
+
}
|
|
150
154
|
let usercode = this.getUserCode();
|
|
151
155
|
let username = this.getUserName();
|
|
152
|
-
|
|
156
|
+
|
|
153
157
|
let userInfo = '&usercode=' + usercode + '&username=' + username + '&ent_id=' + this.getEnt_id();
|
|
154
158
|
let notdelfile = this.myConfig.notdelfile;
|
|
155
159
|
if (this.myConfig.notdelfile !== undefined) {
|
|
@@ -304,7 +308,7 @@
|
|
|
304
308
|
if (obj.readOnly === false) {
|
|
305
309
|
if (this.config.readOnly !== true) {
|
|
306
310
|
this.setPro(obj);
|
|
307
|
-
}
|
|
311
|
+
}
|
|
308
312
|
} else {
|
|
309
313
|
this.setPro(obj);
|
|
310
314
|
}
|
|
@@ -341,7 +345,7 @@
|
|
|
341
345
|
isHeadersOk() {
|
|
342
346
|
let flag = true;
|
|
343
347
|
for (let pro in this.headers) {
|
|
344
|
-
if (!this.headers[pro]) {
|
|
348
|
+
if (!this.headers[pro]) {
|
|
345
349
|
flag = false;
|
|
346
350
|
break;
|
|
347
351
|
}
|
|
@@ -359,7 +363,7 @@
|
|
|
359
363
|
} else {
|
|
360
364
|
this.$refs.myControl.blur();
|
|
361
365
|
}
|
|
362
|
-
}
|
|
366
|
+
}
|
|
363
367
|
}
|
|
364
368
|
};
|
|
365
|
-
</script>
|
|
369
|
+
</script>
|