ocpview-pro 0.1.0 → 0.1.2
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/dist/index.js +69 -42
- package/dist/ocpviewplus.min.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/masterplate/appendix.vue +4 -0
- package/src/components/masterplate/approval.vue +15 -5
- package/src/components/masterplate/contractappendix.vue +4 -0
- package/src/components/picturebox/uploadbox.vue +4 -3
- package/src/components/videobox/uploadbox.vue +4 -0
package/package.json
CHANGED
|
@@ -167,6 +167,10 @@ export default {
|
|
|
167
167
|
if (this.myConfig.fileSize !== undefined) {
|
|
168
168
|
this.fileSize = Number(this.myConfig.fileSize) * 1024;
|
|
169
169
|
}
|
|
170
|
+
if (this?.OmdUrl?.portalConfig?.appendixsize) {
|
|
171
|
+
this.fileSize = Number(this.OmdUrl.portalConfig.appendixsize) * 1024;
|
|
172
|
+
this.myConfig.fileSize = Number(this.OmdUrl.portalConfig.appendixsize);
|
|
173
|
+
}
|
|
170
174
|
if (this.myConfig.notdelfile) {
|
|
171
175
|
this.myConfig.items[0].visible = true;
|
|
172
176
|
} else {
|
|
@@ -190,19 +190,19 @@
|
|
|
190
190
|
</Form>
|
|
191
191
|
<Row type="flex" v-if="showBtn" justify="end" :gutter="10" style="padding-top:20px;padding-bottom:4px">
|
|
192
192
|
<Col v-if="showSubmit">
|
|
193
|
-
<Button customIcon="iconfont icon-custom-submit" @click="onSubmit" >提交</Button>
|
|
193
|
+
<Button customIcon="iconfont icon-custom-submit" @click="comMethod(onSubmit, '提交')" >提交</Button>
|
|
194
194
|
</Col>
|
|
195
195
|
<Col v-if="showReset">
|
|
196
|
-
<Button customIcon="iconfont icon-custom-recall" @click="billBack" >撤回</Button>
|
|
196
|
+
<Button customIcon="iconfont icon-custom-recall" @click="comMethod(billBack, '撤回')" >撤回</Button>
|
|
197
197
|
</Col>
|
|
198
198
|
<Col v-show="false">
|
|
199
|
-
<Button customIcon="iconfont icon-custom-jiaqian" @click="billBack" >加签</Button>
|
|
199
|
+
<Button customIcon="iconfont icon-custom-jiaqian" @click="comMethod(billBack, '加签')" >加签</Button>
|
|
200
200
|
</Col>
|
|
201
201
|
<Col v-if="showReject">
|
|
202
|
-
<Button customIcon="iconfont icon-custom-reject" @click="reject" >驳回</Button>
|
|
202
|
+
<Button customIcon="iconfont icon-custom-reject" @click="comMethod(reject, '驳回')" >驳回</Button>
|
|
203
203
|
</Col>
|
|
204
204
|
<Col v-if="showApprove">
|
|
205
|
-
<Button customIcon="iconfont icon-custom-approve" @click="submitApprove" >审批</Button>
|
|
205
|
+
<Button customIcon="iconfont icon-custom-approve" @click="comMethod(submitApprove, '审批')" >审批</Button>
|
|
206
206
|
</Col>
|
|
207
207
|
</Row>
|
|
208
208
|
</div>
|
|
@@ -295,6 +295,16 @@ export default {
|
|
|
295
295
|
},
|
|
296
296
|
},
|
|
297
297
|
methods: {
|
|
298
|
+
comMethod(callback, msg) {
|
|
299
|
+
this.$Modal.confirm({
|
|
300
|
+
title: "确认",
|
|
301
|
+
content: `确定是否${msg}数据?`,
|
|
302
|
+
onOk: () => {
|
|
303
|
+
callback();
|
|
304
|
+
},
|
|
305
|
+
onCancel: () => {},
|
|
306
|
+
});
|
|
307
|
+
},
|
|
298
308
|
onSubmit() {
|
|
299
309
|
let flag = true;
|
|
300
310
|
if (this.$parent && typeof this.$parent.onSubmitBefore === 'function') {
|
|
@@ -199,6 +199,10 @@ export default {
|
|
|
199
199
|
if (this.myConfig.fileSize !== undefined) {
|
|
200
200
|
this.fileSize = Number(this.myConfig.fileSize) * 1024;
|
|
201
201
|
}
|
|
202
|
+
if (this?.OmdUrl?.portalConfig?.appendixsize) {
|
|
203
|
+
this.fileSize = Number(this.OmdUrl.portalConfig.appendixsize) * 1024;
|
|
204
|
+
this.myConfig.fileSize = Number(this.OmdUrl.portalConfig.appendixsize);
|
|
205
|
+
}
|
|
202
206
|
// if (this.myConfig.notdelfile) {
|
|
203
207
|
// this.myConfig.items[0].visible = true;
|
|
204
208
|
// } else {
|
|
@@ -60,12 +60,13 @@ export default {
|
|
|
60
60
|
},
|
|
61
61
|
created() {
|
|
62
62
|
this.myConfig = Object.assign({}, this.myConfig, this.config);
|
|
63
|
-
if (this?.OmdUrl?.portalConfig?.appendixsize) {
|
|
64
|
-
this.fileSize = Number(this.OmdUrl.portalConfig.appendixsize) * 1024;
|
|
65
|
-
}
|
|
66
63
|
if (this.myConfig.fileSize !== undefined) {
|
|
67
64
|
this.fileSize = 1024 * Number(this.myConfig.fileSize);
|
|
68
65
|
}
|
|
66
|
+
if (this?.OmdUrl?.portalConfig?.appendixsize) {
|
|
67
|
+
this.fileSize = Number(this.OmdUrl.portalConfig.appendixsize) * 1024;
|
|
68
|
+
this.myConfig.fileSize = Number(this.OmdUrl.portalConfig.appendixsize);
|
|
69
|
+
}
|
|
69
70
|
this.uploadUrl = this.myConfig.uploadfile;
|
|
70
71
|
},
|
|
71
72
|
methods: {
|
|
@@ -59,6 +59,10 @@ export default {
|
|
|
59
59
|
if (this.myConfig.fileSize !== undefined) {
|
|
60
60
|
this.fileSize = 1024 * Number(this.myConfig.fileSize);
|
|
61
61
|
}
|
|
62
|
+
if (this?.OmdUrl?.portalConfig?.appendixsize) {
|
|
63
|
+
this.fileSize = Number(this.OmdUrl.portalConfig.appendixsize) * 1024;
|
|
64
|
+
this.myConfig.fileSize = Number(this.OmdUrl.portalConfig.appendixsize);
|
|
65
|
+
}
|
|
62
66
|
this.uploadUrl = this.myConfig.uploadfile;
|
|
63
67
|
},
|
|
64
68
|
methods: {
|