69 changed files with 14142 additions and 403 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,4 +1,4 @@ |
|||||||
package com.mengyxu.admin; |
package vip.xumy.admin; |
||||||
|
|
||||||
import org.springframework.stereotype.Controller; |
import org.springframework.stereotype.Controller; |
||||||
import org.springframework.web.bind.annotation.PathVariable; |
import org.springframework.web.bind.annotation.PathVariable; |
@ -1,8 +1,8 @@ |
|||||||
package com.mengyxu.admin.sys.mapper; |
package vip.xumy.admin.sys.mapper; |
||||||
|
|
||||||
import java.util.List; |
import java.util.List; |
||||||
|
|
||||||
import com.mengyxu.admin.sys.pojo.ActionLog; |
import vip.xumy.admin.sys.pojo.ActionLog; |
||||||
|
|
||||||
/** Ownership belongs to the company |
/** Ownership belongs to the company |
||||||
* author:mengyxu |
* author:mengyxu |
@ -1,8 +1,8 @@ |
|||||||
package com.mengyxu.admin.sys.mapper; |
package vip.xumy.admin.sys.mapper; |
||||||
|
|
||||||
import java.util.List; |
import java.util.List; |
||||||
|
|
||||||
import com.mengyxu.admin.sys.pojo.SysConfig; |
import vip.xumy.admin.sys.pojo.SysConfig; |
||||||
|
|
||||||
public interface IConfigMapper { |
public interface IConfigMapper { |
||||||
|
|
@ -1,9 +1,9 @@ |
|||||||
package com.mengyxu.admin.sys.mapper; |
package vip.xumy.admin.sys.mapper; |
||||||
|
|
||||||
import java.util.List; |
import java.util.List; |
||||||
|
|
||||||
import com.mengyxu.admin.sys.pojo.Dictionary; |
import vip.xumy.admin.sys.pojo.Dictionary; |
||||||
import com.mengyxu.core.pojo.com.Entry; |
import vip.xumy.core.pojo.com.Entry; |
||||||
|
|
||||||
/** Ownership belongs to the company |
/** Ownership belongs to the company |
||||||
* author:mengyxu |
* author:mengyxu |
@ -1,8 +1,8 @@ |
|||||||
package com.mengyxu.admin.sys.mapper; |
package vip.xumy.admin.sys.mapper; |
||||||
|
|
||||||
import java.util.List; |
import java.util.List; |
||||||
|
|
||||||
import com.mengyxu.admin.sys.pojo.UserItem; |
import vip.xumy.admin.sys.pojo.UserItem; |
||||||
|
|
||||||
/** Ownership belongs to the company |
/** Ownership belongs to the company |
||||||
* author:mengyxu |
* author:mengyxu |
@ -1,9 +1,8 @@ |
|||||||
package com.mengyxu.admin.sys.pojo; |
package vip.xumy.admin.sys.pojo; |
||||||
|
|
||||||
import com.mengyxu.core.pojo.base.BasePeriod; |
|
||||||
|
|
||||||
import lombok.Getter; |
import lombok.Getter; |
||||||
import lombok.Setter; |
import lombok.Setter; |
||||||
|
import vip.xumy.core.pojo.base.BasePeriod; |
||||||
|
|
||||||
/** Ownership belongs to the company |
/** Ownership belongs to the company |
||||||
* author:mengyxu |
* author:mengyxu |
@ -1,11 +1,10 @@ |
|||||||
package com.mengyxu.admin.sys.pojo; |
package vip.xumy.admin.sys.pojo; |
||||||
|
|
||||||
import java.util.List; |
import java.util.List; |
||||||
|
|
||||||
import com.mengyxu.core.pojo.base.BasePageParam; |
|
||||||
|
|
||||||
import lombok.Getter; |
import lombok.Getter; |
||||||
import lombok.Setter; |
import lombok.Setter; |
||||||
|
import vip.xumy.core.pojo.base.BasePageParam; |
||||||
|
|
||||||
/** Ownership belongs to the company |
/** Ownership belongs to the company |
||||||
* author:mengyxu |
* author:mengyxu |
@ -1,13 +1,13 @@ |
|||||||
package com.mengyxu.admin.sys.pojo; |
package vip.xumy.admin.sys.pojo; |
||||||
|
|
||||||
import java.util.Date; |
import java.util.Date; |
||||||
|
|
||||||
import com.alibaba.fastjson.annotation.JSONField; |
import com.alibaba.fastjson.annotation.JSONField; |
||||||
import com.mengyxu.core.pojo.base.BasePageParam; |
|
||||||
import com.mengyxu.core.utils.DateUtil; |
|
||||||
|
|
||||||
import lombok.Getter; |
import lombok.Getter; |
||||||
import lombok.Setter; |
import lombok.Setter; |
||||||
|
import vip.xumy.core.pojo.base.BasePageParam; |
||||||
|
import vip.xumy.core.utils.DateUtil; |
||||||
|
|
||||||
/** Ownership belongs to the company |
/** Ownership belongs to the company |
||||||
* author:mengyxu |
* author:mengyxu |
@ -1,8 +1,8 @@ |
|||||||
package com.mengyxu.admin.sys.service; |
package vip.xumy.admin.sys.service; |
||||||
|
|
||||||
import java.util.List; |
import java.util.List; |
||||||
|
|
||||||
import com.mengyxu.admin.sys.pojo.SysConfig; |
import vip.xumy.admin.sys.pojo.SysConfig; |
||||||
|
|
||||||
public interface IConfigService { |
public interface IConfigService { |
||||||
|
|
@ -1,11 +1,11 @@ |
|||||||
package com.mengyxu.admin.sys.service; |
package vip.xumy.admin.sys.service; |
||||||
|
|
||||||
import java.util.List; |
import java.util.List; |
||||||
import java.util.Map; |
import java.util.Map; |
||||||
|
|
||||||
import com.mengyxu.admin.sys.pojo.Dictionary; |
import vip.xumy.admin.sys.pojo.Dictionary; |
||||||
import com.mengyxu.core.exception.CoreException; |
import vip.xumy.core.exception.CoreException; |
||||||
import com.mengyxu.core.pojo.com.Entry; |
import vip.xumy.core.pojo.com.Entry; |
||||||
|
|
||||||
/** Ownership belongs to the company |
/** Ownership belongs to the company |
||||||
* author:mengyxu |
* author:mengyxu |
@ -1,9 +1,9 @@ |
|||||||
package com.mengyxu.admin.sys.service; |
package vip.xumy.admin.sys.service; |
||||||
|
|
||||||
import java.util.List; |
import java.util.List; |
||||||
import java.util.Map; |
import java.util.Map; |
||||||
|
|
||||||
import com.mengyxu.admin.sys.pojo.ActionLog; |
import vip.xumy.admin.sys.pojo.ActionLog; |
||||||
|
|
||||||
/** Ownership belongs to the company |
/** Ownership belongs to the company |
||||||
* author:mengyxu |
* author:mengyxu |
@ -1,8 +1,8 @@ |
|||||||
package com.mengyxu.admin.sys.service; |
package vip.xumy.admin.sys.service; |
||||||
|
|
||||||
import java.util.List; |
import java.util.List; |
||||||
|
|
||||||
import com.mengyxu.admin.sys.pojo.UserItem; |
import vip.xumy.admin.sys.pojo.UserItem; |
||||||
|
|
||||||
/** Ownership belongs to the company |
/** Ownership belongs to the company |
||||||
* author:mengyxu |
* author:mengyxu |
@ -1,14 +1,14 @@ |
|||||||
package com.mengyxu.admin.sys.service.impl; |
package vip.xumy.admin.sys.service.impl; |
||||||
|
|
||||||
import java.util.List; |
import java.util.List; |
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired; |
import org.springframework.beans.factory.annotation.Autowired; |
||||||
import org.springframework.stereotype.Service; |
import org.springframework.stereotype.Service; |
||||||
|
|
||||||
import com.mengyxu.admin.sys.mapper.IConfigMapper; |
import vip.xumy.admin.sys.mapper.IConfigMapper; |
||||||
import com.mengyxu.admin.sys.pojo.SysConfig; |
import vip.xumy.admin.sys.pojo.SysConfig; |
||||||
import com.mengyxu.admin.sys.service.IConfigService; |
import vip.xumy.admin.sys.service.IConfigService; |
||||||
import com.mengyxu.core.utils.StringUtil; |
import vip.xumy.core.utils.StringUtil; |
||||||
|
|
||||||
@Service |
@Service |
||||||
public class ConfigService implements IConfigService { |
public class ConfigService implements IConfigService { |
@ -1,13 +1,13 @@ |
|||||||
package com.mengyxu.admin.sys.service.impl; |
package vip.xumy.admin.sys.service.impl; |
||||||
|
|
||||||
import java.util.List; |
import java.util.List; |
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired; |
import org.springframework.beans.factory.annotation.Autowired; |
||||||
import org.springframework.stereotype.Service; |
import org.springframework.stereotype.Service; |
||||||
|
|
||||||
import com.mengyxu.admin.sys.mapper.IUserItemMapper; |
import vip.xumy.admin.sys.mapper.IUserItemMapper; |
||||||
import com.mengyxu.admin.sys.pojo.UserItem; |
import vip.xumy.admin.sys.pojo.UserItem; |
||||||
import com.mengyxu.admin.sys.service.IUserItemService; |
import vip.xumy.admin.sys.service.IUserItemService; |
||||||
|
|
||||||
/** Ownership belongs to the company |
/** Ownership belongs to the company |
||||||
* author:mengyxu |
* author:mengyxu |
@ -1,12 +1,12 @@ |
|||||||
package com.mengyxu.admin.um.mapper; |
package vip.xumy.admin.um.mapper; |
||||||
|
|
||||||
import java.util.List; |
import java.util.List; |
||||||
|
|
||||||
import org.apache.ibatis.annotations.Param; |
import org.apache.ibatis.annotations.Param; |
||||||
|
|
||||||
import com.mengyxu.admin.um.pojo.Menu; |
import vip.xumy.admin.um.pojo.Menu; |
||||||
import com.mengyxu.admin.um.pojo.Permission; |
import vip.xumy.admin.um.pojo.Permission; |
||||||
import com.mengyxu.core.pojo.com.Entry; |
import vip.xumy.core.pojo.com.Entry; |
||||||
|
|
||||||
/** |
/** |
||||||
* 权限管理Dao |
* 权限管理Dao |
@ -1,9 +1,9 @@ |
|||||||
package com.mengyxu.admin.um.mapper; |
package vip.xumy.admin.um.mapper; |
||||||
|
|
||||||
import java.util.List; |
import java.util.List; |
||||||
|
|
||||||
import com.mengyxu.admin.um.pojo.Role; |
import vip.xumy.admin.um.pojo.Role; |
||||||
import com.mengyxu.core.pojo.com.Entry; |
import vip.xumy.core.pojo.com.Entry; |
||||||
|
|
||||||
/** Ownership belongs to the company |
/** Ownership belongs to the company |
||||||
* author:mengyxu |
* author:mengyxu |
@ -1,8 +1,8 @@ |
|||||||
package com.mengyxu.admin.um.mapper; |
package vip.xumy.admin.um.mapper; |
||||||
|
|
||||||
import java.util.List; |
import java.util.List; |
||||||
|
|
||||||
import com.mengyxu.admin.um.pojo.User; |
import vip.xumy.admin.um.pojo.User; |
||||||
|
|
||||||
/** Ownership belongs to the company |
/** Ownership belongs to the company |
||||||
* author:mengyxu |
* author:mengyxu |
@ -1,9 +1,8 @@ |
|||||||
package com.mengyxu.admin.um.pojo; |
package vip.xumy.admin.um.pojo; |
||||||
|
|
||||||
import com.mengyxu.core.pojo.base.BaseTree; |
|
||||||
|
|
||||||
import lombok.Getter; |
import lombok.Getter; |
||||||
import lombok.Setter; |
import lombok.Setter; |
||||||
|
import vip.xumy.core.pojo.base.BaseTree; |
||||||
|
|
||||||
/** |
/** |
||||||
* 菜单实体类 |
* 菜单实体类 |
@ -1,4 +1,4 @@ |
|||||||
package com.mengyxu.admin.um.pojo; |
package vip.xumy.admin.um.pojo; |
||||||
|
|
||||||
import lombok.Getter; |
import lombok.Getter; |
||||||
import lombok.Setter; |
import lombok.Setter; |
@ -1,9 +1,8 @@ |
|||||||
package com.mengyxu.admin.um.pojo; |
package vip.xumy.admin.um.pojo; |
||||||
|
|
||||||
import com.mengyxu.core.pojo.base.BaseTree; |
|
||||||
|
|
||||||
import lombok.Getter; |
import lombok.Getter; |
||||||
import lombok.Setter; |
import lombok.Setter; |
||||||
|
import vip.xumy.core.pojo.base.BaseTree; |
||||||
|
|
||||||
/** |
/** |
||||||
* 权限实体类 |
* 权限实体类 |
@ -1,10 +1,10 @@ |
|||||||
package com.mengyxu.admin.um.pojo; |
package vip.xumy.admin.um.pojo; |
||||||
|
|
||||||
import com.alibaba.fastjson.annotation.JSONField; |
import com.alibaba.fastjson.annotation.JSONField; |
||||||
import com.mengyxu.core.pojo.base.BasePageParam; |
|
||||||
|
|
||||||
import lombok.Getter; |
import lombok.Getter; |
||||||
import lombok.Setter; |
import lombok.Setter; |
||||||
|
import vip.xumy.core.pojo.base.BasePageParam; |
||||||
|
|
||||||
/** Ownership belongs to the company |
/** Ownership belongs to the company |
||||||
* author:mengyxu |
* author:mengyxu |
@ -1,4 +1,4 @@ |
|||||||
package com.mengyxu.admin.um.pojo; |
package vip.xumy.admin.um.pojo; |
||||||
|
|
||||||
import java.text.MessageFormat; |
import java.text.MessageFormat; |
||||||
import java.util.List; |
import java.util.List; |
@ -1,14 +1,14 @@ |
|||||||
package com.mengyxu.admin.um.pojo; |
package vip.xumy.admin.um.pojo; |
||||||
|
|
||||||
import java.text.MessageFormat; |
import java.text.MessageFormat; |
||||||
import java.util.List; |
import java.util.List; |
||||||
|
|
||||||
import com.alibaba.fastjson.annotation.JSONField; |
import com.alibaba.fastjson.annotation.JSONField; |
||||||
import com.mengyxu.core.pojo.base.BasePageParam; |
|
||||||
import com.mengyxu.core.utils.StringUtil; |
|
||||||
|
|
||||||
import lombok.Getter; |
import lombok.Getter; |
||||||
import lombok.Setter; |
import lombok.Setter; |
||||||
|
import vip.xumy.core.pojo.base.BasePageParam; |
||||||
|
import vip.xumy.core.utils.StringUtil; |
||||||
|
|
||||||
/** Ownership belongs to the company |
/** Ownership belongs to the company |
||||||
* author:mengyxu |
* author:mengyxu |
@ -1,9 +1,9 @@ |
|||||||
package com.mengyxu.admin.um.service; |
package vip.xumy.admin.um.service; |
||||||
|
|
||||||
import java.util.List; |
import java.util.List; |
||||||
|
|
||||||
import com.mengyxu.admin.um.pojo.Menu; |
import vip.xumy.admin.um.pojo.Menu; |
||||||
import com.mengyxu.core.pojo.com.Entry; |
import vip.xumy.core.pojo.com.Entry; |
||||||
|
|
||||||
public interface IMenuService { |
public interface IMenuService { |
||||||
|
|
@ -1,9 +1,9 @@ |
|||||||
package com.mengyxu.admin.um.service; |
package vip.xumy.admin.um.service; |
||||||
|
|
||||||
import java.util.List; |
import java.util.List; |
||||||
|
|
||||||
import com.mengyxu.admin.um.pojo.Permission; |
import vip.xumy.admin.um.pojo.Permission; |
||||||
import com.mengyxu.core.exception.CoreException; |
import vip.xumy.core.exception.CoreException; |
||||||
|
|
||||||
/** Ownership belongs to the company |
/** Ownership belongs to the company |
||||||
* author:mengyxu |
* author:mengyxu |
@ -1,4 +1,4 @@ |
|||||||
package com.mengyxu.admin.um.service; |
package vip.xumy.admin.um.service; |
||||||
|
|
||||||
import java.util.List; |
import java.util.List; |
||||||
|
|
@ -1,9 +1,9 @@ |
|||||||
package com.mengyxu.admin.um.service; |
package vip.xumy.admin.um.service; |
||||||
|
|
||||||
import java.util.List; |
import java.util.List; |
||||||
|
|
||||||
import com.mengyxu.admin.um.pojo.Role; |
import vip.xumy.admin.um.pojo.Role; |
||||||
import com.mengyxu.core.pojo.com.Entry; |
import vip.xumy.core.pojo.com.Entry; |
||||||
|
|
||||||
/** Ownership belongs to the company |
/** Ownership belongs to the company |
||||||
* author:mengyxu |
* author:mengyxu |
@ -1,9 +1,9 @@ |
|||||||
package com.mengyxu.admin.um.service; |
package vip.xumy.admin.um.service; |
||||||
|
|
||||||
import java.util.List; |
import java.util.List; |
||||||
|
|
||||||
import com.mengyxu.admin.um.pojo.User; |
import vip.xumy.admin.um.pojo.User; |
||||||
import com.mengyxu.core.exception.CoreException; |
import vip.xumy.core.exception.CoreException; |
||||||
|
|
||||||
/** Ownership belongs to the company |
/** Ownership belongs to the company |
||||||
* author:mengyxu |
* author:mengyxu |
@ -1,11 +1,11 @@ |
|||||||
package com.mengyxu.admin.utils; |
package vip.xumy.admin.utils; |
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest; |
import javax.servlet.http.HttpServletRequest; |
||||||
|
|
||||||
import com.mengyxu.admin.sys.pojo.ActionLog; |
import vip.xumy.admin.sys.pojo.ActionLog; |
||||||
import com.mengyxu.admin.um.pojo.Role; |
import vip.xumy.admin.um.pojo.Role; |
||||||
import com.mengyxu.admin.um.pojo.User; |
import vip.xumy.admin.um.pojo.User; |
||||||
import com.mengyxu.core.utils.StringUtil; |
import vip.xumy.core.utils.StringUtil; |
||||||
|
|
||||||
public class AdminLogUtil extends BaseLogUtil { |
public class AdminLogUtil extends BaseLogUtil { |
||||||
|
|
@ -1,14 +1,13 @@ |
|||||||
package com.mengyxu.admin.utils; |
package vip.xumy.admin.utils; |
||||||
|
|
||||||
import java.text.MessageFormat; |
import java.text.MessageFormat; |
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest; |
import javax.servlet.http.HttpServletRequest; |
||||||
|
|
||||||
import com.mengyxu.admin.sys.pojo.ActionLog; |
|
||||||
import com.mengyxu.admin.sys.service.ILogService; |
|
||||||
import com.mengyxu.core.utils.StringUtil; |
|
||||||
|
|
||||||
import lombok.extern.log4j.Log4j2; |
import lombok.extern.log4j.Log4j2; |
||||||
|
import vip.xumy.admin.sys.pojo.ActionLog; |
||||||
|
import vip.xumy.admin.sys.service.ILogService; |
||||||
|
import vip.xumy.core.utils.StringUtil; |
||||||
|
|
||||||
@Log4j2 |
@Log4j2 |
||||||
public class BaseLogUtil { |
public class BaseLogUtil { |
@ -1,15 +1,15 @@ |
|||||||
package com.mengyxu.admin.utils; |
package vip.xumy.admin.utils; |
||||||
|
|
||||||
import javax.servlet.http.Cookie; |
import javax.servlet.http.Cookie; |
||||||
import javax.servlet.http.HttpServletRequest; |
import javax.servlet.http.HttpServletRequest; |
||||||
import javax.servlet.http.HttpServletResponse; |
import javax.servlet.http.HttpServletResponse; |
||||||
|
|
||||||
import com.mengyxu.admin.um.pojo.User; |
import vip.xumy.admin.um.pojo.User; |
||||||
import com.mengyxu.core.exception.CoreException; |
import vip.xumy.core.exception.CoreException; |
||||||
import com.mengyxu.core.golbal.GlobalBuffer; |
import vip.xumy.core.golbal.GlobalBuffer; |
||||||
import com.mengyxu.core.golbal.GlobalConstant; |
import vip.xumy.core.golbal.GlobalConstant; |
||||||
import com.mengyxu.core.pojo.com.Cache; |
import vip.xumy.core.pojo.com.Cache; |
||||||
import com.mengyxu.core.utils.StringUtil; |
import vip.xumy.core.utils.StringUtil; |
||||||
|
|
||||||
/** Ownership belongs to the company |
/** Ownership belongs to the company |
||||||
* author:mengyxu |
* author:mengyxu |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,106 @@ |
|||||||
|
#app { |
||||||
|
background-color: #edf2f7; |
||||||
|
} |
||||||
|
|
||||||
|
.app-head { |
||||||
|
padding: 0px !important; |
||||||
|
} |
||||||
|
|
||||||
|
.app-main { |
||||||
|
/* background-color: #ffffff; */ |
||||||
|
padding: 0px 20px !important; |
||||||
|
} |
||||||
|
|
||||||
|
/* .el-main{ |
||||||
|
padding-top: 0px !important; |
||||||
|
} */ |
||||||
|
.main-head { |
||||||
|
padding-top: 10px; |
||||||
|
} |
||||||
|
|
||||||
|
.query-mini { |
||||||
|
width: 100px !important; |
||||||
|
margin-right: 10px; |
||||||
|
} |
||||||
|
|
||||||
|
.query-smart { |
||||||
|
width: 120px !important; |
||||||
|
margin-right: 10px; |
||||||
|
} |
||||||
|
|
||||||
|
.query-short { |
||||||
|
width: 150px !important; |
||||||
|
margin-right: 10px; |
||||||
|
} |
||||||
|
|
||||||
|
.query-medium { |
||||||
|
width: 200px !important; |
||||||
|
margin-right: 10px; |
||||||
|
} |
||||||
|
|
||||||
|
.query-long { |
||||||
|
width: 250px !important; |
||||||
|
margin-right: 10px; |
||||||
|
} |
||||||
|
|
||||||
|
.query-tree { |
||||||
|
width: 300px !important; |
||||||
|
margin-right: 10px; |
||||||
|
} |
||||||
|
|
||||||
|
.query-longest { |
||||||
|
width: 350px !important; |
||||||
|
margin-right: 10px; |
||||||
|
} |
||||||
|
|
||||||
|
.query-400 { |
||||||
|
width: 400px !important; |
||||||
|
margin-right: 10px; |
||||||
|
} |
||||||
|
|
||||||
|
.query-450 { |
||||||
|
width: 450px !important; |
||||||
|
margin-right: 10px; |
||||||
|
} |
||||||
|
|
||||||
|
.query-500 { |
||||||
|
width: 500px !important; |
||||||
|
margin-right: 10px; |
||||||
|
} |
||||||
|
|
||||||
|
.modify-dialog .el-dialog { |
||||||
|
background-color: #edf2f7; |
||||||
|
} |
||||||
|
|
||||||
|
.form-title { |
||||||
|
font-size: 18px; |
||||||
|
background-color: cadetblue; |
||||||
|
padding: 10px; |
||||||
|
height: 25px; |
||||||
|
font-weight: bold; |
||||||
|
margin-bottom: 20px; |
||||||
|
color: #FFFFFF; |
||||||
|
} |
||||||
|
|
||||||
|
.full-item-form .el-select, |
||||||
|
.full-item-form .el-date-editor, |
||||||
|
.full-item-form .el-autocomplete { |
||||||
|
width: 100% !important; |
||||||
|
} |
||||||
|
|
||||||
|
.dialog-footer { |
||||||
|
text-align: right; |
||||||
|
} |
||||||
|
|
||||||
|
.infomation-form .el-form-item { |
||||||
|
margin-top: 20px; |
||||||
|
font-size: 1.5rem; |
||||||
|
} |
||||||
|
.infomation-form .el-input { |
||||||
|
width: 350px; |
||||||
|
margin-right: 20px; |
||||||
|
} |
||||||
|
.infomation-form .el-input__inner{ |
||||||
|
background-color: #4472c4 !important; |
||||||
|
color: #FFFFFF; |
||||||
|
} |
@ -0,0 +1,92 @@ |
|||||||
|
<template> |
||||||
|
<div id="listTable"> |
||||||
|
<el-table :data="result.rows" :height="$store.state.sizes.pTableHei" border stripe> |
||||||
|
<el-table-column v-for="prop in props" v-if="!prop.tableHide" :prop="prop.code" :label="prop.name" |
||||||
|
:min-width="prop.width" :width="prop.type ? prop.width : ''" :type="prop.type" |
||||||
|
:formatter="(row,column,value) => getValue(prop.dict,value)" show-overflow-tooltip /> |
||||||
|
<el-table-column v-if="urls.update || urls.del || actions" label="操作" :width="actionWidth" fixed="right"> |
||||||
|
<template slot-scope="scope" v-if="status != true || scope.row.status != 'R'"> |
||||||
|
<el-button v-if="urls.update && $store.state.buttons[urls.update]" size="mini" type="primary" |
||||||
|
@click="modify(scope.row)"> |
||||||
|
修改 </el-button> |
||||||
|
<el-button v-if="urls.del && $store.state.buttons[urls.del]" size="mini" type="danger" |
||||||
|
@click="delate(scope.row)"> |
||||||
|
删除 </el-button> |
||||||
|
<el-button v-for="action in actions" v-if="!action.url || $store.state.buttons[action.url]" size="mini" |
||||||
|
:type="action.type" @click="$emit(action.emit,scope.row)">{{action.name}}</el-button> |
||||||
|
</template> |
||||||
|
</el-table-column> |
||||||
|
</el-table> |
||||||
|
</div> |
||||||
|
</template> |
||||||
|
|
||||||
|
<script> |
||||||
|
import { |
||||||
|
Vue, |
||||||
|
Component, |
||||||
|
Prop |
||||||
|
} from "vue-property-decorator"; |
||||||
|
|
||||||
|
@Component |
||||||
|
export default class ListTable extends Vue { |
||||||
|
|
||||||
|
@Prop({ |
||||||
|
type: Object |
||||||
|
}) urls; |
||||||
|
|
||||||
|
@Prop({ |
||||||
|
type: Object |
||||||
|
}) result; |
||||||
|
|
||||||
|
@Prop({ |
||||||
|
type: Array |
||||||
|
}) props; |
||||||
|
|
||||||
|
@Prop({ |
||||||
|
type: Array |
||||||
|
}) actions; |
||||||
|
|
||||||
|
@Prop({ |
||||||
|
type: Boolean |
||||||
|
}) status; |
||||||
|
|
||||||
|
actionWidth = 30; |
||||||
|
|
||||||
|
getValue(dictKey, value) { |
||||||
|
if (!dictKey) { |
||||||
|
return value; |
||||||
|
} |
||||||
|
const dict = this.$store.state.dict[dictKey] |
||||||
|
if (dict == null) { |
||||||
|
return value; |
||||||
|
} |
||||||
|
return dict[value] == null ? value : dict[value] |
||||||
|
} |
||||||
|
|
||||||
|
created() { |
||||||
|
if (this.urls.update) { |
||||||
|
this.actionWidth += 60; |
||||||
|
} |
||||||
|
if (this.urls.del) { |
||||||
|
this.actionWidth += 60; |
||||||
|
} |
||||||
|
const that = this; |
||||||
|
if (this.actions) { |
||||||
|
this.actions.forEach(i => { |
||||||
|
that.actionWidth += i.width; |
||||||
|
}) |
||||||
|
} |
||||||
|
} //生命周期 - 创建完成(可以访问当前this实例) |
||||||
|
mounted() {} //生命周期 - 挂载完成(可以访问DOM元素) |
||||||
|
beforeCreate() {} //生命周期 - 创建之前 |
||||||
|
beforeMount() {} //生命周期 - 挂载之前 |
||||||
|
beforeUpdate() {} //生命周期 - 更新之前 |
||||||
|
updated() {} //生命周期 - 更新之后 |
||||||
|
beforeDestroy() {} //生命周期 - 销毁之前 |
||||||
|
destroyed() {} //生命周期 - 销毁完成 |
||||||
|
activated() {} //如果页面有keep-alive缓存功能,这个函数会触发 |
||||||
|
} |
||||||
|
</script> |
||||||
|
<style scoped> |
||||||
|
|
||||||
|
</style> |
@ -0,0 +1,63 @@ |
|||||||
|
<template> |
||||||
|
<div id="searchRow"> |
||||||
|
<el-row type="flex" justify="end"> |
||||||
|
<span v-for="term in terms"> |
||||||
|
<el-date-picker v-if="term.datePicker" v-model="example[term.code]" :value-format="term.valueFormat" |
||||||
|
:type="term.type" :class="term.claze ? term.claze : 'query-medium'" :placeholder="term.desc"></el-date-picker> |
||||||
|
<el-select v-if="term.dict" v-model="example[term.code]" :class="term.claze ? term.claze : 'query-medium'" |
||||||
|
:placeholder="term.desc" filterable clearable> |
||||||
|
<el-option v-for="(val, key, i) in $store.state.dict[term.dict]" :key="key" :value="key" :label="val" /> |
||||||
|
</el-select> |
||||||
|
<el-input v-if="!term.datePicker && !term.dict" v-model="example[term.code]" |
||||||
|
:class="term.claze ? term.claze : 'query-medium'" :placeholder="term.desc" clearable /> |
||||||
|
</span> |
||||||
|
<el-button type="primary" icon="el-icon-search" @click="query(1)" v-if="queryAble"> 查询 </el-button> |
||||||
|
<el-button type="success" icon="el-icon-plus" @click="add()" v-if="addAble"> 添加{{name}} </el-button> |
||||||
|
</el-row> |
||||||
|
</div> |
||||||
|
</template> |
||||||
|
|
||||||
|
<script> |
||||||
|
import { |
||||||
|
Vue, |
||||||
|
Component, |
||||||
|
Prop |
||||||
|
} from "vue-property-decorator"; |
||||||
|
|
||||||
|
@Component |
||||||
|
export default class SearchRow extends Vue { |
||||||
|
|
||||||
|
@Prop({ |
||||||
|
type: Object |
||||||
|
}) example; |
||||||
|
|
||||||
|
@Prop({ |
||||||
|
type: String |
||||||
|
}) name; |
||||||
|
|
||||||
|
@Prop({ |
||||||
|
type: Array |
||||||
|
}) terms; |
||||||
|
|
||||||
|
@Prop({ |
||||||
|
type: Boolean |
||||||
|
}) queryAble; |
||||||
|
|
||||||
|
@Prop({ |
||||||
|
type: Boolean |
||||||
|
}) addAble; |
||||||
|
|
||||||
|
created() {} //生命周期 - 创建完成(可以访问当前this实例) |
||||||
|
mounted() {} //生命周期 - 挂载完成(可以访问DOM元素) |
||||||
|
beforeCreate() {} //生命周期 - 创建之前 |
||||||
|
beforeMount() {} //生命周期 - 挂载之前 |
||||||
|
beforeUpdate() {} //生命周期 - 更新之前 |
||||||
|
updated() {} //生命周期 - 更新之后 |
||||||
|
beforeDestroy() {} //生命周期 - 销毁之前 |
||||||
|
destroyed() {} //生命周期 - 销毁完成 |
||||||
|
activated() {} //如果页面有keep-alive缓存功能,这个函数会触发 |
||||||
|
} |
||||||
|
</script> |
||||||
|
<style scoped> |
||||||
|
|
||||||
|
</style> |
Loading…
Reference in new issue