@giteeteam/apps-team-components 1.2.2-alpha.3 → 1.2.2-alpha.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/dist/lib/workflow.js +3 -3
- package/package.json +1 -1
package/dist/lib/workflow.js
CHANGED
|
@@ -255,7 +255,7 @@ export function checkItemCondition(transition, item) {
|
|
|
255
255
|
let sourceValue = null, targetValue = null;
|
|
256
256
|
switch (field.componentType) {
|
|
257
257
|
case CustomFieldComponentTypes.Number:
|
|
258
|
-
case CustomFieldComponentTypes.Date:
|
|
258
|
+
case CustomFieldComponentTypes.Date:
|
|
259
259
|
targetValue = comparedValue;
|
|
260
260
|
if (field.componentType === CustomFieldComponentTypes.Date && NumberConditions.equalTo.key === numberCompare) {
|
|
261
261
|
targetValue = getFormat(targetValue || null, getDateType(pickerType));
|
|
@@ -290,7 +290,7 @@ export function checkItemCondition(transition, item) {
|
|
|
290
290
|
}
|
|
291
291
|
let showValue = comparedValue;
|
|
292
292
|
if (field.componentType === CustomFieldComponentTypes.Date) {
|
|
293
|
-
showValue = getFormat(comparedValue, getDateType(
|
|
293
|
+
showValue = getFormat(comparedValue, getDateType(pickerType));
|
|
294
294
|
}
|
|
295
295
|
return {
|
|
296
296
|
result: false,
|
|
@@ -308,7 +308,7 @@ export function checkItemCondition(transition, item) {
|
|
|
308
308
|
};
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
-
|
|
311
|
+
break;
|
|
312
312
|
case CustomFieldComponentTypes.Text:
|
|
313
313
|
case CustomFieldComponentTypes.LongText:
|
|
314
314
|
targetValue = comparedValue;
|