n20-common-lib 2.9.75 → 2.9.77
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
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
/>
|
|
126
126
|
</el-form-item>
|
|
127
127
|
</div>
|
|
128
|
-
<el-form-item v-if="
|
|
128
|
+
<el-form-item v-if="fileKitT" :label="$lc('附件上传')">
|
|
129
129
|
<cl-upload
|
|
130
130
|
class="upload-224"
|
|
131
131
|
:file-name.sync="fileName"
|
|
@@ -134,7 +134,10 @@
|
|
|
134
134
|
:file-url.sync="fileUrl"
|
|
135
135
|
:on-success="onSuccess"
|
|
136
136
|
:on-remove="onRemove"
|
|
137
|
-
|
|
137
|
+
show-file-list
|
|
138
|
+
:action="
|
|
139
|
+
apiPrefix ? apiPrefix + `/neams/eamsbaserecord/batchSavejson` : `/api/neams/eamsbaserecord/batchSavejson`
|
|
140
|
+
"
|
|
138
141
|
msg-type="message"
|
|
139
142
|
/>
|
|
140
143
|
</el-form-item>
|
|
@@ -360,6 +363,9 @@ export default {
|
|
|
360
363
|
}
|
|
361
364
|
}
|
|
362
365
|
},
|
|
366
|
+
apiPrefix: {
|
|
367
|
+
type: String
|
|
368
|
+
},
|
|
363
369
|
/**
|
|
364
370
|
* 是否上传审批附件
|
|
365
371
|
*/
|
|
@@ -421,7 +427,8 @@ export default {
|
|
|
421
427
|
remarkOpt: [],
|
|
422
428
|
isShowRetrace: undefined,
|
|
423
429
|
isJump: undefined,
|
|
424
|
-
showFlowDialog: false
|
|
430
|
+
showFlowDialog: false,
|
|
431
|
+
IsShowUploadWidget: false
|
|
425
432
|
}
|
|
426
433
|
},
|
|
427
434
|
computed: {
|
|
@@ -442,7 +449,7 @@ export default {
|
|
|
442
449
|
},
|
|
443
450
|
fileKitT: {
|
|
444
451
|
get() {
|
|
445
|
-
return window.fileKit
|
|
452
|
+
return this.IsShowUploadWidget || this.fileKit || window.fileKit
|
|
446
453
|
}
|
|
447
454
|
},
|
|
448
455
|
tips() {
|
|
@@ -458,8 +465,24 @@ export default {
|
|
|
458
465
|
this.getHasQueryAppOpiAndUser()
|
|
459
466
|
this.nextApproval && this.getTodoList()
|
|
460
467
|
this.getConfiguration()
|
|
468
|
+
this.getIsShowUploadWidget()
|
|
461
469
|
},
|
|
462
470
|
methods: {
|
|
471
|
+
async getIsShowUploadWidget() {
|
|
472
|
+
const { processInstanceId: procInstId, taskId } = this.$route.query
|
|
473
|
+
const { code, data } = await this.$axios.get(
|
|
474
|
+
`/bems/activiti/admin/todo/isShowUploadWidget/${procInstId}/${taskId}`,
|
|
475
|
+
null,
|
|
476
|
+
{
|
|
477
|
+
loading: false,
|
|
478
|
+
noMsg: true
|
|
479
|
+
}
|
|
480
|
+
)
|
|
481
|
+
if (code === 200) {
|
|
482
|
+
this.IsShowUploadWidget = data
|
|
483
|
+
}
|
|
484
|
+
console.log(code, data)
|
|
485
|
+
},
|
|
463
486
|
// 意见是否必填
|
|
464
487
|
getConfiguration() {
|
|
465
488
|
getJsonc('portal/server-config.jsonc', null, true)
|
|
@@ -921,7 +944,7 @@ export default {
|
|
|
921
944
|
onRemove(file, fileList) {
|
|
922
945
|
this.fileDtos = this.getFileDtos(fileList)
|
|
923
946
|
},
|
|
924
|
-
onSuccess(
|
|
947
|
+
onSuccess(response, file, fileList) {
|
|
925
948
|
this.fileDtos = this.getFileDtos(fileList)
|
|
926
949
|
this.fileName = file.name || ''
|
|
927
950
|
}
|
|
@@ -713,14 +713,19 @@ export default {
|
|
|
713
713
|
onSuccessFn(response, file, fileList, row) {
|
|
714
714
|
this.$set(row, '_typeDisabled', true)
|
|
715
715
|
this.$set(row, '_name', file.name)
|
|
716
|
-
|
|
716
|
+
|
|
717
717
|
this.$set(row, [this.keys.rowKey], response.data)
|
|
718
718
|
this.$set(row, [this.keys.type], row[this.keys.type] || this.bathType)
|
|
719
719
|
row[this.keys.time] = dayjs().format('YYYY-MM-DD HH:mm:ss')
|
|
720
|
-
|
|
720
|
+
if (response.code >= 900 || response.code === -1) {
|
|
721
|
+
this.$set(row, '_percent', 99)
|
|
722
|
+
this.$set(row, '_status', 'error')
|
|
723
|
+
} else {
|
|
724
|
+
this.$set(row, '_percent', 100)
|
|
725
|
+
this.$set(row, '_status', 'success')
|
|
726
|
+
}
|
|
721
727
|
row[this.keys.url] = response.data
|
|
722
728
|
row[this.keys.name] = file.name
|
|
723
|
-
this.$set(row, '_status', 'success')
|
|
724
729
|
|
|
725
730
|
this.$emit('on-success', file, row)
|
|
726
731
|
},
|
|
@@ -732,14 +737,23 @@ export default {
|
|
|
732
737
|
this.tableData.shift()
|
|
733
738
|
}
|
|
734
739
|
})
|
|
740
|
+
let _percent = 0
|
|
741
|
+
let _status = undefined
|
|
742
|
+
if (response.code >= 900 || response.code === -1) {
|
|
743
|
+
_percent = 99
|
|
744
|
+
_status = 'error'
|
|
745
|
+
} else {
|
|
746
|
+
_percent = 99
|
|
747
|
+
_status = 'success'
|
|
748
|
+
}
|
|
735
749
|
setTimeout(() => {
|
|
736
750
|
this.tableData.splice(0, 0, {
|
|
737
751
|
_name: file.name,
|
|
738
|
-
_percent
|
|
752
|
+
_percent,
|
|
739
753
|
[this.keys.time]: dayjs().format('YYYY-MM-DD HH:mm:ss'),
|
|
740
754
|
[this.keys.url]: response.data,
|
|
741
755
|
[this.keys.name]: file.name,
|
|
742
|
-
_status
|
|
756
|
+
_status,
|
|
743
757
|
_typeDisabled: true,
|
|
744
758
|
[this.keys.user]: deepRow[this.keys.user],
|
|
745
759
|
[this.keys.type]: deepRow[this.keys.type]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<el-dialog :visible.sync="visible" width="600px" :title="'
|
|
3
|
+
<el-dialog :visible.sync="visible" width="600px" :title="'提交意见' | $lc">
|
|
4
4
|
<el-form style="margin-bottom: 50px">
|
|
5
5
|
<el-form-item :label="'请确认提交内容' | $lc">
|
|
6
6
|
<el-select v-model="reasonSelect" class="w-100p" @change="changeReasonSelect">
|
|
@@ -50,8 +50,7 @@ export default {
|
|
|
50
50
|
rows: {
|
|
51
51
|
type: Number,
|
|
52
52
|
default: 5
|
|
53
|
-
}
|
|
54
|
-
|
|
53
|
+
}
|
|
55
54
|
},
|
|
56
55
|
data() {
|
|
57
56
|
return {
|
|
@@ -333,8 +333,14 @@ export default {
|
|
|
333
333
|
}
|
|
334
334
|
|
|
335
335
|
if (this.msgType === 'dialog') {
|
|
336
|
-
|
|
337
|
-
|
|
336
|
+
if (response.code >= 900 || response.code === -1) {
|
|
337
|
+
this.percent = 99
|
|
338
|
+
this.percentType = 'error'
|
|
339
|
+
} else {
|
|
340
|
+
this.percent = 100
|
|
341
|
+
this.percentType = 'success'
|
|
342
|
+
}
|
|
343
|
+
|
|
338
344
|
this.percentMsg = response.msg || $lc('上传成功!')
|
|
339
345
|
} else if (this.msgType === 'message') {
|
|
340
346
|
if (!this.onSuccess) {
|
package/src/i18n.json
CHANGED
|
@@ -3474,5 +3474,10 @@
|
|
|
3474
3474
|
"en": "This mode will bypass the middle nodes that have been completed after the node is returned, causing the process to be non-standard. Use with caution!",
|
|
3475
3475
|
"th": "เมื่อมีการย้อนกลับไปยังโครงการที่มีการเสร็จสิ้นแล้ว จะทำให้โครงการไม่สมบูรณ์ โปรดใช้ด้วยระวัง!",
|
|
3476
3476
|
"vi": "Trong chế độ này, sau khi trả lại, các bước đã hoàn thành sẽ bị bỏ qua, làm cho quy trình không chuẩn xác. Sử dụng với cẩn thận!"
|
|
3477
|
+
},
|
|
3478
|
+
"提交意见": {
|
|
3479
|
+
"en": "Submit opinion",
|
|
3480
|
+
"th": "ส่งข้อเสนอ",
|
|
3481
|
+
"vi": "Gửi ý kiến"
|
|
3477
3482
|
}
|
|
3478
3483
|
}
|