n20-common-lib 2.13.2 → 2.13.4

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.13.2",
3
+ "version": "2.13.4",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -98,59 +98,57 @@ export default {
98
98
  */
99
99
  async getHandlingAdvice(typeCode, procInstId) {
100
100
  try {
101
- this.$axios
102
- .post(
103
- `/bems/activiti/admin/todo/isFlowStartWithOptions`,
104
- { typeCode },
101
+ const { code, data } = await this.$axios.post(
102
+ `/bems/activiti/admin/todo/isFlowStartWithOptions`,
103
+ { typeCode },
104
+ {
105
+ noMsg: true
106
+ }
107
+ )
108
+
109
+ if (code === 200) {
110
+ this.otherAttDataA = data.customizationList || []
111
+ this.whether = data.whether
112
+ this.visible = data.whether === true || this.otherAttDataA.length > 0
113
+ this.flowOptions = data?.opinions?.map((d) => {
114
+ return {
115
+ label: d,
116
+ value: d
117
+ }
118
+ })
119
+ if (!data.whether && this.afterGetConf && this.otherAttDataA.length === 0) {
120
+ this.afterGetConf()
121
+ }
122
+ }
123
+ // 回显操作
124
+ if (procInstId) {
125
+ const { data: data1 } = await this.$axios.get(
126
+ `/bems/activiti/sample/getStartEventFlowHistory/${procInstId}`,
127
+ {},
105
128
  {
106
129
  noMsg: true
107
130
  }
108
131
  )
109
- .then(async ({ code, data }) => {
110
- if (code === 200) {
111
- this.otherAttDataA = data.customizationList || []
112
- this.whether = data.whether
113
- this.visible = data.whether === true || this.otherAttDataA.length > 0
114
- this.flowOptions = data?.opinions?.map((d) => {
115
- return {
116
- label: d,
117
- value: d
118
- }
132
+ this.reason = data1?.suggestion || ''
133
+ this.reasonSelect = data1?.suggestion || ''
134
+ if (data1.flowHistoryCfgs && data1.flowHistoryCfgs.length > 0) {
135
+ this.otherAttDataA = this.otherAttDataA.map((item) => {
136
+ const bcData = data1.flowHistoryCfgs.find((item2) => {
137
+ return item2.cfgKey === item.cfgKey
119
138
  })
120
- if (!data.whether && this.afterGetConf && this.otherAttDataA.length === 0) {
121
- this.afterGetConf()
139
+ return {
140
+ ...item,
141
+ cfgVal: ['31'].includes(item.cfgType) ? bcData.cfgVal.split(',') : bcData.cfgVal,
142
+ selectList: ['31'].includes(item.cfgType) ? bcData.cfgVal.split(',') : undefined,
143
+ checkList: ['32'].includes(item.cfgType) ? bcData.cfgVal.split(',') : undefined,
144
+ cfgHasRemark: bcData.cfgHasRemark,
145
+ cfgRemark: bcData.cfgRemark
122
146
  }
123
- }
124
- // 回显操作
125
- if (procInstId) {
126
- const { data } = await this.$axios.get(
127
- `/bems/activiti/sample/getStartEventFlowHistory/${procInstId}`,
128
- {},
129
- {
130
- noMsg: true
131
- }
132
- )
133
- this.reason = data?.suggestion || ''
134
- this.reasonSelect = data?.suggestion || ''
135
- if (data.flowHistoryCfgs && data.flowHistoryCfgs.length > 0) {
136
- this.otherAttDataA = this.otherAttDataA.map((item) => {
137
- const bcData = data.flowHistoryCfgs.find((item2) => {
138
- return item2.cfgKey === item.cfgKey
139
- })
140
- return {
141
- ...item,
142
- cfgVal: ['31'].includes(item.cfgType) ? bcData.cfgVal.split(',') : bcData.cfgVal,
143
- selectList: ['31'].includes(item.cfgType) ? bcData.cfgVal.split(',') : undefined,
144
- checkList: ['32'].includes(item.cfgType) ? bcData.cfgVal.split(',') : undefined,
145
- cfgHasRemark: bcData.cfgHasRemark,
146
- cfgRemark: bcData.cfgRemark
147
- }
148
- })
149
- }
150
- }
151
- // 重新执行一次 使数据更新
152
- this.$refs.showOtherAttNew && this.$refs.showOtherAttNew.getData(this.otherAttDataA)
153
- })
147
+ })
148
+ }
149
+ }
150
+ // 重新执行一次 使数据更新
151
+ this.$refs.showOtherAttNew && this.$refs.showOtherAttNew.getData(this.otherAttDataA)
154
152
  } catch (error) {
155
153
  if (this.afterGetConf) {
156
154
  this.afterGetConf()
@@ -73,11 +73,13 @@ function systemIdentification() {
73
73
  * @returns {Promise<*>} 签名结果
74
74
  */
75
75
  export async function getSign(p1, p2, p3) {
76
- const signType = window.sessionStorage.getItem('signType')
76
+ let signType = window.sessionStorage.getItem('signType')
77
77
  if (!signType || !CaMap[signType]) {
78
- throw new Error('请设置签名服务公司sessionStorage.signType')
78
+ console.error('请设置签名服务公司sessionStorage.signType')
79
+ signType = CaMap['null'] ? CaMap['null'].type : ''
79
80
  }
80
- if (window.NetSignName === 'signV3') {
81
+ // 是否使用信安3.0版本sdk (默认使用2.0版本)
82
+ if (window.NetSignVersion === 'signV3') {
81
83
  return await disposeSign(CaMap['signV3'], p1, p2, p3)
82
84
  } else {
83
85
  return await disposeSign(CaMap[signType], p1, p2, p3)
@@ -94,8 +96,8 @@ export function getCert(dn) {
94
96
  console.log('signType', signType)
95
97
  return new Promise((resolve, reject) => {
96
98
  if (signType === 'inetSign' /* 信安CA */) {
97
- // 是否使用3.0版本sdk (默认使用2.0版本)
98
- if (window.NetSignName === 'signV3') {
99
+ // 是否使用信安3.0版本sdk (默认使用2.0版本)
100
+ if (window.NetSignVersion === 'signV3') {
99
101
  importG('inetSign', () => import(/*webpackChunkName: "inetSign"*/ './signV3/sign.js')).then(
100
102
  ({ getCertInfo }) => {
101
103
  getCertInfo(dn).then((res) => {