n20-common-lib 2.22.65-patch → 2.22.66

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.22.65-patch",
3
+ "version": "2.22.66",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -9,7 +9,7 @@
9
9
  "test:unit": "vue-cli-service test:unit",
10
10
  "lint": "vue-cli-service lint",
11
11
  "build:Jenkins_1": "vue-cli-service build --serverConfig ./server-config-jenkins.jsonc",
12
- "build:css": "node build_css",
12
+ "build:css": "node build_css.js",
13
13
  "build:dev": "vue-cli-service build",
14
14
  "build:doc": "node versionInfo.js && vue-cli-service build --testTheme",
15
15
  "build:gzip": "vue-cli-service build --gzip",
@@ -187,9 +187,7 @@
187
187
  <el-button v-if="showApprovalTo && showApproveTo" type="primary" @click="approvalToV = true"
188
188
  >{{ $lc(btnsNames['approval']) }}{{ '至' | $lc }}</el-button
189
189
  >
190
- <el-button v-if="authList.includes('rejectTo')" plain @click="rejectToB">{{
191
- $lc(btnsNames['rejectTo'])
192
- }}</el-button>
190
+ <el-button v-if="authList.includes('rejectTo')" plain @click="rejectToB">{{ $lc(btnsNames['rejectTo']) }}</el-button>
193
191
  <el-button v-if="authList.includes('reject')" plain @click="rejectFn">{{ $lc(btnsNames['reject']) }}</el-button>
194
192
  <el-button v-if="authList.includes('rejectPre')" plain @click="rejectPreFn">{{
195
193
  $lc(btnsNames['rejectPre'])
@@ -343,7 +341,6 @@
343
341
  <script>
344
342
  import selectSpr from './selectSpr.vue'
345
343
  import getJsonc from '../../assets/getJsonc.js'
346
- import { getServerConfig } from '../../utils/serverConfig'
347
344
  import { closeTagsForBackPage } from '../../plugins/CompatibleOld'
348
345
  import axios from '../../utils/axios'
349
346
  import { $lc } from '../../utils/i18n/index'
@@ -646,7 +643,7 @@ export default {
646
643
  },
647
644
  // 意见是否必填
648
645
  getConfiguration() {
649
- getServerConfig()
646
+ getJsonc('portal/server-config.jsonc', null, true)
650
647
  .then(({ opinionRequired, showApproveTo }) => {
651
648
  this.requiredC = opinionRequired ?? this.required
652
649
  this.showApproveTo = showApproveTo ?? true
@@ -126,9 +126,7 @@
126
126
  </div>
127
127
 
128
128
  <div v-else-if="!authList.includes('byAddTask')" class="text-c">
129
- <div v-if="!approveBtns" style="text-align: center; font-size: 18px">
130
- {{ $lc('请点击左上角返回处,进入OA待办页面') }}
131
- </div>
129
+ <div v-if="!approveBtns" style="text-align: center; font-size: 18px">{{ $lc('请点击左上角返回处,进入OA待办页面') }}</div>
132
130
  <!-- 特殊会签按钮 START -->
133
131
  <el-button v-if="authList.includes('pass')" type="primary" @click="checkFlowFn">{{
134
132
  $lc(btnsNames['pass'])
@@ -305,7 +303,6 @@
305
303
  <script>
306
304
  import selectSpr from './selectSpr.vue'
307
305
  import getJsonc from '../../assets/getJsonc.js'
308
- import { getServerConfig } from '../../utils/serverConfig'
309
306
  import { closeTagsForBackPage } from '../../plugins/CompatibleOld'
310
307
  import axios from '../../utils/axios'
311
308
  import { $lc } from '../../utils/i18n/index'
@@ -557,7 +554,7 @@ export default {
557
554
  },
558
555
  // 意见是否必填
559
556
  getConfiguration() {
560
- getServerConfig()
557
+ getJsonc('portal/server-config.jsonc', null, true)
561
558
  .then(({ opinionRequired }) => {
562
559
  this.requiredC = opinionRequired ?? this.required
563
560
  // 读取该工作流是否意见必填
@@ -863,7 +860,7 @@ export default {
863
860
  if (this.isWyfk) {
864
861
  this.attributes = {
865
862
  appOrPc: '3',
866
- ebsPaymentRiskWarning: $lc('核实无误')
863
+ ebsPaymentRiskWarning: $lc("核实无误")
867
864
  }
868
865
  } else {
869
866
  this.attributes = { appOrPc: '3' }
@@ -61,7 +61,7 @@
61
61
  import expandableWrap from '../Expandable/main.vue'
62
62
  import approvalCard from '../ApprovalCard/index.vue'
63
63
  import approvalImg from './approvalImg.vue'
64
- import { getServerConfig } from '../../utils/serverConfig'
64
+ import getJsonc from '../../assets/getJsonc'
65
65
  export default {
66
66
  name: 'ApprovalRecord',
67
67
  components: {
@@ -100,7 +100,7 @@ export default {
100
100
  }
101
101
  },
102
102
  mounted() {
103
- getServerConfig().then(({ approvalMode }) => {
103
+ getJsonc('portal/server-config.jsonc').then(({ approvalMode }) => {
104
104
  this.approvalMode = approvalMode || 'dialog'
105
105
  })
106
106
  }
@@ -13,6 +13,7 @@
13
13
  <script>
14
14
  import approvalCard from 'n20-common-lib/src/components/ApprovalCard/indexApp.vue'
15
15
  import approvalImg from 'n20-common-lib/src/components/ApprovalRecord/approvalImg.vue'
16
+ import getJsonc from 'n20-common-lib/src/assets/getJsonc'
16
17
  export default {
17
18
  name: 'ApprovalRecord',
18
19
  components: {
@@ -45,6 +46,10 @@ export default {
45
46
  return this.procInstId || this.$route.query.processInstanceId
46
47
  }
47
48
  },
48
- mounted() {}
49
+ mounted() {
50
+ /* getJsonc('portal/server-config.jsonc').then(({ approvalMode }) => {
51
+ this.approvalMode = approvalMode
52
+ }) */
53
+ }
49
54
  }
50
55
  </script>
@@ -188,8 +188,7 @@
188
188
  </el-table-column>
189
189
  </el-table> -->
190
190
  <div class="flex-box flex-v flex-lr">
191
- <div class="title">
192
- {{ $lc('附件上传') }}<span>{{ $lc('(带 * 为必要上传的附件)') }}</span>
191
+ <div class="title">{{ $lc('附件上传') }}<span>{{ $lc('(带 * 为必要上传的附件)') }}</span>
193
192
  </div>
194
193
  </div>
195
194
  <div class="file-list">
@@ -314,10 +313,10 @@
314
313
  </template>
315
314
 
316
315
  <script>
316
+ import getJsonc from '../../assets/getJsonc.js'
317
317
  import _axios from 'axios'
318
318
  import dayjs from 'dayjs'
319
319
  import XEUtils from 'xe-utils'
320
- import { getServerConfig } from '../../utils/serverConfig'
321
320
 
322
321
  import 'viewerjs/dist/viewer.css'
323
322
  import auth from '../../utils/auth.js'
@@ -327,6 +326,7 @@ import importG from '../../utils/importGlobal.js'
327
326
  import Dialog from '../Dialog/index.vue'
328
327
  import Upload from '../Upload/index.vue'
329
328
 
329
+
330
330
  const ViewerImg = async function () {
331
331
  let { component } = await importG('v-viewer', () => import(/*webpackChunkName: "v-viewer"*/ 'v-viewer'))
332
332
  return component
@@ -340,9 +340,9 @@ const keysDefault = {
340
340
  user: 'user'
341
341
  }
342
342
  const typeOptionsDefault = [
343
- { type: '001', label: $lc('信贷合同') },
344
- { type: '002', label: $lc('贴现合同') },
345
- { type: '003', label: $lc('其他合同') }
343
+ { type: '001', label: $lc("信贷合同") },
344
+ { type: '002', label: $lc("贴现合同") },
345
+ { type: '003', label: $lc("其他合同") }
346
346
  ]
347
347
 
348
348
  export default {
@@ -499,7 +499,7 @@ export default {
499
499
  return this.dataPorp.fileSize || undefined
500
500
  },
501
501
  fileAcceptTip() {
502
- return this.dataPorp.fileAcceptTip || $lc('支持扩展名:.rar .zip .doc .docx .pdf .jpg...')
502
+ return this.dataPorp.fileAcceptTip || $lc("支持扩展名:.rar .zip .doc .docx .pdf .jpg...")
503
503
  },
504
504
  fileData() {
505
505
  return this.dataPorp.fileData || undefined
@@ -540,7 +540,7 @@ export default {
540
540
  // ai识别
541
541
  async AiFn(row) {
542
542
  if (!this.AIOptions.bussType) {
543
- this.$message.error($lc('请先配置bussType'))
543
+ this.$message.error($lc("请先配置bussType"))
544
544
  return false
545
545
  }
546
546
  const { data, code } = await axios.post(
@@ -582,7 +582,7 @@ export default {
582
582
  }
583
583
  },
584
584
  getConfiguration() {
585
- getServerConfig()
585
+ getJsonc('portal/server-config.jsonc', null, true)
586
586
  .then(({ loginConf, fileRequired }) => {
587
587
  this.fileText = loginConf?.sLogan?.fileText
588
588
  this.fileRequired = fileRequired ?? true
@@ -704,7 +704,7 @@ export default {
704
704
  deleteRows() {
705
705
  if (!this.selectionList.length) {
706
706
  return this.$message({
707
- message: $lc('请先勾选要删除的数据!'),
707
+ message: $lc("请先勾选要删除的数据!"),
708
708
  type: 'warning',
709
709
  showClose: true
710
710
  })
@@ -332,7 +332,7 @@ import XEUtils from 'xe-utils'
332
332
 
333
333
  import aiCheckDialog from './aiCheckDialog.vue'
334
334
 
335
- import { getServerConfig } from '../../utils/serverConfig'
335
+ import getJsonc from '../../assets/getJsonc.js'
336
336
  import auth from '../../utils/auth'
337
337
  import axios from '../../utils/axios'
338
338
  import { $lc } from '../../utils/i18n/index'
@@ -742,7 +742,7 @@ export default {
742
742
  }
743
743
  },
744
744
  getConfiguration() {
745
- getServerConfig()
745
+ getJsonc('portal/server-config.jsonc', null, true)
746
746
  .then(({ loginConf, fileRequired }) => {
747
747
  this.fileText = loginConf?.sLogan?.fileText
748
748
  this.fileRequired = fileRequired ?? true