diff --git a/ruoyi-ui/src/views/workflow/work/index.vue b/ruoyi-ui/src/views/workflow/work/index.vue index d0e009a..8401c50 100644 --- a/ruoyi-ui/src/views/workflow/work/index.vue +++ b/ruoyi-ui/src/views/workflow/work/index.vue @@ -153,6 +153,7 @@ export default { getList() { this.loading = true; listProcess(this.queryParams).then(response => { + console.log(3333,response) this.processList = response.rows; this.total = response.total; this.loading = false diff --git a/ruoyi-ui/src/views/workflow/work/own.vue b/ruoyi-ui/src/views/workflow/work/own.vue index 125783e..396065e 100644 --- a/ruoyi-ui/src/views/workflow/work/own.vue +++ b/ruoyi-ui/src/views/workflow/work/own.vue @@ -226,6 +226,33 @@ export default { return arr; }, + //对象数组排序(文本类) +/* compare(propertyName, order) { + return function (object1, object2) { + var value1 = object1[propertyName]; + var value2 = object2[propertyName]; + if (order == 0) { + if (value2 < value1) { + return -1; + } else if (value2 > value1) { + return 1; + } else { + return 0; + } + } + if (order == 1) { + if (value2 > value1) { + return -1; + } else if (value2 < value1) { + return 1; + } else { + return 0; + } + } + + } + },*/ + // 取消按钮 cancel() { this.open = false;