摘要: 标签中 :title <el-collapse-item :title="'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;第' + (yAxisIndex + 1) + '个y轴配置'" v-for="(yAxisItem,y 阅读全文
posted @ 2023-12-03 20:56 朱呀朱~ 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 根据开始时间、预测时长(即几个月),给 String 数组的时间 predictTime 赋值,并返回 double 数组的时间 tt /** * 获取预测时间段,封装进double类型数组,格式:202006 * @param predictionStart 开始预测时间 ‘2023-01’ * 阅读全文
posted @ 2023-12-03 20:56 朱呀朱~ 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 数据校验 表单中 以增加和修改下的弹窗里的 el-form 表单标签为例: 表单标签: <el-form :model="addGoodsDate" :rules="rule" ref="goodsFormRef"> :model 是 Element UI 中的一个属性,用于指定表单的数据模型(和 阅读全文
posted @ 2023-12-03 20:54 朱呀朱~ 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 需求:编写工具类要尽可能不用任意一个 jar 包依赖,或者尽可能精简 原有数据: ArpsParams{actualProduction=[{mouth=2022-07, oilProdDaily=366088.33}, {mouth=2022-08, oilProdDaily=380806.78} 阅读全文
posted @ 2023-12-03 20:52 朱呀朱~ 阅读(70) 评论(0) 推荐(0) 编辑
摘要: vue 百分值与数值之间转换 方法一: let topValue = Number(this.optionModel.grid[i].top); 是尝试把整个字符串转换为数字,包括百分号。如果字符串不能被解析为有效的数字,那么结果将是 NaN,在这种情况下,你可能需要添加错误处理代码来处理这种情况 阅读全文
posted @ 2023-12-03 20:51 朱呀朱~ 阅读(33) 评论(0) 推荐(0) 编辑
摘要: vue 循环显示数据 el-table 中 <template> <el-table :data="goodsList"> <el-table-column prop="goodsName" label="商品名称"></el-table-column> <!-- ...... --> </el-t 阅读全文
posted @ 2023-12-03 20:51 朱呀朱~ 阅读(64) 评论(0) 推荐(0) 编辑
摘要: vue 弹窗 <el-dialog> </el-dialog> 可以在其中编写所需的弹窗显示的内容 也可以在其中放组件标签作为弹窗 放一个组件的话,例: <el-dialog v-model="addGoodsDialog" :title="addGoodsTitle" width="60%" de 阅读全文
posted @ 2023-12-03 20:50 朱呀朱~ 阅读(90) 评论(0) 推荐(0) 编辑
摘要: vue 编辑器组件 添加依赖 "dependencies": { "@codemirror/autocomplete": "^6.4.2", "@codemirror/commands": "^6.2.1", "@codemirror/lang-javascript": "^6.0.2", "@co 阅读全文
posted @ 2023-12-03 20:49 朱呀朱~ 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 只适用于选项式 API 的情况下 this.$refs 是用于在 Vue 组件中访问子组件或者 DOM 元素的一种方式。通常,在模板中可以使用 ref 属性为子组件或者 DOM 元素指定引用,然后通过 this.$refs 来访问这些引用 在选项式 API(Options API)中,比如在 met 阅读全文
posted @ 2023-12-03 20:49 朱呀朱~ 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 情景:在 vue 组件获取了 js 里存储的数据后,想要给获取的 list 的每一条数据加上相同的属性作为公共部分 // 页面打开即加载方法 mounted() { this.init() }, methods:{ init(){ // 给新的进行重新赋d: this.xAxisStyle.forE 阅读全文
posted @ 2023-12-03 20:48 朱呀朱~ 阅读(53) 评论(0) 推荐(0) 编辑
摘要: JSON.stringify 和 JSON.parse JSON.stringify(): 作用: 用于将 JavaScript 对象或值转换为 JSON 字符串 语法: JSON.stringify(value[, replacer[, space]]) value: 要转换为 JSON 字符串的 阅读全文
posted @ 2023-12-03 20:48 朱呀朱~ 阅读(7) 评论(0) 推荐(0) 编辑
摘要: Element-Plus —— el-row + el-col element 是把每行划分为 24 个分栏 span 规定一个 col 占据 24 份中的多少份 平分一行为两列: <el-row> <el-col :span="12" >示例1</el-col> <el-col :span="12 阅读全文
posted @ 2023-12-03 20:47 朱呀朱~ 阅读(444) 评论(0) 推荐(0) 编辑
摘要: 批量查询 <select id="selectGoods" parameterType="cn.com.xxx.xx.entity.Goods" resultMap="goodsResultMap"> select g.GOODS_ID, g.GOODS_NAME, g.GOODS_CODE, g. 阅读全文
posted @ 2023-12-03 20:45 朱呀朱~ 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 点击 Maven 的 clean 确报错:Error running 'vs-file-backend-util [clean]': No valid Maven installation found. Either set the home directory in the configurati 阅读全文
posted @ 2023-12-03 20:44 朱呀朱~ 阅读(573) 评论(0) 推荐(0) 编辑
摘要: 情景:在 vue 页面上需要循环输出 list 中的每一个对象 item,可以编写 item 某一 name 属性值,并加以获取拼接(此法仅供参考,待完善) 例:页面上 v-for 循环: <!-- 页面上 --> <el-input v-model="yAxisItem.name" @input= 阅读全文
posted @ 2023-12-03 20:44 朱呀朱~ 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 显示红字报错:" 错误 找不到或无法加载主类 cn.com.xxx.arps.test.Test " Test.java: public class Test { public static void main(String[] args) { System.out.println("咋能报错呢") 阅读全文
posted @ 2023-12-03 20:43 朱呀朱~ 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 在前端打印出后端传来的详细信息 直接打印 res 可能就只是显示:Object 可以使用 JSON.stringify(res, null, 2) 将 res 对象转换为 JSON 字符串,并以缩进的格式打印出来,以便更清楚地查看对象的内容 可以不用 console.log 里的字符串拼接,直接逗号 阅读全文
posted @ 2023-12-03 20:42 朱呀朱~ 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 新导入一个前端项目: 但是报错: 直接输入指令 npm install 也是报错 可以选择一个简单粗暴的方法:npm install force 强制即可 阅读全文
posted @ 2023-12-03 20:42 朱呀朱~ 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 代码:import org.apache.commons.lang3.StringUtils; 不加依赖显示:Cannot resolve symbol 'lang3',加了依赖又显示:'com.sun.deploy.util.StringUtils' is already defined in a 阅读全文
posted @ 2023-12-03 20:40 朱呀朱~ 阅读(366) 评论(0) 推荐(0) 编辑