Commit d95f6ed4 by zzrdark

1.增加页面

2.系统管理大模块的修改
3. 产品系列
parent e430c585
......@@ -11,7 +11,7 @@
Target Server Version : 50726
File Encoding : 65001
Date: 03/03/2020 14:37:38
Date: 18/03/2020 15:13:38
*/
SET NAMES utf8mb4;
......@@ -84,6 +84,19 @@ CREATE TABLE `device_logsetting` (
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '设备日志设置' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for product_series
-- 设备产品系列表
-- ----------------------------
DROP TABLE IF EXISTS `product_series`;
CREATE TABLE `product_series` (
`series_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '系列id',
`series_num` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '产品系列号',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '产品系列详情',
`create_time` datetime(0) DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`series_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for sys_dept
-- 系统-部门(客户)表
-- ----------------------------
......
......@@ -9,7 +9,7 @@ import org.apache.ibatis.annotations.Mapper;
*
* @author Mark
* @email sunlightcs@gmail.com
* @date 2020-01-09 15:09:01
* @date 2020-03-18 14:44:30
*/
@Mapper
public interface DeviceInfoDao extends BaseMapper<DeviceInfoEntity> {
......
package com.mx.cneeds.server.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mx.cneeds.server.entity.ProductSeriesEntity;
import org.apache.ibatis.annotations.Mapper;
/**
*
*
* @author Mark
* @email sunlightcs@gmail.com
* @date 2020-03-18 14:44:30
*/
@Mapper
public interface ProductSeriesDao extends BaseMapper<ProductSeriesEntity> {
}
......@@ -12,7 +12,7 @@ import java.util.Date;
*
* @author Mark
* @email sunlightcs@gmail.com
* @date 2020-01-09 15:09:01
* @date 2020-03-18 14:44:30
*/
@Data
@TableName("device_info")
......@@ -47,7 +47,7 @@ public class DeviceInfoEntity implements Serializable {
/**
* 产品系列
*/
private String productSet;
private Long seriesId;
/**
* 创建时间
*/
......@@ -57,18 +57,16 @@ public class DeviceInfoEntity implements Serializable {
*/
private Date activeTime;
/**
* 渠道商号
* 分隔符","
* 渠道号
*/
public String channelNums;
private String channelNums;
/**
* 渠道号提示信息
*/
public String channelNumsMessage;
private String channelNumsMessage;
/**
* 0黑名单
* 1白名单
* 0:黑名单,1:白名单
*/
public Integer channelRules;
private Integer channelRules;
}
package com.mx.cneeds.server.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
*
*
* @author Mark
* @email sunlightcs@gmail.com
* @date 2020-03-18 14:44:30
*/
@Data
@TableName("product_series")
public class ProductSeriesEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 系列id
*/
@TableId
private Long seriesId;
/**
* 产品系列号
*/
private String seriesNum;
/**
* 产品系列详情
*/
private String remark;
/**
* 创建时间
*/
private Date createTime;
}
......@@ -11,7 +11,7 @@
<result property="iccid" column="iccid"/>
<result property="status" column="status"/>
<result property="deviceVersion" column="device_version"/>
<result property="productSet" column="product_set"/>
<result property="seriesId" column="series_id"/>
<result property="createTime" column="create_time"/>
<result property="activeTime" column="active_time"/>
<result property="channelNums" column="channel_nums"/>
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.mx.cneeds.server.dao.ProductSeriesDao">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="com.mx.cneeds.server.entity.ProductSeriesEntity" id="productSeriesMap">
<result property="seriesId" column="series_id"/>
<result property="seriesNum" column="series_num"/>
<result property="remark" column="remark"/>
<result property="createTime" column="create_time"/>
</resultMap>
</mapper>
\ No newline at end of file
package com.mx.cneeds.common.dto;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
* @ClassName SeriesDto
* @Author zzrdark
* @Date 2020-03-18 15:21
* @Description TODO
**/
@Data
public class SeriesDto implements Serializable {
/**
* 系列id
*/
private Long seriesId;
/**
* 产品系列号
*/
private String seriesNum;
/**
* 产品系列详情
*/
private String remark;
/**
* 创建时间
*/
private Date createTime;
}
......@@ -47,6 +47,10 @@ public class UserDto implements Serializable {
*/
private Long deptId;
/**
* 创建时间
*/
private Date createTime;
private List<Long> funcIdList;
......
package com.mx.cneeds.common.vo;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
......@@ -34,6 +35,7 @@ public class RoleVo implements Serializable {
/**
* 创建时间
*/
@DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss")
private Date createTime;
/**
......
package com.mx.cneeds.common.vo;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
/**
* @ClassName SeriesDto
* @Author zzrdark
* @Date 2020-03-18 15:21
* @Description TODO
**/
@Data
public class SeriesVo implements Serializable {
/**
* 系列id
*/
private Long seriesId;
/**
* 产品系列号
*/
private String seriesNum;
/**
* 产品系列详情
*/
private String remark;
/**
* 创建时间
*/
@DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss")
private Date createTime;
}
package com.mx.cneeds.common.vo;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
......@@ -46,6 +48,12 @@ public class UserVo implements Serializable {
*/
private Long deptId;
/**
* 创建时间
*/
@DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss")
private Date createTime;
private List<Long> funcIdList;
......
package com.mx.cneeds.server.datashow.client;
import com.mx.cneeds.common.dto.PageDto;
import com.mx.cneeds.common.dto.SeriesDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;
/**
* @ClassName DeviceClient
* @Author zzrdark
* @Date 2020-03-18 15:57
* @Description TODO
**/
@FeignClient(name = "CNEEDS-SERVER-DEVICE")
public interface DeviceClient {
@PostMapping("/device/series/list")
PageDto seriesList(@RequestParam Integer page,
@RequestParam("limit") Integer pageSize,
@RequestParam("sidx") String orderField,
@RequestParam("order") String order);
@PostMapping("/device/series/save")
void addSeries(@RequestBody SeriesDto dto);
@PostMapping("/device/series/update")
void updateSeries(@RequestBody SeriesDto dto);
@PostMapping("/device/series/delete")
void deleteSeries(@RequestBody List<Long> ids);
}
package com.mx.cneeds.server.datashow.web.device;
import com.mx.cneeds.common.converter.RequestParamterConverter;
import com.mx.cneeds.common.dto.DepartmentDto;
import com.mx.cneeds.common.dto.PageDto;
import com.mx.cneeds.common.dto.SeriesDto;
import com.mx.cneeds.common.result.R;
import com.mx.cneeds.common.vo.DeviceChannelVo;
import com.mx.cneeds.common.vo.SeriesVo;
import com.mx.cneeds.server.datashow.client.DeviceClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* @ClassName DeviceController
......@@ -19,6 +28,9 @@ import org.springframework.web.bind.annotation.RestController;
@RequestMapping("/device")
public class DeviceController {
@Autowired
private DeviceClient deviceClient;
@GetMapping("/getChannel_nums")
public R getChannel_nums(String imei){
......@@ -27,4 +39,70 @@ public class DeviceController {
return new R().put("data",channelVo);
}
@PostMapping("/series/list")
public R seriesList(@RequestParam(required = false) Integer page,
@RequestParam(required = false) Integer pageSize,
@RequestParam(required = false) String sort){
String orderField = null;
String order = null;
if (page==null || page==0){
page = new Integer(1);
}
if (pageSize==null || pageSize==0){
pageSize = new Integer(10);
}
if (StringUtils.isNotEmpty(sort) && StringUtils.isNotBlank(sort.trim())){
if (sort.contains("+")){
order = new String("asc");
}
if (sort.contains("-")){
order = new String("desc");
}
orderField = sort.substring(1);
orderField = RequestParamterConverter.toLine(orderField);
}
PageDto pageDto = deviceClient.seriesList(page,pageSize,orderField,order);
return new R().put("data",pageDto);
}
@PostMapping("/series/add")
public R addSeries(SeriesVo seriesVo){
SeriesDto seriesDto = new SeriesDto();
BeanUtils.copyProperties(seriesVo,seriesDto);
deviceClient.addSeries(seriesDto);
return R.ok();
}
@PostMapping("/series/edit")
public R editSeries(SeriesVo seriesVo){
SeriesDto seriesDto = new SeriesDto();
BeanUtils.copyProperties(seriesVo,seriesDto);
deviceClient.updateSeries(seriesDto);
return R.ok();
}
@PostMapping("/series/delete")
public R deleteSeries(@RequestParam(value = "ids",required = false) List<Long> ids){
deviceClient.deleteSeries(ids);
return R.ok();
}
}
......@@ -291,7 +291,7 @@ public class SystemController {
return R.ok().put("data",dto);
}
@RequestMapping("/role/add")
@PostMapping("/role/add")
public R roleAdd(RoleVo vo){
RoleDto dto = new RoleDto();
BeanUtils.copyProperties(vo,dto);
......
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><meta name=renderer content=webkit><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><link rel=icon href=./favicon.ico><title>springSecurity登陆demo</title><link href=static/css/chunk-libs.3dfb7769.css rel=stylesheet><link href=static/css/app.53f7b034.css rel=stylesheet></head><body><div id=app></div><script src=static/js/chunk-elementUI.1c191b8c.js></script><script src=static/js/chunk-libs.dc23c267.js></script><script>(function(e){function n(n){for(var t,r,d=n[0],f=n[1],o=n[2],h=0,i=[];h<d.length;h++)r=d[h],u[r]&&i.push(u[r][0]),u[r]=0;for(t in f)Object.prototype.hasOwnProperty.call(f,t)&&(e[t]=f[t]);l&&l(n);while(i.length)i.shift()();return a.push.apply(a,o||[]),c()}function c(){for(var e,n=0;n<a.length;n++){for(var c=a[n],t=!0,r=1;r<c.length;r++){var d=c[r];0!==u[d]&&(t=!1)}t&&(a.splice(n--,1),e=f(f.s=c[0]))}return e}var t={},r={runtime:0},u={runtime:0},a=[];function d(e){return f.p+"static/js/"+({}[e]||e)+"."+{"chunk-06aa7494":"06e9eb28","chunk-21520446":"0ba4244e","chunk-218bb4cf":"bbc78c96","chunk-2b4823a9":"8b477be6","chunk-2d2105d3":"c38e1553","chunk-2d230fe7":"8023f254","chunk-3b59103a":"8d86d081","chunk-403c80dd":"94c0ac41","chunk-42768dcf":"af38ec7a","chunk-47af9ee4":"c1792ef7","chunk-4a8d06a6":"81dbed13","chunk-4ab8490a":"d0b52c5a","chunk-5411756c":"80e1e589","chunk-56d3065a":"f080c714","chunk-10f36354":"7f6359fa","chunk-636f8118":"9a467c91","chunk-64238bd4":"b5c58bf5","chunk-67ae84aa":"ad314bd8","chunk-73bfcbf0":"58efd4e9","chunk-7b66cc0a":"d0fee21d","chunk-e19c4374":"65d65d64","chunk-2d0cfe15":"286a34ef","chunk-2d213927":"a484a4fb","chunk-e652b80c":"0ad9ee3a"}[e]+".js"}function f(n){if(t[n])return t[n].exports;var c=t[n]={i:n,l:!1,exports:{}};return e[n].call(c.exports,c,c.exports,f),c.l=!0,c.exports}f.e=function(e){var n=[],c={"chunk-06aa7494":1,"chunk-218bb4cf":1,"chunk-2b4823a9":1,"chunk-42768dcf":1,"chunk-4a8d06a6":1,"chunk-4ab8490a":1,"chunk-5411756c":1,"chunk-10f36354":1,"chunk-64238bd4":1,"chunk-67ae84aa":1,"chunk-e19c4374":1};r[e]?n.push(r[e]):0!==r[e]&&c[e]&&n.push(r[e]=new Promise((function(n,c){for(var t="static/css/"+({}[e]||e)+"."+{"chunk-06aa7494":"9d63d053","chunk-21520446":"31d6cfe0","chunk-218bb4cf":"9d63d053","chunk-2b4823a9":"9d63d053","chunk-2d2105d3":"31d6cfe0","chunk-2d230fe7":"31d6cfe0","chunk-3b59103a":"31d6cfe0","chunk-403c80dd":"31d6cfe0","chunk-42768dcf":"9d63d053","chunk-47af9ee4":"31d6cfe0","chunk-4a8d06a6":"e9a4618c","chunk-4ab8490a":"9d63d053","chunk-5411756c":"9d63d053","chunk-56d3065a":"31d6cfe0","chunk-10f36354":"129625a4","chunk-636f8118":"31d6cfe0","chunk-64238bd4":"70564041","chunk-67ae84aa":"eedc5334","chunk-73bfcbf0":"31d6cfe0","chunk-7b66cc0a":"31d6cfe0","chunk-e19c4374":"36699270","chunk-2d0cfe15":"31d6cfe0","chunk-2d213927":"31d6cfe0","chunk-e652b80c":"31d6cfe0"}[e]+".css",u=f.p+t,a=document.getElementsByTagName("link"),d=0;d<a.length;d++){var o=a[d],h=o.getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(h===t||h===u))return n()}var i=document.getElementsByTagName("style");for(d=0;d<i.length;d++){o=i[d],h=o.getAttribute("data-href");if(h===t||h===u)return n()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=n,l.onerror=function(n){var t=n&&n.target&&n.target.src||u,a=new Error("Loading CSS chunk "+e+" failed.\n("+t+")");a.request=t,delete r[e],l.parentNode.removeChild(l),c(a)},l.href=u;var k=document.getElementsByTagName("head")[0];k.appendChild(l)})).then((function(){r[e]=0})));var t=u[e];if(0!==t)if(t)n.push(t[2]);else{var a=new Promise((function(n,c){t=u[e]=[n,c]}));n.push(t[2]=a);var o,h=document.createElement("script");h.charset="utf-8",h.timeout=120,f.nc&&h.setAttribute("nonce",f.nc),h.src=d(e),o=function(n){h.onerror=h.onload=null,clearTimeout(i);var c=u[e];if(0!==c){if(c){var t=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src,a=new Error("Loading chunk "+e+" failed.\n("+t+": "+r+")");a.type=t,a.request=r,c[1](a)}u[e]=void 0}};var i=setTimeout((function(){o({type:"timeout",target:h})}),12e4);h.onerror=h.onload=o,document.head.appendChild(h)}return Promise.all(n)},f.m=e,f.c=t,f.d=function(e,n,c){f.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:c})},f.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(e,n){if(1&n&&(e=f(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(f.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var t in e)f.d(c,t,function(n){return e[n]}.bind(null,t));return c},f.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return f.d(n,"a",n),n},f.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},f.p="",f.oe=function(e){throw console.error(e),e};var o=window["webpackJsonp"]=window["webpackJsonp"]||[],h=o.push.bind(o);o.push=n,o=o.slice();for(var i=0;i<o.length;i++)n(o[i]);var l=h;c()})([]);</script><script src=static/js/app.e5fc0d17.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
.pagination-container[data-v-f3b72548]{background:#fff;padding:32px 16px}.pagination-container.hidden[data-v-f3b72548]{display:none}.waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}
\ No newline at end of file
.pagination-container[data-v-f3b72548]{background:#fff;padding:32px 16px}.pagination-container.hidden[data-v-f3b72548]{display:none}.waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}
\ No newline at end of file
.pagination-container[data-v-f3b72548]{background:#fff;padding:32px 16px}.pagination-container.hidden[data-v-f3b72548]{display:none}.waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}
\ No newline at end of file
.pagination-container[data-v-f3b72548]{background:#fff;padding:32px 16px}.pagination-container.hidden[data-v-f3b72548]{display:none}.waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}
\ No newline at end of file
.errPage-container[data-v-6de193e6]{width:800px;max-width:100%;margin:100px auto}.errPage-container .pan-back-btn[data-v-6de193e6]{background:#008489;color:#fff;border:none!important}.errPage-container .pan-gif[data-v-6de193e6]{margin:0 auto;display:block}.errPage-container .pan-img[data-v-6de193e6]{display:block;margin:0 auto;width:100%}.errPage-container .text-jumbo[data-v-6de193e6]{font-size:60px;font-weight:700;color:#484848}.errPage-container .list-unstyled[data-v-6de193e6]{font-size:14px}.errPage-container .list-unstyled li[data-v-6de193e6]{padding-bottom:5px}.errPage-container .list-unstyled a[data-v-6de193e6]{color:#008489;text-decoration:none}.errPage-container .list-unstyled a[data-v-6de193e6]:hover{text-decoration:underline}
\ No newline at end of file
.pagination-container[data-v-f3b72548]{background:#fff;padding:32px 16px}.pagination-container.hidden[data-v-f3b72548]{display:none}.waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}
\ No newline at end of file
.pagination-container[data-v-f3b72548]{background:#fff;padding:32px 16px}.pagination-container.hidden[data-v-f3b72548]{display:none}.waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}
\ No newline at end of file
.wscn-http404-container[data-v-22c31b5a]{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);position:absolute;top:40%;left:50%}.wscn-http404[data-v-22c31b5a]{position:relative;width:1200px;padding:0 50px;overflow:hidden}.wscn-http404 .pic-404[data-v-22c31b5a]{position:relative;float:left;width:600px;overflow:hidden}.wscn-http404 .pic-404__parent[data-v-22c31b5a]{width:100%}.wscn-http404 .pic-404__child[data-v-22c31b5a]{position:absolute}.wscn-http404 .pic-404__child.left[data-v-22c31b5a]{width:80px;top:17px;left:220px;opacity:0;-webkit-animation-name:cloudLeft-data-v-22c31b5a;animation-name:cloudLeft-data-v-22c31b5a;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-delay:1s;animation-delay:1s}.wscn-http404 .pic-404__child.mid[data-v-22c31b5a]{width:46px;top:10px;left:420px;opacity:0;-webkit-animation-name:cloudMid-data-v-22c31b5a;animation-name:cloudMid-data-v-22c31b5a;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-delay:1.2s;animation-delay:1.2s}.wscn-http404 .pic-404__child.right[data-v-22c31b5a]{width:62px;top:100px;left:500px;opacity:0;-webkit-animation-name:cloudRight-data-v-22c31b5a;animation-name:cloudRight-data-v-22c31b5a;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-delay:1s;animation-delay:1s}@-webkit-keyframes cloudLeft-data-v-22c31b5a{0%{top:17px;left:220px;opacity:0}20%{top:33px;left:188px;opacity:1}80%{top:81px;left:92px;opacity:1}to{top:97px;left:60px;opacity:0}}@keyframes cloudLeft-data-v-22c31b5a{0%{top:17px;left:220px;opacity:0}20%{top:33px;left:188px;opacity:1}80%{top:81px;left:92px;opacity:1}to{top:97px;left:60px;opacity:0}}@-webkit-keyframes cloudMid-data-v-22c31b5a{0%{top:10px;left:420px;opacity:0}20%{top:40px;left:360px;opacity:1}70%{top:130px;left:180px;opacity:1}to{top:160px;left:120px;opacity:0}}@keyframes cloudMid-data-v-22c31b5a{0%{top:10px;left:420px;opacity:0}20%{top:40px;left:360px;opacity:1}70%{top:130px;left:180px;opacity:1}to{top:160px;left:120px;opacity:0}}@-webkit-keyframes cloudRight-data-v-22c31b5a{0%{top:100px;left:500px;opacity:0}20%{top:120px;left:460px;opacity:1}80%{top:180px;left:340px;opacity:1}to{top:200px;left:300px;opacity:0}}@keyframes cloudRight-data-v-22c31b5a{0%{top:100px;left:500px;opacity:0}20%{top:120px;left:460px;opacity:1}80%{top:180px;left:340px;opacity:1}to{top:200px;left:300px;opacity:0}}.wscn-http404 .bullshit[data-v-22c31b5a]{position:relative;float:left;width:300px;padding:30px 0;overflow:hidden}.wscn-http404 .bullshit__oops[data-v-22c31b5a]{font-size:32px;line-height:40px;color:#1482f0;margin-bottom:20px;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.wscn-http404 .bullshit__headline[data-v-22c31b5a],.wscn-http404 .bullshit__oops[data-v-22c31b5a]{font-weight:700;opacity:0;-webkit-animation-name:slideUp-data-v-22c31b5a;animation-name:slideUp-data-v-22c31b5a;-webkit-animation-duration:.5s;animation-duration:.5s}.wscn-http404 .bullshit__headline[data-v-22c31b5a]{font-size:20px;line-height:24px;color:#222;margin-bottom:10px;-webkit-animation-delay:.1s;animation-delay:.1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.wscn-http404 .bullshit__info[data-v-22c31b5a]{font-size:13px;line-height:21px;color:grey;margin-bottom:30px;-webkit-animation-delay:.2s;animation-delay:.2s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.wscn-http404 .bullshit__info[data-v-22c31b5a],.wscn-http404 .bullshit__return-home[data-v-22c31b5a]{opacity:0;-webkit-animation-name:slideUp-data-v-22c31b5a;animation-name:slideUp-data-v-22c31b5a;-webkit-animation-duration:.5s;animation-duration:.5s}.wscn-http404 .bullshit__return-home[data-v-22c31b5a]{display:block;float:left;width:110px;height:36px;background:#1482f0;border-radius:100px;text-align:center;color:#fff;font-size:14px;line-height:36px;cursor:pointer;-webkit-animation-delay:.3s;animation-delay:.3s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes slideUp-data-v-22c31b5a{0%{-webkit-transform:translateY(60px);transform:translateY(60px);opacity:0}to{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}}@keyframes slideUp-data-v-22c31b5a{0%{-webkit-transform:translateY(60px);transform:translateY(60px);opacity:0}to{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}}
\ No newline at end of file
@supports (-webkit-mask:none) and (not (cater-color:#fff)){.login-container .el-input input{color:#fff}}.login-container .el-input{display:inline-block;height:47px;width:85%}.login-container .el-input input{background:transparent;border:0;-webkit-appearance:none;border-radius:0;padding:12px 5px 12px 15px;color:#fff;height:47px;caret-color:#fff}.login-container .el-input input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #283443 inset!important;box-shadow:inset 0 0 0 1000px #283443!important;-webkit-text-fill-color:#fff!important}.login-container .el-form-item{border:1px solid hsla(0,0%,100%,.1);background:rgba(0,0,0,.1);border-radius:5px;color:#454545}.login-container[data-v-0ba579f9]{min-height:100%;width:100%;background-color:#2d3a4b;overflow:hidden}.login-container .login-form[data-v-0ba579f9]{position:relative;width:520px;max-width:100%;padding:160px 35px 0;margin:0 auto;overflow:hidden}.login-container .tips[data-v-0ba579f9]{font-size:14px;color:#fff;margin-bottom:10px}.login-container .tips span[data-v-0ba579f9]:first-of-type{margin-right:16px}.login-container .svg-container[data-v-0ba579f9]{padding:6px 5px 6px 15px;color:#889aa4;vertical-align:middle;width:30px;display:inline-block}.login-container .title-container[data-v-0ba579f9]{position:relative}.login-container .title-container .title[data-v-0ba579f9]{font-size:26px;color:#eee;margin:0 auto 40px auto;text-align:center;font-weight:700}.login-container .show-pwd[data-v-0ba579f9]{position:absolute;right:10px;top:7px;font-size:16px;color:#889aa4;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.login-container .thirdparty-button[data-v-0ba579f9]{position:absolute;right:0;bottom:6px}@media only screen and (max-width:470px){.login-container .thirdparty-button[data-v-0ba579f9]{display:none}}
\ No newline at end of file
.material-input__component .material-input-bar[data-v-d9b004ee]:after,.material-input__component .material-input-bar[data-v-d9b004ee]:before{content:"";height:1px;width:0;bottom:0;position:absolute;-webkit-transition:all .2s ease;transition:all .2s ease}.material-input__component[data-v-d9b004ee]{margin-top:36px;position:relative}.material-input__component [data-v-d9b004ee]{-webkit-box-sizing:border-box;box-sizing:border-box}.material-input__component .iconClass .material-input__icon[data-v-d9b004ee]{position:absolute;left:0;line-height:16px;color:#2196f3;top:12px;width:30px;height:16px;font-size:16px;font-weight:400;pointer-events:none}.material-input__component .iconClass .material-label[data-v-d9b004ee]{left:30px}.material-input__component .iconClass .material-input[data-v-d9b004ee]{text-indent:30px}.material-input__component .material-input[data-v-d9b004ee]{font-size:16px;padding:12px 12px 2px 6px;display:block;width:100%;border:none;line-height:1;border-radius:0}.material-input__component .material-input[data-v-d9b004ee]:focus{outline:none;border:none;border-bottom:1px solid transparent}.material-input__component .material-label[data-v-d9b004ee]{font-weight:400;position:absolute;pointer-events:none;left:0;top:0;-webkit-transition:all .2s ease;transition:all .2s ease;font-size:18px}.material-input__component .material-input-bar[data-v-d9b004ee]{position:relative;display:block;width:100%}.material-input__component .material-input-bar[data-v-d9b004ee]:before{left:50%}.material-input__component .material-input-bar[data-v-d9b004ee]:after{right:50%}.material-input__component.material--disabled .material-input[data-v-d9b004ee]{border-bottom-style:dashed}.material-input__component.material--raised .material-label[data-v-d9b004ee]{top:-28px;left:0;font-size:16px;font-weight:700}.material-input__component.material--active .material-input-bar[data-v-d9b004ee]:after,.material-input__component.material--active .material-input-bar[data-v-d9b004ee]:before{width:50%}.material-input__component[data-v-d9b004ee]{background:#fff}.material-input__component .material-input[data-v-d9b004ee]{background:none;color:#000;text-indent:0;border-bottom:1px solid #e0e0e0}.material-input__component .material-label[data-v-d9b004ee]{color:#9e9e9e}.material-input__component .material-input-bar[data-v-d9b004ee]:after,.material-input__component .material-input-bar[data-v-d9b004ee]:before{background:#2196f3}.material-input__component.material--active .material-label[data-v-d9b004ee]{color:#2196f3}.material-input__component.material--has-errors.material--active .material-label[data-v-d9b004ee]{color:#f44336}.material-input__component.material--has-errors .material-input-bar[data-v-d9b004ee]:after,.material-input__component.material--has-errors .material-input-bar[data-v-d9b004ee]:before{background:transparent}.detail-container[data-v-96296cca]{padding:40px 50px 20px}.detail-container .preview-img[data-v-96296cca]{width:200px;height:270px}
\ No newline at end of file
/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:inherit;font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}[hidden],template{display:none}#nprogress{pointer-events:none}#nprogress .bar{background:#29d;position:fixed;z-index:1031;top:0;left:0;width:100%;height:2px}#nprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;-webkit-box-shadow:0 0 10px #29d,0 0 5px #29d;box-shadow:0 0 10px #29d,0 0 5px #29d;opacity:1;-webkit-transform:rotate(3deg) translateY(-4px);transform:rotate(3deg) translateY(-4px)}#nprogress .spinner{display:block;position:fixed;z-index:1031;top:15px;right:15px}#nprogress .spinner-icon{width:18px;height:18px;-webkit-box-sizing:border-box;box-sizing:border-box;border:2px solid transparent;border-top-color:#29d;border-left-color:#29d;border-radius:50%;-webkit-animation:nprogress-spinner .4s linear infinite;animation:nprogress-spinner .4s linear infinite}.nprogress-custom-parent{overflow:hidden;position:relative}.nprogress-custom-parent #nprogress .bar,.nprogress-custom-parent #nprogress .spinner{position:absolute}@-webkit-keyframes nprogress-spinner{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(1turn)}}@keyframes nprogress-spinner{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-06aa7494"],{"1c64":function(e,t,n){},"1cc6":function(e,t,n){"use strict";var a=n("1c64"),i=n.n(a);i.a},"2c98":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));n("55dd");var a=n("b775");function i(e){return Object(a["a"])({url:"/sys/module/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function o(){return Object(a["a"])({url:"/sys/func/listAll",method:"post"})}},"333d":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},i=[];n("c5f6");Math.easeInOutQuad=function(e,t,n,a){return e/=a/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var o=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function l(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,n){var a=l(),i=e-a,s=20,u=0;t="undefined"===typeof t?500:t;var c=function e(){u+=s;var l=Math.easeInOutQuad(u,a,i,t);r(l),u<t?o(e):n&&"function"===typeof n&&n()};c()}var u={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&s(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&s(0,800)}}},c=u,d=(n("1cc6"),n("2877")),p=Object(d["a"])(c,a,i,!1,null,"f3b72548",null);t["a"]=p.exports},"8d41":function(e,t,n){},c7a7:function(e,t,n){"use strict";n("8d41");var a="@@wavesContext";function i(e,t){function n(n){var a=Object.assign({},t.value),i=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},a),o=i.ele;if(o){o.style.position="relative",o.style.overflow="hidden";var r=o.getBoundingClientRect(),l=o.querySelector(".waves-ripple");switch(l?l.className="waves-ripple":(l=document.createElement("span"),l.className="waves-ripple",l.style.height=l.style.width=Math.max(r.width,r.height)+"px",o.appendChild(l)),i.type){case"center":l.style.top=r.height/2-l.offsetHeight/2+"px",l.style.left=r.width/2-l.offsetWidth/2+"px";break;default:l.style.top=(n.pageY-r.top-l.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",l.style.left=(n.pageX-r.left-l.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return l.style.backgroundColor=i.color,l.className="waves-ripple z-active",!1}}return e[a]?e[a].removeHandle=n:e[a]={removeHandle:n},n}t["a"]={bind:function(e,t){e.addEventListener("click",i(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[a].removeHandle,!1),e.addEventListener("click",i(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[a].removeHandle,!1),e[a]=null,delete e[a]}}},e71b:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":"","default-sort":e.defaultSort},on:{"sort-change":e.sortChange}},[n("el-table-column",{attrs:{label:"模块ID",prop:"funcId",sortable:"custom",align:"center",width:"80"}}),e._v(" "),n("el-table-column",{attrs:{label:"父类ID",prop:"parentId",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"名字",prop:"name",width:"300",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"地址",prop:"url",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"权限",prop:"perms",width:"100",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"类型",prop:"type",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row.type;return[n("span",[e._v(e._s(e._f("typeValueFilter")(a)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"排序",prop:"orderNum",width:"150",align:"center"}})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.pageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.refresh}})],1)},i=[],o=n("333d"),r=n("c7a7"),l=n("2c98"),s=n("ed08"),u={components:{Pagination:o["a"]},directives:{waves:r["a"]},filters:{typeValueFilter:function(e){return e=0===e?"目录":1===e?"菜单":"按钮",e},valueFilter:function(e){return e||"无"},timeFilter:function(e){return e?Object(s["d"])(e,"{y}-{m}-{d} {h}:{i}"):"无"}},data:function(){return{tableKey:0,listLoading:!0,listQuery:{},list:[],total:0,defaultSort:{}}},created:function(){},mounted:function(){this.getList()},beforeRouteUpdate:function(e,t,n){if(e.path===t.path){var a=Object.assign({},e.query),i=Object.assign({},t.query);JSON.stringify(a)!==JSON.stringify(i)&&this.getList()}n()},methods:{sortChange:function(e){console.log("sortChange",e);var t=e.prop,n=e.order;this.sortBy(t,n)},sortBy:function(e,t){this.listQuery.sort="ascending"===t?"+".concat(e):"-".concat(e),this.handleFilter()},getList:function(){var e=this;this.listLoading=!0,Object(l["a"])(this.listQuery).then((function(t){var n=t.data,a=n.list,i=n.totalCount;e.list=a,e.total=i,e.listLoading=!1}))},refresh:function(){this.$router.push({path:"/system/module",query:this.listQuery})},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()}}},c=u,d=n("2877"),p=Object(d["a"])(c,a,i,!1,null,"1c722d9c",null);t["default"]=p.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-21520446"],{ee7e:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-main",[n("el-form",{ref:"editDept",attrs:{model:e.dept,rules:e.rules,"label-width":"80px"}},[n("el-form-item",{attrs:{prop:"parentId",label:"父级"}},[n("el-cascader",{attrs:{"expand-trigger":"hover",options:e.options,"show-all-levels":!1,"change-on-select":""},on:{change:e.handleChange},model:{value:e.selectDeptParents,callback:function(t){e.selectDeptParents=t},expression:"selectDeptParents"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"name",label:"客户名称"}},[n("el-input",{model:{value:e.dept.name,callback:function(t){e.$set(e.dept,"name",t)},expression:"dept.name"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"delFlag",label:"可用"}},[n("el-select",{attrs:{placeholder:"选择"},model:{value:e.dept.delFlag,callback:function(t){e.$set(e.dept,"delFlag",t)},expression:"dept.delFlag"}},[n("el-option",{attrs:{label:"可用",value:"0"}}),e._v(" "),n("el-option",{attrs:{label:"不可用",value:"1"}})],1)],1),e._v(" "),n("el-form-item",{attrs:{prop:"distributorNum",label:"渠道商"}},[n("el-input",{model:{value:e.dept.distributorNum,callback:function(t){e.$set(e.dept,"distributorNum",t)},expression:"dept.distributorNum"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"remark",label:"描述"}},[n("el-input",{model:{value:e.dept.remark,callback:function(t){e.$set(e.dept,"remark",t)},expression:"dept.remark"}})],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("修改")]),e._v(" "),n("el-button",{on:{click:e.toDeptList}},[e._v("取消")])],1)],1)],1)],1)},a=[],i=(n("ac6a"),n("456d"),n("96cf"),n("3b8d")),s=n("fe05"),o=n("f62d"),u={parentId:"选择父级",name:"客户名称",delFlag:"可用",distributorNum:"渠道商号",remark:"描述"},l={data:function(){var e=function(e,t,n){0===t.length?n(new Error(u[e.field]+"必须填写")):n()};return{loading:!1,dept:{deptId:"",parentId:"",name:"",delFlag:"",distributorNum:"",remark:""},rules:{name:[{validator:e}],delFlag:[{validator:e}]},options:[],selectDeptParents:[]}},mounted:function(){this.dept=this.$route.query.dept,this.getFormData()},methods:{getFormData:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.selectDeptParent();case 2:return e.next=4,this.setSelectCas();case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),setDefault:function(){this.$refs.editDept.resetFields()},onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.editDept.validate((function(t,n){if(t)Object(s["d"])(e.dept).then((function(t){var n=t.msg;e.$notify({title:"操作成功",message:n,type:"success",duration:2e3}),e.loading=!1,e.setDefault(),e.toDeptList()})).catch((function(){e.loading=!1}));else{var r=n[Object.keys(n)[0]][0].message;e.$message({message:r,type:"error"}),e.loading=!1}})))},handleChange:function(e){var t=e.length;t-=1,this.dept.parentId=e[t]},toDeptList:function(){this.$router.push({path:"/system/dept"})},selectDeptParent:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(s["e"])().then((function(e){var n=e.data;t.options=n}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),setSelectCas:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=[],e.next=3,Object(o["a"])(t,this.options,this.dept.parentId);case 3:this.selectDeptParents=t;case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},c=l,p=n("2877"),d=Object(p["a"])(c,r,a,!1,null,"2b6acf90",null);t["default"]=d.exports},f62d:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n("96cf");var r=n("3b8d");n("ac6a");function a(e,t,n){return i.apply(this,arguments)}function i(){return i=Object(r["a"])(regeneratorRuntime.mark((function e(t,n,r){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n.forEach((function(e){return e.value===r?(t.unshift(e.value),t):0===e.children.length?null:void a(t,e.children,r).then((function(){t.unshift(e.value)}))}));case 1:case"end":return e.stop()}}),e)}))),i.apply(this,arguments)}},fe05:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"e",(function(){return i})),n.d(t,"f",(function(){return s})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return u})),n.d(t,"b",(function(){return l}));n("55dd");var r=n("b775");function a(e){return Object(r["a"])({url:"/sys/dept/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function i(){return Object(r["a"])({url:"/sys/dept/listAll",method:"post"})}function s(){return Object(r["a"])({url:"/sys/dept/listAllTree",method:"post"})}function o(e){return Object(r["a"])({url:"/sys/dept/add",method:"post",data:e})}function u(e){return Object(r["a"])({url:"/sys/dept/edit",method:"post",data:e})}function l(e){return Object(r["a"])({url:"/sys/dept/delete",method:"post",data:{ids:e}})}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-218bb4cf"],{"1c64":function(e,t,n){},"1cc6":function(e,t,n){"use strict";var i=n("1c64"),a=n.n(i);a.a},"2bee":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-header",[n("div",{staticStyle:{margin:"20px 0"}},[n("el-button",{on:{click:e.addPage}},[e._v("添加产品系列")]),e._v(" "),n("el-button",{on:{click:e.editPage}},[e._v("编辑产品系列")]),e._v(" "),n("el-button",{on:{click:e.deletePage}},[e._v("删除产品系列")])],1)]),e._v(" "),n("el-main",[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":"","default-sort":e.defaultSort},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),n("el-table-column",{attrs:{label:"序号",prop:"seriesId",sortable:"custom",align:"center",width:"80"}}),e._v(" "),n("el-table-column",{attrs:{label:"产品系列号",prop:"seriesNum",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"产品系列详情",prop:"remark",width:"300",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"时间",prop:"createTime",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.createTime;return[n("span",[e._v(e._s(e._f("timeFilter")(i)))])]}}])})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.pageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.refresh}})],1)],1)},a=[],r=(n("ac6a"),n("333d")),o=n("c7a7"),s=n("7d09"),l=n("ed08"),u={components:{Pagination:r["a"]},directives:{waves:o["a"]},filters:{delFlagValueFilter:function(e){return-1===e?e="不可用":0===e&&(e="可用"),e},valueFilter:function(e){return e||"无"},timeFilter:function(e){return e?Object(l["d"])(e,"{y}-{m}-{d} {h}:{i}"):"无"}},data:function(){return{tableKey:0,listLoading:!0,listQuery:{},list:[],total:0,defaultSort:{},multipleSelection:[],series:{},seriesIds:[]}},mounted:function(){this.getList()},beforeRouteUpdate:function(e,t,n){if(e.path===t.path){var i=Object.assign({},e.query),a=Object.assign({},t.query);JSON.stringify(i)!==JSON.stringify(a)&&this.getList()}n()},methods:{handleSelectionChange:function(e){this.multipleSelection=e},sortChange:function(e){console.log("sortChange",e);var t=e.prop,n=e.order;this.sortBy(t,n)},sortBy:function(e,t){this.listQuery.sort="ascending"===t?"+".concat(e):"-".concat(e),this.handleFilter()},getList:function(){var e=this;this.listLoading=!0,Object(s["d"])(this.listQuery).then((function(t){var n=t.data,i=n.list,a=n.totalCount;e.list=i,e.total=a,e.listLoading=!1}))},refresh:function(){this.$router.push({path:"/configManagement/productSeries",query:this.listQuery})},addPage:function(){this.$router.push({path:"/configManagement/productSeries/add"})},editPage:function(){if(0!==this.multipleSelection.length)if(this.multipleSelection.length>1){var e="单选";this.$message({message:e,type:"error"})}else this.series=this.multipleSelection[0],this.$router.push({path:"/configManagement/productSeries/edit",query:{series:this.series}});else{var t="必须选一列";this.$message({message:t,type:"error"})}},deletePage:function(){var e=this;if(0!==this.multipleSelection.length)this.multipleSelection.forEach((function(t){e.seriesIds.push(t.seriesId)})),Object(s["b"])(this.seriesIds).then((function(t){e.getList()})),this.seriesIds=[];else{var t="必须选一列";this.$message({message:t,type:"error"})}},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()}}},c=u,d=n("2877"),p=Object(d["a"])(c,i,a,!1,null,"c82aa268",null);t["default"]=p.exports},"333d":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},a=[];n("c5f6");Math.easeInOutQuad=function(e,t,n,i){return e/=i/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function o(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function s(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function l(e,t,n){var i=s(),a=e-i,l=20,u=0;t="undefined"===typeof t?500:t;var c=function e(){u+=l;var s=Math.easeInOutQuad(u,i,a,t);o(s),u<t?r(e):n&&"function"===typeof n&&n()};c()}var u={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&l(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&l(0,800)}}},c=u,d=(n("1cc6"),n("2877")),p=Object(d["a"])(c,i,a,!1,null,"f3b72548",null);t["a"]=p.exports},"7d09":function(e,t,n){"use strict";n.d(t,"d",(function(){return a})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return s}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/device/series/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function r(e){return Object(i["a"])({url:"/device/series/add",method:"post",data:e})}function o(e){return Object(i["a"])({url:"/device/series/edit",method:"post",data:e})}function s(e){return Object(i["a"])({url:"/device/series/delete",method:"post",data:{ids:e}})}},"8d41":function(e,t,n){},c7a7:function(e,t,n){"use strict";n("8d41");var i="@@wavesContext";function a(e,t){function n(n){var i=Object.assign({},t.value),a=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),r=a.ele;if(r){r.style.position="relative",r.style.overflow="hidden";var o=r.getBoundingClientRect(),s=r.querySelector(".waves-ripple");switch(s?s.className="waves-ripple":(s=document.createElement("span"),s.className="waves-ripple",s.style.height=s.style.width=Math.max(o.width,o.height)+"px",r.appendChild(s)),a.type){case"center":s.style.top=o.height/2-s.offsetHeight/2+"px",s.style.left=o.width/2-s.offsetWidth/2+"px";break;default:s.style.top=(n.pageY-o.top-s.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",s.style.left=(n.pageX-o.left-s.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return s.style.backgroundColor=a.color,s.className="waves-ripple z-active",!1}}return e[i]?e[i].removeHandle=n:e[i]={removeHandle:n},n}t["a"]={bind:function(e,t){e.addEventListener("click",a(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[i].removeHandle,!1),e.addEventListener("click",a(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[i].removeHandle,!1),e[i]=null,delete e[i]}}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2b4823a9"],{"1c64":function(e,t,n){},"1cc6":function(e,t,n){"use strict";var i=n("1c64"),a=n.n(i);a.a},"333d":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},a=[];n("c5f6");Math.easeInOutQuad=function(e,t,n,i){return e/=i/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var o=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function l(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,n){var i=l(),a=e-i,s=20,u=0;t="undefined"===typeof t?500:t;var c=function e(){u+=s;var l=Math.easeInOutQuad(u,i,a,t);r(l),u<t?o(e):n&&"function"===typeof n&&n()};c()}var u={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&s(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&s(0,800)}}},c=u,d=(n("1cc6"),n("2877")),p=Object(d["a"])(c,i,a,!1,null,"f3b72548",null);t["a"]=p.exports},"7f67":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-header",[n("div",{staticStyle:{margin:"20px 0"}},[n("el-button",{on:{click:e.addPage}},[e._v("添加角色")]),e._v(" "),n("el-button",{on:{click:e.editPage}},[e._v("编辑角色")]),e._v(" "),n("el-button",{on:{click:e.deletePage}},[e._v("删除角色")])],1)]),e._v(" "),n("el-main",[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":"","default-sort":e.defaultSort},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),n("el-table-column",{attrs:{label:"角色ID",prop:"roleId",sortable:"custom",align:"center",width:"80"}}),e._v(" "),n("el-table-column",{attrs:{label:"角色名称",prop:"roleName",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"描述",prop:"remark",width:"300",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"所属客户",prop:"deptName",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"时间",prop:"createTime",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.createTime;return[n("span",[e._v(e._s(e._f("timeFilter")(i)))])]}}])})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.pageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.refresh}})],1)],1)},a=[],o=(n("ac6a"),n("333d")),r=n("c7a7"),l=n("cc5e"),s=n("ed08"),u={components:{Pagination:o["a"]},directives:{waves:r["a"]},filters:{valueFilter:function(e){return e||"无"},timeFilter:function(e){return e?Object(s["d"])(e,"{y}-{m}-{d} {h}:{i}"):"无"}},data:function(){return{tableKey:0,listLoading:!0,listQuery:{},list:[],total:0,defaultSort:{},multipleSelection:[],role:{},roleIds:[]}},created:function(){},mounted:function(){this.getList()},beforeRouteUpdate:function(e,t,n){if(e.path===t.path){var i=Object.assign({},e.query),a=Object.assign({},t.query);JSON.stringify(i)!==JSON.stringify(a)&&this.getList()}n()},methods:{handleSelectionChange:function(e){this.multipleSelection=e},sortChange:function(e){console.log("sortChange",e);var t=e.prop,n=e.order;this.sortBy(t,n)},sortBy:function(e,t){this.listQuery.sort="ascending"===t?"+".concat(e):"-".concat(e),this.handleFilter()},getList:function(){var e=this;this.listLoading=!0,Object(l["d"])(this.listQuery).then((function(t){var n=t.data,i=n.list,a=n.totalCount;e.list=i,e.total=a,e.listLoading=!1}))},addPage:function(){this.$router.push({path:"/system/role/add"})},editPage:function(){if(0!==this.multipleSelection.length)if(this.multipleSelection.length>1){var e="单选";this.$message({message:e,type:"error"})}else this.role=this.multipleSelection[0],this.$router.push({path:"/system/role/edit",query:{roleId:this.role.roleId}});else{var t="必须选一列";this.$message({message:t,type:"error"})}},deletePage:function(){var e=this;if(0!==this.multipleSelection.length)this.multipleSelection.forEach((function(t){e.roleIds.push(t.roleId)})),Object(l["b"])(this.roleIds).then((function(t){e.getList()})),this.roleIds=[];else{var t="必须选一列";this.$message({message:t,type:"error"})}},refresh:function(){this.$router.push({path:"/system/role",query:this.listQuery})},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()}}},c=u,d=n("2877"),p=Object(d["a"])(c,i,a,!1,null,"758e6a56",null);t["default"]=p.exports},"8d41":function(e,t,n){},c7a7:function(e,t,n){"use strict";n("8d41");var i="@@wavesContext";function a(e,t){function n(n){var i=Object.assign({},t.value),a=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),o=a.ele;if(o){o.style.position="relative",o.style.overflow="hidden";var r=o.getBoundingClientRect(),l=o.querySelector(".waves-ripple");switch(l?l.className="waves-ripple":(l=document.createElement("span"),l.className="waves-ripple",l.style.height=l.style.width=Math.max(r.width,r.height)+"px",o.appendChild(l)),a.type){case"center":l.style.top=r.height/2-l.offsetHeight/2+"px",l.style.left=r.width/2-l.offsetWidth/2+"px";break;default:l.style.top=(n.pageY-r.top-l.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",l.style.left=(n.pageX-r.left-l.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return l.style.backgroundColor=a.color,l.className="waves-ripple z-active",!1}}return e[i]?e[i].removeHandle=n:e[i]={removeHandle:n},n}t["a"]={bind:function(e,t){e.addEventListener("click",a(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[i].removeHandle,!1),e.addEventListener("click",a(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[i].removeHandle,!1),e[i]=null,delete e[i]}}},cc5e:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return o})),n.d(t,"f",(function(){return r})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return u}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/sys/role/info",method:"post",data:{roleId:e}})}function o(e){return Object(i["a"])({url:"/sys/role/add",method:"post",data:e})}function r(e){return Object(i["a"])({url:"/sys/role/edit",method:"post",data:e})}function l(e){return Object(i["a"])({url:"/sys/role/delete",method:"post",data:{ids:e}})}function s(e){return Object(i["a"])({url:"/sys/role/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function u(){return Object(i["a"])({url:"/sys/role/listAll",method:"post"})}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0cfe15"],{6632:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("detail",{attrs:{"is-edit":!1}})},c=[],l=n("9a8b"),s={components:{Detail:l["a"]}},i=s,u=n("2877"),o=Object(u["a"])(i,a,c,!1,null,null,null);t["default"]=o.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d2105d3"],{b829:function(n,e,o){"use strict";o.r(e);o("386d");var t,c,a={name:"AuthRedirect",created:function(){var n=window.location.search.slice(1);window.localStorage&&(window.localStorage.setItem("x-admin-oauth-code",n),window.close())},render:function(n){return n()}},d=a,i=o("2877"),l=Object(i["a"])(d,t,c,!1,null,null,null);e["default"]=l.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d213927"],{acf5:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("detail",{attrs:{"is-edit":""}})},c=[],s=n("9a8b"),i={components:{Detail:s["a"]}},l=i,o=n("2877"),r=Object(o["a"])(l,a,c,!1,null,"20dbc3ba",null);e["default"]=r.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d230fe7"],{ef3c:function(e,r,n){"use strict";n.r(r);n("a481");var t,u,a={created:function(){var e=this.$route,r=e.params,n=e.query,t=r.path;this.$router.replace({path:"/"+t,query:n})},render:function(e){return e()}},c=a,o=n("2877"),p=Object(o["a"])(c,t,u,!1,null,null,null);r["default"]=p.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3b59103a"],{"21f1":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-main",[n("el-form",{ref:"addDept",attrs:{model:e.dept,rules:e.rules,"label-width":"80px"}},[n("el-form-item",{attrs:{prop:"parentId",label:"父级"}},[n("el-cascader",{attrs:{"expand-trigger":"hover",options:e.options,"show-all-levels":!1,"change-on-select":""},on:{change:e.handleChange},model:{value:e.selectDeptParents,callback:function(t){e.selectDeptParents=t},expression:"selectDeptParents"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"name",label:"客户名称"}},[n("el-input",{model:{value:e.dept.name,callback:function(t){e.$set(e.dept,"name",t)},expression:"dept.name"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"delFlag",label:"可用"}},[n("el-select",{attrs:{placeholder:"选择"},model:{value:e.dept.delFlag,callback:function(t){e.$set(e.dept,"delFlag",t)},expression:"dept.delFlag"}},[n("el-option",{attrs:{label:"可用",value:"0"}}),e._v(" "),n("el-option",{attrs:{label:"不可用",value:"1"}})],1)],1),e._v(" "),n("el-form-item",{attrs:{prop:"distributorNum",label:"渠道商"}},[n("el-input",{model:{value:e.dept.distributorNum,callback:function(t){e.$set(e.dept,"distributorNum",t)},expression:"dept.distributorNum"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"remark",label:"描述"}},[n("el-input",{model:{value:e.dept.remark,callback:function(t){e.$set(e.dept,"remark",t)},expression:"dept.remark"}})],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("添加")]),e._v(" "),n("el-button",{on:{click:e.toDeptList}},[e._v("取消")])],1)],1)],1)],1)},r=[],l=(n("ac6a"),n("456d"),n("fe05")),s={parentId:"选择父级",name:"客户名称",delFlag:"可用",distributorNum:"渠道商号",remark:"描述"},o={data:function(){var e=function(e,t,n){0===t.length?n(new Error(s[e.field]+"必须填写")):n()};return{loading:!1,dept:{deptId:"",parentId:"",name:"",delFlag:"",distributorNum:"",remark:""},rules:{name:[{validator:e}],delFlag:[{validator:e}]},options:[],selectDeptParents:[]}},mounted:function(){this.selectDeptParent()},methods:{setDefault:function(){this.$refs.addDept.resetFields()},onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.addDept.validate((function(t,n){if(t)Object(l["a"])(e.dept).then((function(t){var n=t.msg;e.$notify({title:"操作成功",message:n,type:"success",duration:2e3}),e.loading=!1,e.setDefault(),e.toDeptList()})).catch((function(){e.loading=!1}));else{var a=n[Object.keys(n)[0]][0].message;e.$message({message:a,type:"error"}),e.loading=!1}})))},toDeptList:function(){this.$router.push({path:"/system/dept"})},selectDeptParent:function(){var e=this;Object(l["e"])().then((function(t){var n=t.data;e.options=n}))},handleChange:function(e){var t=e.length;t-=1,this.dept.parentId=e[t]}}},i=o,d=n("2877"),u=Object(d["a"])(i,a,r,!1,null,"624cd64e",null);t["default"]=u.exports},fe05:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return s})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return d}));n("55dd");var a=n("b775");function r(e){return Object(a["a"])({url:"/sys/dept/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function l(){return Object(a["a"])({url:"/sys/dept/listAll",method:"post"})}function s(){return Object(a["a"])({url:"/sys/dept/listAllTree",method:"post"})}function o(e){return Object(a["a"])({url:"/sys/dept/add",method:"post",data:e})}function i(e){return Object(a["a"])({url:"/sys/dept/edit",method:"post",data:e})}function d(e){return Object(a["a"])({url:"/sys/dept/delete",method:"post",data:{ids:e}})}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-403c80dd"],{"2c98":function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return o}));r("55dd");var n=r("b775");function a(e){return Object(n["a"])({url:"/sys/module/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function o(){return Object(n["a"])({url:"/sys/func/listAll",method:"post"})}},"9e63":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-container",[r("el-main",[r("el-form",{ref:"editRole",attrs:{model:e.role,rules:e.rules,"label-width":"80px"}},[r("el-form-item",{attrs:{prop:"deptId",label:"所属部门"}},[r("el-cascader",{attrs:{"expand-trigger":"hover",options:e.options,"show-all-levels":!1,"change-on-select":""},on:{change:e.handleChange},model:{value:e.selectDeptParents,callback:function(t){e.selectDeptParents=t},expression:"selectDeptParents"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"roleName",label:"角色名称"}},[r("el-input",{model:{value:e.role.roleName,callback:function(t){e.$set(e.role,"roleName",t)},expression:"role.roleName"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"remark",label:"角色描述"}},[r("el-input",{model:{value:e.role.remark,callback:function(t){e.$set(e.role,"remark",t)},expression:"role.remark"}})],1),e._v(" "),r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"权限设置"}},[r("el-tree",{ref:"funcTree",attrs:{data:e.funcTreeData,"show-checkbox":"","default-expand-all":"","node-key":"id","highlight-current":"",props:e.defaultProps}})],1)],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"数据权限"}},[r("el-tree",{ref:"deptTree",attrs:{data:e.deptTreeData,"show-checkbox":"","default-expand-all":"","node-key":"id","highlight-current":"",props:e.defaultProps}})],1)],1)],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("添加")]),e._v(" "),r("el-button",{on:{click:e.toRoleList}},[e._v("取消")])],1)],1)],1)],1)},a=[],o=(r("ac6a"),r("456d"),r("96cf"),r("3b8d")),s=r("fe05"),i=r("cc5e"),u=r("2c98"),c=r("f62d"),l=r("ed08"),d={roleName:"角色名称",remark:"描述"},f={data:function(){var e=function(e,t,r){void 0===t||null===t||0===t.length?r(new Error(d[e.field]+"必须填写")):r()};return{loading:!1,role:{roleId:"",deptIdList:[],funcIdList:[],createTime:""},rules:{roleName:[{validator:e}],remark:[{validator:e}]},funcTreeData:[],deptTreeData:[],options:[],selectDeptParents:[],defaultProps:{children:"children",label:"label"}}},mounted:function(){this.role.roleId=this.$route.query.roleId,this.getFormData()},methods:{getFormData:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.selectDeptParent();case 2:return e.next=4,this.selectDeptParentTree();case 4:return e.next=6,this.selectFuncTree();case 6:this.getRoleInfo();case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),setDefault:function(){this.$refs.editRole.resetFields()},onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.editRole.validate((function(t,r){if(t)e.handleDeptChange(),e.handleFuncChange(),e.role.createTime=Object(l["d"])(e.role.createTime,"{y}-{m}-{d} {h}:{i}:{s}"),Object(i["f"])(e.role).then((function(t){var r=t.msg;e.$notify({title:"操作成功",message:r,type:"success",duration:2e3}),e.setDefault(),e.toRoleList(),e.loading=!1})).catch((function(){e.loading=!1}));else{var n=r[Object.keys(r)[0]][0].message;e.$message({message:n,type:"error"}),e.loading=!1}})))},toRoleList:function(){this.$router.push({path:"/system/role"})},selectDeptParent:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(s["e"])().then((function(e){var r=e.data;t.options=r}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),selectDeptParentTree:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(s["f"])().then((function(e){var r=e.data;t.deptTreeData=r}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),selectFuncTree:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(u["b"])().then((function(e){var r=e.data;t.funcTreeData=r}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),handleChange:function(e){var t=e.length;t-=1,this.role.deptId=e[t]},handleFuncChange:function(){var e=[];this.$refs.funcTree.getCheckedNodes().forEach((function(t){e.push(t.id)})),this.role.funcIdList=e},handleDeptChange:function(){var e=[];this.$refs.deptTree.getCheckedNodes().forEach((function(t){e.push(t.id)})),this.role.deptIdList=e},getRoleInfo:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["c"])(this.role.roleId).then((function(e){var r=e.data;t.role=r,t.setFuncTree(t.role.funcIdList),t.setDeptTree(t.role.deptIdList),t.setSelectCas()}));case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),setFuncTree:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=[],e.next=3,t.forEach((function(e){r.push({id:e})}));case 3:this.$refs.funcTree.setCheckedNodes(r);case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),setDeptTree:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=[],e.next=3,t.forEach((function(e){r.push({id:e})}));case 3:this.$refs.deptTree.setCheckedNodes(r);case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),setSelectCas:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=[],e.next=3,Object(c["a"])(t,this.options,this.role.deptId);case 3:this.selectDeptParents=t;case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},p=f,h=r("2877"),m=Object(h["a"])(p,n,a,!1,null,"0d82c9a8",null);t["default"]=m.exports},cc5e:function(e,t,r){"use strict";r.d(t,"c",(function(){return a})),r.d(t,"a",(function(){return o})),r.d(t,"f",(function(){return s})),r.d(t,"b",(function(){return i})),r.d(t,"d",(function(){return u})),r.d(t,"e",(function(){return c}));r("55dd");var n=r("b775");function a(e){return Object(n["a"])({url:"/sys/role/info",method:"post",data:{roleId:e}})}function o(e){return Object(n["a"])({url:"/sys/role/add",method:"post",data:e})}function s(e){return Object(n["a"])({url:"/sys/role/edit",method:"post",data:e})}function i(e){return Object(n["a"])({url:"/sys/role/delete",method:"post",data:{ids:e}})}function u(e){return Object(n["a"])({url:"/sys/role/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function c(){return Object(n["a"])({url:"/sys/role/listAll",method:"post"})}},f62d:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));r("96cf");var n=r("3b8d");r("ac6a");function a(e,t,r){return o.apply(this,arguments)}function o(){return o=Object(n["a"])(regeneratorRuntime.mark((function e(t,r,n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:r.forEach((function(e){return e.value===n?(t.unshift(e.value),t):0===e.children.length?null:void a(t,e.children,n).then((function(){t.unshift(e.value)}))}));case 1:case"end":return e.stop()}}),e)}))),o.apply(this,arguments)}},fe05:function(e,t,r){"use strict";r.d(t,"c",(function(){return a})),r.d(t,"e",(function(){return o})),r.d(t,"f",(function(){return s})),r.d(t,"a",(function(){return i})),r.d(t,"d",(function(){return u})),r.d(t,"b",(function(){return c}));r("55dd");var n=r("b775");function a(e){return Object(n["a"])({url:"/sys/dept/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function o(){return Object(n["a"])({url:"/sys/dept/listAll",method:"post"})}function s(){return Object(n["a"])({url:"/sys/dept/listAllTree",method:"post"})}function i(e){return Object(n["a"])({url:"/sys/dept/add",method:"post",data:e})}function u(e){return Object(n["a"])({url:"/sys/dept/edit",method:"post",data:e})}function c(e){return Object(n["a"])({url:"/sys/dept/delete",method:"post",data:{ids:e}})}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-47af9ee4"],{"544f":function(e,t,r){"use strict";r.r(t);var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-container",[r("el-main",[r("el-form",{ref:"editSeries",attrs:{model:e.series,rules:e.rules,"label-width":"80px"}},[r("el-form-item",{attrs:{prop:"seriesNum",label:"产品系列号"}},[r("el-input",{model:{value:e.series.seriesNum,callback:function(t){e.$set(e.series,"seriesNum",t)},expression:"series.seriesNum"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"remark",label:"产品系列详情:"}},[r("el-input",{model:{value:e.series.remark,callback:function(t){e.$set(e.series,"remark",t)},expression:"series.remark"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("修改")]),e._v(" "),r("el-button",{on:{click:e.toSeriesList}},[e._v("取消")])],1)],1)],1)],1)},i=[],n=(r("ac6a"),r("456d"),r("7d09")),a=r("ed08"),o={seriesNum:"系列号",remark:"描述"},u={data:function(){var e=function(e,t,r){0===t.length?r(new Error(o[e.field]+"必须填写")):r()};return{loading:!1,series:{seriesNum:"",remark:""},rules:{seriesNum:[{validator:e}],remark:[{validator:e}]}}},mounted:function(){this.series=this.$route.query.series},methods:{setDefault:function(){this.$refs.editSeries.resetFields()},onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.editSeries.validate((function(t,r){if(t)e.series.createTime=Object(a["d"])(e.series.createTime,"{y}-{m}-{d} {h}:{i}:{s}"),Object(n["c"])(e.series).then((function(t){var r=t.msg;e.$notify({title:"操作成功",message:r,type:"success",duration:2e3}),e.loading=!1,e.setDefault(),e.toSeriesList()})).catch((function(){e.loading=!1}));else{var s=r[Object.keys(r)[0]][0].message;e.$message({message:s,type:"error"}),e.loading=!1}})))},handleChange:function(e){var t=e.length;t-=1,this.dept.parentId=e[t]},toSeriesList:function(){this.$router.push({path:"/configManagement/productSeries"})}}},c=u,l=r("2877"),d=Object(l["a"])(c,s,i,!1,null,"65e88b04",null);t["default"]=d.exports},"7d09":function(e,t,r){"use strict";r.d(t,"d",(function(){return i})),r.d(t,"a",(function(){return n})),r.d(t,"c",(function(){return a})),r.d(t,"b",(function(){return o}));r("55dd");var s=r("b775");function i(e){return Object(s["a"])({url:"/device/series/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function n(e){return Object(s["a"])({url:"/device/series/add",method:"post",data:e})}function a(e){return Object(s["a"])({url:"/device/series/edit",method:"post",data:e})}function o(e){return Object(s["a"])({url:"/device/series/delete",method:"post",data:{ids:e}})}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4a8d06a6"],{"24e2":function(t,a,i){"use strict";i.r(a);var e=function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("div",{staticClass:"errPage-container"},[i("el-button",{staticClass:"pan-back-btn",attrs:{icon:"el-icon-arrow-left"},on:{click:t.back}},[t._v("\n 返回\n ")]),t._v(" "),i("el-row",[i("el-col",{attrs:{span:12}},[i("h1",{staticClass:"text-jumbo text-ginormous"},[t._v("\n Oops!\n ")]),t._v("\n gif来源"),i("a",{attrs:{href:"https://zh.airbnb.com/",target:"_blank"}},[t._v("airbnb")]),t._v(" 页面\n "),i("h2",[t._v("你没有权限去该页面")]),t._v(" "),i("h6",[t._v("如有不满请联系你领导")]),t._v(" "),i("ul",{staticClass:"list-unstyled"},[i("li",[t._v("或者你可以去:")]),t._v(" "),i("li",{staticClass:"link-type"},[i("router-link",{attrs:{to:"/dashboard"}},[t._v("\n 回首页\n ")])],1),t._v(" "),i("li",{staticClass:"link-type"},[i("a",{attrs:{href:"https://www.taobao.com/"}},[t._v("随便看看")])]),t._v(" "),i("li",[i("a",{attrs:{href:"#"},on:{click:function(a){a.preventDefault(),t.dialogVisible=!0}}},[t._v("点我看图")])])])]),t._v(" "),i("el-col",{attrs:{span:12}},[i("img",{attrs:{src:t.errGif,width:"313",height:"428",alt:"Girl has dropped her ice cream."}})])],1),t._v(" "),i("el-dialog",{attrs:{visible:t.dialogVisible,title:"随便看"},on:{"update:visible":function(a){t.dialogVisible=a}}},[i("img",{staticClass:"pan-img",attrs:{src:t.ewizardClap}})])],1)},s=[],n=i("cc6c"),r=i.n(n),l={name:"Page401",data:function(){return{errGif:r.a+"?"+ +new Date,ewizardClap:"https://wpimg.wallstcn.com/007ef517-bafd-4066-aae4-6883632d9646",dialogVisible:!1}},methods:{back:function(){this.$route.query.noGoBack?this.$router.push({path:"/dashboard"}):this.$router.go(-1)}}},c=l,o=(i("d835"),i("2877")),u=Object(o["a"])(c,e,s,!1,null,"6de193e6",null);a["default"]=u.exports},"842e":function(t,a,i){},cc6c:function(t,a,i){t.exports=i.p+"static/img/401.089007e7.gif"},d835:function(t,a,i){"use strict";var e=i("842e"),s=i.n(e);s.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4ab8490a"],{"1c64":function(e,t,n){},"1cc6":function(e,t,n){"use strict";var i=n("1c64"),a=n.n(i);a.a},"1db2":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-header",[n("div",{staticStyle:{margin:"20px 0"}},[n("el-button",{on:{click:e.addPage}},[e._v("添加部门")]),e._v(" "),n("el-button",{on:{click:e.editPage}},[e._v("编辑部门")]),e._v(" "),n("el-button",{on:{click:e.deletePage}},[e._v("删除部门")])],1)]),e._v(" "),n("el-main",[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":"","default-sort":e.defaultSort},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),n("el-table-column",{attrs:{label:"部门ID",prop:"deptId",sortable:"custom",align:"center",width:"80"}}),e._v(" "),n("el-table-column",{attrs:{label:"上级ID",prop:"parentId",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"部门名称",prop:"name",width:"300",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"可用",prop:"delFlag",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.delFlag;return[n("span",[e._v(e._s(e._f("delFlagValueFilter")(i)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"渠道商号",prop:"distributorNum",width:"100",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"描述",prop:"remark",width:"100",align:"center"}})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.pageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.refresh}})],1)],1)},a=[],o=(n("ac6a"),n("333d")),r=n("c7a7"),l=n("fe05"),s=n("ed08"),u={components:{Pagination:o["a"]},directives:{waves:r["a"]},filters:{delFlagValueFilter:function(e){return-1===e?e="不可用":0===e&&(e="可用"),e},valueFilter:function(e){return e||"无"},timeFilter:function(e){return e?Object(s["d"])(e,"{y}-{m}-{d} {h}:{i}"):"无"}},data:function(){return{tableKey:0,listLoading:!0,listQuery:{},list:[],total:0,defaultSort:{},multipleSelection:[],dept:{},deptIds:[]}},created:function(){},mounted:function(){this.getList()},beforeRouteUpdate:function(e,t,n){if(e.path===t.path){var i=Object.assign({},e.query),a=Object.assign({},t.query);JSON.stringify(i)!==JSON.stringify(a)&&this.getList()}n()},methods:{handleSelectionChange:function(e){this.multipleSelection=e},sortChange:function(e){console.log("sortChange",e);var t=e.prop,n=e.order;this.sortBy(t,n)},sortBy:function(e,t){this.listQuery.sort="ascending"===t?"+".concat(e):"-".concat(e),this.handleFilter()},getList:function(){var e=this;this.listLoading=!0,Object(l["c"])(this.listQuery).then((function(t){var n=t.data,i=n.list,a=n.totalCount;e.list=i,e.total=a,e.listLoading=!1}))},refresh:function(){this.$router.push({path:"/system/dept",query:this.listQuery})},addPage:function(){this.$router.push({path:"/system/dept/add"})},editPage:function(){if(0!==this.multipleSelection.length)if(this.multipleSelection.length>1){var e="单选";this.$message({message:e,type:"error"})}else this.dept=this.multipleSelection[0],console.log(this.dept),this.$router.push({path:"/system/dept/edit",query:{dept:this.dept}});else{var t="必须选一列";this.$message({message:t,type:"error"})}},deletePage:function(){var e=this;if(0!==this.multipleSelection.length)this.multipleSelection.forEach((function(t){e.deptIds.push(t.deptId)})),Object(l["b"])(this.deptIds).then((function(t){e.getList()})),this.deptIds=[];else{var t="必须选一列";this.$message({message:t,type:"error"})}},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()}}},c=u,d=n("2877"),p=Object(d["a"])(c,i,a,!1,null,"78095314",null);t["default"]=p.exports},"333d":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},a=[];n("c5f6");Math.easeInOutQuad=function(e,t,n,i){return e/=i/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var o=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function l(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,n){var i=l(),a=e-i,s=20,u=0;t="undefined"===typeof t?500:t;var c=function e(){u+=s;var l=Math.easeInOutQuad(u,i,a,t);r(l),u<t?o(e):n&&"function"===typeof n&&n()};c()}var u={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&s(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&s(0,800)}}},c=u,d=(n("1cc6"),n("2877")),p=Object(d["a"])(c,i,a,!1,null,"f3b72548",null);t["a"]=p.exports},"8d41":function(e,t,n){},c7a7:function(e,t,n){"use strict";n("8d41");var i="@@wavesContext";function a(e,t){function n(n){var i=Object.assign({},t.value),a=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),o=a.ele;if(o){o.style.position="relative",o.style.overflow="hidden";var r=o.getBoundingClientRect(),l=o.querySelector(".waves-ripple");switch(l?l.className="waves-ripple":(l=document.createElement("span"),l.className="waves-ripple",l.style.height=l.style.width=Math.max(r.width,r.height)+"px",o.appendChild(l)),a.type){case"center":l.style.top=r.height/2-l.offsetHeight/2+"px",l.style.left=r.width/2-l.offsetWidth/2+"px";break;default:l.style.top=(n.pageY-r.top-l.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",l.style.left=(n.pageX-r.left-l.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return l.style.backgroundColor=a.color,l.className="waves-ripple z-active",!1}}return e[i]?e[i].removeHandle=n:e[i]={removeHandle:n},n}t["a"]={bind:function(e,t){e.addEventListener("click",a(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[i].removeHandle,!1),e.addEventListener("click",a(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[i].removeHandle,!1),e[i]=null,delete e[i]}}},fe05:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"e",(function(){return o})),n.d(t,"f",(function(){return r})),n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return u}));n("55dd");var i=n("b775");function a(e){return Object(i["a"])({url:"/sys/dept/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function o(){return Object(i["a"])({url:"/sys/dept/listAll",method:"post"})}function r(){return Object(i["a"])({url:"/sys/dept/listAllTree",method:"post"})}function l(e){return Object(i["a"])({url:"/sys/dept/add",method:"post",data:e})}function s(e){return Object(i["a"])({url:"/sys/dept/edit",method:"post",data:e})}function u(e){return Object(i["a"])({url:"/sys/dept/delete",method:"post",data:{ids:e}})}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5411756c"],{"1c64":function(e,t,n){},"1cc6":function(e,t,n){"use strict";var i=n("1c64"),a=n.n(i);a.a},"333d":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},a=[];n("c5f6");Math.easeInOutQuad=function(e,t,n,i){return e/=i/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function o(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function l(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,n){var i=l(),a=e-i,s=20,u=0;t="undefined"===typeof t?500:t;var c=function e(){u+=s;var l=Math.easeInOutQuad(u,i,a,t);o(l),u<t?r(e):n&&"function"===typeof n&&n()};c()}var u={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&s(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&s(0,800)}}},c=u,d=(n("1cc6"),n("2877")),p=Object(d["a"])(c,i,a,!1,null,"f3b72548",null);t["a"]=p.exports},"8d41":function(e,t,n){},c7a7:function(e,t,n){"use strict";n("8d41");var i="@@wavesContext";function a(e,t){function n(n){var i=Object.assign({},t.value),a=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),r=a.ele;if(r){r.style.position="relative",r.style.overflow="hidden";var o=r.getBoundingClientRect(),l=r.querySelector(".waves-ripple");switch(l?l.className="waves-ripple":(l=document.createElement("span"),l.className="waves-ripple",l.style.height=l.style.width=Math.max(o.width,o.height)+"px",r.appendChild(l)),a.type){case"center":l.style.top=o.height/2-l.offsetHeight/2+"px",l.style.left=o.width/2-l.offsetWidth/2+"px";break;default:l.style.top=(n.pageY-o.top-l.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",l.style.left=(n.pageX-o.left-l.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return l.style.backgroundColor=a.color,l.className="waves-ripple z-active",!1}}return e[i]?e[i].removeHandle=n:e[i]={removeHandle:n},n}t["a"]={bind:function(e,t){e.addEventListener("click",a(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[i].removeHandle,!1),e.addEventListener("click",a(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[i].removeHandle,!1),e[i]=null,delete e[i]}}},ffa1:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-header",[n("div",{staticStyle:{margin:"20px 0"}},[n("el-button",{on:{click:e.addPage}},[e._v("添加角色")]),e._v(" "),n("el-button",{on:{click:e.editPage}},[e._v("编辑角色")]),e._v(" "),n("el-button",{on:{click:e.deletePage}},[e._v("删除角色")])],1)]),e._v(" "),n("el-main",[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":"","default-sort":e.defaultSort},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),n("el-table-column",{attrs:{label:"用户ID",prop:"userId",sortable:"custom",align:"center",width:"80"}}),e._v(" "),n("el-table-column",{attrs:{label:"用户名",prop:"username",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"email",prop:"email",width:"300",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"mobile",prop:"mobile",width:"150",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"可用",prop:"status",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.status;return[n("span",[e._v(e._s(e._f("statusValueFilter")(i)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"创建时间",prop:"createTime",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row.createTime;return[n("span",[e._v(e._s(e._f("timeFilter")(i)))])]}}])})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.pageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.refresh}})],1)],1)},a=[],r=(n("ac6a"),n("333d")),o=n("c7a7"),l=n("c24f"),s=n("ed08"),u={components:{Pagination:r["a"]},directives:{waves:o["a"]},filters:{statusValueFilter:function(e){return 0===e?e="禁用":1===e&&(e="正常"),e},valueFilter:function(e){return e||"无"},timeFilter:function(e){return e?Object(s["d"])(e,"{y}-{m}-{d} {h}:{i}"):"无"}},data:function(){return{tableKey:0,listLoading:!0,listQuery:{},list:[],total:0,defaultSort:{},multipleSelection:[],user:{},userIds:[]}},created:function(){},mounted:function(){this.getList()},beforeRouteUpdate:function(e,t,n){if(e.path===t.path){var i=Object.assign({},e.query),a=Object.assign({},t.query);JSON.stringify(i)!==JSON.stringify(a)&&this.getList()}n()},methods:{handleSelectionChange:function(e){this.multipleSelection=e},sortChange:function(e){console.log("sortChange",e);var t=e.prop,n=e.order;this.sortBy(t,n)},sortBy:function(e,t){this.listQuery.sort="ascending"===t?"+".concat(e):"-".concat(e),this.handleFilter()},getList:function(){var e=this;this.listLoading=!0,Object(l["g"])(this.listQuery).then((function(t){var n=t.data,i=n.list,a=n.totalCount;e.list=i,e.total=a,e.listLoading=!1}))},addPage:function(){this.$router.push({path:"/system/user/add"})},editPage:function(){if(0!==this.multipleSelection.length)if(this.multipleSelection.length>1){var e="单选";this.$message({message:e,type:"error"})}else this.user=this.multipleSelection[0],this.$router.push({path:"/system/user/edit",query:{userId:this.user.userId,username:this.user.username}});else{var t="必须选一列";this.$message({message:t,type:"error"})}},deletePage:function(){var e=this;if(0!==this.multipleSelection.length)this.multipleSelection.forEach((function(t){e.userIds.push(t.userId)})),Object(l["b"])(this.userIds).then((function(t){e.getList()})),this.userIds=[];else{var t="必须选一列";this.$message({message:t,type:"error"})}},refresh:function(){this.$router.push({path:"/system/user",query:this.listQuery})},handleFilter:function(){console.log("handleFilter",this.listQuery),this.listQuery.page=1,this.refresh()}}},c=u,d=n("2877"),p=Object(d["a"])(c,i,a,!1,null,"33844bd9",null);t["default"]=p.exports}}]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-636f8118"],{"7d09":function(e,t,r){"use strict";r.d(t,"d",(function(){return i})),r.d(t,"a",(function(){return n})),r.d(t,"c",(function(){return a})),r.d(t,"b",(function(){return o}));r("55dd");var s=r("b775");function i(e){return Object(s["a"])({url:"/device/series/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function n(e){return Object(s["a"])({url:"/device/series/add",method:"post",data:e})}function a(e){return Object(s["a"])({url:"/device/series/edit",method:"post",data:e})}function o(e){return Object(s["a"])({url:"/device/series/delete",method:"post",data:{ids:e}})}},ff07:function(e,t,r){"use strict";r.r(t);var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-container",[r("el-main",[r("el-form",{ref:"addSeries",attrs:{model:e.series,rules:e.rules,"label-width":"80px"}},[r("el-form-item",{attrs:{prop:"seriesNum",label:"产品系列号"}},[r("el-input",{model:{value:e.series.seriesNum,callback:function(t){e.$set(e.series,"seriesNum",t)},expression:"series.seriesNum"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"remark",label:"产品系列详情:"}},[r("el-input",{model:{value:e.series.remark,callback:function(t){e.$set(e.series,"remark",t)},expression:"series.remark"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("添加")]),e._v(" "),r("el-button",{on:{click:e.toSeriesList}},[e._v("取消")])],1)],1)],1)],1)},i=[],n=(r("ac6a"),r("456d"),r("7d09")),a={seriesNum:"系列号",remark:"描述"},o={data:function(){var e=function(e,t,r){0===t.length?r(new Error(a[e.field]+"必须填写")):r()};return{loading:!1,series:{seriesNum:"",remark:""},rules:{seriesNum:[{validator:e}],remark:[{validator:e}]}}},mounted:function(){this.selectDeptParent()},methods:{setDefault:function(){this.$refs.addSeries.resetFields()},onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.addSeries.validate((function(t,r){if(t)Object(n["a"])(e.series).then((function(t){var r=t.msg;e.$notify({title:"操作成功",message:r,type:"success",duration:2e3}),e.loading=!1,e.setDefault(),e.toSeriesList()})).catch((function(){e.loading=!1}));else{var s=r[Object.keys(r)[0]][0].message;e.$message({message:s,type:"error"}),e.loading=!1}})))},toSeriesList:function(){this.$router.push({path:"/configManagement/productSeries"})}}},u=o,l=r("2877"),c=Object(l["a"])(u,s,i,!1,null,"1cf0be8b",null);t["default"]=c.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-64238bd4"],{"00e3":function(t,s,a){},"1bc5":function(t,s,a){"use strict";var e=a("00e3"),c=a.n(e);c.a},"1db4":function(t,s,a){"use strict";a.r(s);var e=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"wscn-http404-container"},[a("div",{staticClass:"wscn-http404"},[t._m(0),t._v(" "),a("div",{staticClass:"bullshit"},[a("div",{staticClass:"bullshit__oops"},[t._v("OOPS!")]),t._v(" "),t._m(1),t._v(" "),a("div",{staticClass:"bullshit__headline"},[t._v(t._s(t.message))]),t._v(" "),a("div",{staticClass:"bullshit__info"},[t._v("Please check that the URL you entered is correct, or click the button below to return to the homepage.")]),t._v(" "),a("a",{staticClass:"bullshit__return-home",attrs:{href:""}},[t._v("Back to home")])])])])},c=[function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"pic-404"},[e("img",{staticClass:"pic-404__parent",attrs:{src:a("a36b"),alt:"404"}}),t._v(" "),e("img",{staticClass:"pic-404__child left",attrs:{src:a("26fc"),alt:"404"}}),t._v(" "),e("img",{staticClass:"pic-404__child mid",attrs:{src:a("26fc"),alt:"404"}}),t._v(" "),e("img",{staticClass:"pic-404__child right",attrs:{src:a("26fc"),alt:"404"}})])},function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"bullshit__info"},[t._v("All rights reserved\n "),a("a",{staticStyle:{color:"#20a0ff"},attrs:{href:"https://wallstreetcn.com",target:"_blank"}},[t._v("wallstreetcn")])])}],i={name:"Page404",computed:{message:function(){return"The webmaster said that you can not enter this page..."}}},l=i,n=(a("1bc5"),a("2877")),r=Object(n["a"])(l,e,c,!1,null,"22c31b5a",null);s["default"]=r.exports},"26fc":function(t,s,a){t.exports=a.p+"static/img/404_cloud.0f4bc32b.png"},a36b:function(t,s,a){t.exports=a.p+"static/img/404.a57b6f31.png"}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-67ae84aa"],{2017:function(e,t,o){"use strict";var s=o("b12d"),n=o.n(s);n.a},"29eb":function(e,t,o){"use strict";var s=o("e04a"),n=o.n(s);n.a},"9ed6":function(e,t,o){"use strict";o.r(t);var s=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"login-container"},[o("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,autocomplete:"on","label-position":"left"}},[o("div",{staticClass:"title-container"},[o("h3",{staticClass:"title"},[e._v("美行科技")])]),e._v(" "),o("el-form-item",{attrs:{prop:"username"}},[o("span",{staticClass:"svg-container"},[o("svg-icon",{attrs:{"icon-class":"user"}})],1),e._v(" "),o("el-input",{ref:"username",attrs:{placeholder:"用户名",name:"username",type:"text",tabindex:"1",autocomplete:"on"},model:{value:e.loginForm.username,callback:function(t){e.$set(e.loginForm,"username",t)},expression:"loginForm.username"}})],1),e._v(" "),o("el-tooltip",{attrs:{content:"Caps lock is On",placement:"right",manual:""},model:{value:e.capsTooltip,callback:function(t){e.capsTooltip=t},expression:"capsTooltip"}},[o("el-form-item",{attrs:{prop:"password"}},[o("span",{staticClass:"svg-container"},[o("svg-icon",{attrs:{"icon-class":"password"}})],1),e._v(" "),o("el-input",{key:e.passwordType,ref:"password",attrs:{type:e.passwordType,placeholder:"密码",name:"password",tabindex:"2",autocomplete:"on"},on:{blur:function(t){e.capsTooltip=!1}},nativeOn:{keyup:[function(t){return e.checkCapslock(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin(t)}]},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}}),e._v(" "),o("span",{staticClass:"show-pwd",on:{click:e.showPwd}},[o("svg-icon",{attrs:{"icon-class":"password"===e.passwordType?"eye":"eye-open"}})],1)],1)],1),e._v(" "),o("el-button",{staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{loading:e.loading,type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin(t)}}},[e._v("登录\n ")])],1)],1)},n=[],r=(o("ac6a"),o("456d"),{name:"Login",data:function(){var e=function(e,t,o){t&&0!==t.length?o():o(new Error("请输入用户名"))},t=function(e,t,o){t.length<4?o(new Error("密码不能少于4位")):o()};return{loginForm:{username:"admin",password:"admin"},loginRules:{username:[{required:!0,trigger:"change",validator:e}],password:[{required:!0,trigger:"blur",validator:t}]},passwordType:"password",capsTooltip:!1,loading:!1,showDialog:!1,redirect:void 0,otherQuery:{}}},watch:{$route:{handler:function(e){var t=e.query;t&&(this.redirect=t.redirect,this.otherQuery=this.getOtherQuery(t))},immediate:!0}},mounted:function(){""===this.loginForm.username?this.$refs.username.focus():""===this.loginForm.password&&this.$refs.password.focus()},methods:{checkCapslock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.shiftKey,o=e.key;console.log(t,o),o&&1===o.length?this.capsTooltip=!!(t&&o>="A"&&o<="Z"||!t&&o>="A"&&o<="Z"):this.capsTooltip=!1,"CapsLock"===o&&!0===this.capsTooltip&&(this.capsTooltip=!1)},showPwd:function(){var e=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){e.$refs.password.focus()}))},handleLogin:function(){var e=this;this.$refs.loginForm.validate((function(t){if(!t)return console.log("error submit!!"),!1;e.loading=!0,e.$store.dispatch("user/login",e.loginForm).then((function(){e.$router.push({path:e.redirect||"/",query:e.otherQuery}),e.loading=!1})).catch((function(){e.loading=!1}))}))},getOtherQuery:function(e){return Object.keys(e).reduce((function(t,o){return"redirect"!==o&&(t[o]=e[o]),t}),{})}}}),a=r,i=(o("2017"),o("29eb"),o("2877")),l=Object(i["a"])(a,s,n,!1,null,"0ba579f9",null);t["default"]=l.exports},b12d:function(e,t,o){},e04a:function(e,t,o){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-73bfcbf0"],{"0be0":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-container",[r("el-main",[r("el-form",{ref:"addUser",attrs:{model:e.user,rules:e.rules,"label-width":"80px"}},[r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{prop:"deptId",label:"所属部门"}},[r("el-cascader",{attrs:{"expand-trigger":"hover",options:e.options,"show-all-levels":!1,"change-on-select":""},on:{change:e.handleChange},model:{value:e.selectDeptParents,callback:function(t){e.selectDeptParents=t},expression:"selectDeptParents"}})],1)],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{prop:"roleId",label:"所属角色"}},[r("el-select",{attrs:{placeholder:"请选择"},model:{value:e.user.roleId,callback:function(t){e.$set(e.user,"roleId",t)},expression:"user.roleId"}},e._l(e.selectoptions,(function(e){return r("el-option",{key:e.roleId,attrs:{label:e.roleName,value:e.roleId}})})),1)],1)],1)],1),e._v(" "),r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{prop:"username",label:"账户名"}},[r("el-input",{model:{value:e.user.username,callback:function(t){e.$set(e.user,"username",t)},expression:"user.username"}})],1)],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{prop:"password",label:"初始密码"}},[r("el-input",{model:{value:e.user.password,callback:function(t){e.$set(e.user,"password",t)},expression:"user.password"}})],1)],1)],1),e._v(" "),r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{prop:"mobile",label:"手机号"}},[r("el-input",{model:{value:e.user.mobile,callback:function(t){e.$set(e.user,"mobile",t)},expression:"user.mobile"}})],1)],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{prop:"email",label:"邮箱"}},[r("el-input",{model:{value:e.user.email,callback:function(t){e.$set(e.user,"email",t)},expression:"user.email"}})],1)],1)],1),e._v(" "),r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{prop:"remark",label:"介绍"}},[r("el-input",{model:{value:e.user.remark,callback:function(t){e.$set(e.user,"remark",t)},expression:"user.remark"}})],1)],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{prop:"status",label:"账户状态"}},[r("el-select",{attrs:{placeholder:"选择"},model:{value:e.user.status,callback:function(t){e.$set(e.user,"status",t)},expression:"user.status"}},[r("el-option",{attrs:{label:"可用",value:"0"}}),e._v(" "),r("el-option",{attrs:{label:"不可用",value:"1"}})],1)],1)],1)],1),e._v(" "),r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"权限设置"}},[r("el-tree",{ref:"funcTree",attrs:{data:e.funcTreeData,"show-checkbox":"","default-expand-all":"","node-key":"id","highlight-current":"",props:e.defaultProps}})],1)],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"数据权限"}},[r("el-tree",{ref:"deptTree",attrs:{data:e.deptTreeData,"show-checkbox":"","default-expand-all":"","node-key":"id","highlight-current":"",props:e.defaultProps}})],1)],1)],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("添加")]),e._v(" "),r("el-button",{on:{click:e.toUserList}},[e._v("取消")])],1)],1)],1)],1)},a=[],s=(r("ac6a"),r("456d"),r("96cf"),r("3b8d")),o=r("fe05"),l=r("c24f"),u=r("2c98"),i=r("cc5e"),c={roleId:"选择角色",remark:"描述",deptId:"选择部门",username:"用户名",mobile:"手机",email:"邮箱",status:"状态",deptIdList:"数据权限",funcIdList:"模块权限"},d={data:function(){var e=function(e,t,r){void 0===t||null===t||0===t.length?r(new Error(c[e.field]+"必须填写")):r()};return{loading:!1,user:{deptIdList:[],funcIdList:[]},rules:{roleId:[{validator:e}],remark:[{validator:e}],deptId:[{validator:e}],username:[{validator:e}],mobile:[{validator:e}],email:[{validator:e}],status:[{validator:e}],deptIdList:[{validator:e}]},options:[],selectoptions:[],selectDeptParents:[],funcTreeData:[],deptTreeData:[],defaultProps:{children:"children",label:"label"}}},mounted:function(){this.getFormData()},methods:{getFormData:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.selectRole();case 2:return e.next=4,this.selectDeptParent();case 4:return e.next=6,this.selectDeptParentTree();case 6:return e.next=8,this.selectFuncTree();case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),setDefault:function(){this.$refs.addUser.resetFields()},onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.addUser.validate((function(t,r){if(t)e.handleDeptChange(),e.handleFuncChange(),Object(l["a"])(e.user).then((function(t){var r=t.msg;e.$notify({title:"操作成功",message:r,type:"success",duration:2e3}),e.setDefault(),e.toUserList(),e.loading=!1})).catch((function(){e.loading=!1}));else{var n=r[Object.keys(r)[0]][0].message;e.$message({message:n,type:"error"}),e.loading=!1}})))},toUserList:function(){this.$router.push({path:"/system/user"})},selectRole:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["e"])().then((function(e){var r=e.data;t.selectoptions=r}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),selectDeptParent:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["e"])().then((function(e){var r=e.data;t.options=r}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),selectDeptParentTree:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["f"])().then((function(e){var r=e.data;t.deptTreeData=r}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),selectFuncTree:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(u["b"])().then((function(e){var r=e.data;t.funcTreeData=r}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),handleChange:function(e){var t=e.length;t-=1,this.user.deptId=e[t]},handleFuncChange:function(){var e=[];this.$refs.funcTree.getCheckedNodes().forEach((function(t){e.push(t.id)})),this.user.funcIdList=e},handleDeptChange:function(){var e=[];this.$refs.deptTree.getCheckedNodes().forEach((function(t){e.push(t.id)})),this.user.deptIdList=e}}},p=d,f=r("2877"),m=Object(f["a"])(p,n,a,!1,null,"15eb5fda",null);t["default"]=m.exports},"2c98":function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return s}));r("55dd");var n=r("b775");function a(e){return Object(n["a"])({url:"/sys/module/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function s(){return Object(n["a"])({url:"/sys/func/listAll",method:"post"})}},cc5e:function(e,t,r){"use strict";r.d(t,"c",(function(){return a})),r.d(t,"a",(function(){return s})),r.d(t,"f",(function(){return o})),r.d(t,"b",(function(){return l})),r.d(t,"d",(function(){return u})),r.d(t,"e",(function(){return i}));r("55dd");var n=r("b775");function a(e){return Object(n["a"])({url:"/sys/role/info",method:"post",data:{roleId:e}})}function s(e){return Object(n["a"])({url:"/sys/role/add",method:"post",data:e})}function o(e){return Object(n["a"])({url:"/sys/role/edit",method:"post",data:e})}function l(e){return Object(n["a"])({url:"/sys/role/delete",method:"post",data:{ids:e}})}function u(e){return Object(n["a"])({url:"/sys/role/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function i(){return Object(n["a"])({url:"/sys/role/listAll",method:"post"})}},fe05:function(e,t,r){"use strict";r.d(t,"c",(function(){return a})),r.d(t,"e",(function(){return s})),r.d(t,"f",(function(){return o})),r.d(t,"a",(function(){return l})),r.d(t,"d",(function(){return u})),r.d(t,"b",(function(){return i}));r("55dd");var n=r("b775");function a(e){return Object(n["a"])({url:"/sys/dept/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function s(){return Object(n["a"])({url:"/sys/dept/listAll",method:"post"})}function o(){return Object(n["a"])({url:"/sys/dept/listAllTree",method:"post"})}function l(e){return Object(n["a"])({url:"/sys/dept/add",method:"post",data:e})}function u(e){return Object(n["a"])({url:"/sys/dept/edit",method:"post",data:e})}function i(e){return Object(n["a"])({url:"/sys/dept/delete",method:"post",data:{ids:e}})}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7b66cc0a"],{"0ff3":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-container",[r("el-main",[r("el-form",{ref:"addRole",attrs:{model:e.role,rules:e.rules,"label-width":"80px"}},[r("el-form-item",{attrs:{prop:"deptId",label:"所属部门"}},[r("el-cascader",{attrs:{"expand-trigger":"hover",options:e.options,"show-all-levels":!1,"change-on-select":""},on:{change:e.handleChange},model:{value:e.selectDeptParents,callback:function(t){e.selectDeptParents=t},expression:"selectDeptParents"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"roleName",label:"角色名称"}},[r("el-input",{model:{value:e.role.roleName,callback:function(t){e.$set(e.role,"roleName",t)},expression:"role.roleName"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"remark",label:"角色描述"}},[r("el-input",{model:{value:e.role.remark,callback:function(t){e.$set(e.role,"remark",t)},expression:"role.remark"}})],1),e._v(" "),r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"权限设置"}},[r("el-tree",{ref:"funcTree",attrs:{data:e.funcTreeData,"show-checkbox":"","default-expand-all":"","node-key":"id","highlight-current":"",props:e.defaultProps}})],1)],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"数据权限"}},[r("el-tree",{ref:"deptTree",attrs:{data:e.deptTreeData,"show-checkbox":"","default-expand-all":"","node-key":"id","highlight-current":"",props:e.defaultProps}})],1)],1)],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("添加")]),e._v(" "),r("el-button",{on:{click:e.toRoleList}},[e._v("取消")])],1)],1)],1)],1)},a=[],o=(r("ac6a"),r("456d"),r("96cf"),r("3b8d")),s=r("fe05"),u=r("cc5e"),i=r("2c98"),c={roleName:"角色名称",remark:"描述",deptId:"部门"},l={data:function(){var e=function(e,t,r){void 0===t||null===t||0===t.length?r(new Error(c[e.field]+"必须填写")):r()};return{loading:!1,role:{deptIdList:[],funcIdList:[]},rules:{roleName:[{validator:e}],remark:[{validator:e}],deptId:[{validator:e}]},options:[],selectDeptParents:[],funcTreeData:[],deptTreeData:[],defaultProps:{children:"children",label:"label"}}},mounted:function(){this.getFormData()},methods:{getFormData:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.selectDeptParent();case 2:return e.next=4,this.selectDeptParentTree();case 4:return e.next=6,this.selectFuncTree();case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),setDefault:function(){this.$refs.addRole.resetFields()},onSubmit:function(){var e=this;this.loading||(this.loading=!0,this.$refs.addRole.validate((function(t,r){if(t)e.handleDeptChange(),e.handleFuncChange(),Object(u["a"])(e.role).then((function(t){var r=t.msg;e.$notify({title:"操作成功",message:r,type:"success",duration:2e3}),e.setDefault(),e.toRoleList(),e.loading=!1})).catch((function(){e.loading=!1}));else{var n=r[Object.keys(r)[0]][0].message;e.$message({message:n,type:"error"}),e.loading=!1}})))},toRoleList:function(){this.$router.push({path:"/system/role"})},selectDeptParent:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(s["e"])().then((function(e){var r=e.data;t.options=r}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),selectDeptParentTree:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(s["f"])().then((function(e){var r=e.data;t.deptTreeData=r}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),selectFuncTree:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])().then((function(e){var r=e.data;t.funcTreeData=r}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),handleChange:function(e){var t=e.length;t-=1,this.role.deptId=e[t]},handleFuncChange:function(){var e=[];this.$refs.funcTree.getCheckedNodes().forEach((function(t){e.push(t.id)})),this.role.funcIdList=e},handleDeptChange:function(){var e=[];this.$refs.deptTree.getCheckedNodes().forEach((function(t){e.push(t.id)})),this.role.deptIdList=e}}},d=l,p=r("2877"),f=Object(p["a"])(d,n,a,!1,null,"574510d3",null);t["default"]=f.exports},"2c98":function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return o}));r("55dd");var n=r("b775");function a(e){return Object(n["a"])({url:"/sys/module/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function o(){return Object(n["a"])({url:"/sys/func/listAll",method:"post"})}},cc5e:function(e,t,r){"use strict";r.d(t,"c",(function(){return a})),r.d(t,"a",(function(){return o})),r.d(t,"f",(function(){return s})),r.d(t,"b",(function(){return u})),r.d(t,"d",(function(){return i})),r.d(t,"e",(function(){return c}));r("55dd");var n=r("b775");function a(e){return Object(n["a"])({url:"/sys/role/info",method:"post",data:{roleId:e}})}function o(e){return Object(n["a"])({url:"/sys/role/add",method:"post",data:e})}function s(e){return Object(n["a"])({url:"/sys/role/edit",method:"post",data:e})}function u(e){return Object(n["a"])({url:"/sys/role/delete",method:"post",data:{ids:e}})}function i(e){return Object(n["a"])({url:"/sys/role/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function c(){return Object(n["a"])({url:"/sys/role/listAll",method:"post"})}},fe05:function(e,t,r){"use strict";r.d(t,"c",(function(){return a})),r.d(t,"e",(function(){return o})),r.d(t,"f",(function(){return s})),r.d(t,"a",(function(){return u})),r.d(t,"d",(function(){return i})),r.d(t,"b",(function(){return c}));r("55dd");var n=r("b775");function a(e){return Object(n["a"])({url:"/sys/dept/list",method:"post",params:{page:e.page,pageSize:e.pageSize,sort:e.sort}})}function o(){return Object(n["a"])({url:"/sys/dept/listAll",method:"post"})}function s(){return Object(n["a"])({url:"/sys/dept/listAllTree",method:"post"})}function u(e){return Object(n["a"])({url:"/sys/dept/add",method:"post",data:e})}function i(e){return Object(n["a"])({url:"/sys/dept/edit",method:"post",data:e})}function c(e){return Object(n["a"])({url:"/sys/dept/delete",method:"post",data:{ids:e}})}}}]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
#FROM hub.c.163.com/library/java:8-alpine
FROM openjdk:8
MAINTAINER XXX XXX@imooc.com
ADD target/*.jar app.jar
# ADD *.jar app.jar
EXPOSE 8761
ENTRYPOINT ["java", "-jar", "/app.jar"]
\ No newline at end of file
#!/usr/bin/env bash
mvn clean package -Dmaven.test.skip=true -U
#docker build -t hub.c.163.com/springcloud/eureka .
#docker push hub.c.163.com/springcloud/eureka
docker build -t zzrdark/eureka .
docker push zzrdark/eureka
# docker build -t 192.168.2.244:5000/eureka .
# docker push 192.168.2.244:5000/eureka
\ No newline at end of file
......@@ -27,6 +27,18 @@
<artifactId>cneeds-common-data</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.mx.cneeds</groupId>
<artifactId>cneeds-common-pojo</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql.version}</version>
</dependency>
</dependencies>
<build>
......
package com.mx.cneeds.server.device;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
......@@ -14,8 +15,9 @@ import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
**/
@SpringBootApplication
@EnableEurekaClient
@MapperScan("com.mx.cneeds.server.dao")
public class DeviceApplication {
public static void main(String[] args) {
new SpringApplicationBuilder(DeviceApplication.class).web(WebApplicationType.NONE).run(args);
new SpringApplicationBuilder(DeviceApplication.class).web(WebApplicationType.SERVLET).run(args);
}
}
......@@ -11,7 +11,7 @@ import java.util.Map;
*
* @author Mark
* @email sunlightcs@gmail.com
* @date 2020-01-09 15:09:01
* @date 2020-03-18 14:44:30
*/
public interface DeviceInfoService extends IService<DeviceInfoEntity> {
......
package com.mx.cneeds.server.device.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mx.cneeds.common.pager.PageUtils;
import com.mx.cneeds.server.entity.ProductSeriesEntity;
import java.util.Map;
/**
*
*
* @author Mark
* @email sunlightcs@gmail.com
* @date 2020-03-18 14:44:30
*/
public interface ProductSeriesService extends IService<ProductSeriesEntity> {
PageUtils queryPage(Map<String, Object> params);
}
package com.mx.cneeds.server.device.service.impl;
import com.mx.cneeds.common.pager.PageUtils;
import com.mx.cneeds.common.pager.Query;
import com.mx.cneeds.server.dao.ProductSeriesDao;
import com.mx.cneeds.server.device.service.ProductSeriesService;
import com.mx.cneeds.server.entity.ProductSeriesEntity;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
@Service("productSeriesService")
public class ProductSeriesServiceImpl extends ServiceImpl<ProductSeriesDao, ProductSeriesEntity> implements ProductSeriesService {
@Override
public PageUtils queryPage(Map<String, Object> params) {
IPage<ProductSeriesEntity> page = this.page(
new Query<ProductSeriesEntity>().getPage(params),
new QueryWrapper<ProductSeriesEntity>()
);
return new PageUtils(page);
}
}
package com.mx.cneeds.server.device.web;
import java.util.Arrays;
import java.util.Map;
import com.mx.cneeds.common.pager.PageUtils;
import com.mx.cneeds.common.result.R;
import com.mx.cneeds.common.validator.ValidatorUtils;
import com.mx.cneeds.server.entity.DeviceInfoEntity;
import com.mx.cneeds.server.device.service.DeviceInfoService;
import com.mx.cneeds.server.entity.DeviceInfoEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.Arrays;
import java.util.Map;
//import org.apache.shiro.authz.annotation.RequiresPermissions;
/**
......@@ -19,10 +22,10 @@ import java.util.Map;
*
* @author Mark
* @email sunlightcs@gmail.com
* @date 2020-01-09 15:09:01
* @date 2020-03-18 14:44:30
*/
@RestController
@RequestMapping("device/deviceinfo")
@RequestMapping("sys/deviceinfo")
public class DeviceInfoController {
@Autowired
private DeviceInfoService deviceInfoService;
......@@ -31,7 +34,6 @@ public class DeviceInfoController {
* 列表
*/
@RequestMapping("/list")
// @RequiresPermissions("sys:deviceinfo:list")
public R list(@RequestParam Map<String, Object> params){
PageUtils page = deviceInfoService.queryPage(params);
......@@ -43,7 +45,6 @@ public class DeviceInfoController {
* 信息
*/
@RequestMapping("/info/{deviceId}")
// @RequiresPermissions("sys:deviceinfo:info")
public R info(@PathVariable("deviceId") Long deviceId){
DeviceInfoEntity deviceInfo = deviceInfoService.getById(deviceId);
......@@ -54,7 +55,6 @@ public class DeviceInfoController {
* 保存
*/
@RequestMapping("/save")
// @RequiresPermissions("sys:deviceinfo:save")
public R save(@RequestBody DeviceInfoEntity deviceInfo){
deviceInfoService.save(deviceInfo);
......@@ -65,7 +65,6 @@ public class DeviceInfoController {
* 修改
*/
@RequestMapping("/update")
// @RequiresPermissions("sys:deviceinfo:update")
public R update(@RequestBody DeviceInfoEntity deviceInfo){
ValidatorUtils.validateEntity(deviceInfo);
deviceInfoService.updateById(deviceInfo);
......@@ -77,16 +76,10 @@ public class DeviceInfoController {
* 删除
*/
@RequestMapping("/delete")
// @RequiresPermissions("sys:deviceinfo:delete")
public R delete(@RequestBody Long[] deviceIds){
deviceInfoService.removeByIds(Arrays.asList(deviceIds));
return R.ok();
}
@RequestMapping("/getChannel_nums")
public void getChannel_nums(String imei){
//TODO 接口实现
}
}
......@@ -31,7 +31,6 @@ public class DeviceLogController {
* 列表
*/
@RequestMapping("/list")
// @RequiresPermissions("sys:devicelog:list")
public R list(@RequestParam Map<String, Object> params){
PageUtils page = deviceLogService.queryPage(params);
......@@ -43,7 +42,6 @@ public class DeviceLogController {
* 信息
*/
@RequestMapping("/info/{logId}")
// @RequiresPermissions("sys:devicelog:info")
public R info(@PathVariable("logId") Long logId){
DeviceLogEntity deviceLog = deviceLogService.getById(logId);
......@@ -54,7 +52,6 @@ public class DeviceLogController {
* 保存
*/
@RequestMapping("/save")
// @RequiresPermissions("sys:devicelog:save")
public R save(@RequestBody DeviceLogEntity deviceLog){
deviceLogService.save(deviceLog);
......@@ -65,7 +62,6 @@ public class DeviceLogController {
* 修改
*/
@RequestMapping("/update")
// @RequiresPermissions("sys:devicelog:update")
public R update(@RequestBody DeviceLogEntity deviceLog){
ValidatorUtils.validateEntity(deviceLog);
deviceLogService.updateById(deviceLog);
......@@ -77,7 +73,6 @@ public class DeviceLogController {
* 删除
*/
@RequestMapping("/delete")
// @RequiresPermissions("sys:devicelog:delete")
public R delete(@RequestBody Long[] logIds){
deviceLogService.removeByIds(Arrays.asList(logIds));
......
package com.mx.cneeds.server.device.web;
import java.util.*;
import com.mx.cneeds.common.dto.SeriesDto;
import com.mx.cneeds.common.pager.PageUtils;
import com.mx.cneeds.common.result.R;
import com.mx.cneeds.common.validator.ValidatorUtils;
import com.mx.cneeds.server.device.service.ProductSeriesService;
import com.mx.cneeds.server.entity.ProductSeriesEntity;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
/**
*
*
* @author Mark
* @email sunlightcs@gmail.com
* @date 2020-03-18 14:44:30
*/
@RestController
@RequestMapping("device/series")
public class ProductSeriesController {
@Autowired
private ProductSeriesService productSeriesService;
/**
* 列表
*/
@RequestMapping("/list")
public PageUtils list(@RequestParam Map<String, Object> params){
PageUtils page = productSeriesService.queryPage(params);
List<SeriesDto> list = new ArrayList<SeriesDto>();
for (Object entity : page.getList()){
SeriesDto dto = new SeriesDto();
ProductSeriesEntity seriesEntity = (ProductSeriesEntity) entity;
BeanUtils.copyProperties(seriesEntity,dto);
list.add(dto);
}
return page;
}
/**
* 信息
*/
@RequestMapping("/info/{seriesId}")
public R info(@PathVariable("seriesId") Long seriesId){
ProductSeriesEntity productSeries = productSeriesService.getById(seriesId);
return R.ok().put("productSeries", productSeries);
}
/**
* 保存
*/
@RequestMapping("/save")
public R save(@RequestBody SeriesDto dto){
ProductSeriesEntity seriesEntity = new ProductSeriesEntity();
BeanUtils.copyProperties(dto,seriesEntity);
seriesEntity.setCreateTime(new Date());
productSeriesService.save(seriesEntity);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody SeriesDto dto){
ProductSeriesEntity seriesEntity = new ProductSeriesEntity();
BeanUtils.copyProperties(dto,seriesEntity);
ValidatorUtils.validateEntity(seriesEntity);
productSeriesService.updateById(seriesEntity);
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] seriesIds){
productSeriesService.removeByIds(Arrays.asList(seriesIds));
return R.ok();
}
}
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://192.168.2.244:3306/cneeds_server?useUnicode=true&characterEncoding=UTF-8&useSSL=false
password: cneeds!QAZ1qaz
username: root
# hikari:
# driver-class-name: com.mysql.jdbc.Driver
# url: jdbc:mysql://192.168.2.244:3306/cneeds_server?useUnicode=true&characterEncoding=UTF-8&useSSL=false
# username: root
# password: cneeds!QAZ1qaz
# datasource:
# type: com.alibaba.druid.pool.DruidDataSource
# druid:
# driver-class-name: com.mysql.jdbc.Driver
# url: jdbc:mysql://192.168.2.244:3306/cneeds_server?useUnicode=true&characterEncoding=UTF-8&useSSL=false
# username: root
# password: cneeds!QAZ1qaz
# initial-size: 10
# max-active: 100
# min-idle: 10
# max-wait: 60000
# pool-prepared-statements: true
# max-pool-prepared-statement-per-connection-size: 20
# time-between-eviction-runs-millis: 60000
# min-evictable-idle-time-millis: 300000
# #Oracle需要打开注释
# #validation-query: SELECT 1 FROM DUAL
# test-while-idle: true
# test-on-borrow: false
# test-on-return: false
# stat-view-servlet:
# enabled: true
# url-pattern: /druid/*
# #login-username: admin
# #login-password: admin
# filter:
# stat:
# log-slow-sql: true
# slow-sql-millis: 1000
# merge-sql: false
# wall:
# config:
# multi-statement-allow: true
eureka:
client:
service-url:
defaultZone: http://192.168.2.244:8761/eureka/
instance:
prefer-ip-address: true
# ip-address: 192.168.2.244
mybatis-plus:
mapper-locations: classpath:mapper/*.xml
#实体扫描,多个package用逗号或者分号分隔
typeAliasesPackage: com.mx.cneeds.server.entity
global-config:
#数据库相关配置
db-config:
#主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID", ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
id-type: AUTO
#字段策略 IGNORED:"忽略判断",NOT_NULL:"非 NULL 判断"),NOT_EMPTY:"非空判断"
field-strategy: NOT_NULL
#驼峰下划线转换
column-underline: true
logic-delete-value: -1
logic-not-delete-value: 0
banner: false
#原生配置
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
call-setters-on-nulls: true
jdbc-type-for-null: 'null'
spring:
profiles:
active: dev
application:
name: cneeds-server-device
server:
port: 9002
servlet:
context-path: /
......@@ -50,7 +50,7 @@ eureka:
defaultZone: http://192.168.2.244:8761/eureka/
instance:
prefer-ip-address: true
# ip-address: 192.168.2.244
ip-address: 192.168.2.244
mybatis-plus:
......
......@@ -31,8 +31,10 @@
<java.version>1.8</java.version>
<spring-cloud.version>Finchley.SR2</spring-cloud.version>
<swagger.version>2.7.0</swagger.version>
<mysql.version>8.0.16</mysql.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment