1. 图上的这个select 封装了,正常使用element-ui就行 2. 执行逻辑 -->获取到输入的值-->定义一个下拉框中值的拷贝-->与下拉框中的值匹配-->过滤,返回匹配到的值 //下拉框开启搜索功能 dataFilter(val) { this.typeWorks = this.$hd Read More
posted @ 2022-02-21 14:53 Li_ll Views(925) Comments(0) Diggs(0) Edit
//比较两个日期的大小 export function comparedate(date1, date2) { let oDate1 = new Date(date1); let oDate2 = new Date(date2); if (oDate1.getTime() == oDate2.get Read More
posted @ 2022-01-21 14:55 Li_ll Views(437) Comments(0) Diggs(0) Edit
https://blog.csdn.net/shangboerds/article/details/4583960 Read More
posted @ 2022-01-18 20:12 Li_ll Views(6) Comments(0) Diggs(0) Edit
https://blog.csdn.net/qq_42341025/article/details/110678127 Read More
posted @ 2022-01-11 15:09 Li_ll Views(168) Comments(0) Diggs(0) Edit
posted @ 2022-01-11 10:50 Li_ll Views(178) Comments(0) Diggs(0) Edit
// service 代码public RestResponse<JSONObject> getDormTreeByWorkshop( @RequestParam("workshopId") String workshopId,@RequestParam("sex") String sex) { L Read More
posted @ 2022-01-10 19:24 Li_ll Views(48) Comments(0) Diggs(0) Edit
const myDate =new Date(); const Y = myDate.getFullYear(); const M = myDate.getMonth()+1; const D = myDate.getDate(); const curDay = Y + '-'+ M + '-' + Read More
posted @ 2021-12-30 21:11 Li_ll Views(801) Comments(1) Diggs(0) Edit
posted @ 2021-12-27 10:24 Li_ll Views(185) Comments(0) Diggs(0) Edit
原因: select 已经绑定了值,重新选择的时候,render函数没有自动更新,数据刷新了但是视图没有刷新(value 改变了,但是label值没变) 解决: 使用this.$forceUpdate() 重新 render Read More
posted @ 2021-12-23 19:14 Li_ll Views(575) Comments(0) Diggs(1) Edit
页面部分: 校验规则: 本身的校验规则elment 好像没有察觉出值的变动,需要在值发生改变时赋值: Read More
posted @ 2021-12-23 18:55 Li_ll Views(498) Comments(0) Diggs(0) Edit