12 2021 档案

摘要:el-form自定义校验规则 <el-form :model="moduleForm" label-width="160px" :rules="moduleFormRule" ref="moduleFormRuleRef"> ... <el-form-item label="模块别名" prop=" 阅读全文
posted @ 2021-12-30 10:53 仓鼠爱画方格子 阅读(934) 评论(0) 推荐(0)
摘要:https://www.vue-treeselect.cn/ 前端树,下拉框显示树结构 :defaultExpandLevel="Infinity" 设置 Infinity 为默认使所有分支节点扩展 在package.json中加入依赖 : "@riophae/vue-treeselect": "^ 阅读全文
posted @ 2021-12-29 16:14 仓鼠爱画方格子 阅读(1012) 评论(0) 推荐(0)
摘要:前端部分 <input id="upload" style="display:none" type="file" @change="getFile($event)" /> getFile (event) { let self = this console.log(event.target.files 阅读全文
posted @ 2021-12-28 17:04 仓鼠爱画方格子 阅读(109) 评论(0) 推荐(0)
摘要:先将根节点找出来 for (int i = 0; i < moduleList.size(); i++) { ProjectModuleV2 v2 = moduleList.get(i); String parentId = v2.getParentId(); if ("0".equals(pare 阅读全文
posted @ 2021-12-25 09:20 仓鼠爱画方格子 阅读(21) 评论(0) 推荐(0)
摘要:<!--模块新增编辑--> <el-dialog :title="moduleDialogName" :visible.sync="moduleDialog" :modal-append-to-body="false" center width="30%" > <el-form :model="mo 阅读全文
posted @ 2021-12-17 10:44 仓鼠爱画方格子 阅读(299) 评论(0) 推荐(0)
摘要:import com.alibaba.fastjson.JSONObject; 1. JSONObject json= new JSONObject(true); 2. JSONObject json = JSONObject.parseObject(content, Feature.Ordered 阅读全文
posted @ 2021-12-11 10:39 仓鼠爱画方格子 阅读(742) 评论(0) 推荐(0)
摘要:@Autowired private RedisTemplate<String, Object> redisTemplate; /** * 移除指定前缀的redis缓存 */ public void removeKeys() { String key = "servermonitor_" + "*" 阅读全文
posted @ 2021-12-11 10:30 仓鼠爱画方格子 阅读(822) 评论(0) 推荐(0)