From d74b5276353ceed9681431ef82849a884475dd7e Mon Sep 17 00:00:00 2001 From: thinkgem Date: Sun, 13 May 2018 18:47:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A8=E5=8D=95=E6=BC=94=E7=A4=BA=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/modules/demo/formEditForm.html | 63 +- .../views/modules/demo/formLayoutForm.html | 25 +- .../views/modules/demo/formTableForm.html | 651 +++++++++--------- 3 files changed, 397 insertions(+), 342 deletions(-) diff --git a/web/src/main/resources/views/modules/demo/formEditForm.html b/web/src/main/resources/views/modules/demo/formEditForm.html index 8b2702b2..7e106f0a 100644 --- a/web/src/main/resources/views/modules/demo/formEditForm.html +++ b/web/src/main/resources/views/modules/demo/formEditForm.html @@ -79,9 +79,9 @@
+ * 日期选择:
- <#form:input path="testDate" readonly="true" maxlength="20" class="form-control Wdate required" + <#form:input path="testDate" readonly="true" maxlength="20" class="form-control Wdate " dataFormat="date" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
@@ -89,9 +89,9 @@
+ * 日期时间:
- <#form:input path="testDatetime" readonly="true" maxlength="20" class="form-control Wdate required" + <#form:input path="testDatetime" readonly="true" maxlength="20" class="form-control Wdate " dataFormat="datetime" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm',isShowClear:false});"/>
@@ -109,7 +109,21 @@ class="" allowClear="true"/>
- + +
+
+ +
+ <#form:treeselect id="testUser2" title="用户选择" + path="testUser.userCode" labelPath="testUser.userName" + url="${ctx}/sys/office/treeData?isLoadUser=true" + class="" allowClear="true" checkbox="true"/> +
+
+
+ +
- -
@@ -159,6 +171,20 @@
+ +
+
+
+ +
+ <#form:fileupload id="uploadImage2" returnPath="true" + filePathInputId="uploadImage2Path" fileNameInputId="uploadImage2Name" + uploadType="image" readonly="false" maxUploadNum="3" isMini="false"/> + <#form:input name="uploadImage2Path" class="form-control"/> + <#form:input name="uploadImage2Name" class="form-control"/> +
+
+
@@ -243,7 +269,7 @@ $("#testDataChildDataGrid").dataGrid({ }, {header:'日期选择', name:'testDate', width:150, formatter:'date', formatoptions:{srcformat:'Y-m-d H:i:s',newformat:'Y-m-d'}, - editable:true, edittype:'text', editoptions:{'class':'form-control Wdate required', 'readonly':'true', + editable:true, edittype:'text', editoptions:{'class':'form-control Wdate ', 'readonly':'true', dataInit: function(element){ $(element).on('focus', function(){ WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false}); }); @@ -251,7 +277,7 @@ $("#testDataChildDataGrid").dataGrid({ }, {header:'日期时间', name:'testDatetime', width:150, formatter:'date', formatoptions:{srcformat:'Y-m-d H:i:s',newformat:'Y-m-d H:i:s'}, - editable:true, edittype:'text', editoptions:{'class':'form-control Wdate required', 'readonly':'true', + editable:true, edittype:'text', editoptions:{'class':'form-control Wdate ', 'readonly':'true', dataInit: function(element){ $(element).on('focus', function(){ WdatePicker({dateFmt:'yyyy-MM-dd HH:mm',isShowClear:false}); }); @@ -334,14 +360,15 @@ $("#testDataChildDataGrid").dataGrid({ \ No newline at end of file diff --git a/web/src/main/resources/views/modules/demo/formLayoutForm.html b/web/src/main/resources/views/modules/demo/formLayoutForm.html index 393a326b..f51b411f 100644 --- a/web/src/main/resources/views/modules/demo/formLayoutForm.html +++ b/web/src/main/resources/views/modules/demo/formLayoutForm.html @@ -81,9 +81,9 @@
+ * 日期:
- <#form:input path="testDate" readonly="true" maxlength="20" class="form-control Wdate required" + <#form:input path="testDate" readonly="true" maxlength="20" class="form-control Wdate " dataFormat="date" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
@@ -91,9 +91,9 @@
+ * 时间:
- <#form:input path="testDatetime" readonly="true" maxlength="20" class="form-control Wdate required" + <#form:input path="testDatetime" readonly="true" maxlength="20" class="form-control Wdate " dataFormat="datetime" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm',isShowClear:false});"/>
@@ -241,14 +241,15 @@ \ No newline at end of file diff --git a/web/src/main/resources/views/modules/demo/formTableForm.html b/web/src/main/resources/views/modules/demo/formTableForm.html index 64abdb2d..d012f422 100644 --- a/web/src/main/resources/views/modules/demo/formTableForm.html +++ b/web/src/main/resources/views/modules/demo/formTableForm.html @@ -12,172 +12,198 @@ <#form:form id="inputForm" model="${testData}" action="${ctx}/test/testData/save" method="post" class="form-horizontal">
基本信息
- <#form:hidden path="id"/> -
-
-
- -
- <#form:input path="testInput" maxlength="200" class="form-control"/> -
-
-
-
-
-
-
- -
- <#form:textarea path="testTextarea" rows="4" maxlength="200" class="form-control"/> -
-
-
-
-
-
-
- -
- <#form:select path="testSelect" dictType="sys_menu_type" blankOption="true" class="form-control" /> -
-
-
-
-
- -
- <#form:select path="testSelectMultiple" dictType="sys_menu_type" multiple="true" blankOption="true" class="form-control" /> -
-
-
-
-
-
-
- -
- <#form:radio path="testRadio" dictType="sys_menu_type" class="form-control" /> -
-
-
-
-
- -
- <#form:checkbox path="testCheckbox" dictType="sys_menu_type" class="form-control" /> -
-
-
-
-
-
-
- -
- <#form:input path="testDate" readonly="true" maxlength="20" class="form-control Wdate required" - dataFormat="date" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/> -
-
-
-
-
- -
- <#form:input path="testDatetime" readonly="true" maxlength="20" class="form-control Wdate required" - dataFormat="datetime" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm',isShowClear:false});"/> -
-
-
-
-
-
-
- -
- <#form:treeselect id="testUser" title="用户选择" - path="testUser.userCode" labelPath="testUser.userName" - url="${ctx}/sys/office/treeData?isLoadUser=true" - class="" allowClear="true"/> -
-
-
-
-
- -
- <#form:treeselect id="testOffice" title="机构选择" - path="testOffice.officeCode" labelPath="testOffice.officeName" - url="${ctx}/sys/office/treeData" - class="" allowClear="true"/> -
-
-
-
-
-
-
- -
- <#form:treeselect id="testAreaCode" title="区域选择" - path="testAreaCode" labelPath="testAreaName" - url="${ctx}/sys/area/treeData" - class="" allowClear="true"/> -
-
-
-
-
-
-
- -
- <#form:ueditor path="remarks" maxlength="10000" height="200" class="required" - simpleToolbars="true" readonly="false" outline="false"/> -
-
-
-
-
-
-
- -
- <#form:fileupload id="uploadImage" bizKey="${testData.id}" bizType="testData_image" - uploadType="image" class="" readonly="false"/> -
-
-
-
-
-
-
- -
- <#form:fileupload id="uploadFile" bizKey="${testData.id}" bizType="testData_file" - uploadType="all" class="" readonly="false"/> -
-
-
-
-

测试数据子表

-
-
- <% if (hasPermi('test:testData:edit')){ %> - 增行 - <% } %> -
+ <#form:hidden path="id"/> +
+
+
+ +
+ <#form:input path="testInput" maxlength="200" class="form-control"/> +
+
+
+
+
+
+
+ +
+ <#form:textarea path="testTextarea" rows="4" maxlength="200" class="form-control"/> +
+
+
+
+
+
+
+ +
+ <#form:select path="testSelect" dictType="sys_menu_type" blankOption="true" class="form-control" /> +
+
+
+
+
+ +
+ <#form:select path="testSelectMultiple" dictType="sys_menu_type" multiple="true" blankOption="true" class="form-control" /> +
+
+
+
+
+
+
+ +
+ <#form:radio path="testRadio" dictType="sys_menu_type" class="form-control" /> +
+
+
+
+
+ +
+ <#form:checkbox path="testCheckbox" dictType="sys_menu_type" class="form-control" /> +
+
+
+
+
+
+
+ +
+ <#form:input path="testDate" readonly="true" maxlength="20" class="form-control Wdate " + dataFormat="date" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/> +
+
+
+
+
+ +
+ <#form:input path="testDatetime" readonly="true" maxlength="20" class="form-control Wdate " + dataFormat="datetime" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm',isShowClear:false});"/> +
+
+
+
+
+
+
+ +
+ <#form:treeselect id="testUser" title="用户选择" + path="testUser.userCode" labelPath="testUser.userName" + url="${ctx}/sys/office/treeData?isLoadUser=true" + class="" allowClear="true"/> +
+
+
+
+
+ +
+ <#form:treeselect id="testUser2" title="用户选择" + path="testUser.userCode" labelPath="testUser.userName" + url="${ctx}/sys/office/treeData?isLoadUser=true" + class="" allowClear="true" checkbox="true"/> +
+
+
+
+
+
+
+ +
+ <#form:treeselect id="testOffice" title="机构选择" + path="testOffice.officeCode" labelPath="testOffice.officeName" + url="${ctx}/sys/office/treeData" + class="" allowClear="true"/> +
+
+
+
+
+ +
+ <#form:treeselect id="testAreaCode" title="区域选择" + path="testAreaCode" labelPath="testAreaName" + url="${ctx}/sys/area/treeData" + class="" allowClear="true"/> +
+
+
+
+
+
+
+ +
+ <#form:ueditor path="remarks" maxlength="10000" height="200" class="" + simpleToolbars="true" readonly="false" outline="false"/> +
+
+
+
+
+
+
+ +
+ <#form:fileupload id="uploadImage" bizKey="${testData.id}" bizType="testData_image" + uploadType="image" class="" readonly="false"/> +
+
+
+
+
+
+
+ +
+ <#form:fileupload id="uploadImage2" returnPath="true" + filePathInputId="uploadImage2Path" fileNameInputId="uploadImage2Name" + uploadType="image" readonly="false" maxUploadNum="3" isMini="false"/> + <#form:input name="uploadImage2Path" class="form-control"/> + <#form:input name="uploadImage2Name" class="form-control"/> +
+
+
+
+
+
+
+ +
+ <#form:fileupload id="uploadFile" bizKey="${testData.id}" bizType="testData_file" + uploadType="all" class="" readonly="false"/> +
+
+
+
+

测试数据子表

+
+
+ <% if (hasPermi('test:testData:edit')){ %> + 增行 + <% } %> +
<% } %> - - + + \ No newline at end of file