diff --git a/src/utils/index.js b/src/utils/index.js index 7a71498b..571095a2 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -217,7 +217,7 @@ export function getTime(type) { export function debounce(func, wait, immediate) { let timeout, args, context, timestamp, result - const later = function() { + const later = function () { // 据上一次触发时间间隔 const last = +new Date() - timestamp @@ -234,7 +234,7 @@ export function debounce(func, wait, immediate) { } } - return function(...args) { + return function (...args) { context = this timestamp = +new Date() const callNow = immediate && !timeout @@ -438,3 +438,7 @@ export function toCamelCase(str, upperCaseFirst) { return str; } + +export function IdToName(targetId, source, prop = 'name') { + return source.find(item => item.id === targetId)?.[prop] +} \ No newline at end of file diff --git a/src/views/extend/processFlowView/components/ProcessDetail.vue b/src/views/extend/processFlowView/components/ProcessDetail.vue index 0ea4db74..3430a02d 100644 --- a/src/views/extend/processFlowView/components/ProcessDetail.vue +++ b/src/views/extend/processFlowView/components/ProcessDetail.vue @@ -9,37 +9,20 @@
-
- +
+ 撤销 - + 下一步 - + 刷新布局 + 新建工序 - 序列化 - + 序列化 + 反序列化 编辑 @@ -51,12 +34,7 @@
- @@ -65,8 +43,9 @@