From 9b461a2115ac271e4e0a4f6271dceeda598cbb9f Mon Sep 17 00:00:00 2001 From: wangbing Date: Wed, 27 Mar 2019 16:07:49 +0800 Subject: [PATCH] photo --- .../manger/callable/SpringBootCallable.java | 1 + .../templates/control/mint-ui-extend.ftl | 416 ++++++++++++++++++ .../resources/templates/layout/app.ftl | 92 +++- 3 files changed, 508 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/modules/SpringBoot/resources/templates/control/mint-ui-extend.ftl diff --git a/src/main/java/xyz/wbsite/dbtool/javafx/manger/callable/SpringBootCallable.java b/src/main/java/xyz/wbsite/dbtool/javafx/manger/callable/SpringBootCallable.java index 93d768cb..57cb1cfa 100644 --- a/src/main/java/xyz/wbsite/dbtool/javafx/manger/callable/SpringBootCallable.java +++ b/src/main/java/xyz/wbsite/dbtool/javafx/manger/callable/SpringBootCallable.java @@ -688,6 +688,7 @@ public class SpringBootCallable implements Callable { Tool.outputResource(option + "/resources/templates/control/header.ftl", new File(control.getAbsolutePath(), "header.ftl")); Tool.outputResource(option + "/resources/templates/control/footer.ftl", new File(control.getAbsolutePath(), "footer.ftl")); Tool.outputResource(option + "/resources/templates/control/macro.ftl", new File(control.getAbsolutePath(), "macro.ftl")); + Tool.outputResource(option + "/resources/templates/control/mint-ui-extend.ftl", new File(control.getAbsolutePath(), "mint-ui-extend.ftl")); Tool.outputResource(option + "/resources/templates/layout/default.ftl", new File(layout.getAbsolutePath(), "default.ftl")); Tool.outputResource(option + "/resources/templates/layout/app.ftl", new File(layout.getAbsolutePath(), "app.ftl")); Tool.outputResource(option + "/resources/templates/screen/demo.ftl", new File(screen.getAbsolutePath(), "demo.ftl")); diff --git a/src/main/resources/modules/SpringBoot/resources/templates/control/mint-ui-extend.ftl b/src/main/resources/modules/SpringBoot/resources/templates/control/mint-ui-extend.ftl new file mode 100644 index 00000000..e40ab772 --- /dev/null +++ b/src/main/resources/modules/SpringBoot/resources/templates/control/mint-ui-extend.ftl @@ -0,0 +1,416 @@ + \ No newline at end of file diff --git a/src/main/resources/modules/SpringBoot/resources/templates/layout/app.ftl b/src/main/resources/modules/SpringBoot/resources/templates/layout/app.ftl index ad518b2e..c8583ba8 100644 --- a/src/main/resources/modules/SpringBoot/resources/templates/layout/app.ftl +++ b/src/main/resources/modules/SpringBoot/resources/templates/layout/app.ftl @@ -95,7 +95,40 @@
- Hello world + Hello world demo +
+ + + @@ -107,6 +140,63 @@ path: '/', name: 'home', component: Vue.extend({template: '#home'}) + }, + { + path: '/demo', + name: 'demo', + component: Vue.extend({ + template: '#demo', + mounted: function () { + + }, + data: function () { + return { + field1: '', + field2: '', + field3: '', + field4: '', + field5: '', + field6: '', + field7: '', + field8: '', + field9: '', + field10: '', + field11: '', + field12: '', + field13: '', + field14: '', + field15: '', + field16: '', + } + }, + methods: { + doSearch: function () { + console.log(this.field10); + console.log(this.field11); + console.log(this.field12); + console.log(this.field13); + console.log(this.field14); + console.log(this.field15); + console.log(this.field16); + }, + back: function () { + if (window.android) { + android.finish() + } else { + location.href = "${Uri.getUrl('/app/index.htm')}" + } + }, + handleFile: function (file, call) { + //do upload + console.log("正在上传文件" + file.name); + if (true) { + call.finish(); + } else { + call.cancel(); + } + } + } + }) } ] });