05 2023 档案
摘要:1.判断预约日期是否是公休日 var isRestDay = queryModel.planDate.DayOfWeek == DayOfWeek.Saturday || queryModel.planDate.DayOfWeek == DayOfWeek.Sunday ? true : false
阅读全文
摘要:public OrderMappingProfile() { //将实体映射到KeyValuePair键值对 CreateMap<tab_carPlan, KeyValuePair<int, string>>() .ConstructUsing(x => new KeyValuePair<int,
阅读全文
摘要:原先的 this.addForm.strPrice = resPrice.result.strPrice this.addForm.price = resPrice.result.price this.addForm.priceId = resPrice.result.priceId 现在的只需一句
阅读全文
摘要:写了三行不如一行搞定 原先的 const inComeTypeId = this.queryForm.inComeTypeId const currentPage = this.queryForm.currentPage const pageSize = this.queryForm.pageSiz
阅读全文
摘要:第一步:下载qs组件 第二步:引入qs组件 import qs from 'qs' 第三步:创建接口方法 export const addPlan = (model) => { return request({ url: '/Plan/addPlan', method: 'POST', header
阅读全文
摘要:1.项目加入moment组件 yarn add moment 2.引入组件 import moment from 'moment' // 引入moment组件 3.例子:指定时间增加1小时代码 const t = '10:10' const t2 = moment(t, 'HH:mm').add(1
阅读全文
浙公网安备 33010602011771号