摘要: <!-- 父组件 --> <template> <h1>I am ParentComponent</h1> <ChildComponent @child-click="zCf"/> <h2>{{ x }}</h2> </template> <script setup> import ChildCom 阅读全文
posted @ 2024-07-04 15:13 林财钦 阅读(129) 评论(0) 推荐(0)
摘要: 父组件文件:parentcomponent.vue 子组件文件:childcomponent.vue 传普通值 传动态值 传对象 传数组 <!-- 父组件 --> <template> <h1>I am ParentComponent</h1> <ChildComponent msg="nice"/ 阅读全文
posted @ 2024-07-04 14:58 林财钦 阅读(1099) 评论(0) 推荐(0)
摘要: 一、背景 业务需求 需要这种 二、实现 `` 点击查看代码 <el-table ref="singleTableRef" highlight-current-row border :data="state.personData" class="data-table" max-height="600" 阅读全文
posted @ 2024-01-08 11:24 林财钦 阅读(1004) 评论(0) 推荐(0)
摘要: 一、背景 二、实现 模版 influx_inspect export -datadir "D:/WindowsService/Influxdb/data" -waldir "D:/WindowsService/Influxdb/wal" -out "D:/202311_lcq" -database 阅读全文
posted @ 2023-12-15 15:31 林财钦 阅读(62) 评论(0) 推荐(0)
摘要: 一、背景 这几天数据中了病毒,服务器被黑,Mysql数据库遭比特币勒索!!!数据库有开启 binlog 那就还有恢复的可能。那么恭喜你可以参考这篇文章https://zhuanlan.zhihu.com/p/311435595 如果没有开启,那没办法了,只能吃一堑长一智,要么数据库做同步【做新增、修 阅读全文
posted @ 2023-12-15 11:09 林财钦 阅读(71) 评论(0) 推荐(0)
摘要: npm install --registry=https://registry.npmmirror.com 阅读全文
posted @ 2023-12-13 09:47 林财钦 阅读(10) 评论(0) 推荐(0)
摘要: 一、背景 二、实现 @Autowired private EntityManager entityManager; Query query = entityManager.createNativeQuery(sql); query.unwrap(SQLQuery.class).setResultTr 阅读全文
posted @ 2023-12-07 14:19 林财钦 阅读(30) 评论(0) 推荐(0)
摘要: 一、背景 二、实现 第一种:使用Mybatis,纯sql插入(推荐使用) 动态创建Sql拼接 在Mapper接口种指定该方法 @InsertProvider(type = AutoCreateReport.class, method = "insertSelectSqlFun") public vo 阅读全文
posted @ 2023-12-06 20:10 林财钦 阅读(54) 评论(0) 推荐(0)
摘要: 一、背景 二、实现 select * from ( select sum(value) as val from history_data where parameter_id = '512432211656617105' or parameter_id = '512432211656637048' 阅读全文
posted @ 2023-12-06 20:02 林财钦 阅读(245) 评论(0) 推荐(0)
摘要: QueryResult countResults = influxDBConfig.query(selectSql.toString()); QueryResult results = influxDBConfig.query(selectSql.toString()); List<KeyValue 阅读全文
posted @ 2023-12-06 20:00 林财钦 阅读(49) 评论(0) 推荐(0)