草庐IT

el-button-group

全部标签

element-ui - 日期选择器el-date-picker 设置禁止选择日期

element-ui-日期选择器el-date-picker设置禁止选择日期使用日期选择器时,有的时候需要禁止选择一些日期,我们可以通过快捷选项picker-options对象中的禁用日期属性disabledDate来设置。el-date-picker v-model="benginEndTime" type="daterange" :picker-options="pickerOptions"range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期">/el-date-picker>只能选择今天以及今天之后的日期pi

kafka报错:No group.id found in consumer config, container properties

kafka报错Nogroup.idfoundinconsumerconfigCausedby:java.lang.IllegalStateException:Nogroup.idfoundinconsumerconfig,containerproperties,or@KafkaListenerannotation;agroup.idisrequiredwhengroupmanagementisused.Causedby:java.lang.IllegalStateException:Nogroup.idfoundinconsumerconfig,containerproperties,or@K

el-table自定义展开行

根据elementui官方文档说明,展开行需要用到两个属性:row-key和expand-row-keys,还有expand-change事件  在el-table中:row-key="f_ID":expand-row-keys="expandKeys"@expand-change="expandChange" 注意:row-key是数据的唯一标识。template中完整代码如下:展开明细{{scope.$index+1}}解决展开行第一次展开数据不显示问题:在获取数据的时候往数据中追加一个expandRow字段(字段名可自定义)获取数据的时候...this.InfoTableData.for

el-table多选框禁用

el-table多选框有时需要禁用,selectable为true此行数据不禁用,为false则本行禁用判断是否禁用方法函数:el-table-columntype="selection":selectable="selectable"width="40">/el-table-column>methods:{ selectable(row,index){ //unselectableList为需要禁用的数组,需要禁用的数组中与本页数据无相匹配的数据的数据返回true(本行不禁用), //反之返回false(本行禁用)returnthis.unselectableList.findInd

xcode - 带有 OK 和 Cancel : which button tapped? 的 Swift 警报 View

我在Xcode中有一个用Swift编写的警报View,我想确定用户选择了哪个按钮(这是一个确认对话框)什么都不做或执行某事。目前我有:@IBActionfuncpushedRefresh(sender:AnyObject){varrefreshAlert=UIAlertView()refreshAlert.title="Refresh?"refreshAlert.message="Alldatawillbelost."refreshAlert.addButtonWithTitle("Cancel")refreshAlert.addButtonWithTitle("OK")refresh

xcode - 带有 OK 和 Cancel : which button tapped? 的 Swift 警报 View

我在Xcode中有一个用Swift编写的警报View,我想确定用户选择了哪个按钮(这是一个确认对话框)什么都不做或执行某事。目前我有:@IBActionfuncpushedRefresh(sender:AnyObject){varrefreshAlert=UIAlertView()refreshAlert.title="Refresh?"refreshAlert.message="Alldatawillbelost."refreshAlert.addButtonWithTitle("Cancel")refreshAlert.addButtonWithTitle("OK")refresh

which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mod

mysql执行报错:Expression#2ofSELECTlistisnotinGROUPBYclauseandcontainsnonaggregatedcolumn‘bcdsystem.cities.city’whichisnotfunctionallydependentoncolumnsinGROUPBYclause;thisisincompatiblewithsql_mode=only_full_group_by"1.这个错误发生在mysql5.7版本及以上版本会出现的问题:mysql5.7版本默认的sql配置是:sql_mode="ONLY_FULL_GROUP_BY",这个配置严格

Element-UI中el-tree的使用

写项目时经常会遇到使用el-tree的场景,针对用过的,做个简单记录一,先简单讲一下怎么安装element-ui:1.安装:npmielement-ui2. 在main.js中引入样式以及组件:importElementUIfrom'element-ui'import'element-ui/lib/theme-chalk/index.css'Vue.use(ElementUI)3.丢个官网在这里,详细可以去查看:Element-Theworld'smostpopularVueUIframework二,el-tree常见属性: data----用来展示数据props----树状图配置label-

Element-UI中el-tree的使用

写项目时经常会遇到使用el-tree的场景,针对用过的,做个简单记录一,先简单讲一下怎么安装element-ui:1.安装:npmielement-ui2. 在main.js中引入样式以及组件:importElementUIfrom'element-ui'import'element-ui/lib/theme-chalk/index.css'Vue.use(ElementUI)3.丢个官网在这里,详细可以去查看:Element-Theworld'smostpopularVueUIframework二,el-tree常见属性: data----用来展示数据props----树状图配置label-

ElementUI中的el-date-picker日期选择器的格式转换问题

使用el-date-picker日期选择器选择的日期是string类型且是箭头所指的这种格式解决方法一:1、在这个组件后面加上这两个,可以修改格式2、在后端实体类上加上注解即使前端的是string类型,但是通过json自带的格式匹配注解工具,将string转换成LocalDateTime类型@JsonFormat(pattern="yyyy-MM-ddHH:mm:ss",timezone="GMT+8")privateLocalDateTimeuserBirthday;解决方法二:用npm下载一个moment.js1、npminstallmoment--save2、在main.js中注册imp