| | |
| | | // 通过替换下面这个配置来生成不同页面 |
| | | let amisJSON = { |
| | | "type": "page", |
| | | "id": "u:8c028a595aa6", |
| | | "body": [ |
| | | { |
| | | "type": "form", |
| | |
| | | "tpl": "                 *所属运营商:", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | |
| | | "style": { |
| | | "marginLeft": "0", |
| | | "fontFamily": "", |
| | | "fontSize": 18 |
| | | "fontFamily": "" |
| | | }, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | }, |
| | | "font:default": { |
| | | "fontSize": 18 |
| | | } |
| | | } |
| | | } |
| | | },{ |
| | | }, |
| | | { |
| | | "type": "select", |
| | | "label": "", |
| | | "name": "operationId", |
| | |
| | | "source": { |
| | | "url": "/ball/yunying", |
| | | "method": "post", |
| | | "messages": { |
| | | } |
| | | "messages": {} |
| | | }, |
| | | "labelField": "value", |
| | | "valueField": "id" |
| | | },{ |
| | | }, |
| | | { |
| | | "type": "checkbox", |
| | | "option": "平台", |
| | | "name": "is", |
| | |
| | | "trueValue": "平台", |
| | | "falseValue": 0, |
| | | "mode": "inline" |
| | | |
| | | }, |
| | | { |
| | | "type": "select", |
| | |
| | | "multiple": false, |
| | | "mode": "horizontal", |
| | | "size": "md", |
| | | "value":"", |
| | | "value": "", |
| | | "horizontal": { |
| | | "leftFixed": "lg" |
| | | }, |
| | | "source": { |
| | | "url": "/coursePackage/queryProvince", |
| | | "method": "get", |
| | | "messages": { |
| | | }, |
| | | "messages": {}, |
| | | "sendOn": "", |
| | | "requestAdaptor": "", |
| | | "adaptor": "", |
| | | "silent": true |
| | | |
| | | }, |
| | | "onEvent": { |
| | | "change": { |
| | |
| | | "source": { |
| | | "url": "/coursePackage/queryCity1/$province", |
| | | "method": "post", |
| | | "messages": { |
| | | }, |
| | | "messages": {}, |
| | | "sendOn": "this.province != null &&this.province != ' '", |
| | | "requestAdaptor": "", |
| | | "adaptor": "", |
| | |
| | | }, |
| | | "source": { |
| | | "method": "post", |
| | | "url": "/coursePackage/queryStore1/$city", |
| | | "messages": { |
| | | }, |
| | | "url": "/coursePackage/queryStore1/$city/$operationId", |
| | | "messages": {}, |
| | | "sendOn": "this.city != null &&this.city != ' '", |
| | | "requestAdaptor": "", |
| | | "adaptor": "", |
| | |
| | | "type": "select", |
| | | "label": "所属场地:", |
| | | "name": "site", |
| | | "value":"", |
| | | "value": "", |
| | | "id": "u:0d288f4bdd8e", |
| | | "multiple": false, |
| | | "mode": "horizontal", |
| | |
| | | "source": { |
| | | "url": "/coursePackage/querySite/$store", |
| | | "method": "post", |
| | | "messages": { |
| | | }, |
| | | "messages": {}, |
| | | "dataType": "form", |
| | | "requestAdaptor": "", |
| | | "adaptor": "", |
| | |
| | | "wrapperComponent": "", |
| | | "id": "u:587781d5d181", |
| | | "style": { |
| | | "marginLeft": "0", |
| | | "fontFamily": "", |
| | | "fontSize": 18 |
| | | "fontFamily": "" |
| | | }, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | }, |
| | | "font:default": { |
| | | "fontSize": 18 |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | }, |
| | | "value": "", |
| | | "required": true |
| | | , |
| | | "value":"" |
| | | }, |
| | | { |
| | | "type": "input-text", |
| | |
| | | "mode": "inline", |
| | | "clearValueOnHidden": false, |
| | | "hidden": false, |
| | | "required": true |
| | | , |
| | | "value":"" |
| | | "required": true, |
| | | "value": "" |
| | | }, |
| | | { |
| | | "type": "button", |
| | |
| | | "multiple": false, |
| | | "hideUploadButton": false, |
| | | "fixedSize": false |
| | | },{ |
| | | }, |
| | | { |
| | | "type": "tpl", |
| | | "id": "u:587781d5d181", |
| | | "tpl": "          推荐像素:780px x 424px", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "marginLeft": "0" |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "tpl": "                                ", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "marginLeft": "0" |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "labelClassName": "text-dark m-b text-lg" |
| | | } |
| | | ], |
| | | "actions": [ |
| | | ], |
| | | "actions": [], |
| | | "id": "u:8445330f451b", |
| | | "bodyClassName": "no-border b-light", |
| | | "className": "no-border" |
| | |
| | | "multiple": false, |
| | | "hideUploadButton": false, |
| | | "fixedSize": false |
| | | },{ |
| | | }, |
| | | { |
| | | "type": "tpl", |
| | | "id": "u:587781d5d181", |
| | | "tpl": "          推荐像素:780px x 424px", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "marginLeft": "0" |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "tpl": "                                ", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "marginLeft": "0" |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "labelClassName": "text-dark m-b text-lg" |
| | | } |
| | | ], |
| | | "actions": [ |
| | | ], |
| | | "actions": [], |
| | | "id": "u:8445330f451b", |
| | | "bodyClassName": "no-border b-light", |
| | | "className": "no-border" |
| | |
| | | "multiple": false, |
| | | "hideUploadButton": false, |
| | | "fixedSize": false |
| | | },{ |
| | | }, |
| | | { |
| | | "type": "tpl", |
| | | "id": "u:587781d5d181", |
| | | "tpl": "          推荐像素:780px x 424px", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "marginLeft": "0" |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "tpl": "                                ", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "marginLeft": "0" |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "labelClassName": "text-dark m-b text-lg" |
| | | } |
| | | ], |
| | | "actions": [ |
| | | ], |
| | | "actions": [], |
| | | "id": "u:8445330f451b", |
| | | "bodyClassName": "no-border b-light", |
| | | "className": "no-border" |
| | |
| | | "multiple": false, |
| | | "hideUploadButton": false, |
| | | "fixedSize": false |
| | | },{ |
| | | }, |
| | | { |
| | | "type": "tpl", |
| | | "id": "u:587781d5d181", |
| | | "tpl": "          推荐像素:780px x 424px", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "marginLeft": "0" |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "tpl": "                                ", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "marginLeft": "0" |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "labelClassName": "text-dark m-b text-lg" |
| | | } |
| | | ], |
| | | "actions": [ |
| | | ], |
| | | "actions": [], |
| | | "id": "u:89bd6bd7e231", |
| | | "bodyClassName": "no-border b-light", |
| | | "className": "no-border" |
| | |
| | | "multiple": false, |
| | | "hideUploadButton": false, |
| | | "fixedSize": false |
| | | },{ |
| | | }, |
| | | { |
| | | "type": "tpl", |
| | | "id": "u:587781d5d181", |
| | | "tpl": "          推荐像素:780px x 424px", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "marginLeft": "0" |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "tpl": "                                ", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "marginLeft": "0" |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "labelClassName": "text-dark m-b text-lg" |
| | | } |
| | | ], |
| | | "actions": [ |
| | | ], |
| | | "actions": [], |
| | | "id": "u:8445330f451b", |
| | | "bodyClassName": "no-border b-light", |
| | | "className": "no-border" |
| | |
| | | "multiple": false, |
| | | "hideUploadButton": false, |
| | | "fixedSize": false |
| | | },{ |
| | | }, |
| | | { |
| | | "type": "tpl", |
| | | "id": "u:587781d5d181", |
| | | "tpl": "          推荐像素:780px x 424px", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "marginLeft": "0" |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "tpl": "                                ", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "marginLeft": "0" |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "labelClassName": "text-dark m-b text-lg" |
| | | } |
| | | ], |
| | | "actions": [ |
| | | ], |
| | | "actions": [], |
| | | "id": "u:8445330f451b", |
| | | "bodyClassName": "no-border b-light", |
| | | "className": "no-border" |
| | |
| | | "multiple": false, |
| | | "hideUploadButton": false, |
| | | "fixedSize": false |
| | | },{ |
| | | }, |
| | | { |
| | | "type": "tpl", |
| | | "id": "u:587781d5d181", |
| | | "tpl": "          推荐像素:780px x 424px", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "marginLeft": "0" |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "tpl": "                                ", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "marginLeft": "0" |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "labelClassName": "text-dark m-b text-lg" |
| | | } |
| | | ], |
| | | "actions": [ |
| | | ], |
| | | "actions": [], |
| | | "id": "u:20efa0a87285", |
| | | "bodyClassName": "no-border b-light", |
| | | "className": "no-border" |
| | |
| | | "multiple": false, |
| | | "hideUploadButton": false, |
| | | "fixedSize": false |
| | | },{ |
| | | }, |
| | | { |
| | | "type": "tpl", |
| | | "id": "u:587781d5d181", |
| | | "tpl": "          推荐像素:780px x 424px", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "marginLeft": "0" |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "tpl": "                                ", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "marginLeft": "0" |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "labelClassName": "text-dark m-b text-lg" |
| | | } |
| | | ], |
| | | "actions": [ |
| | | ], |
| | | "actions": [], |
| | | "id": "u:4b37f6a2c067", |
| | | "bodyClassName": "no-border b-light", |
| | | "className": "no-border" |
| | |
| | | "multiple": false, |
| | | "hideUploadButton": false, |
| | | "fixedSize": false |
| | | },{ |
| | | }, |
| | | { |
| | | "type": "tpl", |
| | | "id": "u:587781d5d181", |
| | | "tpl": "          推荐像素:780px x 424px", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "marginLeft": "0" |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "tpl": "                                ", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "marginLeft": "0" |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "labelClassName": "text-dark m-b text-lg" |
| | | } |
| | | ], |
| | | "actions": [ |
| | | ], |
| | | "actions": [], |
| | | "id": "u:cd832349886c", |
| | | "bodyClassName": "no-border b-light", |
| | | "className": "no-border" |
| | |
| | | "multiple": false, |
| | | "hideUploadButton": false, |
| | | "fixedSize": false |
| | | },{ |
| | | }, |
| | | { |
| | | "type": "tpl", |
| | | "id": "u:587781d5d181", |
| | | "tpl": "          推荐像素:780px x 424px", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "marginLeft": "0" |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "tpl": "                                ", |
| | | "inline": true, |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "marginLeft": "0" |
| | | "style": {}, |
| | | "themeCss": { |
| | | "baseControlClassName": { |
| | | "padding-and-margin:default": { |
| | | "marginLeft": "0" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | "labelClassName": "text-dark m-b text-lg" |
| | | } |
| | | ], |
| | | "actions": [ |
| | | ], |
| | | "actions": [], |
| | | "id": "u:fe79896823ad", |
| | | "bodyClassName": "no-border b-light", |
| | | "className": "no-border" |
| | |
| | | "columnClassName": "p-l-lg" |
| | | }, |
| | | { |
| | | "body": [ |
| | | ], |
| | | "body": [], |
| | | "id": "u:5a16b34e0128" |
| | | }, |
| | | { |
| | | "body": [ |
| | | ], |
| | | "body": [], |
| | | "id": "u:a49cf291b3fe" |
| | | } |
| | | ], |
| | |
| | | "click": { |
| | | "actions": [ |
| | | { |
| | | "args": { |
| | | }, |
| | | "args": {}, |
| | | "script": "parent.layer.close(window.parent.TStudent.layerIndex);", |
| | | "actionType": "custom" |
| | | } |
| | |
| | | "actionType": "submit" |
| | | }, |
| | | { |
| | | "args": { |
| | | }, |
| | | "args": {}, |
| | | "script": "window.parent.TStudent.table.refresh();", |
| | | "actionType": "custom" |
| | | } |
| | |
| | | "api": { |
| | | "url": "/ball/save", |
| | | "method": "post", |
| | | "messages": { |
| | | }, |
| | | "messages": {}, |
| | | "dataType": "form-data" |
| | | }, |
| | | "actions": [ |
| | | ], |
| | | "actions": [], |
| | | "onEvent": { |
| | | "submitSucc": { |
| | | "weight": 0, |
| | | "actions": [ |
| | | { |
| | | "args": { |
| | | }, |
| | | "args": {}, |
| | | "script": "parent.layer.close(window.parent.TStudent.layerIndex);", |
| | | "actionType": "custom" |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | }, |
| | | "feat": "Insert" |
| | | } |
| | | ] |
| | | ], |
| | | "id": "u:8c028a595aa6" |
| | | }; |
| | | |
| | | let amisScoped = amis.embed('#root', amisJSON); |