欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

mapper和bridge【el-date-picker】

程序员文章站 2022-03-25 08:13:12
...

一、效果
mapper和bridge【el-date-picker】
二、bridge配置代码

{
	"form":{
		"columns":{
		  "modifyTime": {
		        "sortId": 9999,
		        "alias": "modify_time",
		        "field": "modifyTime",
		        "events": {},
		        "attrs": {
        		  "hidden": "none",//控制页面不用显示
		          "label": "修改时间",
		          "type": "datetime",
		          "format": "yyyy-MM-dd HH:mm:ss",
		          "value-format": "yyyy-MM-ddTHH:mm:ss"
		        },
		        "meta": {
		          "component": "el-date-picker",
		          "rowId": "1",
		          "tabId": "1",
		          "span": 12,
		          "prop": "modifyTime",
		          "fromValue": true
		        }
		    }
		}
	}
}

三、mapper配置代码

{
	"columns":{		
	    "modifyTime": {
	      "fieldSort": 9999,
	      "extendAlias": "modify_time",
	      "tableId": 1,
	      "dataType": "datetime",
	      "title": "修改时间",
	      "remark": "修改时间:来至系统",
	      "guidMethod": "None",
	      "isRequired": false,
	      "isData": true,
	      "filter": {
	        "isMust": false
	      },
	      "field": "modifyTime",
	      "name": "modify_time",
	      "alias": "modify_time",
	      "isDate": true,
	      "isPrimary": false,
	      "isIdentity": false
	    },   
	    "createTime": {
	      "fieldSort": 9999,
	      "extendAlias": "create_time",
	      "tableId": 1,
	      "dataType": "datetime",
	      "title": "创建时间",
	      "remark": "创建时间:新增时候来至系统,修改时候不改变",
	      "guidMethod": "None",
	      "isRequired": false,
	      "isSearch": true,
	      "isData": true,
	      "filter": {
	        "isMust": false
	      },
	      "field": "createTime",
	      "name": "create_time",
	      "alias": "create_time",
	      "isDate": true,
	      "isPrimary": false,
	      "isIdentity": false
	    },
	    //完整配置
	    "modify_time": {
		      "title": "修改时间",
		      "alias": "modify_time",
		      "isDate": true,
		      "filter": {
		        "method": "gt_eq_lt"
		      },
		      "searchPropertie": {
		        "showMethodOut": "kv",
		        "showMethod": "date",
		        "format": "yyyy-MM-dd"
		      },
		      "editPropertie": {
		        "showMethod": "date",
		        "showMethodOut": "kv",
		        "defaultValue": "_currentDate",
		        "format": "yyyy-MM-dd HH:mm:ss",
		        "isRequired": true
		      },
		      "pagePropertie": {
		        "showMethod": "date",
		        "format": "yyyy-MM-dd HH:mm:ss"
		      }
		}	    
	}
}