diff --git a/web/src/main/resources/views/modules/demo/formEditForm.html b/web/src/main/resources/views/modules/demo/formEditForm.html new file mode 100644 index 00000000..cb34922e --- /dev/null +++ b/web/src/main/resources/views/modules/demo/formEditForm.html @@ -0,0 +1,347 @@ +<% layout('/layouts/default.html', {title: '数据管理', libs: ['validate','fileupload','ueditor','dataGrid']}){ %> +
+
+
+
+ ${testData.isNewRecord ? '新增数据' : '编辑数据'} +
+
+ +
+
+ <#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')){ %> + 增行 + <% } %> +
+
+ + +
+
+<% } %> + + + \ 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 new file mode 100644 index 00000000..c4e51bca --- /dev/null +++ b/web/src/main/resources/views/modules/demo/formLayoutForm.html @@ -0,0 +1,254 @@ +<% layout('/layouts/default.html', {title: '数据管理', libs: ['validate','fileupload','ueditor','dataGrid']}){ %> +
+
+
+
+ ${testData.isNewRecord ? '新增数据' : '编辑数据'} +
+
+ +
+
+ <#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:input path="remarks" class="form-control"/> +
+
+
+
+
四列
+
+
+
+ +
+ <#form:input path="testInput" maxlength="200" class="form-control"/> +
+
+
+
+
+ +
+ <#form:input path="testInput" maxlength="200" class="form-control"/> +
+
+
+
+
+ +
+ <#form:input path="testInput" maxlength="200" class="form-control"/> +
+
+
+
+
+ +
+ <#form:input path="testInput" maxlength="200" class="form-control"/> +
+
+
+
+
+
+
+ +
+ <#form:input path="testInput" maxlength="200" class="form-control"/> +
+
+
+
+
+ +
+ <#form:input path="testInput" maxlength="200" class="form-control"/> +
+
+
+
+
+ +
+ <#form:input path="testInput" maxlength="200" class="form-control"/> +
+
+
+
+
+ +
+ <#form:input path="testInput" maxlength="200" class="form-control"/> +
+
+
+
+
+ + +
+
+<% } %> + \ 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 new file mode 100644 index 00000000..68ef86d1 --- /dev/null +++ b/web/src/main/resources/views/modules/demo/formTableForm.html @@ -0,0 +1,347 @@ +<% layout('/layouts/default.html', {title: '数据管理', libs: ['validate','fileupload','ueditor','dataGrid']}){ %> +
+
+
+
+ ${testData.isNewRecord ? '新增数据' : '编辑数据'} +
+
+ +
+
+ <#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')){ %> + 增行 + <% } %> +
+
+ + +
+
+<% } %> + + + \ No newline at end of file