n20-common-lib 2.9.76 → 2.9.78

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "2.9.76",
3
+ "version": "2.9.78",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -125,7 +125,7 @@
125
125
  />
126
126
  </el-form-item>
127
127
  </div>
128
- <el-form-item v-if="fileKit || fileKitT" :label="$lc('附件上传')">
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
- action="/neams/eamsbaserecord/batchSavejson"
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(file, row, fileList) {
947
+ onSuccess(response, file, fileList) {
925
948
  this.fileDtos = this.getFileDtos(fileList)
926
949
  this.fileName = file.name || ''
927
950
  }
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div>
3
- <el-dialog :visible.sync="visible" width="600px" :title="'提醒' | $lc">
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 {
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
  }
@@ -65,9 +65,9 @@ export async function getSign(plain, dn) {
65
65
 
66
66
  await getKeyExist()
67
67
  const certSN = await getCertSN()
68
- if (certSN !== plainText) {
68
+ if (certSN !== dn) {
69
69
  Message.warning('当前Ukey不匹配!')
70
70
  throw new Error('当前Ukey不匹配!')
71
71
  }
72
- return performSign(plain + plainText)
72
+ return performSign(plainText + dn)
73
73
  }
Binary file