From 7e7f901b2172281dc294dfbc67e6ad00625f09f4 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期一, 04 三月 2024 10:11:21 +0800
Subject: [PATCH] 合并代码
---
cloud-server-management/src/main/webapp/WEB-INF/view/system/tStudent/tStudentEdit.html | 1983 +++++++++++++++++++++++++++++++++++++++++++++++----------
1 files changed, 1,628 insertions(+), 355 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 0c8b15d..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
@@ -36,402 +36,1675 @@
let amis = amisRequire('amis/embed');
// 通过替换下面这个配置来生成不同页面
let amisJSON = {
- "type": "page",
+ "type": "form",
+ "title": "编辑",
"body": [
{
- "type": "page",
- "api": {
- "method": "post",
- "url": "/api/v1/sys/user/v2/add",
- "messages": {
+ "type": "grid",
+ "id": "u:747bced162da",
+ "columns": [
+ ]
+ }, {
+ "type": "input-text",
+ "id": "u:32cb99df3eb8",
+ "label": "id",
+ "name": "id",
+ "size": "md",
+ "mode": "horizontal",
+ "hidden": true,
+ "value":`${item.id!}`,
+
+ },
+ {
+ "type": "input-text",
+ "id": "u:32cb99df3eb8",
+ "label": "id",
+ "name": "id",
+ "size": "md",
+ "mode": "horizontal",
+ "hidden": true
+ },
+ {
+ "type": "tpl",
+ "id": "u:2dd6bf52bf62",
+ "tpl": "学员信息",
+ "inline": true,
+ "wrapperComponent": "h2"
+ },
+ {
+ "type": "input-text",
+ "label": "所属用户",
+ "id": "u:b60e636c6098",
+ "name": "userName",
+ "size": "md",
+ "mode": "horizontal",
+ "required": true,
+ "disabled": true,
+ "value":`${item.userName!}`
+ },
+ {
+ "type": "input-text",
+ "label": "       姓名",
+ "id": "u:0b2463bbffe8",
+ "name": "name1",
+ "size": "md",
+ "mode": "horizontal",
+ "required": true,
+ "value":`${item.name!}`,
+ "disabled": true,
+ },
+ {
+ "type": "input-date",
+ "label": "       生日",
+ "name": "birthday",
+ "id": "u:9fe564fc31fc",
+ "size": "md",
+ "mode": "horizontal",
+ "embed": false,
+ "format": "YYYY-MM-DD hh:mm:ss",
+ "inputFormat": "YYYY-MM-DD",
+ "required": true,
+ "value":`${item.birthday!}`,
+ "disabled": true,
+ },
+ {
+ "type": "select",
+ "label": "       性别",
+ "name": "sex",
+ "id": "u:196a32204b25",
+ "size": "md",
+ "mode": "horizontal",
+ "options": [
+ {
+ "label": "男",
+ "value": "1"
+ },
+ {
+ "label": "女",
+ "value": "2"
}
+ ],
+ "multiple": false,
+ "required": true,
+ "value":`${item.sex!}`,
+ "disabled": true,
+ },
+ {
+ "type": "input-text",
+ "label": "联系电话",
+ "name": "phone1",
+ "id": "u:e7cf50e4f755",
+ "size": "md",
+ "mode": "horizontal",
+ "required": true,
+ "validationErrors": {
+ "isPhoneNumber": "请输入正确的手机号"
},
+ "validateOnChange": true,
+ "validations": {
+ "isPhoneNumber": true
+ },
+ "value":`${item.phone!}`,
+ "disabled": true,
+ },
+ {
+ "type": "input-text",
+ "label": "       身高",
+ "name": "height",
+ "id": "u:c69b5e6ae298",
+ "size": "md",
+ "mode": "horizontal",
+ "required": true,
+ "validationErrors": {
+ "maximum": "请输入正确的身高",
+ "isNumeric": "请输入数字"
+ },
+ "validateOnChange": true,
+ "validations": {
+ "maximum": 250,
+ "isNumeric": true
+ },
+ "addOn": {
+ "label": "cm",
+ "type": "text"
+ },
+ "value":`${item.height!}`,
+ "disabled": true,
+ },
+ {
+ "type": "input-text",
+ "label": "       体重",
+ "name": "weight",
+ "id": "u:e1e5d1a95e71",
+ "size": "md",
+ "mode": "horizontal",
+ "required": true,
+ "addOn": {
+ "label": "kg",
+ "type": "text"
+ },
+ "validationErrors": {
+ "maximum": "请输入正确的身高",
+ "isNumeric": "请输入数字"
+ },
+ "validateOnChange": true,
+ "validations": {
+ "maximum": 250,
+ "isNumeric": true
+ },
+ "value":`${item.weight!}`,
+ "disabled": true,
+ },
+ {
+ "type": "input-text",
+ "id": "u:75a1f3f0c491",
+ "label": "身份证号",
+ "name": "idCard",
+ "size": "md",
+ "mode": "horizontal",
+ "required": true,
+ "validationErrors": {
+ "isId": "请输入正确的身份证号"
+ },
+ "validateOnChange": true,
+ "validations": {
+ "isId": true
+ },
+ "value":`${item.idCard!}`,
+ "disabled": true,
+ },
+ {
+ "type": "tpl",
+ "tpl": "        体测表:",
+ "inline": true,
+ "wrapperComponent": "",
+ "id": "u:8224ab367da8"
+ },
+ {
+ "type": "images",
+ "id": "u:76216a114f2c",
+ "name": "images",
+ "value":`${images!}`,
+ "delimiter":";"
+ },
+ // {
+ // "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"
+ },
+ {
+ "type": "tpl",
+ "id": "u:2dd6bf52bf62",
+ "tpl": "学员信息",
+ "inline": true,
+ "wrapperComponent": "h2"
+ },
+ {
+ "type": "input-date",
+ "id": "u:9fe564fc31fc",
+ "label": "        入学时间:",
+ "embed": false,
+ "mode": "inline",
+ "size": "md",
+ "value":`${item.time}`,
+ "disabled": true,
+ },
+ {
+ "type": "tpl",
+ "id": "u:8224ab367da8",
+ "tpl": "  ",
+ "inline": true,
+ "wrapperComponent": ""
+ },
+ {
+ "type": "service",
+ "id": "u:59d68a32f7fd",
"body": [
{
- "type": "grid",
- "id": "u:747bced162da",
- "columns": [
- ]
- },
- {
"type": "tpl",
- "tpl": "学员信息",
- "inline": true,
- "wrapperComponent": "h2",
- "id": "u:2dd6bf52bf62"
-
- },
- {
- "type": "input-text",
- "label": "所属用户",
- "name": "userName",
- "id": "u:b60e636c6098",
- "size": "md",
- "mode": "horizontal",
- "value" :`${item.userName}`
- },
- {
- "type": "input-text",
- "label": "姓名",
- "name": "name",
- "id": "u:0b2463bbffe8",
- "size": "md",
- "mode": "horizontal",
- "value" :`${item.name}`
- },
- {
- "type": "input-date",
- "label": "生日",
- "name": "birthday",
- "id": "u:9fe564fc31fc",
- "embed": false,
- "size": "md",
- "mode": "horizontal",
- "value" :`${item.birthday}`
- },
- {
- "type": "select",
- "label": "性别",
- "name": "sex",
- "options": [
- {
- "label": "男",
- "value": "1"
- },
- {
- "label": "女",
- "value": "2"
- }
- ],
- "id": "u:196a32204b25",
- "multiple": false,
- "size": "md",
- "mode": "horizontal",
- "value" :`${item.sex}`
- },
- {
- "type": "input-text",
- "label": "联系电话",
- "name": "phone",
- "id": "u:e7cf50e4f755",
- "size": "md",
- "mode": "horizontal",
- "value" :`${item.phone}`
- },
- {
- "type": "input-text",
- "label": "身高",
- "name": "height",
- "id": "u:c69b5e6ae298",
- "size": "md",
- "mode": "horizontal",
- "value" :`${item.height}`
- },
- {
- "type": "input-text",
- "label": "体重",
- "name": "weight",
- "id": "u:e1e5d1a95e71",
- "size": "md",
- "mode": "horizontal",
- "value" :`${item.weight}`
- },
- {
- "type": "input-text",
- "label": "身份证号",
- "name": "idCard",
- "id": "u:75a1f3f0c491",
- "size": "md",
- "mode": "horizontal",
- "value" :`${item.idCard}`
- },
- {
- "type": "grid",
- "columns": [
- ],
- "id": "u:c54439aa7c6f"
- },
- {
- "type": "tpl",
- "tpl": "体测表:",
+ "id": "u:8224ab367da8",
+ "tpl": "       ",
"inline": true,
"wrapperComponent": "",
- "id": "u:8224ab367da8"
- },
- {
- "type": "image",
- "id": "u:9b276f60fd0f",
- "src" :`${item.lateralSurface}`
- },
- {
- "type": "divider",
- "id": "u:c8ddd15c688d"
+ "style": {
+ "paddingBottom": "100",
+ "marginBottom": "100"
+ }
},
{
"type": "tpl",
- "id": "u:2dd6bf52bf62",
- "tpl": "学员信息",
+ "id": "u:6653713899d6",
+ "tpl": "课时有效期:",
"inline": true,
- "wrapperComponent": "h2"
+ "wrapperComponent": "",
+ "style": {
+ "paddingBottom": "100",
+ "marginBottom": "100"
+ }
},
{
- "type": "input-date",
- "label": "入学时间",
- "name": "birthday",
- "id": "u:9fe564fc31fc",
- "embed": false,
- "mode": "horizontal",
- "size": "md"
- },
- {
- "type": "input-date",
- "label": "课时有效期",
- "name": "birthday",
- "id": "u:fe7e8d2223a3",
- "embed": false,
- "mode": "inline",
- "size": "md"
- },
- {
- "type": "button",
- "label": "按钮",
- "onEvent": {
- "click": {
- "actions": [
- {
- "args": {},
- "script": "parent.layer.close(window.parent.TStudent.layerIndex);\nconsole.log(\"===关闭\")",
- "actionType": "custom"
- }
- ]
- }
- },
- "id": "u:e4351e254501",
- "block": false,
- "size": "sm"
- },
- {
- "type": "button",
- "label": "按钮",
- "id":"ttt",
- "onEvent": {
- "click": {
- "actions": [
- ]
- }
- },
- "id": "u:301c5568d984",
- "block": false,
- "size": "sm"
- },
- {
- "type": "input-text",
- "label": "总课时数",
- "name": "idCard",
- "id": "u:75a1f3f0c491",
- "mode": "horizontal",
- "size": "md"
- },
- {
- "type": "input-text",
- "label": "已学课时数",
- "name": "idCard",
- "id": "u:885bcd604fdd",
- "mode": "horizontal",
- "size": "md"
- },
- {
- "type": "input-text",
- "label": "剩余课时数",
- "name": "idCard",
- "id": "u:0b490e767715",
- "mode": "horizontal",
- "size": "md"
- },
- {
- "type": "input-text",
- "label": "赠送课时数",
- "name": "idCard",
- "id": "u:9c67ae2b5106",
- "mode": "horizontal",
- "size": "md"
+ "type": "date",
+ "id": "u:5126d1e417f2",
+ "valueFormat": "YYYY-MM-DD",
+ "format": "YYYY-MM-DD",
+ "name": "useTime"
},
{
"type": "tpl",
"id": "u:8224ab367da8",
- "tpl": "已报名课程:",
+ "tpl": "        ",
+ "inline": true,
+ "wrapperComponent": ""
+ },
+ {
+ "type": "button",
+ "id": "u:eb0bf26b811c",
+ "label": "更改有效期",
+ "onEvent": {
+ "click": {
+ "actions": [
+ {
+ "actionType": "dialog",
+ "dialog": {
+ "type": "form",
+ "title": "",
+ "body": [
+ {
+ "type": "form",
+ "title": "",
+ "body": [
+ {
+ "type": "tpl",
+ "id": "u:ad3ad29f909f",
+ "tpl": "                                             更改有效期",
+ "inline": true,
+ "wrapperComponent": "h3"
+ },
+ {
+ "type": "input-text",
+ "label": "id",
+ "name": "id",
+ "id": "u:eb67fad3f986",
+ "hidden": true
+ },
+ {
+ "type": "input-date",
+ "label": "请选择时间:",
+ "name": "date",
+ "id": "u:b987087f666d",
+ "description": "",
+ "placeholder": "请选择时间",
+ "format": "YYYY-MM-DD",
+ "inputFormat": "YYYY-MM-DD"
+ },
+ {
+ "type": "input-image",
+ "label": "上传申请凭证:",
+ "name": "pleasePic",
+ "autoUpload": true,
+ "proxy": true,
+ "uploadType": "fileReceptor",
+ "imageClassName": "r w-full",
+ "id": "u:301ea2de9546",
+ "accept": ".jpeg, .jpg, .png, .gif",
+ "multiple": false,
+ "hideUploadButton": false,
+ "receiver": {
+ "url": "/mgr/uploadImgAmis",
+ "method": "post"
+ },
+ "required": true
+ },
+ {
+ "type": "input-image",
+ "id": "u:8ead1783a724",
+ "label": "上传申请凭证:",
+ "name": "passPic",
+ "autoUpload": true,
+ "proxy": true,
+ "uploadType": "fileReceptor",
+ "imageClassName": "r w-full",
+ "accept": ".jpeg, .jpg, .png, .gif",
+ "multiple": false,
+ "hideUploadButton": false,
+ "receiver": {
+ "url": "/mgr/uploadImgAmis",
+ "method": "post"
+ },
+ "required": 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:044fac037276",
+ "actionType": "submit"
+ },
+ {
+ "actionType": "reload",
+ "componentId": "u:59d68a32f7fd",
+ "dataMergeMode": "merge"
+ }
+ ]
+ }
+ },
+ "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"
+ }
+ }
+ ],
+ "id": "u:c2157dea4513",
+ "api": {
+ "url": "/tStudent/updateClassTime",
+ "method": "post",
+ "requestAdaptor": "",
+ "adaptor": "",
+ "messages": {
+ },
+ "dataType": "form-data"
+ },
+ "actions": [
+ ],
+ "onEvent": {
+ "submitSucc": {
+ "weight": 0,
+ "actions": [
+ {
+ "componentId": "u:59d68a32f7fd",
+ "actionType": "reload",
+ "dataMergeMode": "merge"
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "showCloseButton": true,
+ "showErrorMsg": true,
+ "showLoading": true,
+ "className": "app-popover",
+ "id": "u:044fac037276",
+ "closeOnEsc": false,
+ "actions": [
+ ]
+ }
+ }
+ ]
+ }
+ },
+ "block": false,
+ "size": "xs",
+ "level": "info"
+ },
+ {
+ "type": "tpl",
+ "id": "u:8224ab367da8",
+ "tpl": "        ",
"inline": true,
"wrapperComponent": ""
},
{
"type": "button",
"id": "u:e4351e254501",
- "label": "按钮",
+ "label": "变更记录",
"onEvent": {
"click": {
"actions": [
- ]
- }
- },
- "block": false,
- "size": "sm"
- },
- {
- "type": "button",
- "id": "u:ea5e20546af6",
- "label": "按钮",
- "onEvent": {
- "click": {
- "actions": [
- ]
- }
- },
- "block": false,
- "size": "sm"
- },
- {
- "type": "crud",
- "id": "u:109d99e159cd",
- "syncLocation": false,
- "api": {
- "method": "get",
- "url": ""
- },
- "columns": [
- {
- "name": "id",
- "label": "ID",
- "type": "text",
- "id": "u:21721a4d89f6"
- },
- {
- "type": "text",
- "label": "课程名称",
- "id": "u:7f42dca56223"
- },
- {
- "type": "text",
- "label": "课程类型",
- "id": "u:3448716fbf69"
- },
- {
- "type": "date",
- "label": "报名时间",
- "id": "u:fabf6836f645"
- },
- {
- "type": "text",
- "label": "总课时数",
- "id": "u:29594df9f5ac"
- },
- {
- "type": "text",
- "label": "已上课时数",
- "id": "u:d5c9d7549565"
- },
- {
- "type": "text",
- "label": "剩余课时数",
- "id": "u:57f34a127f19"
- },
- {
- "type": "operation",
- "label": "操作",
- "buttons": [
{
- "type": "button",
- "label": "删除",
- "actionType": "ajax",
- "level": "link",
- "className": "text-danger",
- "confirmText": "确定要删除?",
- "api": {
- "method": "post",
- "url": ""
- },
- "id": "u:0102419e28c2"
- },
- {
- "label": "查看",
- "type": "button",
"actionType": "dialog",
- "level": "link",
"dialog": {
- "title": "查看详情",
- "body": {
- "type": "form",
- "api": "xxx/update",
- "body": [
- {
- "name": "id",
- "label": "ID",
- "type": "static"
+ "type": "form",
+ "title": "",
+ "body": [
+ {
+ "type": "input-text",
+ "label": "id",
+ "name": "id",
+ "id": "u:0a5bc6f58ee8",
+ "hidden": true
+ },
+ {
+ "type": "crud",
+ "syncLocation": false,
+ "api": {
+ "method": "get",
+ "url": "/tStudent/getHisory/$id"
},
- {
- "name": "engine",
- "label": "渲染引擎",
- "type": "static"
+ "columns": [
+ {
+ "name": "date",
+ "label": "操作时间",
+ "type": "date",
+ "id": "u:b652786dc9df",
+ "valueFormat": "YYYY-MM-DD HH:mm:ss",
+ "format": "YYYY-MM-DD HH:mm",
+ "placeholder": "-"
+ },
+ {
+ "type": "text",
+ "label": "操作人",
+ "name": "createBy",
+ "id": "u:88bf448f69b0"
+ },
+ {
+ "type": "image",
+ "label": "申请凭证",
+ "name": "pleasePic",
+ "id": "u:b22cfb737009"
+ },
+ {
+ "type": "image",
+ "label": "同意凭证",
+ "name": "passPic",
+ "id": "u:2a9071d0bda1"
+ }
+ ],
+ "bulkActions": [
+ ],
+ "itemActions": [
+ ],
+ "id": "u:bfea49b7b171",
+ "perPageAvailable": [
+ 10
+ ],
+ "messages": {
}
- ]
- }
- },
- "id": "u:e2e4d6c5e962"
- },
- {
- "label": "编辑",
- "type": "button",
- "actionType": "dialog",
- "level": "link",
- "dialog": {
- "title": "编辑",
- "body": {
- "type": "form",
- "api": "xxx/update",
- "body": [
- {
- "name": "id",
- "label": "ID",
- "type": "input-text"
+ }
+ ],
+ "showCloseButton": true,
+ "showErrorMsg": true,
+ "showLoading": true,
+ "className": "app-popover",
+ "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"
},
- {
- "name": "engine",
- "label": "渲染引擎",
- "type": "input-text"
- }
- ]
- }
- },
- "id": "u:5ea94f031686"
+ "id": "u:ad4c2c8f0190"
+ }
+ ],
+ "size": "md"
+ }
}
- ],
- "id": "u:13c653566505"
+ ]
}
- ],
- "bulkActions": [
- ],
- "itemActions": [
- ],
- "features": [
- "delete",
- "view",
- "update"
+ },
+ "block": false,
+ "size": "xs",
+ "level": "info"
+ },
+ {
+ "type": "tpl",
+ "id": "u:8224ab367da8",
+ "tpl": "                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ",
+ "inline": true,
+ "wrapperComponent": ""
+ }
+ ],
+ "style": {
+ "position": "static",
+ "display": "inline-block"
+ },
+ "isFixedHeight": false,
+ "isFixedWidth": false,
+ "wrapperComponent": "div",
+ "messages": {
+ },
+ "api": {
+ "url": "/tStudent/getUseTime/$id",
+ "method": "get"
+ }
+ },
+ {
+ "type": "input-text",
+ "id": "u:8c717c6b4700",
+ "label": "总课时数:",
+ "name": "idCard0",
+ "mode": "horizontal",
+ "size": "md",
+ "themeCss": {
+ "labelClassName": {
+ "padding-and-margin:default": {
+ "marginTop": "",
+ "marginRight": "",
+ "marginBottom": "",
+ "marginLeft": ""
+ }
+ }
+ },
+ "labelClassName": "labelClassName-49dd1bda82f4",
+ "value":`${studentClassInfo.totalHours}`,
+ "disabled": true,
+ },
+ {
+ "type": "input-text",
+ "id": "u:885bcd604fdd",
+ "label": "已学课时数:",
+ "name": "idCard1",
+ "mode": "horizontal",
+ "size": "md",
+ "value":`${studentClassInfo.hasHours}`,
+ "disabled": true,
+ },
+ {
+ "type": "input-text",
+ "id": "u:0b490e767715",
+ "label": "剩余课时数",
+ "name": "idCard2",
+ "mode": "horizontal",
+ "size": "md",
+ "value":`${studentClassInfo.restHours}`,
+ "disabled": true,
+ },
+ {
+ "type": "input-text",
+ "id": "u:9c67ae2b5106",
+ "label": "赠送课时数",
+ "name": "idCard3",
+ "mode": "horizontal",
+ "size": "md",
+ "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",
+ "id": "u:88517068101f",
+ "messages": {
+ },
+ "api": {
+ "url": "/tStudent/classList/$id",
+ "method": "get"
+ },
+ "name": "pay",
+ "syncLocation": false,
+ "columns": [
+ {
+ "name": "className",
+ "label": "课程名称",
+ "type": "text",
+ "id": "u:eff92c911684"
+ },
+ {
+ "type": "mapping",
+ "label": "课程类型",
+ "name": "classType",
+ "id": "u:2f1091a380a8",
+ "map": {
+ "1": "常规课",
+ "2": "假期课",
+ "3": "体验课"
+ }
+ },
+ {
+ "type": "date",
+ "label": "报名时间",
+ "name": "insertTime",
+ "id": "u:36ab5e408a48",
+ "valueFormat": "x"
+ },
+ {
+ "type": "text",
+ "label": "总课时数",
+ "name": "totalClassHours",
+ "id": "u:fba93556fb2e"
+ },
+ {
+ "type": "text",
+ "label": "已上课时数",
+ "name": "hasClassHours",
+ "id": "u:b55a5ac7f49d",
+ },
+ {
+ "type": "text",
+ "label": "剩余课时数",
+ "name": "laveClassHours",
+ "id": "u:abb78021df40",
+ "placeholder": "-"
+ },
+ {
+ "type": "operation",
+ "id": "u:bbd866281f8f",
+ "buttons": [
+ {
+ "type": "button",
+ "label": "转移",
+ "onEvent": {
+ "click": {
+ "actions": [
+ {
+ "actionType": "dialog",
+ "dialog": {
+ "type": "form",
+ "title": "",
+ "body": [
+ {
+ "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"
+ },
+ "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",
+ "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",
+ "disabledOn": "this.laveClassHours === 0 || this.classType===2",
+ "hiddenOn": "this.classType===2"
+ },
+ {
+ "type": "button",
+ "label": "赠课",
+ "onEvent": {
+ "click": {
+ "actions": [
+ {
+ "actionType": "dialog",
+ "dialog": {
+ "type": "form",
+ "title": "弹框标题",
+ "body": [
+ {
+ "type": "form",
+ "id": "u:57ea84073397",
+ "title": "",
+ "body": [
+ {
+ "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"
+ }
+ }
+ ],
+ "api": {
+ "url": "/tStudent/giftTo",
+ "method": "post",
+ "requestAdaptor": "",
+ "adaptor": "",
+ "messages": {},
+ "dataType": "form-data"
+ },
+ "actions": [],
+ "onEvent": {
+ "submitSucc": {
+ "weight": 0,
+ "actions": [
+ {
+ "componentId": "u:88517068101f",
+ "actionType": "reload",
+ "args": {
+ "resetPage": true
+ },
+ "dataMergeMode": "merge"
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": "u:59d68a32f7fd",
+ "type": "container",
+ "body": [],
+ "style": {
+ "position": "static",
+ "display": "block"
+ }
+ }
+ ],
+ "showCloseButton": true,
+ "showErrorMsg": true,
+ "showLoading": true,
+ "className": "app-popover",
+ "id": "u:552bd1b3464d",
+ "actions": [],
+ "canAccessSuperData": false
+ }
+ }
+ ]
+ }
+ },
+ "id": "u:ae1e6e73beb9",
+ "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"
+ }
]
}
],
- "id": "u:7c5f75a3b7b5",
- "actions": [
- ]
+ "bulkActions": [
+ {
+ "type": "tpl",
+ "id": "u:8224ab367da8",
+ "inline": true,
+ "tpl": "        已报名课程:",
+ "wrapperComponent": ""
+ },
+ @if(shiro.hasPermission("/bback")){
+
+ {
+ "type": "button",
+ "label": "退费",
+ "visible": true,
+ "actionType": "ajax",
+ "id": "u:38a6f5402e72",
+ "onEvent": {
+ "click": {
+ "weight": 0,
+ "actions": [
+ {
+ "actionType": "url",
+ "args": {
+ "url": "/tStudent/backmoney",
+ "params": {
+ "ids": "$ids",
+ "id": "$id"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ @}
+
+ ],
+ "itemActions": [
+ ],
+ "features": [
+ "update",
+ "view",
+ "bulkUpdate",
+ "delete"
+ ],
+ "perPageAvailable": [
+ 10
+ ],
+ "headerToolbar": [
+ {
+ "type": "bulk-actions",
+ "align": "left"
+ }
+ ],
+ "columnsTogglable": false,
+ "affixHeader": true,
+ "source": "",
+ "itemCheckableOn": "this.classType === 1 &&this.laveClassHours > 0"
+ },
+ {
+ "type": "container",
+ "body": [
+ ],
+ "style": {
+ "position": "static",
+ "display": "block"
+ },
+ "id": "u:1afed7a178d1"
}
],
- "id": "u:2cb85ab1ec8c",
- "showCloseButton": true,
- "closeOnEsc": true,
- "showErrorMsg": true,
- "showLoading": true,
- "dataMapSwitch": false,
- "size": "md",
- "aside": [
- ]
+ "id": "u:7c5f75a3b7b5",
+ "api": {
+ "method": "post",
+ "url": "/tStudent/update",
+ "messages": {
+ }
+ },
+ "actions": [
+ ],
+ "mode": "normal",
+ "validateOnChange": true
};
let amisScoped = amis.embed('#root', amisJSON);
--
Gitblit v1.7.1