vue2-client 1.15.9 → 1.15.11
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 +1 -1
- package/src/base-client/components/common/XDatePicker/index.vue +4 -0
- package/src/base-client/components/common/XForm/XFormItem.vue +3 -2
- package/src/base-client/components/common/XForm/XTreeSelect.vue +1 -0
- package/src/base-client/components/common/XFormTable/demo.vue +1 -1
- package/src/base-client/components/common/XTable/XTable.vue +2 -0
- package/src/pages/WorkflowDetail/WorkFlowDemo.vue +1 -1
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowHandle.vue +16 -6
- package/src/pages/WorkflowDetail/WorkflowPageDetail/components/WorkflowPersonSelector.vue +5 -2
- package/vue.config.js +1 -2
package/package.json
CHANGED
@@ -195,6 +195,7 @@ export default {
|
|
195
195
|
(attr?.queryType !== 'BETWEEN' || mode !== '查询')) ||
|
196
196
|
(['rangePicker'].includes(attr.type) && mode !== '查询')
|
197
197
|
"
|
198
|
+
:getCalendarContainer="(triggerNode) => triggerNode.parentNode"
|
198
199
|
v-model="localValue"
|
199
200
|
:disabled="disabled || readOnly"
|
200
201
|
style="width: 100%"
|
@@ -210,6 +211,7 @@ export default {
|
|
210
211
|
attr.type === 'monthPicker' ||
|
211
212
|
(attr.type === 'monthRangePicker' && mode !== '查询')
|
212
213
|
"
|
214
|
+
:getCalendarContainer="(triggerNode) => triggerNode.parentNode"
|
213
215
|
v-model="localValue"
|
214
216
|
:disabled="disabled || readOnly"
|
215
217
|
:show-time="true"
|
@@ -223,6 +225,7 @@ export default {
|
|
223
225
|
attr.type === 'yearPicker' ||
|
224
226
|
(attr.type === 'yearRangePicker' && mode !== '查询')
|
225
227
|
"
|
228
|
+
:getCalendarContainer="(triggerNode) => triggerNode.parentNode"
|
226
229
|
v-model="localValue"
|
227
230
|
:disabled="disabled || readOnly"
|
228
231
|
format="YYYY"
|
@@ -247,6 +250,7 @@ export default {
|
|
247
250
|
(attr.type === 'rangePicker' && mode === '查询') ||
|
248
251
|
['yearRangePicker', 'monthRangePicker'].includes(attr.type)
|
249
252
|
"
|
253
|
+
:getCalendarContainer="(triggerNode) => triggerNode.parentNode"
|
250
254
|
v-model="localValue"
|
251
255
|
:disabled="disabled"
|
252
256
|
:placeholder="placeholder"
|
@@ -103,6 +103,7 @@
|
|
103
103
|
:placeholder="attr.placeholder ? attr.placeholder : '请选择'"
|
104
104
|
show-search
|
105
105
|
:allowClear="true"
|
106
|
+
:getCalendarContainer="(triggerNode) => triggerNode.parentNode"
|
106
107
|
>
|
107
108
|
<a-select-option
|
108
109
|
v-if="mode === '查询'"
|
@@ -1319,8 +1320,8 @@ export default {
|
|
1319
1320
|
this.emitFunc('recordingData', data)
|
1320
1321
|
},
|
1321
1322
|
getPopupContainer (triggerNode) {
|
1322
|
-
return document.body
|
1323
|
-
|
1323
|
+
// return document.body
|
1324
|
+
return triggerNode.parentNode
|
1324
1325
|
},
|
1325
1326
|
}
|
1326
1327
|
}
|
@@ -202,7 +202,7 @@ export default {
|
|
202
202
|
updateFormData (workflowId) {
|
203
203
|
runLogic('queryAgreementAmount', { workflowId: workflowId }, 'af-apply').then((res) => {
|
204
204
|
console.log('>>>> res==', res)
|
205
|
-
this.$refs.workFlow.$refs.workflowHandle.$refs.xAddForm.
|
205
|
+
this.$refs.workFlow.$refs.workflowHandle.$refs.xAddForm.setForm({ add_amount: 1200 })
|
206
206
|
})
|
207
207
|
console.log()
|
208
208
|
}
|
@@ -105,6 +105,7 @@
|
|
105
105
|
:help="deadlineHelp"
|
106
106
|
required>
|
107
107
|
<a-date-picker
|
108
|
+
:getCalendarContainer="(triggerNode) => triggerNode.parentNode"
|
108
109
|
v-model="deadline"
|
109
110
|
value-format="YYYY-MM-DD HH:mm"
|
110
111
|
format="YYYY-MM-DD HH:mm"
|
@@ -270,9 +271,14 @@ export default {
|
|
270
271
|
if (!this.currentStepId) {
|
271
272
|
return false
|
272
273
|
}
|
274
|
+
|
273
275
|
// 如果当前选中节点不是正在进行的节点,则判断viewers权限
|
274
276
|
if (this.activeStepId !== this.currentStepId) {
|
275
277
|
const activeStep = this.stepsForChild.find(item => item.id === this.activeStepId)
|
278
|
+
// 历史节点为当前登录人操作则不做查看数据权限校验
|
279
|
+
if (activeStep.handler === this.currUser.name) {
|
280
|
+
return true
|
281
|
+
}
|
276
282
|
const viewers = activeStep?.properties?.otherProperty?.viewers ?? []
|
277
283
|
if (viewers.length > 0) {
|
278
284
|
// 使用some方法判断当前人员是否满足任一条件
|
@@ -856,10 +862,11 @@ export default {
|
|
856
862
|
// 将回显数据拷贝,避免引用传递
|
857
863
|
formCompletedDataPreview = JSON.parse(JSON.stringify(this.formCompletedData))
|
858
864
|
// 使用字段定义中内容,将回显数据的列名,替换为定义的中文名
|
859
|
-
|
865
|
+
// 调整逻辑:formData中只显示流程配置表单中定义过的显示列,多余冗余的存储列不进行页面展示
|
866
|
+
const formData = {}
|
860
867
|
const currentStepDefine = this.stepsDefine.find(item => item.id === stepId)
|
861
868
|
const isKeyHandle = currentStepDefine?.properties?.form?.isKeyHandle || false
|
862
|
-
for (const key in
|
869
|
+
for (const key in formCompletedDataPreview.data) {
|
863
870
|
for (let i = 0; i < this.targetStepDefine.length; i++) {
|
864
871
|
const stepDefine = this.targetStepDefine[i]
|
865
872
|
// 兼容下旧代码,这里是否处理key根据表单配置中的isKeyHandle来决定,也有另一种情况如果处理完的key在表单中已经重复会将未处理的key直接存进去(新增表单的逻辑)
|
@@ -875,16 +882,19 @@ export default {
|
|
875
882
|
}
|
876
883
|
}
|
877
884
|
} else {
|
878
|
-
formData[stepDefine.name] =
|
885
|
+
formData[stepDefine.name] = formCompletedDataPreview.data[key]
|
879
886
|
}
|
880
887
|
}
|
881
|
-
if (key !== stepDefine.name) {
|
882
|
-
|
883
|
-
}
|
888
|
+
// if (key !== stepDefine.name) {
|
889
|
+
// delete formData[key]
|
890
|
+
// }
|
884
891
|
break
|
885
892
|
}
|
886
893
|
}
|
887
894
|
}
|
895
|
+
if (Object.keys(formData).length > 0) {
|
896
|
+
formCompletedDataPreview.data = formData
|
897
|
+
}
|
888
898
|
if (!Object.keys(formCompletedDataPreview.data).length) {
|
889
899
|
formCompletedDataPreview.data = null
|
890
900
|
}
|
@@ -10,11 +10,12 @@
|
|
10
10
|
>
|
11
11
|
<a-select
|
12
12
|
:value="getBranchPersonValue(node.stepId)"
|
13
|
+
:getPopupContainer="(triggerNode) => triggerNode.parentNode"
|
13
14
|
@change="setBranchPersonValue(node.stepId, $event, node.chargePersonOptions)"
|
14
15
|
:placeholder="`请选择${node.stepName}的处理人`"
|
15
16
|
:options="node.chargePersonOptions"
|
16
17
|
:filter-option="filterOption"
|
17
|
-
style="width:
|
18
|
+
style="width: 195px"
|
18
19
|
show-search
|
19
20
|
>
|
20
21
|
<a-select-option v-for="option in node.chargePersonOptions" :key="option.value" :value="option.value">
|
@@ -29,10 +30,12 @@
|
|
29
30
|
<a-select
|
30
31
|
v-model="workflowHandleWrap.checkedChargePerson"
|
31
32
|
placeholder="请选择或搜索"
|
33
|
+
:getPopupContainer="(triggerNode) => triggerNode.parentNode"
|
32
34
|
:options="workflowHandleWrap.chargePersonOptions"
|
33
35
|
@change="setBranchPersonValue(workflowHandleWrap.calculatedTargetNode, $event, workflowHandleWrap.chargePersonOptions)"
|
34
36
|
:filter-option="filterOption"
|
35
|
-
style="width:
|
37
|
+
style="width: 195px"
|
38
|
+
show-search
|
36
39
|
/>
|
37
40
|
<!-- <div v-if="workflowHandleWrap.calculatedTargetNode" style="margin-top: 8px; color: #52c41a; font-size: 12px;">-->
|
38
41
|
<!-- <a-icon type="check-circle"/>-->
|