From 6357f89bf38b83b779e233249c2b0e480b78e164 Mon Sep 17 00:00:00 2001
From: luo <2855143437@qq.com>
Date: 星期六, 23 九月 2023 17:24:16 +0800
Subject: [PATCH] 学员

---
 cloud-server-management/src/main/webapp/WEB-INF/view/system/tStudent/tStudentEdit.html | 1102 +++++++++++++++++++++++++++++++++++++++++++++++----------
 1 files changed, 901 insertions(+), 201 deletions(-)

diff --git a/cloud-server-management/src/main/webapp/WEB-INF/view/system/tStudent/tStudentEdit.html b/cloud-server-management/src/main/webapp/WEB-INF/view/system/tStudent/tStudentEdit.html
index 68e832b..ced5d12 100644
--- a/cloud-server-management/src/main/webapp/WEB-INF/view/system/tStudent/tStudentEdit.html
+++ b/cloud-server-management/src/main/webapp/WEB-INF/view/system/tStudent/tStudentEdit.html
@@ -52,7 +52,8 @@
           "size": "md",
           "mode": "horizontal",
           "hidden": true,
-          "value":`${item.id!}`
+          "value":`${item.id!}`,
+
         },
         {
           "type": "input-text",
@@ -61,7 +62,7 @@
           "name": "id",
           "size": "md",
           "mode": "horizontal",
-          "hidden": false
+          "hidden": true
         },
         {
           "type": "tpl",
@@ -78,16 +79,19 @@
           "size": "md",
           "mode": "horizontal",
           "required": true,
-          "disabled": true
+          "disabled": true,
+          "value":`${item.userName!}`
         },
         {
           "type": "input-text",
           "label": "&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp姓名",
           "id": "u:0b2463bbffe8",
-          "name": "name",
+          "name": "name1",
           "size": "md",
           "mode": "horizontal",
-          "required": true
+          "required": true,
+          "value":`${item.name!}`,
+          "disabled": true,
         },
         {
           "type": "input-date",
@@ -99,7 +103,9 @@
           "embed": false,
           "format": "YYYY-MM-DD hh:mm:ss",
           "inputFormat": "YYYY-MM-DD",
-          "required": true
+          "required": true,
+          "value":`${item.birthday!}`,
+          "disabled": true,
         },
         {
           "type": "select",
@@ -119,12 +125,14 @@
             }
           ],
           "multiple": false,
-          "required": true
+          "required": true,
+          "value":`${item.sex!}`,
+          "disabled": true,
         },
         {
           "type": "input-text",
           "label": "联系电话",
-          "name": "phone",
+          "name": "phone1",
           "id": "u:e7cf50e4f755",
           "size": "md",
           "mode": "horizontal",
@@ -135,7 +143,9 @@
           "validateOnChange": true,
           "validations": {
             "isPhoneNumber": true
-          }
+          },
+          "value":`${item.phone!}`,
+          "disabled": true,
         },
         {
           "type": "input-text",
@@ -157,7 +167,9 @@
           "addOn": {
             "label": "cm",
             "type": "text"
-          }
+          },
+          "value":`${item.height!}`,
+          "disabled": true,
         },
         {
           "type": "input-text",
@@ -179,7 +191,9 @@
           "validations": {
             "maximum": 250,
             "isNumeric": true
-          }
+          },
+          "value":`${item.weight!}`,
+          "disabled": true,
         },
         {
           "type": "input-text",
@@ -195,7 +209,9 @@
           "validateOnChange": true,
           "validations": {
             "isId": true
-          }
+          },
+          "value":`${item.idCard!}`,
+          "disabled": true,
         },
         {
           "type": "tpl",
@@ -221,7 +237,9 @@
           "multiple": false,
           "hideUploadButton": false,
           "fixedSize": false,
-          "mode": "inline"
+          "mode": "inline",
+          "value":`${pic1!}`,
+          "disabled": true,
         },
         {
           "type": "input-image",
@@ -240,7 +258,9 @@
           "multiple": false,
           "hideUploadButton": false,
           "fixedSize": false,
-          "mode": "inline"
+          "mode": "inline",
+          "value":`${pic2!}`,
+          "disabled": true,
         },
         {
           "type": "input-image",
@@ -259,74 +279,9 @@
           "multiple": false,
           "hideUploadButton": false,
           "fixedSize": false,
-          "mode": "inline"
-        },
-        {
-          "type": "container",
-          "body": [
-            {
-              "type": "tpl",
-              "id": "u:8224ab367da8",
-              "tpl": "&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp",
-              "inline": true,
-              "wrapperComponent": ""
-            },
-            {
-              "type": "button",
-              "id": "u:783ce71739db",
-              "label": "保存",
-              "onEvent": {
-                "click": {
-                  "actions": [
-                    {
-                      "componentId": "u:7c5f75a3b7b5",
-                      "args": {
-                      },
-                      "outputVar": "responseResult",
-                      "actionType": "submit"
-                    },
-                    {
-                      "args": {
-                      },
-                      "script": "parent.layer.close(window.parent.TStudent.layerIndex);\n\n                    window.parent.TStudent.table.refresh();",
-                      "actionType": "custom"
-                    }
-                  ]
-                }
-              },
-              "level": "info"
-            },
-            {
-              "type": "tpl",
-              "id": "u:8224ab367da8",
-              "tpl": "&nbsp&nbsp&nbsp",
-              "inline": true,
-              "wrapperComponent": ""
-            },
-            {
-              "type": "button",
-              "id": "u:008bc32396cc",
-              "label": "取消",
-              "onEvent": {
-                "click": {
-                  "actions": [
-                    {
-                      "args": {
-                      },
-                      "script": "parent.layer.close(window.parent.TStudent.layerIndex);\nconsole.log(\"===关闭\")",
-                      "actionType": "custom"
-                    }
-                  ]
-                }
-              },
-              "block": false
-            }
-          ],
-          "style": {
-            "position": "static",
-            "display": "block"
-          },
-          "id": "u:59d68a32f7fd"
+          "mode": "inline",
+          "value":`${pic3!}`,
+          "disabled": true,
         },
         {
           "type": "divider",
@@ -347,7 +302,8 @@
           "embed": false,
           "mode": "inline",
           "size": "md",
-          "value":`${studentClassInfo.inDate}`
+          "value":`${studentClassInfo.inDate}`,
+          "disabled": true,
         },
         {
           "type": "tpl",
@@ -450,10 +406,9 @@
                                 "multiple": false,
                                 "hideUploadButton": false,
                                 "receiver": {
-                                  "url": "/mgr/uploadImg",
+                                  "url": "/mgr/uploadImgAmis",
                                   "method": "post"
-                                },
-                                "value": "https://we-park-life.oss-cn-beijing.aliyuncs.com/img/99325878956443d68bb835145a8dca49.png"
+                                }
                               },
                               {
                                 "type": "input-image",
@@ -468,10 +423,9 @@
                                 "multiple": false,
                                 "hideUploadButton": false,
                                 "receiver": {
-                                  "url": "/mgr/uploadImg",
+                                  "url": "/mgr/uploadImgAmis",
                                   "method": "post"
-                                },
-                                "value": "https://we-park-life.oss-cn-beijing.aliyuncs.com/img/99325878956443d68bb835145a8dca49.png"
+                                }
                               },
                               {
                                 "type": "container",
@@ -540,10 +494,10 @@
                               "method": "post",
                               "requestAdaptor": "",
                               "adaptor": "",
-                              "messages": {
-                              },
+                              "messages": {},
                               "dataType": "form-data"
-                            }
+                            },
+                            "actions": []
                           }
                         ],
                         "showCloseButton": true,
@@ -551,8 +505,14 @@
                         "showLoading": true,
                         "className": "app-popover",
                         "id": "u:044fac037276",
-                        "closeOnEsc": false
+                        "closeOnEsc": false,
+                        "actions": []
                       }
+                    },
+                    {
+                      "componentId": "u:59d68a32f7fd",
+                      "actionType": "reload",
+                      "data": null
                     }
                   ]
                 }
@@ -579,13 +539,14 @@
                       "actionType": "dialog",
                       "dialog": {
                         "type": "form",
-                        "title": "弹框标题",
+                        "title": "",
                         "body": [
                           {
                             "type": "input-text",
                             "label": "id",
                             "name": "id",
-                            "id": "u:0a5bc6f58ee8"
+                            "id": "u:0a5bc6f58ee8",
+                            "hidden": true
                           },
                           {
                             "type": "crud",
@@ -596,10 +557,13 @@
                             },
                             "columns": [
                               {
-                                "name": "insertTime",
+                                "name": "date",
                                 "label": "操作时间",
                                 "type": "date",
-                                "id": "u:b652786dc9df"
+                                "id": "u:b652786dc9df",
+                                "valueFormat": "YYYY-MM-DD HH:mm:ss",
+                                "format": "YYYY-MM-DD HH:mm",
+                                "placeholder": "-"
                               },
                               {
                                 "type": "text",
@@ -610,13 +574,13 @@
                               {
                                 "type": "image",
                                 "label": "申请凭证",
-                                "name": "picPlease",
+                                "name": "pleasePic",
                                 "id": "u:b22cfb737009"
                               },
                               {
                                 "type": "image",
                                 "label": "同意凭证",
-                                "name": "picPass",
+                                "name": "passPic",
                                 "id": "u:2a9071d0bda1"
                               }
                             ],
@@ -636,7 +600,63 @@
                         "showErrorMsg": true,
                         "showLoading": true,
                         "className": "app-popover",
-                        "id": "u:c4e97065bccb"
+                        "id": "u:c4e97065bccb",
+                        "actions": [
+                          {
+                            "type": "flex",
+                            "className": "p-1",
+                            "items": [
+                              {
+                                "type": "container",
+                                "body": [
+                                  {
+                                    "type": "flex",
+                                    "className": "p-1",
+                                    "items": [
+                                      {
+                                        "type": "button",
+                                        "id": "u:98fc618e3ec6",
+                                        "label": "关闭",
+                                        "onEvent": {
+                                          "click": {
+                                            "actions": [
+                                              {
+                                                "actionType": "closeDialog"
+                                              }
+                                            ]
+                                          }
+                                        },
+                                        "block": false
+                                      }
+                                    ],
+                                    "style": {
+                                      "position": "relative"
+                                    },
+                                    "id": "u:4a1662323b46"
+                                  }
+                                ],
+                                "size": "xs",
+                                "style": {
+                                  "position": "relative",
+                                  "display": "inline-block",
+                                  "flex": "1 1 auto",
+                                  "flexGrow": 1,
+                                  "flexBasis": "auto",
+                                  "inset": "auto"
+                                },
+                                "wrapperBody": false,
+                                "isFixedHeight": false,
+                                "isFixedWidth": false,
+                                "id": "u:ffdcf3def663"
+                              }
+                            ],
+                            "style": {
+                              "position": "relative"
+                            },
+                            "id": "u:ad4c2c8f0190"
+                          }
+                        ],
+                        "size": "md"
                       }
                     }
                   ]
@@ -686,7 +706,8 @@
             }
           },
           "labelClassName": "labelClassName-49dd1bda82f4",
-          "value":`${studentClassInfo.totalHours}`
+          "value":`${studentClassInfo.totalHours}`,
+          "disabled": true,
         },
         {
           "type": "input-text",
@@ -695,7 +716,8 @@
           "name": "idCard1",
           "mode": "horizontal",
           "size": "md",
-          "value":`${studentClassInfo.hasHours}`
+          "value":`${studentClassInfo.hasHours}`,
+          "disabled": true,
         },
         {
           "type": "input-text",
@@ -704,7 +726,8 @@
           "name": "idCard2",
           "mode": "horizontal",
           "size": "md",
-          "value":`${studentClassInfo.restHours}`
+          "value":`${studentClassInfo.restHours}`,
+          "disabled": true,
         },
         {
           "type": "input-text",
@@ -713,10 +736,158 @@
           "name": "idCard3",
           "mode": "horizontal",
           "size": "md",
-          "value":`${studentClassInfo.giftHours}`
+          "value":`${studentClassInfo.giftHours}`,
+          "disabled": true,
+        }, {
+          "type": "tpl",
+          "id": "u:8224ab367da8",
+          "tpl": "&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp",
+          "inline": true,
+          "wrapperComponent": "",
+          "style": {
+            "paddingBottom": "100",
+            "marginBottom": "100"
+          }
+        },
+        {
+          "type": "tpl",
+          "id": "u:e6a3e106fac0",
+          "tpl": "退费申请:",
+          "inline": true,
+          "wrapperComponent": "",
+          "style": {
+            "paddingBottom": "100",
+            "marginBottom": "100"
+          }
+        },
+        {
+          "type": "button",
+          "id": "u:4b1f37ea569c",
+          "label": "退费列表",
+          "level": "info",
+          "onEvent": {
+            "click": {
+              "weight": 0,
+              "actions": [
+                {
+                  "actionType": "dialog",
+                  "dialog": {
+                    "type": "dialog",
+                    "title": "弹框标题",
+                    "body": [
+
+                      {
+                        "type": "input-text",
+                        "id": "u:895313026d71",
+                        "label": "id",
+                        "name": "id",
+                        "hidden": true
+                      },
+                      {
+                        "type": "crud",
+                        "syncLocation": false,
+                        "name":"crud",
+                        "api": {
+                          "method": "get",
+                          "url": "/tStudent/getBackList/$id"
+                        },
+                        "columns": [
+                          {
+                            "type": "date",
+                            "name": "insertTime",
+                            "label": "申请时间",
+                            "id": "u:6948dfe01afd",
+                            "valueFormat": "YYYY-MM-DD HH:mm:ss",
+                            "format": "YYYY-MM-DD HH:mm"
+                          },
+                          {
+                            "name": "status",
+                            "label": "审核状态",
+                            "type": "mapping",
+                            "id": "u:1f2a09737a98",
+                            "map": {
+                              "0": "待审核",
+                              "1": "同意",
+                              "2": "拒绝"
+                            }
+                          },
+                          {
+                            "type": "operation",
+                            "id": "u:b0e34eccd864",
+                            "buttons": [
+                              {
+                                "type": "button",
+                                "label": "查看详情",
+                                "onEvent": {
+                                  "click": {
+                                    "actions": [
+                                      {
+                                        "actionType": "url",
+                                        "args": {
+                                          "url": "/tStudent/backmoney",
+                                          "params": {
+                                            "ids": "$ids",
+                                            "id": "$id"
+                                          }
+                                        }
+                                      }
+                                    ],
+                                    "weight": 0
+                                  }
+                                },
+                                "id": "u:38a6f5402e72",
+                                "level": "link",
+                                "actionType": "ajax"
+                              },
+                              {
+                                "type": "button",
+                                "label": "同意",
+                                "onEvent": {
+                                  "click": {
+                                    "actions": [
+                                    ],
+                                    "weight": 0
+                                  }
+                                },
+                                "id": "u:4450de076e9f",
+                                "level": "link",
+                                "actionType": "ajax",
+                                "hiddenOn": "this.status === 1 || this.status === 2",
+                                "api": {
+                                  "method": "post",
+                                  "url": "/tStudent/changeStatus/$id"
+                                },
+                                "reload": "pay"
+                              }
+                            ],
+                            "placeholder": "-",
+                            "label": "操作"
+                          }
+                        ],
+                        "bulkActions": [],
+                        "itemActions": [],
+                        "features": [
+                          "view",
+                          "delete"
+                        ],
+                        "id": "u:a4ce7e3ae181"
+                      }
+                    ],
+                    "showCloseButton": true,
+                    "showErrorMsg": true,
+                    "showLoading": true,
+                    "className": "app-popover",
+                    "id": "u:b91085026056"
+                  }
+                }
+              ]
+            }
+          },
+          "size": "xs"
         },
         {
           "type": "crud",
+          "name":"pay",
           "syncLocation": false,
           "api": {
             "method": "get",
@@ -735,32 +906,37 @@
               "name": "classType",
               "id": "u:2f1091a380a8",
               "map": {
-                "*": "通配值"
+                "1": "常规课",
+                "2": "假期课",
+                "3": "体验课"
               }
             },
             {
               "type": "date",
               "label": "报名时间",
-              "name": "reportDate",
-              "id": "u:36ab5e408a48"
+              "name": "insertTime",
+              "id": "u:36ab5e408a48",
+              "valueFormat": "x"
             },
             {
               "type": "text",
               "label": "总课时数",
-              "name": "totalTime",
+              "name": "totalClassHours",
               "id": "u:fba93556fb2e"
             },
             {
               "type": "text",
               "label": "已上课时数",
-              "name": "haveTime",
-              "id": "u:b55a5ac7f49d"
+              "name": "hasClassHours",
+              "id": "u:b55a5ac7f49d",
+              "value": "$totalClassHours-$totalClassHours"
             },
             {
               "type": "text",
               "label": "剩余课时数",
-              "name": "restTime",
-              "id": "u:abb78021df40"
+              "name": "laveClassHours",
+              "id": "u:abb78021df40",
+              "placeholder": "-"
             },
             {
               "type": "operation",
@@ -779,42 +955,115 @@
                             "title": "弹框标题",
                             "body": [
                               {
-                                "type": "select",
-                                "label": "请选择被转移学员",
-                                "name": "select",
-                                "id": "u:80a2266885a3",
-                                "multiple": false,
-                                "mode": "horizontal",
-                                "size": "lg",
-                                "horizontal": {
-                                  "leftFixed": "lg"
-                                },
-                                "source": {
-                                  "url": "/tStudent/getUserSlect/$id",
-                                  "method": "get"
-                                },
-                                "labelField": "value",
-                                "valueField": "id"
-                              },
-                              {
-                                "type": "input-text",
-                                "label": "id",
-                                "name": "id",
-                                "id": "u:1e2c394fa299"
-                              },
-                              {
-                                "type": "tpl",
-                                "tpl": "对,你刚刚点击了",
-                                "wrapperComponent": "",
-                                "inline": false,
-                                "id": "u:7c4a5a6b60d0"
+                                "type": "form",
+                                "id": "u:db6a651c2979",
+                                "title": "",
+                                "body": [
+                                  {
+                                    "label": "请选择被转移学员",
+                                    "type": "select",
+                                    "name": "toStudentId",
+                                    "id": "u:80a2266885a3",
+                                    "multiple": false,
+                                    "mode": "horizontal",
+                                    "size": "lg",
+                                    "horizontal": {
+                                      "leftFixed": "lg"
+                                    },
+                                    "source": {
+                                      "url": "/tStudent/getUserSlect/$id",
+                                      "method": "get"
+                                    },
+                                    "labelField": "value",
+                                    "valueField": "id"
+                                  },
+                                  {
+                                    "label": "id",
+                                    "type": "input-text",
+                                    "name": "id",
+                                    "id": "u:1e2c394fa299",
+                                    "hidden": true
+                                  },
+                                  {
+                                    "type": "container",
+                                    "id": "u:59d68a32f7fd",
+                                    "body": [
+                                      {
+                                        "type": "tpl",
+                                        "id": "u:8224ab367da8",
+                                        "tpl": "&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp",
+                                        "inline": true,
+                                        "wrapperComponent": ""
+                                      },
+                                      {
+                                        "type": "button",
+                                        "id": "u:783ce71739db",
+                                        "label": "保存",
+                                        "onEvent": {
+                                          "click": {
+                                            "actions": [
+                                              {
+                                                "componentId": "u:db6a651c2979",
+                                                "actionType": "submit"
+                                              }
+                                            ]
+                                          }
+                                        },
+                                        "level": "info"
+                                      },
+                                      {
+                                        "type": "tpl",
+                                        "id": "u:8224ab367da8",
+                                        "tpl": "&nbsp&nbsp&nbsp",
+                                        "inline": true,
+                                        "wrapperComponent": ""
+                                      },
+                                      {
+                                        "type": "button",
+                                        "id": "u:008bc32396cc",
+                                        "label": "取消",
+                                        "onEvent": {
+                                          "click": {
+                                            "actions": [
+                                              {
+                                                "actionType": "closeDialog"
+                                              }
+                                            ]
+                                          }
+                                        },
+                                        "block": false
+                                      }
+                                    ],
+                                    "style": {
+                                      "position": "static",
+                                      "display": "block"
+                                    }
+                                  }
+                                ],
+                                "api": {
+                                  "url": "/tStudent/toClass",
+                                  "method": "post",
+                                  "requestAdaptor": "",
+                                  "adaptor": "",
+                                  "messages": {
+                                  },
+                                  "dataType": "form-data"
+                                }
                               }
                             ],
                             "showCloseButton": true,
                             "showErrorMsg": true,
                             "showLoading": true,
                             "className": "app-popover",
-                            "id": "u:a612413d932d"
+                            "id": "u:a612413d932d",
+                            "api": {
+                              "url": "/tStudent/toClass",
+                              "method": "post",
+                              "messages": {
+                              }
+                            },
+                            "actions": [
+                            ]
                           }
                         }
                       ]
@@ -836,65 +1085,169 @@
                             "title": "弹框标题",
                             "body": [
                               {
-                                "type": "input-text",
-                                "label": "用户姓名:",
-                                "name": "text",
-                                "id": "u:c260d6dbc161",
-                                "mode": "horizontal"
-                              },
-                              {
-                                "type": "input-text",
-                                "label": "用户电话",
-                                "name": "phone",
-                                "id": "u:c00d1204430d",
-                                "mode": "horizontal"
-                              },
-                              {
-                                "type": "service",
-                                "id": "u:f6ab941852f1",
+                                "type": "form",
+                                "id": "u:57ea84073397",
+                                "title": "",
                                 "body": [
                                   {
-                                    "type": "select",
-                                    "id": "u:a7766815916b",
-                                    "label": "选择学员",
-                                    "name": "select",
-                                    "multiple": false,
-                                    "mode": "horizontal",
-                                    "size": "lg",
-                                    "value": ""
+                                    "type": "service",
+                                    "id": "u:f6ab941852f1",
+                                    "body": [
+                                      {
+                                        "type": "input-text",
+                                        "id": "u:c00d1204430d",
+                                        "label": "用户电话",
+                                        "name": "phone",
+                                        "mode": "horizontal",
+                                        "size": "md"
+                                      },
+                                      {
+                                        "type": "input-text",
+                                        "id": "u:9a9f18e09fb9",
+                                        "label": "&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp用户姓名:",
+                                        "name": "name",
+                                        "mode": "inline",
+                                        "size": "md"
+                                      },
+                                      {
+                                        "type": "button",
+                                        "label": "搜索",
+                                        "onEvent": {
+                                          "click": {
+                                            "actions": [
+                                              {
+                                                "componentId": "u:f6ab941852f1",
+                                                "actionType": "reload",
+                                                "dataMergeMode": "merge"
+                                              }
+                                            ]
+                                          }
+                                        },
+                                        "id": "u:5fcf1222f6ea",
+                                        "level": "info"
+                                      },
+                                      {
+                                        "type": "select",
+                                        "id": "u:a7766815916b",
+                                        "label": "选择学员",
+                                        "name": "toStudentId",
+                                        "multiple": false,
+                                        "mode": "horizontal",
+                                        "size": "md",
+                                        "value": "",
+                                        "source": "$options",
+                                        "labelField": "value",
+                                        "valueField": "id"
+                                      }
+                                    ],
+                                    "messages": {},
+                                    "loadingConfig": {
+                                      "show": true
+                                    },
+                                    "api": {
+                                      "url": "/tStudent/giftSelect",
+                                      "method": "post",
+                                      "messages": {},
+                                      "requestAdaptor": "",
+                                      "adaptor": "",
+                                      "dataType": "form-data",
+                                      "data": {
+                                        "name": "$name",
+                                        "phone": "$phone",
+                                        "id": "$id"
+                                      }
+                                    }
+                                  },
+                                  {
+                                    "type": "input-text",
+                                    "id": "u:fe0979ee23df",
+                                    "label": "id",
+                                    "name": "id",
+                                    "hidden": true
+                                  },
+                                  {
+                                    "type": "container",
+                                    "id": "u:59d68a32f7fd",
+                                    "body": [
+                                      {
+                                        "type": "tpl",
+                                        "id": "u:8224ab367da8",
+                                        "tpl": "&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp",
+                                        "inline": true,
+                                        "wrapperComponent": ""
+                                      },
+                                      {
+                                        "type": "button",
+                                        "id": "u:783ce71739db",
+                                        "label": "保存",
+                                        "onEvent": {
+                                          "click": {
+                                            "actions": [
+                                              {
+                                                "componentId": "u:57ea84073397",
+                                                "actionType": "submit"
+                                              }
+                                            ]
+                                          }
+                                        },
+                                        "level": "info"
+                                      },
+                                      {
+                                        "type": "tpl",
+                                        "id": "u:8224ab367da8",
+                                        "tpl": "&nbsp&nbsp&nbsp",
+                                        "inline": true,
+                                        "wrapperComponent": ""
+                                      },
+                                      {
+                                        "type": "button",
+                                        "id": "u:008bc32396cc",
+                                        "label": "取消",
+                                        "onEvent": {
+                                          "click": {
+                                            "actions": [
+                                              {
+                                                "actionType": "closeDialog"
+                                              }
+                                            ]
+                                          }
+                                        },
+                                        "block": false
+                                      }
+                                    ],
+                                    "style": {
+                                      "position": "static",
+                                      "display": "block"
+                                    }
                                   }
-                                ]
-                              },
-                              {
-                                "type": "button",
-                                "label": "按钮",
-                                "onEvent": {
-                                  "click": {
-                                    "actions": [
-                                    ]
-                                  }
+                                ],
+                                "api": {
+                                  "url": "/tStudent/giftTo",
+                                  "method": "post",
+                                  "requestAdaptor": "",
+                                  "adaptor": "",
+                                  "messages": {},
+                                  "dataType": "form-data"
                                 },
-                                "id": "u:5fcf1222f6ea"
+                                "actions": []
                               },
                               {
-                                "type": "input-text",
-                                "label": "id",
-                                "name": "id",
-                                "id": "u:fe0979ee23df"
-                              },
-                              {
-                                "type": "tpl",
-                                "tpl": "对,你刚刚点击了",
-                                "wrapperComponent": "",
-                                "inline": false,
-                                "id": "u:5fe4b4c9e423"
+                                "id": "u:59d68a32f7fd",
+                                "type": "container",
+                                "body": [],
+                                "style": {
+                                  "position": "static",
+                                  "display": "block"
+                                }
                               }
                             ],
                             "showCloseButton": true,
                             "showErrorMsg": true,
                             "showLoading": true,
                             "className": "app-popover",
-                            "id": "u:552bd1b3464d"
+                            "id": "u:552bd1b3464d",
+                            "actions": [],
+                            "canAccessSuperData": false
                           }
                         }
                       ]
@@ -902,7 +1255,257 @@
                   },
                   "id": "u:ae1e6e73beb9",
                   "level": "link"
+                },
+                {
+                  "type": "button",
+                  "label": "变更记录",
+                  "onEvent": {
+                    "click": {
+                      "actions": [
+                        {
+                          "actionType": "dialog",
+                          "dialog": {
+                            "type": "dialog",
+                            "title": "弹框标题",
+                            "body": [
+                              {
+                                "type": "form",
+                                "id": "u:4468428b5d24",
+                                "title": "",
+                                "body": [
+                                  {
+                                    "type": "crud",
+                                    "id": "u:8072454d25d8",
+                                    "api": {
+                                      "url": "/tStudent/changelist/$id",
+                                      "method": "post",
+                                      "messages": {
+                                      },
+                                      "requestAdaptor": "",
+                                      "adaptor": "",
+                                      "dataType": "form"
+                                    },
+                                    "syncLocation": false,
+                                    "columns": [
+                                      {
+                                        "name": "insertTime",
+                                        "label": "时间",
+                                        "type": "date",
+                                        "id": "u:e13821cad6ba",
+                                        "valueFormat": "x"
+                                      },
+                                      {
+                                        "name": "changeType",
+                                        "label": "变更类型",
+                                        "type": "mapping",
+                                        "id": "u:e2b292dd63d0"
+                                      },
+                                      {
+                                        "type": "text",
+                                        "label": "课时数",
+                                        "name": "num",
+                                        "id": "u:24b1375ff173"
+                                      },
+                                      {
+                                        "type": "text",
+                                        "label": "变更原因",
+                                        "name": "reason",
+                                        "id": "u:8ba95bfd5e56"
+                                      }
+                                    ],
+                                    "bulkActions": [
+                                    ],
+                                    "itemActions": [
+                                    ],
+                                    "features": [
+                                      "filter"
+                                    ],
+                                    "filterColumnCount": 3,
+                                    "filter": {
+                                      "title": "",
+                                      "body": [
+                                        {
+                                          "type": "input-date-range",
+                                          "name": "start",
+                                          "label": "上传时间",
+                                          "id": "u:b2fb064aa9ac",
+                                          "inputFormat": "YYYY-MM-DD HH:mm",
+                                          "format": "YYYY-MM-DD HH:mm",
+                                          "embed": false,
+                                          "extraName": "end"
+                                        },
+                                        {
+                                          "type": "select",
+                                          "label": "是否启用",
+                                          "name": "changeType",
+                                          "options": [
+                                            {
+                                              "label": "全部"
+                                            },
+                                            {
+                                              "label": "增加",
+                                              "value": 1
+                                            },
+                                            {
+                                              "label": "减少",
+                                              "value": 0
+                                            }
+                                          ],
+                                          "id": "u:6dbebedca3b9",
+                                          "multiple": false,
+                                          "clearable": true,
+                                          "size": "md",
+                                          "value": ""
+                                        },
+                                        {
+                                          "type": "select",
+                                          "label": "变更原因",
+                                          "name": "reason",
+                                          "options": [
+                                            {
+                                              "label": "全部"
+                                            },
+                                            {
+                                              "label": "购课",
+                                              "value": "购课"
+                                            },
+                                            {
+                                              "label": "消课",
+                                              "value": 0
+                                            },
+                                            {
+                                              "label": "体验购课",
+                                              "value": "体验购课"
+                                            },
+                                            {
+                                              "label": "报名赛事",
+                                              "value": "报名赛事"
+                                            },
+                                            {
+                                              "label": "报名假期班",
+                                              "value": "报名假期班"
+                                            },
+                                            {
+                                              "label": "续课",
+                                              "value": 1
+                                            },
+                                            {
+                                              "label": "课时转移",
+                                              "value": "课时转移"
+                                            },
+                                            {
+                                              "label": "赠课",
+                                              "value": "赠课"
+                                            },
+                                            {
+                                              "label": "退费",
+                                              "value": "退费"
+                                            },
+                                            {
+                                              "label": "介绍有礼",
+                                              "value": "介绍有礼"
+                                            },
+                                            {
+                                              "label": "换课",
+                                              "value": "换课"
+                                            }
+                                          ],
+                                          "id": "u:a3db438ccfdd",
+                                          "multiple": false,
+                                          "clearable": true,
+                                          "size": "md",
+                                          "value": ""
+                                        }
+                                      ],
+                                      "id": "u:5c936e95b286"
+                                    },
+                                    "perPageAvailable": [
+                                      10
+                                    ],
+                                    "messages": {
+                                    },
+                                    "perPageField": "size"
+                                  },
+                                  {
+                                    "type": "input-text",
+                                    "id": "u:5f73d0cbffee",
+                                    "label": "id",
+                                    "name": "id",
+                                    "hidden": true
+                                  },
+                                  {
+                                    "type": "container",
+                                    "id": "u:0576f915b9e3",
+                                    "body": [
+                                      {
+                                        "type": "tpl",
+                                        "id": "u:9c56f7ef3419",
+                                        "tpl": "&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp",
+                                        "inline": true,
+                                        "wrapperComponent": ""
+                                      },
+                                      {
+                                        "type": "tpl",
+                                        "id": "u:a2cba9bb8751",
+                                        "tpl": "&nbsp&nbsp&nbsp",
+                                        "inline": true,
+                                        "wrapperComponent": ""
+                                      },
+                                      {
+                                        "type": "button",
+                                        "id": "u:98fc618e3ec6",
+                                        "label": "关闭",
+                                        "onEvent": {
+                                          "click": {
+                                            "actions": [
+                                              {
+                                                "actionType": "closeDialog"
+                                              }
+                                            ]
+                                          }
+                                        },
+                                        "block": false
+                                      }
+                                    ],
+                                    "style": {
+                                      "position": "static",
+                                      "display": "block"
+                                    }
+                                  }
+                                ],
+                                "api": {
+                                  "url": "/tStudent/changelist/$id",
+                                  "method": "post",
+                                  "requestAdaptor": "",
+                                  "adaptor": "",
+                                  "messages": {
+                                  },
+                                  "dataType": "form-data"
+                                },
+                                "actions": [
+                                ]
+                              }
+                            ],
+                            "showCloseButton": true,
+                            "showErrorMsg": true,
+                            "showLoading": true,
+                            "className": "",
+                            "id": "u:f66fa4de8251",
+                            "actions": [
+                            ],
+                            "canAccessSuperData": false,
+                            "wrapWithPanel": false,
+                            "size": "xl",
+                            "closeOnEsc": false
+                          }
+                        }
+                      ]
+                    }
+                  },
+                  "id": "u:dd3110deaf9d",
+                  "level": "link"
                 }
+
               ]
             }
           ],
@@ -915,23 +1518,120 @@
               "wrapperComponent": ""
             },
             {
-              "label": "ajax请求",
               "type": "button",
+              "label": "退费",
               "actionType": "ajax",
-              "api": {
-                "method": "get",
-                "url": "/ttt",
-                "data": {
-                  "item": "$items"
-                },
-                "id": "u:f706584d4a0c"
-              },
-              "id": "u:38a6f5402e72"
+              "id": "u:38a6f5402e72",
+              "onEvent": {
+                "click": {
+                  "weight": 0,
+                  "actions": [
+                    {
+                      "actionType": "url",
+                      "args": {
+                        "url": "/tStudent/backmoney",
+                        "params": {
+                          "ids": "$ids",
+                          "id": "$id"
+                        }
+                      }
+                    }
+                  ]
+                }
+              }
             },
             {
-              "label": "退费",
               "type": "button",
-              "id": "u:4b1f37ea569c"
+              "label": "退费申请",
+              "id": "u:4b1f37ea569c",
+              "level": "info",
+              "onEvent": {
+                "click": {
+                  "weight": 0,
+                  "actions": [
+                    {
+                      "actionType": "dialog",
+                      "dialog": {
+                        "type": "dialog",
+                        "title": "弹框标题",
+                        "body": [
+                          {
+                            "type": "tpl",
+                            "tpl": "对,你刚刚点击了",
+                            "wrapperComponent": "",
+                            "inline": false,
+                            "id": "u:d72b44ae6de4"
+                          },
+                          {
+                            "type": "crud",
+                            "syncLocation": false,
+                            "api": {
+                              "method": "get",
+                              "url": "/tStudent/getBackList/$id"
+                            },
+                            "columns": [
+                              {
+                                "name": "inserTtime",
+                                "label": "申请时间",
+                                "type": "date",
+                                "id": "u:6948dfe01afd"
+                              },
+                              {
+                                "name": "status",
+                                "label": "审核状态",
+                                "type": "mapping",
+                                "id": "u:1f2a09737a98"
+                              },
+                              {
+                                "type": "operation",
+                                "id": "u:b0e34eccd864",
+                                "buttons": [
+                                  {
+                                    "type": "button",
+                                    "label": "退费",
+                                    "onEvent": {
+                                      "click": {
+                                        "actions": [
+                                          {
+                                            "actionType": "url",
+                                            "args": {
+                                              "url": "/tStudent/backmoney",
+                                              "params": {
+                                                "ids": "$ids",
+                                                "id": "$id"
+                                              }
+                                            }
+                                          }
+                                        ],
+                                        "weight": 0
+                                      }
+                                    },
+                                    "id": "u:38a6f5402e72",
+                                    "actionType": "ajax",
+                                    "level": "info"
+                                  }
+                                ]
+                              }
+                            ],
+                            "bulkActions": [],
+                            "itemActions": [],
+                            "features": [
+                              "view",
+                              "delete"
+                            ],
+                            "id": "u:a4ce7e3ae181"
+                          }
+                        ],
+                        "showCloseButton": true,
+                        "showErrorMsg": true,
+                        "showLoading": true,
+                        "className": "app-popover",
+                        "id": "u:b91085026056"
+                      }
+                    }
+                  ]
+                }
+              }
             },
             {
               "label": "退费",

--
Gitblit v1.7.1