n20-common-lib 2.5.10 → 2.5.12

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.5.10",
3
+ "version": "2.5.12",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -1,6 +1,6 @@
1
1
  /* 审批记录 */
2
2
  <template>
3
- <div v-if="buttonMode">
3
+ <div v-if="approvalMode === 'dialog' || !approvalMode">
4
4
  <expandableWrap :title="'审批记录' | $lc" :show-expand="false" :icon="false">
5
5
  <template slot="tips">
6
6
  <el-button plain size="mini" :disabled="false" @click="cardV = true">{{ '审批进度查看' | $lc }}</el-button>
@@ -47,7 +47,7 @@
47
47
  import expandableWrap from '../Expandable/main.vue'
48
48
  import approvalCard from '../ApprovalCard/index.vue'
49
49
  import approvalImg from './approvalImg.vue'
50
-
50
+ import getJsonc from '../../assets/getJsonc'
51
51
  export default {
52
52
  name: 'ApprovalRecord',
53
53
  components: {
@@ -68,13 +68,19 @@ export default {
68
68
  data() {
69
69
  return {
70
70
  cardV: false,
71
- imgV: false
71
+ imgV: false,
72
+ approvalMode: undefined
72
73
  }
73
74
  },
74
75
  computed: {
75
76
  procInstIdC() {
76
77
  return this.procInstId || this.$route.query.processInstanceId
77
78
  }
79
+ },
80
+ mounted() {
81
+ getJsonc('/server-config.jsonc').then(({ approvalMode }) => {
82
+ this.approvalMode = approvalMode
83
+ })
78
84
  }
79
85
  }
80
86
  </script>
@@ -248,9 +248,7 @@ export default {
248
248
  immediate: true
249
249
  }
250
250
  },
251
- mounted() {
252
- console.log(this.showForgetBtn)
253
- },
251
+ mounted() {},
254
252
  methods: {
255
253
  // 忘记密码
256
254
  forgetPw() {
@@ -321,7 +321,8 @@ export default {
321
321
  },
322
322
  sltSys: {},
323
323
  loginBg: 'none',
324
- inspectionV: false
324
+ inspectionV: false,
325
+ isImageCode: undefined
325
326
  }
326
327
  },
327
328
  computed: {
@@ -380,6 +381,9 @@ export default {
380
381
  }
381
382
 
382
383
  return form
384
+ },
385
+ imgCode() {
386
+ return this.isImageCode ?? this.showImageCode
383
387
  }
384
388
  },
385
389
  watch: {
@@ -402,6 +406,7 @@ export default {
402
406
  // window.addEventListener('resize', this.setWrapSty)
403
407
 
404
408
  this.init()
409
+ this.getIsImgCode()
405
410
  localStorage.removeItem('pageInType')
406
411
  localStorage.setItem('pageInSystemNo', this.form.SYSTEM_LIST[0].NO)
407
412
  },
@@ -409,6 +414,13 @@ export default {
409
414
  // window.removeEventListener('resize', this.setWrapSty)
410
415
  },
411
416
  methods: {
417
+ getIsImgCode() {
418
+ axios
419
+ .get(`/bems/prod_1.0/uas/api/authorization/isimgcode`, null, { loading: false, onMsg: true })
420
+ .then(({ data }) => {
421
+ this.isImageCode = data
422
+ })
423
+ },
412
424
  async loginThenT() {
413
425
  if (this.sltSys?.NO) {
414
426
  localStorage.setItem('pageInSystemNo', this.sltSys.NO)