vue 实时显示年月日时分秒星期上下午
摘要:export default class GlobalHeader extends Vue { time: any = '' timeFormate(dt: any) { let yy = dt.getFullYear(); let mm = dt.getMonth() + 1; let dd =
阅读全文
posted @
2020-01-20 09:18
西门夜说
阅读(1297)
推荐(0)
数组转化树函数
摘要://数组转化为树 function arraytotree(arr) { var top = [], sub = [], tempObj = {}; arr.forEach(function (item) { if (item.parentId 0) { // 顶级分类 top.push(item)
阅读全文
posted @
2020-01-19 00:29
西门夜说
阅读(350)
推荐(0)
elementui Tree 树形控件
摘要:数据表结构: 后端代码: @RequestMapping(value = "/list", method = RequestMethod.POST) public Result findCategory(){ List<Category> list = categoryService.findCat
阅读全文
posted @
2020-01-19 00:25
西门夜说
阅读(17794)
推荐(3)
vue ref获取元素设置样式
摘要:<div ref="indexChart" ><div> this.$refs.indexChart.$el.style.display='none'
阅读全文
posted @
2020-01-15 15:45
西门夜说
阅读(15795)
推荐(0)
vue 点击动态切换样式
摘要:<template> <div> <el-row> <el-col :span="8" class="el-col" :class="{'BorderActive':isActive 1}" > <div > <img src="/img/map/basemap.png" @click="selec
阅读全文
posted @
2020-01-14 17:56
西门夜说
阅读(1740)
推荐(0)
css text-shadow 空心字
摘要:color: #FFFFFF !important; text-shadow: 1px 1px #0DADC5,-1px -1px #0DADC5,1px -1px #0DADC5,-1px 1px #0DADC5;
阅读全文
posted @
2020-01-14 11:26
西门夜说
阅读(1619)
推荐(0)
docker 部署fastdfs并上传文件
摘要:1.首先下载FastDFS文件系统的docker镜像 docker search fastdfs docker pull delron/fastdfs 2.使用docker镜像构建tracker容器(跟踪服务器,起到调度的作用): docker run -d --network=host --nam
阅读全文
posted @
2020-01-12 20:46
西门夜说
阅读(1821)
推荐(0)
css 样式div 斜边
摘要:.triangle{ width: 0; height: 0; margin-left: 160px; border-bottom: 40px solid #0059DF; border-left: 10px solid transparent; -webkit-transform: rotate(
阅读全文
posted @
2020-01-09 17:15
西门夜说
阅读(4376)
推荐(0)
vue 页面点击图标动态切换
摘要:<template> <el-container class="box-card"> <el-aside style="width: 16%;background-color: #ffffff;border: solid 2px #eeeeee"> <div class="content-heade
阅读全文
posted @
2020-01-09 14:10
西门夜说
阅读(3476)
推荐(0)
增删改查操作
摘要:前端: import { get,post,qspost,put,deletefn } from '../../utils/axios/axios' export const getBrandList = data => post("/item/brand/list",data) export co
阅读全文
posted @
2020-01-05 22:21
西门夜说
阅读(308)
推荐(0)
vue 对axios get pust put delete 封装
摘要:axios.js import axios from 'axios'; import Qs from 'qs'; import {Message} from 'element-ui'; axios.defaults.baseURL = "/api"; // 设置请求超时时间 axios.defaul
阅读全文
posted @
2020-01-05 02:32
西门夜说
阅读(4928)
推荐(2)
java返回分页结果集的封装
摘要:package com.leyou.common; import java.util.List; public class PageResult<T> { private long total;//总条数 private Integer totalPage;//总页数 private List<T>
阅读全文
posted @
2020-01-04 21:09
西门夜说
阅读(2013)
推荐(1)
spring data jpa 参数为null查询所有,否则根据参数查询
摘要:分页结果集封装 public class PageResult<T> { private long total;//总条数 private Integer totalPage;//总页数 private List<T> list; public PageResult() { } public Pag
阅读全文
posted @
2020-01-04 18:16
西门夜说
阅读(8735)
推荐(0)