n20-common-lib 2.11.2 → 2.11.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
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
</el-select>
|
|
26
26
|
<el-select
|
|
27
27
|
v-if="['31'].includes(item.cfgType)"
|
|
28
|
-
v-model="selectList"
|
|
28
|
+
v-model="item.selectList"
|
|
29
29
|
multiple
|
|
30
30
|
collapse-tags
|
|
31
31
|
class="flex-item input-w"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
</el-radio-group>
|
|
45
45
|
<el-checkbox-group
|
|
46
46
|
v-if="item.cfgType === '32'"
|
|
47
|
-
v-model="checkList"
|
|
47
|
+
v-model="item.checkList"
|
|
48
48
|
class="input-w"
|
|
49
49
|
@change="(val) => changeFn(val, item)"
|
|
50
50
|
>
|
|
@@ -90,20 +90,20 @@ export default {
|
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
mounted() {
|
|
93
|
-
this.getData()
|
|
93
|
+
this.getData(this.otherAttDataA)
|
|
94
94
|
},
|
|
95
95
|
methods: {
|
|
96
|
-
getData() {
|
|
97
|
-
if (
|
|
98
|
-
this.otherAttData =
|
|
99
|
-
|
|
96
|
+
getData(data) {
|
|
97
|
+
if (data.length) {
|
|
98
|
+
this.otherAttData = data
|
|
99
|
+
}
|
|
100
|
+
if (this.taskId) {
|
|
101
|
+
axios.post(`/bems/admin/customization/${this.taskId}`, null, { loading: false }).then(({ data }) => {
|
|
102
|
+
if (data && data.length) {
|
|
103
|
+
this.otherAttData = data || []
|
|
104
|
+
}
|
|
105
|
+
})
|
|
100
106
|
}
|
|
101
|
-
if (!this.taskId) return
|
|
102
|
-
axios.post(`/bems/admin/customization/${this.taskId}`, null, { loading: false }).then(({ data }) => {
|
|
103
|
-
if (data && data.length) {
|
|
104
|
-
this.otherAttData = data || []
|
|
105
|
-
}
|
|
106
|
-
})
|
|
107
107
|
},
|
|
108
108
|
changeFn(val, item) {
|
|
109
109
|
if (['31', '32'].includes(item.cfgType)) {
|
|
@@ -125,8 +125,8 @@ export default {
|
|
|
125
125
|
return {
|
|
126
126
|
cfgName: item.cfgName,
|
|
127
127
|
cfgKey: item.cfgKey,
|
|
128
|
-
cfgVal: item.cfgVal,
|
|
129
|
-
cfgText: item.cfgText,
|
|
128
|
+
cfgVal: Array.isArray(item.cfgVal) ? item.cfgVal.join(',') : item.cfgVal,
|
|
129
|
+
cfgText: Array.isArray(item.cfgText) ? item.cfgText.join(',') : item.cfgText,
|
|
130
130
|
cfgHasRemark: item.cfgHasRemark,
|
|
131
131
|
cfgRemark: item.cfgRemark
|
|
132
132
|
}
|
|
@@ -24,12 +24,7 @@
|
|
|
24
24
|
class="p-b-lg p-t-lg p-r-lg"
|
|
25
25
|
style="max-height: 150px; overflow-y: auto; border: 1px dashed var(--border-color-base); border-radius: 5px"
|
|
26
26
|
>
|
|
27
|
-
<show-other-att-new
|
|
28
|
-
ref="showOtherAttNew"
|
|
29
|
-
:form="customizationList"
|
|
30
|
-
:other-att-data-a="otherAttDataA"
|
|
31
|
-
:task-id="processInstanceId || this.$route.query.processInstanceId"
|
|
32
|
-
/>
|
|
27
|
+
<show-other-att-new ref="showOtherAttNew" :form="customizationList" :other-att-data-a="otherAttDataA" />
|
|
33
28
|
</div>
|
|
34
29
|
</el-form>
|
|
35
30
|
</ExpandablePane>
|
|
@@ -68,10 +63,6 @@ export default {
|
|
|
68
63
|
rows: {
|
|
69
64
|
type: Number,
|
|
70
65
|
default: 5
|
|
71
|
-
},
|
|
72
|
-
processInstanceId: {
|
|
73
|
-
type: String,
|
|
74
|
-
default: ''
|
|
75
66
|
}
|
|
76
67
|
},
|
|
77
68
|
data() {
|
|
@@ -82,7 +73,8 @@ export default {
|
|
|
82
73
|
cb: null,
|
|
83
74
|
reasonSelect: '',
|
|
84
75
|
reason: '',
|
|
85
|
-
otherAttDataA: []
|
|
76
|
+
otherAttDataA: [],
|
|
77
|
+
procInstId: ''
|
|
86
78
|
}
|
|
87
79
|
},
|
|
88
80
|
methods: {
|
|
@@ -90,7 +82,7 @@ export default {
|
|
|
90
82
|
*
|
|
91
83
|
* @param typeCode {String} 业务类型编码
|
|
92
84
|
*/
|
|
93
|
-
async getHandlingAdvice(typeCode) {
|
|
85
|
+
async getHandlingAdvice(typeCode, procInstId) {
|
|
94
86
|
const { data, code } = await this.$axios.post(`/bems/activiti/admin/todo/isFlowStartWithOptions`, { typeCode })
|
|
95
87
|
if (code === 200) {
|
|
96
88
|
this.otherAttDataA = data.customizationList || []
|
|
@@ -105,6 +97,27 @@ export default {
|
|
|
105
97
|
this.afterGetConf()
|
|
106
98
|
}
|
|
107
99
|
}
|
|
100
|
+
// 回显操作
|
|
101
|
+
if (procInstId) {
|
|
102
|
+
const { data } = await this.$axios.get(`/bems/activiti/sample/getStartEventFlowHistory/${procInstId}`)
|
|
103
|
+
this.reason = data?.suggestion || ''
|
|
104
|
+
this.reasonSelect = data?.suggestion || ''
|
|
105
|
+
this.otherAttDataA = this.otherAttDataA.map((item) => {
|
|
106
|
+
const bcData = data.flowHistoryCfgs.find((item2) => {
|
|
107
|
+
return item2.cfgKey === item.cfgKey
|
|
108
|
+
})
|
|
109
|
+
return {
|
|
110
|
+
...item,
|
|
111
|
+
cfgVal: ['31'].includes(item.cfgType) ? bcData.cfgVal.split(',') : bcData.cfgVal,
|
|
112
|
+
selectList: ['31'].includes(item.cfgType) ? bcData.cfgVal.split(',') : undefined,
|
|
113
|
+
checkList: ['32'].includes(item.cfgType) ? bcData.cfgVal.split(',') : undefined,
|
|
114
|
+
cfgHasRemark: bcData.cfgHasRemark,
|
|
115
|
+
cfgRemark: bcData.cfgRemark
|
|
116
|
+
}
|
|
117
|
+
})
|
|
118
|
+
}
|
|
119
|
+
// 重新执行一次 使数据更新
|
|
120
|
+
this.$refs.showOtherAttNew.getData(this.otherAttDataA)
|
|
108
121
|
},
|
|
109
122
|
changeReasonSelect(val) {
|
|
110
123
|
this.reason = val
|