diff --git a/common/src/main/java/com/jeesite/common/utils/excel/annotation/ExcelField.java b/common/src/main/java/com/jeesite/common/utils/excel/annotation/ExcelField.java index 899f931b..4e13cdd9 100644 --- a/common/src/main/java/com/jeesite/common/utils/excel/annotation/ExcelField.java +++ b/common/src/main/java/com/jeesite/common/utils/excel/annotation/ExcelField.java @@ -84,7 +84,6 @@ public @interface ExcelField { /** * 反射类型 * MoneyType.class 金额类型转换(保留两位) - * DateTimeType.class 日期时间类型转换 yyyy-MM-dd HH:mm:ss */ Class fieldType() default FieldType.class; diff --git a/modules/core/src/main/resources/i18n/core/common_view/i18n_en.properties b/modules/core/src/main/resources/i18n/core/common_view/i18n_en.properties index 8123bbcf..2177a9cf 100644 --- a/modules/core/src/main/resources/i18n/core/common_view/i18n_en.properties +++ b/modules/core/src/main/resources/i18n/core/common_view/i18n_en.properties @@ -13,6 +13,7 @@ 增行=New line 刷新=Refresh 查看=View +编辑=Edit 展开=Expand 展开一级=Expand level 1 折叠=Collapse diff --git a/modules/core/src/main/resources/i18n/core/common_view/i18n_ja_JP.properties b/modules/core/src/main/resources/i18n/core/common_view/i18n_ja_JP.properties index c0ff8db6..eefea2fc 100644 --- a/modules/core/src/main/resources/i18n/core/common_view/i18n_ja_JP.properties +++ b/modules/core/src/main/resources/i18n/core/common_view/i18n_ja_JP.properties @@ -13,6 +13,7 @@ 增行=行作成 刷新=リフレッシュ 查看=詳細 +编辑=編集 展开=展開 展开一级=一階層展開 折叠=収束 diff --git a/web/src/main/resources/views/modules/test/testDataForm.html b/web/src/main/resources/views/modules/test/testDataForm.html index 30e478c6..aaa13bb1 100644 --- a/web/src/main/resources/views/modules/test/testDataForm.html +++ b/web/src/main/resources/views/modules/test/testDataForm.html @@ -216,7 +216,7 @@ $("#testDataChildDataGrid").dataGrid({ } } }, - {header:'${text("下拉多选")}', name:'testSelectMultiple', width:120, + {header:'${text("下拉多选")}', name:'testSelectMultiple', width:130, editable:true, edittype:'select', editoptions:{multiple:true, 'class':'form-control', items: $.merge([], ${@DictUtils.getDictListJson('sys_menu_type')}), itemLabel: 'dictLabel', itemValue: 'dictValue', dataInit: function(element){ @@ -232,14 +232,6 @@ $("#testDataChildDataGrid").dataGrid({ } } }, - {header:'${text("复选框")}', name:'testCheckbox', width:100, - editable:true, edittype:'select', editoptions:{multiple:true, 'class':'form-control', - items: $.merge([], ${@DictUtils.getDictListJson('sys_menu_type')}), - itemLabel: 'dictLabel', itemValue: 'dictValue', dataInit: function(element){ - $(element).select2().on("change",function(){$(this).resetValid()}); - } - } - }, {header:'${text("日期选择")}', 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 laydate', 'readonly':'true', @@ -251,40 +243,32 @@ $("#testDataChildDataGrid").dataGrid({ } } }, - {header:'${text("日期时间")}', 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 laydate', 'readonly':'true', - dataInit: function(element){ - laydate.render({elem:element, type:'datetime', format:'yyyy-MM-dd HH:mm'}); - } - } - }, - {header:'${text("用户选择")}', name:'testUser', width:150, - formatter: function(val, obj, row, act){ - return js.val(row, 'testUser.userCode')+'|'+js.val(row, 'testUser.userName'); - }, editable: true, edittype: "custom", editoptions: { - custom_element: function(val, editOptions) { - return js.template('treeselectTpl', { - id: 'user_'+editOptions.id, title: '用户选择', - name: 'testUser.userCode', value: val.split('|')[0], - labelName: 'testUser.userName', labelValue: val.split('|')[1], - url: '${ctx}/sys/office/treeData?isLoadUser=true', cssClass: '', readonly: false - }); - }, - custom_value: function(element, act){ - return {userCode: element.find('[type=hidden]').val(), - userName: element.find('[type=text]').val()}; - }, - dataInit: function(element){ - // 初始化控件后设置只读模式(实例) - // $(element).find('.form-control, .btn').addClass('disabled'); - } - }, - unformat: function(val, obj, cell){ - return $('#user_'+obj.rowId+'_'+obj.colModel.name+'Code', cell).val(); - } - }, - {header:'${text("列表选择")}', name:'testUser2', width:150, +// {header:'${text("用户选择")}', name:'testUser', width:150, +// formatter: function(val, obj, row, act){ +// return js.val(row, 'testUser.userCode')+'|'+js.val(row, 'testUser.userName'); +// }, editable: true, edittype: "custom", editoptions: { +// custom_element: function(val, editOptions) { +// return js.template('treeselectTpl', { +// id: 'user_'+editOptions.id, title: '用户选择', +// name: 'testUser.userCode', value: val.split('|')[0], +// labelName: 'testUser.userName', labelValue: val.split('|')[1], +// url: '${ctx}/sys/office/treeData?isLoadUser=true', cssClass: '', readonly: false +// }); +// }, +// custom_value: function(element, act){ +// return {userCode: element.find('[type=hidden]').val(), +// userName: element.find('[type=text]').val()}; +// }, +// dataInit: function(element){ +// // 初始化控件后设置只读模式(实例) +// // $(element).find('.form-control, .btn').addClass('disabled'); +// } +// }, +// unformat: function(val, obj, cell){ +// return $('#user_'+obj.rowId+'_'+obj.colModel.name+'Code', cell).val(); +// } +// }, + {header:'${text("用户选择")}', name:'testUser2', width:150, formatter: function(val, obj, row, act){ return js.val(row, 'testUser.userCode')+'|'+js.val(row, 'testUser.userName'); }, editable: true, edittype: "custom", editoptions: {