From 4fa71727ce0e16fe69d47de396d2b4d149cb0493 Mon Sep 17 00:00:00 2001 From: mkbk <2189095126@qq.com> Date: Sat, 22 Feb 2025 16:33:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E5=A2=9E=E5=8A=A0=E4=BC=91?= =?UTF-8?q?=E5=81=87=E6=97=A5=E5=8E=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/workflow/work/index.vue | 1 + ruoyi-ui/src/views/workflow/work/own.vue | 27 ++++++++++++++++++++++ 2 files changed, 28 insertions(+) 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;