摘要: let data = [ { id: '02', lable: '产品leader', pid: '01' }, { id: '03', lable: 'UIleader', pid: '01' }, { id: '07', lable: '产品经理', pid: '02' }, { id: '04 阅读全文
posted @ 2024-01-16 14:44 江山一族 阅读(5) 评论(0) 推荐(0) 编辑
摘要: <el-tree :data="authData" show-checkbox :check-strictly="true" :check-on-click-node="true" node-key="_id" ref="yourTreeId" @check-change="getCheckedKe 阅读全文
posted @ 2022-04-14 18:26 江山一族 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 1.安装rabbitmq: docker run -dit --name myrabbitmq -e RABBITMQ_DEFAULT_USER=admin -e RABBITMQ_DEFAULT_PASS=admin -p 15672:15672 -p 5672:5672 rabbitmq:man 阅读全文
posted @ 2022-03-24 18:34 江山一族 阅读(468) 评论(1) 推荐(1) 编辑
摘要: const Core = require('@alicloud/pop-core'); const accessKeyId = "xxxx" const accessSecret = "xxxxO" var client = new Core({ accessKeyId: accessKeyId, 阅读全文
posted @ 2022-02-15 16:36 江山一族 阅读(458) 评论(0) 推荐(0) 编辑
摘要: 1. docker network create app-tier 2. docker run -d --name zookeeper-server \ --network app-tier \ -e ALLOW_ANONYMOUS_LOGIN=yes \ bitnami/zookeeper:lat 阅读全文
posted @ 2021-12-21 17:22 江山一族 阅读(214) 评论(0) 推荐(0) 编辑
摘要: nestjs,mongoose关联查询网上搜不到了,查看了nest/mongoose.d.ts文件,分享一波 user.model.ts import { Prop, Schema, SchemaFactory } from "@nestjs/mongoose" import { Document, 阅读全文
posted @ 2021-12-09 14:48 江山一族 阅读(885) 评论(0) 推荐(0) 编辑
摘要: export declare enum CronExpression { EVERY_SECOND = "* * * * * *", EVERY_5_SECONDS = "*/5 * * * * *", EVERY_10_SECONDS = "*/10 * * * * *", EVERY_30_SE 阅读全文
posted @ 2021-11-03 10:05 江山一族 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 1.验证枚举类型 var schema = { "properties": { "data": { "type": "object", "required": ["code", "status", "message", "data", "token"], "properties": { "code" 阅读全文
posted @ 2021-08-28 16:52 江山一族 阅读(597) 评论(0) 推荐(0) 编辑
摘要: 1.事务 try { const transaction = await sequelize.transaction(); const user = await User.findOne(..., { transaction }); await user.update(..., { transact 阅读全文
posted @ 2021-08-28 16:44 江山一族 阅读(149) 评论(0) 推荐(0) 编辑
摘要: const num = String(1232323.110); function formatNum(num){ //一位或三位数字,后边是 有三位数组一组的(1个或多个), 然后匹配结束或者. ,?=,?:参与格式匹配,不参与结果匹配,$1为 (\d{1,3})的匹配结果 return Stri 阅读全文
posted @ 2021-04-28 15:32 江山一族 阅读(3073) 评论(0) 推荐(1) 编辑