This is an automated email from the ASF dual-hosted git repository.

dengliming pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new 86c28a29 Add sort order for selectors and rules list (#258)
86c28a29 is described below

commit 86c28a299cf0df7eeddd5a13c0d397be05959edf
Author: 柯杨 <[email protected]>
AuthorDate: Thu Dec 29 10:47:54 2022 +0800

    Add sort order for selectors and rules list (#258)
    
    插件列表里的选择器和规则新增执行顺序列,便于根据权重了解执行顺序,同时后端sql追加排序,按执行顺序从小到大排序后返回前端
    
    Co-authored-by: 杨阳洋 <[email protected]>
---
 src/routes/Plugin/Common/index.js | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/routes/Plugin/Common/index.js 
b/src/routes/Plugin/Common/index.js
index 7478db8c..9cf929a0 100644
--- a/src/routes/Plugin/Common/index.js
+++ b/src/routes/Plugin/Common/index.js
@@ -453,6 +453,12 @@ export default class Common extends Component {
     } = this.props;
     const name = this.props.match.params ? this.props.match.params.id : "";
     const selectColumns = [
+      {
+        align: "center",
+        title: getIntlContent("SHENYU.SELECTOR.EXEORDER"),
+        dataIndex: "sort",
+        key: "sort"
+      },
       {
         align: "center",
         title: getIntlContent("SHENYU.PLUGIN.SELECTOR.LIST.COLUMN.NAME"),
@@ -529,6 +535,12 @@ export default class Common extends Component {
     ];
 
     const rulesColumns = [
+      {
+        align: "center",
+        title: getIntlContent("SHENYU.SELECTOR.EXEORDER"),
+        dataIndex: "sort",
+        key: "sort"
+      },
       {
         align: "center",
         title: getIntlContent("SHENYU.COMMON.RULE.NAME"),

Reply via email to