From 640ff18d2d7f4be02ddb7f8f75e899f05545eb98 Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期一, 05 二月 2024 11:56:52 +0800 Subject: [PATCH] 更新bug修改 --- cloud-server-management/src/main/webapp/WEB-INF/view/system/tStudent/tStudentEdit.html | 1254 +++++++++++++++++++++++++++++++++++++++++++++++------------ 1 files changed, 987 insertions(+), 267 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..14f58ff 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": "       姓名", "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", @@ -205,129 +221,75 @@ "id": "u:8224ab367da8" }, { - "type": "input-image", - "id": "u:53e0d6a37b69", - "label": "", - "name": "image1", - "autoUpload": true, - "proxy": true, - "uploadType": "fileReceptor", - "imageClassName": "r w-full", - "receiver": { - "url": "/mgr/uploadImg", - "method": "post" - }, - "accept": ".jpeg, .jpg, .png, .gif", - "multiple": false, - "hideUploadButton": false, - "fixedSize": false, - "mode": "inline" + "type": "images", + "id": "u:76216a114f2c", + "name": "images", + "value":`${images!}`, + "delimiter":";" }, - { - "type": "input-image", - "id": "u:53e0d6a37b69", - "label": "", - "name": "image2", - "autoUpload": true, - "proxy": true, - "uploadType": "fileReceptor", - "imageClassName": "r w-full", - "receiver": { - "url": "/mgr/uploadImg", - "method": "post" - }, - "accept": ".jpeg, .jpg, .png, .gif", - "multiple": false, - "hideUploadButton": false, - "fixedSize": false, - "mode": "inline" - }, - { - "type": "input-image", - "id": "u:53e0d6a37b69", - "label": "", - "name": "image3", - "autoUpload": true, - "proxy": true, - "uploadType": "fileReceptor", - "imageClassName": "r w-full", - "receiver": { - "url": "/mgr/uploadImg", - "method": "post" - }, - "accept": ".jpeg, .jpg, .png, .gif", - "multiple": false, - "hideUploadButton": false, - "fixedSize": false, - "mode": "inline" - }, - { - "type": "container", - "body": [ - { - "type": "tpl", - "id": "u:8224ab367da8", - "tpl": "                                                                          ", - "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": "   ", - "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" - }, + // { + // "type": "input-image", + // "id": "u:53e0d6a37b69", + // "label": "", + // "name": "image1", + // "autoUpload": true, + // "proxy": true, + // "uploadType": "fileReceptor", + // "imageClassName": "r w-full", + // "receiver": { + // "url": "/mgr/uploadImgAmis", + // "method": "post" + // }, + // "accept": ".jpeg, .jpg, .png, .gif", + // "multiple": false, + // "hideUploadButton": false, + // "fixedSize": false, + // "mode": "inline", + // "value":`${pic1!}`, + // "disabled": true, + // }, + // { + // "type": "input-image", + // "id": "u:53e0d6a37b69", + // "label": "", + // "name": "image2", + // "autoUpload": true, + // "proxy": true, + // "uploadType": "fileReceptor", + // "imageClassName": "r w-full", + // "receiver": { + // "url": "/mgr/uploadImg", + // "method": "post" + // }, + // "accept": ".jpeg, .jpg, .png, .gif", + // "multiple": false, + // "hideUploadButton": false, + // "fixedSize": false, + // "mode": "inline", + // "value":`${pic2!}`, + // "disabled": true, + // }, + // { + // "type": "input-image", + // "id": "u:53e0d6a37b69", + // "label": "", + // "name": "image3", + // "autoUpload": true, + // "proxy": true, + // "uploadType": "fileReceptor", + // "imageClassName": "r w-full", + // "receiver": { + // "url": "/mgr/uploadImg", + // "method": "post" + // }, + // "accept": ".jpeg, .jpg, .png, .gif", + // "multiple": false, + // "hideUploadButton": false, + // "fixedSize": false, + // "mode": "inline", + // "value":`${pic3!}`, + // "disabled": true, + // }, { "type": "divider", "id": "u:c8ddd15c688d" @@ -343,11 +305,11 @@ "type": "input-date", "id": "u:9fe564fc31fc", "label": "        入学时间:", - "name": "birthday", "embed": false, "mode": "inline", "size": "md", - "value":`${studentClassInfo.inDate}` + "value":`${item.time}`, + "disabled": true, }, { "type": "tpl", @@ -387,7 +349,7 @@ "id": "u:5126d1e417f2", "valueFormat": "YYYY-MM-DD", "format": "YYYY-MM-DD", - "name":"useTime" + "name": "useTime" }, { "type": "tpl", @@ -450,10 +412,10 @@ "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" + "required": true }, { "type": "input-image", @@ -468,10 +430,10 @@ "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" + "required": true }, { "type": "container", @@ -543,6 +505,20 @@ "messages": { }, "dataType": "form-data" + }, + "actions": [ + ], + "onEvent": { + "submitSucc": { + "weight": 0, + "actions": [ + { + "componentId": "u:59d68a32f7fd", + "actionType": "reload", + "dataMergeMode": "merge" + } + ] + } } } ], @@ -551,7 +527,9 @@ "showLoading": true, "className": "app-popover", "id": "u:044fac037276", - "closeOnEsc": false + "closeOnEsc": false, + "actions": [ + ] } } ] @@ -579,13 +557,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 +575,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 +592,13 @@ { "type": "image", "label": "申请凭证", - "name": "picPlease", + "name": "pleasePic", "id": "u:b22cfb737009" }, { "type": "image", "label": "同意凭证", - "name": "picPass", + "name": "passPic", "id": "u:2a9071d0bda1" } ], @@ -636,7 +618,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 +724,8 @@ } }, "labelClassName": "labelClassName-49dd1bda82f4", - "value":`${studentClassInfo.totalHours}` + "value":`${studentClassInfo.totalHours}`, + "disabled": true, }, { "type": "input-text", @@ -695,7 +734,8 @@ "name": "idCard1", "mode": "horizontal", "size": "md", - "value":`${studentClassInfo.hasHours}` + "value":`${studentClassInfo.hasHours}`, + "disabled": true, }, { "type": "input-text", @@ -704,7 +744,8 @@ "name": "idCard2", "mode": "horizontal", "size": "md", - "value":`${studentClassInfo.restHours}` + "value":`${studentClassInfo.restHours}`, + "disabled": true, }, { "type": "input-text", @@ -713,15 +754,213 @@ "name": "idCard3", "mode": "horizontal", "size": "md", - "value":`${studentClassInfo.giftHours}` + "value":`${studentClassInfo.giftHours}`, + "disabled": true, + }, { + "type": "tpl", + "id": "u:8224ab367da8", + "tpl": "          ", + "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": "$studentId" + } + } + } + ], + "weight": 0 + } + }, + "id": "u:38a6f5402e72", + "level": "link" + }, + @if(shiro.hasPermission("/backpass")){ + + { + "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,crud" + }, + { + "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/noStatus/$id" + }, + "reload": "pay,crud" + } + @} + + ], + "placeholder": "-", + "label": "操作" + } + ], + "bulkActions": [], + "itemActions": [], + "features": [ + "view", + "delete" + ], + "id": "u:a4ce7e3ae181" + }, + { + "type": "flex", + "className": "p-1", + "items": [ + { + "type": "button", + "id": "u:2cb16767ded5", + "label": "关闭", + "onEvent": { + "click": { + "actions": [ + { + "actionType": "closeDialog" + } + ] + } + }, + "level": "enhance" + } + ], + "style": { + "position": "relative" + }, + "id": "u:a0b6e9312424" + } + ], + "showCloseButton": true, + "showErrorMsg": true, + "showLoading": true, + "className": "app-popover", + "id": "u:b91085026056", + "actions": [] + } + } + ] + } + }, + "size": "xs" }, { "type": "crud", - "syncLocation": false, - "api": { - "method": "get", - "url": "/tStudent/classList/$id" + "id": "u:88517068101f", + "messages": { }, + "api": { + "url": "/tStudent/classList/$id", + "method": "get" + }, + "name": "pay", + "syncLocation": false, "columns": [ { "name": "className", @@ -735,32 +974,36 @@ "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", }, { "type": "text", "label": "剩余课时数", - "name": "restTime", - "id": "u:abb78021df40" + "name": "laveClassHours", + "id": "u:abb78021df40", + "placeholder": "-" }, { "type": "operation", @@ -776,52 +1019,157 @@ "actionType": "dialog", "dialog": { "type": "form", - "title": "弹框标题", + "title": "", "body": [ { - "type": "select", - "label": "请选择被转移学员", - "name": "select", - "id": "u:80a2266885a3", - "multiple": false, - "mode": "horizontal", - "size": "lg", - "horizontal": { - "leftFixed": "lg" + "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": "                                                 ", + "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": "   ", + "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" }, - "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" + "onEvent": { + "submitSucc": { + "weight": 0, + "actions": [ + { + "componentId": "u:88517068101f", + "actionType": "reload", + "args": { + "resetPage": true + }, + "dataMergeMode": "merge" + } + ] + } + } } ], "showCloseButton": true, "showErrorMsg": true, "showLoading": true, "className": "app-popover", - "id": "u:a612413d932d" + "id": "u:a612413d932d", + "api": { + "url": "/tStudent/toClass", + "method": "post", + "messages": { + } + }, + "actions": [ + ], + "onEvent": { + "submitSucc": { + "weight": 0, + "actions": [ + { + "componentId": "u:88517068101f", + "actionType": "reload", + "args": { + "resetPage": true + }, + "dataMergeMode": "merge" + } + ] + } + } } } ] } }, "id": "u:fcd7f36c5f88", - "level": "link" + "level": "link", + "disabledOn": "this.laveClassHours === 0 || this.classType===2", + "hiddenOn": "this.classType===2" }, { "type": "button", @@ -836,72 +1184,442 @@ "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": "        用户姓名:", + "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": false + }, + "api": { + "url": "/tStudent/giftSelect", + "method": "post", + "messages": {}, + "requestAdaptor": "", + "adaptor": "", + "dataType": "form-data", + "data": { + "name": "$name", + "phone": "$phone", + "id": "$id" + } + }, + "initFetch": false + }, + { + "type": "input-text", + "id": "u:fe0979ee23df", + "label": "id", + "name": "id", + "hidden": true + }, + { + "type": "container", + "id": "u:59d68a32f7fd", + "body": [ + { + "type": "tpl", + "id": "u:8224ab367da8", + "tpl": "                                                 ", + "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": "   ", + "inline": true, + "wrapperComponent": "" + }, + { + "type": "button", + "id": "u:008bc32396cc", + "label": "取消", + "onEvent": { + "click": { + "actions": [ + { + "actionType": "closeDialog" + } + ] + } + }, + "block": false + } + ], + "style": { + "position": "static", + "display": "block" + } } - ] - }, - { - "type": "button", - "label": "按钮", + ], + "api": { + "url": "/tStudent/giftTo", + "method": "post", + "requestAdaptor": "", + "adaptor": "", + "messages": {}, + "dataType": "form-data" + }, + "actions": [], "onEvent": { - "click": { + "submitSucc": { + "weight": 0, "actions": [ + { + "componentId": "u:88517068101f", + "actionType": "reload", + "args": { + "resetPage": true + }, + "dataMergeMode": "merge" + } ] } - }, - "id": "u:5fcf1222f6ea" + } }, { - "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 } } ] } }, "id": "u:ae1e6e73beb9", - "level": "link" + "level": "link", + "disabledOn": "this.laveClassHours === 0 || this.classType===2", + "hiddenOn": "this.classType===2" + }, + { + "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", + "map": { + "0": "减少", + "1": "增加" + } + }, + { + "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": "                                                                                                             ", + "inline": true, + "wrapperComponent": "" + }, + { + "type": "tpl", + "id": "u:a2cba9bb8751", + "tpl": "   ", + "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", + "disabledOn": "this.classType===2", + "hiddenOn": "this.classType===2" } ] } @@ -914,31 +1632,35 @@ "tpl": "        已报名课程:", "wrapperComponent": "" }, - { - "label": "ajax请求", + @if(shiro.hasPermission("/bback")){ + + { "type": "button", + "label": "退费", + "visible": true, "actionType": "ajax", - "api": { - "method": "get", - "url": "/ttt", - "data": { - "item": "$items" - }, - "id": "u:f706584d4a0c" - }, - "id": "u:38a6f5402e72" - }, - { - "label": "退费", - "type": "button", - "id": "u:4b1f37ea569c" - }, - { - "label": "退费", - "type": "button", - "id": "u:6997f0c17d7b" + "id": "u:38a6f5402e72", + "onEvent": { + "click": { + "weight": 0, + "actions": [ + { + "actionType": "url", + "args": { + "url": "/tStudent/backmoney", + "params": { + "ids": "$ids", + "id": "$id" + } + } + } + ] + } + } } - ], + @} + + ], "itemActions": [ ], "features": [ @@ -947,12 +1669,9 @@ "bulkUpdate", "delete" ], - "id": "u:88517068101f", "perPageAvailable": [ 10 ], - "messages": { - }, "headerToolbar": [ { "type": "bulk-actions", @@ -961,7 +1680,8 @@ ], "columnsTogglable": false, "affixHeader": true, - "source": "" + "source": "", + "itemCheckableOn": "this.classType === 1 &&this.laveClassHours > 0" }, { "type": "container", -- Gitblit v1.7.1