column

ElementUI之表格行的单击事件和双击事件

混江龙づ霸主 提交于 2019-11-29 21:43:13
<template> <el-table :data="tableData" style="width: 100%" @row-click="handleclick" @row-dblclick="handledbClick"> <el-table-column prop="name" label="姓名"> </el-table-column> <el-table-column prop="address" label="家庭住址"> </el-table-column> </el-table> </template> <script> export default { data() { return { tableData: [ {name: '王小虎1',address: '上海市普陀区金沙江路 1516 弄'}, {name: '王小虎2',address: '上海市普陀区金沙江路 1517 弄'}, {name: '王小虎3',address: '上海市普陀区金沙江路 1518 弄'}, {name: '王小虎4',address: '上海市普陀区金沙江路 1519 弄'}] } }, methods:{ handleclick(row, event, column) { alert("我被单击了"); console.log(row, event, column); }

flask-sqlalchemy 关系表简单操作

こ雲淡風輕ζ 提交于 2019-11-29 10:43:03
from flask import Flask from flask.ext.sqlalchemy import SQLAlchemy from flask.ext.migrate import Migrate, MigrateCommand from flask.ext.script import Manager app = Flask(__name__) app.config[ 'SQLALCHEMY_DATABASE_URI'] = 'sqlite:///test.db' db = SQLAlchemy(app) migrate = Migrate(app, db) manager = Manager(app) manager.add_command( 'db', MigrateCommand) class Post(db.Model): id = db.Column(db.Integer, primary_key= True) name = db.Column(db.String( 80)) category_id = db.Column(db.Integer, db.ForeignKey( 'category.id')) category = db.relationship( 'Category', backref=db.backref( 'posts', lazy=

HBase表描述和修改

笑着哭i 提交于 2019-11-29 09:58:46
描述 该命令返回表的说明。它的语法如下: hbase > describe 'table name' 下面给出的是对emp表的 describe 命令的输出。 hbase ( main ): 006 : 0 > describe 'emp' DESCRIPTION ENABLED 'emp' , { NAME => 'READONLY' , DATA_BLOCK_ENCODING => 'NONE' , BLOOMFILTER => 'ROW' , REPLICATION_SCOPE => '0' , COMPRESSION => 'NONE' , VERSIONS => '1' , TTL true => 'FOREVER' , MIN_VERSIONS => '0' , KEEP_DELETED_CELLS => 'false' , BLOCKSIZE => '65536' , IN_MEMORY => 'false' , BLOCKCACHE => 'true' }, { NAME => 'personal data' , DATA_BLOCK_ENCODING => 'NONE' , BLOOMFILTER => 'ROW' , REPLICATION_SCOPE => '0' , VERSIONS => '5' , COMPRESSION => 'NONE' , MIN

mybatis常用jdbcType数据类型

ぃ、小莉子 提交于 2019-11-29 02:07:32
MyBatis 通过包含的jdbcType 类型 BIT FLOAT CHAR TIMESTAMP OTHER UNDEFINED TINYINT REAL VARCHAR BINARY BLOB NVARCHAR SMALLINT DOUBLE LONGVARCHAR VARBINARY CLOB NCHAR INTEGER NUMERIC DATE LONGVARBINARY BOOLEAN NCLOB BIGINT DECIMAL TIME NULL CURSOR Mybatis 中 javaType 和 jdbcType 对应和CRUD例子 Xml代码 < resultMap type = "java.util.Map" id = "resultjcm" > < result property = "FLD_NUMBER" column = "FLD_NUMBER" javaType = "double" jdbcType = "NUMERIC" /> < result property = "FLD_VARCHAR" column = "FLD_VARCHAR" javaType = "string" jdbcType = "VARCHAR" /> < result property = "FLD_DATE" column = "FLD_DATE" javaType =

layui mybatis 实现 一对一关联表查询界面数据显示

放肆的年华 提交于 2019-11-28 21:21:44
layui mybatis 实现 一对一关联表查询界面数据显示 一开始找了两天半天找不到,后来解决了,分享给大家。 table . render ( { id : 'departmentTable' , elem : '#test' , url : '/firstWeb/inproduct/queryAll' , title : '出入库管理表' , where : { } , cols : [ [ { field : 'id' , title : '编号' } , { field : 'sort' , title : '产品类别' , templet : function ( data ) { return data . sort . name ; } } , { field : 'time' , title : '产品名' , templet : function ( data ) { return data . product . name ; } } , { field : 'product' , title : '产地' , templet : function ( data ) { return data . product . area ; } } , { field : 'product' , title : '规格' , templet : function (

Unknown column 'startname' in 'field list

时间秒杀一切 提交于 2019-11-28 17:41:27
Unknown column 'startname' in 'field list 字段匹配不上 解决思路 1、检查数据库字段名与sql中的字段名是否一致 2、是否为关键字或中英文区别 ,(关键字可加上 ·· 这个符号解决) 3、检查数据库字段编码是否有问题 4、确认表名有没有写错 来源: https://www.cnblogs.com/qq376324789/p/11417039.html

Openvswitch手册(8): ovs-vsctl的DB的操作

不打扰是莪最后的温柔 提交于 2019-11-28 08:23:09
ovs-vsctl的DB的操作 如果你在命令行里面找不到相应的命令创建和删除对象,则可以直接删除数据库 [−−if−exists] [−−columns=column[,column]...] list table [record]... $ sudo ovs-vsctl list bridge _uuid : 91cd3178-fe2d-4004-85b6-f0f01fcc8b51 controller : [] datapath_id : "00007a31cd910440" datapath_type : "" external_ids : {} fail_mode : [] flood_vlans : [] flow_tables : {} ipfix : [] mirrors : [] name : helloother netflow : [] other_config : {} ports : [20682bfb-ea46-497e-940f-43f48f00da84, 7dce6e3c-cedd-4bf0-b9dc-f8e90e8788c2, 83489fb4-f8c3-4a32-9bc4-b4cb484dd684] protocols : [] sflow : [] status : {} stp_enable : false _uuid : b491acba

Spring data Jpa自动更新实体创建时间和修改时间

梦想的初衷 提交于 2019-11-27 05:13:56
实体类中 import lombok.Data; import org.hibernate.cfg.ImprovedNamingStrategy; import org.springframework.data.annotation.CreatedDate; import org.springframework.data.annotation.LastModifiedDate; import org.springframework.data.jpa.domain.support.AuditingEntityListener; import javax.persistence.*; import java.util.Date; @Data @Table(name = "sys_service") @Entity @EntityListeners(AuditingEntityListener.class) public class SysService extends ImprovedNamingStrategy { @GeneratedValue(strategy= GenerationType.IDENTITY) @Id private Integer id; @Column(name = "name") private String name; @Column(name =

datagrip 根据 sql 导出 示例

独自空忆成欢 提交于 2019-11-27 05:04:16
例如 sql select 'operator_scenic_staytime_day', t.citycode, countycode, sceniccode, uuid, scenicname, sceniclevel, maxload, sceniclogo, staytime, people_num, format_time, updatetime, create_time from operator_scenic_staytime_day t where countycode = '130724' AND scenicname != 'xxxx'; 'operator_scenic_staytime_day' 为表的名字grooy 代码: import com.intellij.database.model.DasTable SEP = ", " QUOTE = "\'" NEWLINE = System.getProperty("line.separator") KEYWORDS_LOWERCASE = com.intellij.database.util.DbSqlUtil.areKeywordsLowerCase(PROJECT) KW_INSERT_INTO = KEYWORDS_LOWERCASE ? "insert into " : "INSERT INTO