diff --git a/index.html b/index.html
index 59ee0fa..348daa2 100644
--- a/index.html
+++ b/index.html
@@ -47,13 +47,13 @@
const app = {
type: 'app',
- brandName: 'Admin',
+ brandName: 'Austin',
logo: '/public/logo.png',
header: {
type: 'tpl',
inline: false,
className: 'w-full',
- tpl: '
'
+ tpl: ''
},
// footer: '底部区域
',
// asideBefore: '菜单前面区域
',
diff --git a/pages/crud-edit.json b/pages/crud-edit.json
index 1a8fb83..771f2e2 100644
--- a/pages/crud-edit.json
+++ b/pages/crud-edit.json
@@ -13,7 +13,7 @@
"body": [
{
"type": "form",
- "initApi": "http://localhost:8080/messageTemplate/queryById/${params.id}",
+ "initApi": "http://localhost:8080/messageTemplate/query/${params.id}",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/$id",
"redirect": "/crud/list",
"controls": [
diff --git a/pages/crud-list.json b/pages/crud-list.json
index 9b76ae7..6db2f35 100644
--- a/pages/crud-list.json
+++ b/pages/crud-list.json
@@ -23,9 +23,10 @@
"mode": "inline",
"wrapWithPanel": false,
"submitText": "",
- "controls": [
+ "className": "m-b-sm",
+ "body": [
{
- "type": "text",
+ "type": "input-text",
"name": "keywords",
"placeholder": "通过关键字搜索",
"addOn": {
@@ -33,39 +34,18 @@
"type": "submit",
"className": "btn-success"
},
- "clearable": true
+ "clearable": true,
+ "size": "lg"
}
- ],
- "className": "m-b-sm"
+ ]
},
"bulkActions": [
- {
- "label": "批量修改",
- "type": "button",
- "actionType": "dialog",
- "level": "primary",
- "dialog": {
- "title": "批量编辑",
- "name": "sample-bulk-edit",
- "body": {
- "type": "form",
- "api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/bulkUpdate2",
- "controls": [
- {
- "type": "text",
- "name": "engine",
- "label": "Engine"
- }
- ]
- }
- }
- },
{
"label": "批量删除",
"type": "button",
"level": "danger",
"actionType": "ajax",
- "api": "delete:https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/$ids",
+ "api": "delete:http://localhost:8080/messageTemplate/delete/$ids",
"confirmText": "确定要批量删除?"
}
],
@@ -93,6 +73,25 @@
"60": "小程序"
}
},
+ {
+ "name": "templateType",
+ "label": "模板类型",
+ "type": "mapping",
+ "map": {
+ "10": "定时任务发送",
+ "20": "实时调用接口"
+ }
+ },
+ {
+ "name": "msgType",
+ "label": "消息类型",
+ "type": "mapping",
+ "map": {
+ "10": "通知类",
+ "20": "营销类",
+ "30": "验证码"
+ }
+ },
{
"name": "creator",
"label": "创建者"
@@ -151,13 +150,21 @@
"actionType": "link",
"link": "/crud/${id}/edit"
},
+ {
+ "type": "button",
+ "label": "复制",
+ "level": "warning",
+ "actionType": "ajax",
+ "confirmText": "您确认要复制?",
+ "api": "post:http://localhost:8080/messageTemplate/copy/$id"
+ },
{
"type": "button",
"label": "删除",
"level": "danger",
"actionType": "ajax",
"confirmText": "您确认要删除?",
- "api": "delete:https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/$id"
+ "api": "delete:http://localhost:8080/messageTemplate/delete/$id"
}
]
}
@@ -177,4 +184,4 @@
"bodyClassName": "panel-default"
}
]
-}
+}
\ No newline at end of file
diff --git a/pages/crud-new.json b/pages/crud-new.json
index 01dfc99..4e3d940 100644
--- a/pages/crud-new.json
+++ b/pages/crud-new.json
@@ -15,7 +15,21 @@
"mode": "horizontal",
"title": "",
"affixFooter": true,
- "api": "http://localhost:8080/messageTemplate/save",
+ "api": {
+ "url": "http://localhost:8080/messageTemplate/save",
+ "method": "post",
+ "data": {
+ "name": "${name}",
+ "idType": "${idType}",
+ "msgType": "${msgType}",
+ "templateType": "${templateType}",
+ "expectPushTime": "${expectPushTime}",
+ "proposer": "${proposer}",
+ "sendChannel": "${sendChannel}",
+ "sendAccount": "${sendAccount}",
+ "msgContent": "{\"content\":\"${content}\",\"url\":\"${url}\"}"
+ }
+ },
"actions": [
{
"label": "保存",
@@ -117,7 +131,9 @@
"mode": "",
"description": ""
}
- ]
+ ],
+ "className": "Collapse--lg",
+ "bodyClassName": "r-3x w-full text-lg r font-bold"
},
{
"type": "fieldSet",
@@ -193,11 +209,17 @@
"clearValueOnHidden": false
}
],
- "className": ""
+ "className": "Collapse--lg",
+ "bodyClassName": "r-3x w-full text-lg r font-bold"
}
],
"panelClassName": "Panel--default",
"bodyClassName": "text-lg"
}
- ]
-}
+ ],
+ "messages": {
+ },
+ "style": {
+ },
+ "bodyClassName": "p-lg p-t-lg p-r-lg p-b-lg p-l-lg m-none m-l-lg m-b-lg m-r-lg m-t-lg m-lg b-5x b-dark r-3x text-dark bg-white w-full font-bold text-lg"
+}
\ No newline at end of file