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 | 464 ++++++++++++++++++++++++++++++--------------------------- 1 files changed, 242 insertions(+), 222 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 ced5d12..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 @@ -221,68 +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", - "value":`${pic1!}`, - "disabled": true, + "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", - "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": "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" @@ -298,11 +305,10 @@ "type": "input-date", "id": "u:9fe564fc31fc", "label": "        入学时间:", - "name": "birthday", "embed": false, "mode": "inline", "size": "md", - "value":`${studentClassInfo.inDate}`, + "value":`${item.time}`, "disabled": true, }, { @@ -343,7 +349,7 @@ "id": "u:5126d1e417f2", "valueFormat": "YYYY-MM-DD", "format": "YYYY-MM-DD", - "name":"useTime" + "name": "useTime" }, { "type": "tpl", @@ -408,7 +414,8 @@ "receiver": { "url": "/mgr/uploadImgAmis", "method": "post" - } + }, + "required": true }, { "type": "input-image", @@ -425,7 +432,8 @@ "receiver": { "url": "/mgr/uploadImgAmis", "method": "post" - } + }, + "required": true }, { "type": "container", @@ -494,10 +502,24 @@ "method": "post", "requestAdaptor": "", "adaptor": "", - "messages": {}, + "messages": { + }, "dataType": "form-data" }, - "actions": [] + "actions": [ + ], + "onEvent": { + "submitSucc": { + "weight": 0, + "actions": [ + { + "componentId": "u:59d68a32f7fd", + "actionType": "reload", + "dataMergeMode": "merge" + } + ] + } + } } ], "showCloseButton": true, @@ -506,13 +528,9 @@ "className": "app-popover", "id": "u:044fac037276", "closeOnEsc": false, - "actions": [] + "actions": [ + ] } - }, - { - "componentId": "u:59d68a32f7fd", - "actionType": "reload", - "data": null } ] } @@ -754,6 +772,7 @@ "id": "u:e6a3e106fac0", "tpl": "退费申请:", "inline": true, + "wrapperComponent": "", "style": { "paddingBottom": "100", @@ -773,9 +792,8 @@ "actionType": "dialog", "dialog": { "type": "dialog", - "title": "弹框标题", + "title": "退费列表", "body": [ - { "type": "input-text", "id": "u:895313026d71", @@ -786,7 +804,7 @@ { "type": "crud", "syncLocation": false, - "name":"crud", + "name": "crud", "api": { "method": "get", "url": "/tStudent/getBackList/$id" @@ -827,7 +845,7 @@ "url": "/tStudent/backmoney", "params": { "ids": "$ids", - "id": "$id" + "id": "$studentId" } } } @@ -836,16 +854,16 @@ } }, "id": "u:38a6f5402e72", - "level": "link", - "actionType": "ajax" + "level": "link" }, - { + @if(shiro.hasPermission("/backpass")){ + + { "type": "button", "label": "同意", "onEvent": { "click": { - "actions": [ - ], + "actions": [], "weight": 0 } }, @@ -857,8 +875,29 @@ "method": "post", "url": "/tStudent/changeStatus/$id" }, - "reload": "pay" + "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": "操作" @@ -871,13 +910,39 @@ "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" + "id": "u:b91085026056", + "actions": [] } } ] @@ -887,12 +952,15 @@ }, { "type": "crud", - "name":"pay", - "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", @@ -929,7 +997,6 @@ "label": "已上课时数", "name": "hasClassHours", "id": "u:b55a5ac7f49d", - "value": "$totalClassHours-$totalClassHours" }, { "type": "text", @@ -952,7 +1019,7 @@ "actionType": "dialog", "dialog": { "type": "form", - "title": "弹框标题", + "title": "", "body": [ { "type": "form", @@ -1048,6 +1115,21 @@ "messages": { }, "dataType": "form-data" + }, + "onEvent": { + "submitSucc": { + "weight": 0, + "actions": [ + { + "componentId": "u:88517068101f", + "actionType": "reload", + "args": { + "resetPage": true + }, + "dataMergeMode": "merge" + } + ] + } } } ], @@ -1063,14 +1145,31 @@ } }, "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", @@ -1142,7 +1241,7 @@ ], "messages": {}, "loadingConfig": { - "show": true + "show": false }, "api": { "url": "/tStudent/giftSelect", @@ -1156,7 +1255,8 @@ "phone": "$phone", "id": "$id" } - } + }, + "initFetch": false }, { "type": "input-text", @@ -1229,7 +1329,22 @@ "messages": {}, "dataType": "form-data" }, - "actions": [] + "actions": [], + "onEvent": { + "submitSucc": { + "weight": 0, + "actions": [ + { + "componentId": "u:88517068101f", + "actionType": "reload", + "args": { + "resetPage": true + }, + "dataMergeMode": "merge" + } + ] + } + } }, { "id": "u:59d68a32f7fd", @@ -1254,7 +1369,9 @@ } }, "id": "u:ae1e6e73beb9", - "level": "link" + "level": "link", + "disabledOn": "this.laveClassHours === 0 || this.classType===2", + "hiddenOn": "this.classType===2" }, { "type": "button", @@ -1266,7 +1383,7 @@ "actionType": "dialog", "dialog": { "type": "dialog", - "title": "弹框标题", + "title": "课时变更记录", "body": [ { "type": "form", @@ -1279,8 +1396,7 @@ "api": { "url": "/tStudent/changelist/$id", "method": "post", - "messages": { - }, + "messages": {}, "requestAdaptor": "", "adaptor": "", "dataType": "form" @@ -1298,7 +1414,11 @@ "name": "changeType", "label": "变更类型", "type": "mapping", - "id": "u:e2b292dd63d0" + "id": "u:e2b292dd63d0", + "map": { + "0": "减少", + "1": "增加" + } }, { "type": "text", @@ -1313,10 +1433,8 @@ "id": "u:8ba95bfd5e56" } ], - "bulkActions": [ - ], - "itemActions": [ - ], + "bulkActions": [], + "itemActions": [], "features": [ "filter" ], @@ -1327,7 +1445,7 @@ { "type": "input-date-range", "name": "start", - "label": "上传时间", + "label": "时间", "id": "u:b2fb064aa9ac", "inputFormat": "YYYY-MM-DD HH:mm", "format": "YYYY-MM-DD HH:mm", @@ -1336,7 +1454,7 @@ }, { "type": "select", - "label": "是否启用", + "label": "变更类型", "name": "changeType", "options": [ { @@ -1422,8 +1540,7 @@ "perPageAvailable": [ 10 ], - "messages": { - }, + "messages": {}, "perPageField": "size" }, { @@ -1478,12 +1595,10 @@ "method": "post", "requestAdaptor": "", "adaptor": "", - "messages": { - }, + "messages": {}, "dataType": "form-data" }, - "actions": [ - ] + "actions": [] } ], "showCloseButton": true, @@ -1491,8 +1606,7 @@ "showLoading": true, "className": "", "id": "u:f66fa4de8251", - "actions": [ - ], + "actions": [], "canAccessSuperData": false, "wrapWithPanel": false, "size": "xl", @@ -1503,9 +1617,10 @@ } }, "id": "u:dd3110deaf9d", - "level": "link" + "level": "link", + "disabledOn": "this.classType===2", + "hiddenOn": "this.classType===2" } - ] } ], @@ -1517,9 +1632,12 @@ "tpl": "        已报名课程:", "wrapperComponent": "" }, - { + @if(shiro.hasPermission("/bback")){ + + { "type": "button", "label": "退费", + "visible": true, "actionType": "ajax", "id": "u:38a6f5402e72", "onEvent": { @@ -1539,106 +1657,10 @@ ] } } - }, - { - "type": "button", - "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": "退费", - "type": "button", - "id": "u:6997f0c17d7b" } - ], + @} + + ], "itemActions": [ ], "features": [ @@ -1647,12 +1669,9 @@ "bulkUpdate", "delete" ], - "id": "u:88517068101f", "perPageAvailable": [ 10 ], - "messages": { - }, "headerToolbar": [ { "type": "bulk-actions", @@ -1661,7 +1680,8 @@ ], "columnsTogglable": false, "affixHeader": true, - "source": "" + "source": "", + "itemCheckableOn": "this.classType === 1 &&this.laveClassHours > 0" }, { "type": "container", -- Gitblit v1.7.1