Commit 31ce77ca by Suvalue

丰城后台

parent 78c9d722
......@@ -8,7 +8,7 @@ import javax.validation.constraints.NotNull;
import java.util.List;
@Data
public class AddUserReq {
public class AddUserReq {
@ApiModelProperty(value = "账号", required = true)
@NotBlank(message = "账号 参数必传")
private String userCode;
......
#### \u6D4B\u8BD5\u73AF\u5883 ###################################################
spring.datasource.url=jdbc:mysql://192.168.18.176:3306/scml_sy2.0?useUnicode=true&characterEncoding=utf8&useSSL=false&autoReconnect=true&rewriteBatchedStatements=TRUE&serverTimezone=UTC
spring.datasource.username=root
spring.datasource.password=Suvalue2016
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver
spring.datasource.username=fc
spring.datasource.password=123
spring.datasource.url=jdbc:oracle:thin:@192.168.18.171:1521:his
# Redis\u6570\u636E\u5E93\u7D22\u5F15\uFF08\u9ED8\u8BA40\uFF09
spring.redis.database=0
......
spring.application.name=bsoftadmin
spring.profiles.active=test
#server.port=8080
#server.servlet.context-path=/api
mybatis.mapper-locations=classpath:mapper/*.xml
mybatis.type-aliases-package=com.hs.admin.model
......@@ -9,10 +8,7 @@ mybatis.type-aliases-package=com.hs.admin.model
config.path.include[0]=/user/**
config.path.exclude[0]=/user/login
# Add @EnableAspectJAutoProxy.
spring.aop.auto=true
# Whether subclass-based (CGLIB) proxies are to be created (true)
spring.aop.proxy-target-class=false
spring.jmx.enabled=false
#\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u05B6\uFFFD\u03AAnull\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0635\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD True\uFFFD\uFFFD\u02BE\uFFFD\uFFFD\uFFFD\uFFFD False\uFFFD\uFFFD\u02BE\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD
mybatis.configuration.call-setters-on-nulls=true
......@@ -2,13 +2,13 @@
<configuration>
<!-- 尽量别用绝对路径,如果带参数不同容器路径解释可能不同,以下配置参数在pom.xml里 -->
<!-- 日志级别 -->
<property name="log.root.level" value="INFO" />
<property name="log.dev.level" value="DEBUG" />
<property name="log.test.level" value="DEBUG" />
<property name="log.prod.level" value="DEBUG" />
<property name="log.max.size" value="10MB" /> <!-- 日志文件大小 -->
<property name="log.root.level" value="INFO"/>
<property name="log.dev.level" value="DEBUG"/>
<property name="log.test.level" value="DEBUG"/>
<property name="log.prod.level" value="DEBUG"/>
<property name="log.max.size" value="10MB"/> <!-- 日志文件大小 -->
<springProperty scope="context" name="log.profile" source="spring.profiles.active" defaultValue="app"/>
<property name="log.base" value="/logs/admin/${log.profile}"/>
<property name="log.base" value="/logs/fcAdmin/${log.profile}"/>
<springProperty scope="context" name="log.moduleName" source="spring.application.name" defaultValue="app"/>
<!--控制台输出 -->
......@@ -95,29 +95,29 @@
<springProfile name="dev">
<root level="DEBUG">
<appender-ref ref="stdout" />
<appender-ref ref="stdout"/>
</root>
</springProfile>
<springProfile name="test">
<logger name="com.bsoft">
<level value="${log.test.level}" />
<appender-ref ref="fileInfo" />
<appender-ref ref="fileError" />
<level value="${log.test.level}"/>
<appender-ref ref="fileInfo"/>
<appender-ref ref="fileError"/>
</logger>
<root level="${log.root.level}">
<appender-ref ref="file" />
<appender-ref ref="stdoutError" />
<appender-ref ref="file"/>
<appender-ref ref="stdoutError"/>
</root>
</springProfile>
<springProfile name="prod">
<logger name="com.bsoft">
<level value="${log.prod.level}" />
<appender-ref ref="fileInfo" />
<appender-ref ref="fileError" />
<level value="${log.prod.level}"/>
<appender-ref ref="fileInfo"/>
<appender-ref ref="fileError"/>
</logger>
<root level="${log.root.level}">
<appender-ref ref="file" />
<appender-ref ref="stdoutError" />
<appender-ref ref="file"/>
<appender-ref ref="stdoutError"/>
</root>
</springProfile>
</configuration>
<?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.hs.admin.mapper.DicOrgMapper">
<resultMap id="BaseResultMap" type="com.hs.admin.model.DicOrg">
<id column="ID" jdbcType="INTEGER" property="id" />
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate" />
<result column="CREATE_USERID" jdbcType="DECIMAL" property="createUserid" />
<result column="STATE" jdbcType="DECIMAL" property="state" />
<result column="ORG_CODE" jdbcType="VARCHAR" property="orgCode" />
<result column="ORG_NAME" jdbcType="VARCHAR" property="orgName" />
<result column="ORG_NO" jdbcType="VARCHAR" property="orgNo" />
<result column="ORG_SHORT_NAME" jdbcType="VARCHAR" property="orgShortName" />
<result column="ORG_GROUP" jdbcType="VARCHAR" property="orgGroup" />
<result column="ORG_TYPE" jdbcType="VARCHAR" property="orgType" />
<result column="ORG_ADDRESS" jdbcType="VARCHAR" property="orgAddress" />
<result column="PARENT_ID" jdbcType="DECIMAL" property="parentId" />
<result column="IS_NEW" jdbcType="DECIMAL" property="isNew" />
</resultMap>
<resultMap id="DicOrgResultMap" extends="BaseResultMap" type="com.hs.admin.model.respmodel.DicOrgList" />
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from sys_subject
where ID = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.hs.admin.model.DicOrg">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sys_subject (CREATE_DATE, CREATE_USERID, `STATE`,
ORG_CODE, ORG_NAME, ORG_NO,
ORG_SHORT_NAME, ORG_GROUP, ORG_TYPE,
ORG_ADDRESS, PARENT_ID,IS_NEW)
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
#{orgCode,jdbcType=VARCHAR}, #{orgName,jdbcType=VARCHAR}, #{orgNo,jdbcType=VARCHAR},
#{orgShortName,jdbcType=VARCHAR}, #{orgGroup,jdbcType=VARCHAR}, #{orgType,jdbcType=VARCHAR},
#{orgAddress,jdbcType=VARCHAR}, #{parentId,jdbcType=DECIMAL}, #{isNew,jdbcType=DECIMAL})
</insert>
<update id="updateByPrimaryKey" parameterType="com.hs.admin.model.DicOrg">
update sys_subject
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
`STATE` = #{state,jdbcType=DECIMAL},
ORG_CODE = #{orgCode,jdbcType=VARCHAR},
ORG_NAME = #{orgName,jdbcType=VARCHAR},
ORG_NO = #{orgNo,jdbcType=VARCHAR},
ORG_SHORT_NAME = #{orgShortName,jdbcType=VARCHAR},
ORG_GROUP = #{orgGroup,jdbcType=VARCHAR},
ORG_TYPE = #{orgType,jdbcType=VARCHAR},
ORG_ADDRESS = #{orgAddress,jdbcType=VARCHAR},
PARENT_ID = #{parentId,jdbcType=DECIMAL},
IS_NEW = #{isNew,jdbcType=DECIMAL}
where ID = #{id,jdbcType=INTEGER}
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, `STATE`, ORG_CODE, ORG_NAME, ORG_NO, ORG_SHORT_NAME,
ORG_GROUP, ORG_TYPE, ORG_ADDRESS, PARENT_ID,IS_NEW
from sys_subject
where ID = #{id,jdbcType=INTEGER}
</select>
<select id="selectParentAll" resultMap="DicOrgResultMap">
select ID, CREATE_DATE, CREATE_USERID, `STATE`, ORG_CODE, ORG_NAME, ORG_NO, ORG_SHORT_NAME,
ORG_GROUP, ORG_TYPE, ORG_ADDRESS, PARENT_ID,IS_NEW
from sys_subject
where `STATE`=1
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, `STATE`, ORG_CODE, ORG_NAME, ORG_NO, ORG_SHORT_NAME,
ORG_GROUP, ORG_TYPE, ORG_ADDRESS, PARENT_ID,IS_NEW
from sys_subject
</select>
<select id="selectByUser" resultMap="BaseResultMap">
SELECT o.*
FROM sys_user_sbj_rs uor,sys_subject o
where uor.ORG_ID=o.ID and uor.USER_ID= #{userId,jdbcType=DECIMAL}
and o.`STATE`=1 and uor.`STATE`=1
</select>
<resultMap id="BaseResultMap" type="com.hs.admin.model.DicOrg">
<id column="ID" jdbcType="INTEGER" property="id"/>
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate"/>
<result column="CREATE_USERID" jdbcType="DECIMAL" property="createUserid"/>
<result column="STATE" jdbcType="DECIMAL" property="state"/>
<result column="ORG_CODE" jdbcType="VARCHAR" property="orgCode"/>
<result column="ORG_NAME" jdbcType="VARCHAR" property="orgName"/>
<result column="ORG_NO" jdbcType="VARCHAR" property="orgNo"/>
<result column="ORG_SHORT_NAME" jdbcType="VARCHAR" property="orgShortName"/>
<result column="ORG_GROUP" jdbcType="VARCHAR" property="orgGroup"/>
<result column="ORG_TYPE" jdbcType="VARCHAR" property="orgType"/>
<result column="ORG_ADDRESS" jdbcType="VARCHAR" property="orgAddress"/>
<result column="PARENT_ID" jdbcType="DECIMAL" property="parentId"/>
<result column="IS_NEW" jdbcType="DECIMAL" property="isNew"/>
</resultMap>
<resultMap id="DicOrgResultMap" extends="BaseResultMap" type="com.hs.admin.model.respmodel.DicOrgList"/>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete
from DIC_ORG
where ID = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.hs.admin.model.DicOrg">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT SEQ_DIC_ORG_ID.nextval
</selectKey>
insert into DIC_ORG ("ID",CREATE_DATE, CREATE_USERID, "STATE",
ORG_CODE, ORG_NAME, ORG_NO,
ORG_SHORT_NAME, ORG_GROUP, ORG_TYPE,
ORG_ADDRESS, PARENT_ID)
values (#{id,jdbcType=DECIMAL},#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL},
#{state,jdbcType=DECIMAL},
#{orgCode,jdbcType=VARCHAR}, #{orgName,jdbcType=VARCHAR}, #{orgNo,jdbcType=VARCHAR},
#{orgShortName,jdbcType=VARCHAR}, #{orgGroup,jdbcType=VARCHAR}, #{orgType,jdbcType=VARCHAR},
#{orgAddress,jdbcType=VARCHAR}, #{parentId,jdbcType=DECIMAL})
</insert>
<update id="updateByPrimaryKey" parameterType="com.hs.admin.model.DicOrg">
update DIC_ORG
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
"STATE" = #{state,jdbcType=DECIMAL},
ORG_CODE = #{orgCode,jdbcType=VARCHAR},
ORG_NAME = #{orgName,jdbcType=VARCHAR},
ORG_NO = #{orgNo,jdbcType=VARCHAR},
ORG_SHORT_NAME = #{orgShortName,jdbcType=VARCHAR},
ORG_GROUP = #{orgGroup,jdbcType=VARCHAR},
ORG_TYPE = #{orgType,jdbcType=VARCHAR},
ORG_ADDRESS = #{orgAddress,jdbcType=VARCHAR},
PARENT_ID = #{parentId,jdbcType=DECIMAL}
where ID = #{id,jdbcType=INTEGER}
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select ID,
CREATE_DATE,
CREATE_USERID,
"STATE",
ORG_CODE,
ORG_NAME,
ORG_NO,
ORG_SHORT_NAME,
ORG_GROUP,
ORG_TYPE,
ORG_ADDRESS,
PARENT_ID
from DIC_ORG
where ID = #{id,jdbcType=INTEGER}
</select>
<select id="selectParentAll" resultMap="DicOrgResultMap">
select ID,
CREATE_DATE,
CREATE_USERID,
"STATE",
ORG_CODE,
ORG_NAME,
ORG_NO,
ORG_SHORT_NAME,
ORG_GROUP,
ORG_TYPE,
ORG_ADDRESS,
PARENT_ID
from DIC_ORG
where "STATE" = 1
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID,
CREATE_DATE,
CREATE_USERID,
"STATE",
ORG_CODE,
ORG_NAME,
ORG_NO,
ORG_SHORT_NAME,
ORG_GROUP,
ORG_TYPE,
ORG_ADDRESS,
PARENT_ID
from DIC_ORG
</select>
<select id="selectByUser" resultMap="BaseResultMap">
SELECT o.*
FROM SYS_USER_ORG_RS uor,
DIC_ORG o
where uor.ORG_ID = o.ID
and uor.USER_ID = #{userId,jdbcType=DECIMAL}
and o."STATE" = 1
and uor."STATE" = 1
</select>
<select id="selectByName" resultMap="BaseResultMap">
select * from sys_subject where ORG_NAME=#{orgName,jdbcType=VARCHAR} and `STATE`=1
</select>
select *
from DIC_ORG
where ORG_NAME = #{orgName,jdbcType=VARCHAR}
and "STATE" = 1
</select>
</mapper>
\ No newline at end of file
<?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.hs.admin.mapper.SysMenuMapper">
<resultMap id="BaseResultMap" type="com.hs.admin.model.SysMenu">
<id column="ID" jdbcType="INTEGER" property="id" />
<result column="CREATE_DATA" jdbcType="TIMESTAMP" property="createData" />
<result column="CREATE_USERID" jdbcType="DECIMAL" property="createUserid" />
<result column="STATE" jdbcType="DECIMAL" property="state" />
<result column="MENU_NAME" jdbcType="VARCHAR" property="menuName" />
<result column="MENU_URL" jdbcType="VARCHAR" property="menuUrl" />
<result column="MENU_IMAGE" jdbcType="VARCHAR" property="menuImage" />
<result column="PARENT_ID" jdbcType="DECIMAL" property="parentId" />
<result column="PAGE_CODE" jdbcType="VARCHAR" property="pageCode" />
<result column="SORT" jdbcType="DECIMAL" property="sort" />
</resultMap>
<resultMap id="sysMenuResultMap" type="com.hs.admin.model.respmodel.SysMenuList" extends="BaseResultMap"/>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from sys_menu
where ID = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.hs.admin.model.SysMenu">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sys_menu (CREATE_DATA, CREATE_USERID, `STATE`,
MENU_NAME, MENU_URL, MENU_IMAGE,
PARENT_ID, PAGE_CODE, SORT
)
values (#{createData,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
#{menuName,jdbcType=VARCHAR}, #{menuUrl,jdbcType=VARCHAR}, #{menuImage,jdbcType=VARCHAR},
#{parentId,jdbcType=DECIMAL}, #{pageCode,jdbcType=VARCHAR}, #{sort,jdbcType=DECIMAL}
)
</insert>
<update id="updateByPrimaryKey" parameterType="com.hs.admin.model.SysMenu">
update sys_menu
set CREATE_DATA = #{createData,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
`STATE` = #{state,jdbcType=DECIMAL},
MENU_NAME = #{menuName,jdbcType=VARCHAR},
MENU_URL = #{menuUrl,jdbcType=VARCHAR},
MENU_IMAGE = #{menuImage,jdbcType=VARCHAR},
PARENT_ID = #{parentId,jdbcType=DECIMAL},
PAGE_CODE = #{pageCode,jdbcType=VARCHAR},
SORT = #{sort,jdbcType=DECIMAL}
where ID = #{id,jdbcType=INTEGER}
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select ID, CREATE_DATA, CREATE_USERID, `STATE`, MENU_NAME, MENU_URL, MENU_IMAGE,
PARENT_ID, PAGE_CODE, SORT
from sys_menu
where ID = #{id,jdbcType=INTEGER}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATA, CREATE_USERID, `STATE`, MENU_NAME, MENU_URL, MENU_IMAGE,
PARENT_ID, PAGE_CODE, SORT
from sys_menu
</select>
<select id="selectParentAll" resultMap="sysMenuResultMap">
select ID, CREATE_DATA, CREATE_USERID, `STATE`, MENU_NAME, MENU_URL, MENU_IMAGE,
PARENT_ID, PAGE_CODE, SORT
from SYS_MENU
where `STATE`=1
</select>
<select id="selectMenuAllByUser" resultMap="sysMenuResultMap">
select DISTINCT m.ID,m.MENU_NAME,m.MENU_URL,m.MENU_IMAGE,m.PARENT_ID,m.PAGE_CODE,m.SORT,umr.STATE
from
SYS_USER_MENU_RS umr
LEFT JOIN
SYS_MENU m on umr.MENU_ID = m.ID
where m.STATE=1 and umr.USER_ID = #{userId,jdbcType=DECIMAL}
</select>
<select id="selectMenuByRole" resultMap="sysMenuResultMap">
select DISTINCT m.ID,m.MENU_NAME,m.MENU_URL,m.MENU_IMAGE,m.PARENT_ID,m.PAGE_CODE,m.SORT,rmr.STATE
from
SYS_ROLE_MENU_RS rmr
LEFT JOIN
SYS_MENU m on rmr.MENU_ID = m.ID
LEFT JOIN
SYS_USER_ROLE_RS urr on rmr.ROLE_ID = urr.Role_ID
where rmr.STATE=1 and m.STATE=1 and urr.STATE=1 and urr.USER_ID = #{userId,jdbcType=DECIMAL}
</select>
<select id="selectMaxSort" resultType="java.lang.Integer">
select nvl(MAX(SORT),0) AS SORT
from SYS_MENU
where PARENT_ID=#{parentId,jdbcType=DECIMAL}
</select>
<resultMap id="BaseResultMap" type="com.hs.admin.model.SysMenu">
<id column="ID" jdbcType="INTEGER" property="id"/>
<result column="CREATE_DATA" jdbcType="TIMESTAMP" property="createData"/>
<result column="CREATE_USERID" jdbcType="DECIMAL" property="createUserid"/>
<result column="STATE" jdbcType="DECIMAL" property="state"/>
<result column="MENU_NAME" jdbcType="VARCHAR" property="menuName"/>
<result column="MENU_URL" jdbcType="VARCHAR" property="menuUrl"/>
<result column="MENU_IMAGE" jdbcType="VARCHAR" property="menuImage"/>
<result column="PARENT_ID" jdbcType="DECIMAL" property="parentId"/>
<result column="PAGE_CODE" jdbcType="VARCHAR" property="pageCode"/>
<result column="SORT" jdbcType="DECIMAL" property="sort"/>
</resultMap>
<resultMap id="sysMenuResultMap" type="com.hs.admin.model.respmodel.SysMenuList" extends="BaseResultMap"/>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete
from SYS_MENU
where "ID" = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.hs.admin.model.SysMenu">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT SEQ_SYS_MENU_ID.nextval
</selectKey>
insert into sys_menu ("ID",CREATE_DATA, CREATE_USERID, "STATE",
MENU_NAME, MENU_URL, MENU_IMAGE,
PARENT_ID, PAGE_CODE, "SORT"
)
values (#{id,jdbcType=DECIMAL},#{createData,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL},
#{state,jdbcType=DECIMAL},
#{menuName,jdbcType=VARCHAR}, #{menuUrl,jdbcType=VARCHAR}, #{menuImage,jdbcType=VARCHAR},
#{parentId,jdbcType=DECIMAL}, #{pageCode,jdbcType=VARCHAR}, #{sort,jdbcType=DECIMAL}
)
</insert>
<update id="updateByPrimaryKey" parameterType="com.hs.admin.model.SysMenu">
update sys_menu
set CREATE_DATA = #{createData,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
"STATE" = #{state,jdbcType=DECIMAL},
MENU_NAME = #{menuName,jdbcType=VARCHAR},
MENU_URL = #{menuUrl,jdbcType=VARCHAR},
MENU_IMAGE = #{menuImage,jdbcType=VARCHAR},
PARENT_ID = #{parentId,jdbcType=DECIMAL},
PAGE_CODE = #{pageCode,jdbcType=VARCHAR},
"SORT" = #{sort,jdbcType=DECIMAL}
where "ID" = #{id,jdbcType=INTEGER}
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select "ID",
CREATE_DATA,
CREATE_USERID,
"STATE",
MENU_NAME,
MENU_URL,
MENU_IMAGE,
PARENT_ID,
PAGE_CODE,
"SORT"
from sys_menu
where "ID" = #{id,jdbcType=INTEGER}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select "ID",
CREATE_DATA,
CREATE_USERID,
"STATE",
MENU_NAME,
MENU_URL,
MENU_IMAGE,
PARENT_ID,
PAGE_CODE,
"SORT"
from SYS_MENU
</select>
<select id="selectParentAll" resultMap="sysMenuResultMap">
select ID,
CREATE_DATA,
CREATE_USERID,
"STATE",
MENU_NAME,
MENU_URL,
MENU_IMAGE,
PARENT_ID,
PAGE_CODE,
"SORT"
from SYS_MENU
where "STATE" = 1
</select>
<select id="selectMenuAllByUser" resultMap="sysMenuResultMap">
select DISTINCT m.ID,
m.MENU_NAME,
m.MENU_URL,
m.MENU_IMAGE,
m.PARENT_ID,
m.PAGE_CODE,
m.SORT,
umr.STATE
from SYS_USER_ROLE_RS umr
JOIN SYS_ROLE_MENU_RS rmr on rmr.ROLE_ID = umr.ROLE_ID and rmr.STATE = 1
JOIN SYS_MENU m on rmr.MENU_ID = m.ID and m.STATE = 1
where umr.STATE = 1
and umr.USER_ID = #{userId,jdbcType=DECIMAL}
</select>
<select id="selectMenuByRole" resultMap="sysMenuResultMap">
select DISTINCT m.ID,
m.MENU_NAME,
m.MENU_URL,
m.MENU_IMAGE,
m.PARENT_ID,
m.PAGE_CODE,
m.SORT,
rmr.STATE
from SYS_ROLE_MENU_RS rmr
LEFT JOIN
SYS_MENU m on rmr.MENU_ID = m.ID
LEFT JOIN
SYS_USER_ROLE_RS urr on rmr.ROLE_ID = urr.Role_ID
where rmr.STATE = 1
and m.STATE = 1
and urr.STATE = 1
and urr.USER_ID = #{userId,jdbcType=DECIMAL}
</select>
<select id="selectMaxSort" resultType="java.lang.Integer">
select nvl(MAX("SORT"), 0) AS SORT
from SYS_MENU
where PARENT_ID = #{parentId,jdbcType=DECIMAL}
</select>
</mapper>
\ No newline at end of file
<?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.hs.admin.mapper.SysRoleMapper">
<resultMap id="BaseResultMap" type="com.hs.admin.model.SysRole">
<id column="ID" jdbcType="INTEGER" property="id" />
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate" />
<result column="CREATE_USERID" jdbcType="DECIMAL" property="createUserid" />
<result column="STATE" jdbcType="DECIMAL" property="state" />
<result column="ROLE_NAME" jdbcType="VARCHAR" property="roleName" />
<result column="ROLE_CODE" jdbcType="DECIMAL" property="roleCode" />
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from sys_role
where ID = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.hs.admin.model.SysRole">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sys_role (CREATE_DATE, CREATE_USERID, `STATE`,
ROLE_NAME, ROLE_CODE)
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
#{roleName,jdbcType=VARCHAR}, #{roleCode,jdbcType=DECIMAL})
</insert>
<update id="updateByPrimaryKey" parameterType="com.hs.admin.model.SysRole">
update sys_role
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
`STATE` = #{state,jdbcType=DECIMAL},
ROLE_NAME = #{roleName,jdbcType=VARCHAR},
ROLE_CODE = #{roleCode,jdbcType=DECIMAL}
where ID = #{id,jdbcType=INTEGER}
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, `STATE`, ROLE_NAME, ROLE_CODE
from sys_role
where ID = #{id,jdbcType=INTEGER}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, `STATE`, ROLE_NAME, ROLE_CODE
from sys_role
</select>
<select id="selectRoleByUser" resultMap="BaseResultMap">
select r.*
from SYS_USER_ROLE_RS rs,SYS_ROLE r
where USER_ID=#{userId,jdbcType=DECIMAL} and rs.ROLE_ID=r.ID
and rs.STATE!=0 and r.STATE!=0
</select>
<resultMap id="BaseResultMap" type="com.hs.admin.model.SysRole">
<id column="ID" jdbcType="INTEGER" property="id"/>
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate"/>
<result column="CREATE_USERID" jdbcType="DECIMAL" property="createUserid"/>
<result column="STATE" jdbcType="DECIMAL" property="state"/>
<result column="ROLE_NAME" jdbcType="VARCHAR" property="roleName"/>
<result column="ROLE_CODE" jdbcType="DECIMAL" property="roleCode"/>
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete
from SYS_ROLE
where "ID" = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.hs.admin.model.SysRole">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT SEQ_SYS_ROLE_ID.nextval
</selectKey>
insert into SYS_ROLE ("ID",CREATE_DATE, CREATE_USERID, "STATE",
ROLE_NAME, ROLE_CODE)
values (#{id,jdbcType=DECIMAL},#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL},
#{state,jdbcType=DECIMAL},
#{roleName,jdbcType=VARCHAR}, #{roleCode,jdbcType=DECIMAL})
</insert>
<update id="updateByPrimaryKey" parameterType="com.hs.admin.model.SysRole">
update SYS_ROLE
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
"STATE" = #{state,jdbcType=DECIMAL},
ROLE_NAME = #{roleName,jdbcType=VARCHAR},
ROLE_CODE = #{roleCode,jdbcType=DECIMAL}
where "ID" = #{id,jdbcType=INTEGER}
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, "STATE", ROLE_NAME, ROLE_CODE
from SYS_ROLE
where "ID" = #{id,jdbcType=INTEGER}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select "ID", CREATE_DATE, CREATE_USERID, "STATE", ROLE_NAME, ROLE_CODE
from SYS_ROLE
</select>
<select id="selectRoleByUser" resultMap="BaseResultMap">
select r.*
from SYS_USER_ROLE_RS rs,
SYS_ROLE r
where USER_ID = #{userId,jdbcType=DECIMAL}
and rs.ROLE_ID = r.ID
and rs.STATE != 0
and r.STATE != 0
</select>
<select id="selectByCode" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, `STATE`, ROLE_NAME, ROLE_CODE
from SYS_ROLE
where ROLE_CODE = #{roleCode,jdbcType=DECIMAL} and `STATE`!=0
</select>
select "ID", CREATE_DATE, CREATE_USERID, "STATE", ROLE_NAME, ROLE_CODE
from SYS_ROLE
where ROLE_CODE = #{roleCode,jdbcType=DECIMAL}
and "STATE" != 0
</select>
</mapper>
\ No newline at end of file
<?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.hs.admin.mapper.SysRoleMenuRsMapper">
<resultMap id="BaseResultMap" type="com.hs.admin.model.SysRoleMenuRs">
<id column="ID" jdbcType="INTEGER" property="id" />
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate" />
<result column="CREATE_USERID" jdbcType="DECIMAL" property="createUserid" />
<result column="STATE" jdbcType="DECIMAL" property="state" />
<result column="MENU_ID" jdbcType="DECIMAL" property="menuId" />
<result column="ROLE_ID" jdbcType="DECIMAL" property="roleId" />
</resultMap>
<resultMap id="SysRoleMenuRsList" extends="BaseResultMap" type="com.hs.admin.model.respmodel.SysRoleMenuRsList">
<result column="PARENT_ID" jdbcType="DECIMAL" property="parentId" />
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from sys_role_menu_rs
where ID = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.hs.admin.model.SysRoleMenuRs">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sys_role_menu_rs (CREATE_DATE, CREATE_USERID, `STATE`,
MENU_ID, ROLE_ID)
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
#{menuId,jdbcType=DECIMAL}, #{roleId,jdbcType=DECIMAL})
</insert>
<update id="updateByPrimaryKey" parameterType="com.hs.admin.model.SysRoleMenuRs">
update sys_role_menu_rs
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
`STATE` = #{state,jdbcType=DECIMAL},
MENU_ID = #{menuId,jdbcType=DECIMAL},
ROLE_ID = #{roleId,jdbcType=DECIMAL}
where ID = #{id,jdbcType=INTEGER}
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, `STATE`, MENU_ID, ROLE_ID
from sys_role_menu_rs
where ID = #{id,jdbcType=INTEGER}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, `STATE`, MENU_ID, ROLE_ID
from sys_role_menu_rs
</select>
<select id="selectByRole" resultMap="SysRoleMenuRsList">
select MAP.*,m.PARENT_ID
from SYS_ROLE_MENU_RS MAP
join SYS_MENU m on m.ID=MAP.MENU_ID
where MAP.`STATE`=1 and MAP.ROLE_ID = #{roleId,jdbcType=DECIMAL}
</select>
<update id="deleteAllByRole">
update SYS_ROLE_MENU_RS set `STATE`=0 where ROLE_ID = #{roleId,jdbcType=DECIMAL}
</update>
<select id="selectByUserWithRole" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, `STATE`, MENU_ID, ROLE_ID
from SYS_ROLE_MENU_RS
where ROLE_ID = #{roleId,jdbcType=DECIMAL}
and MENU_ID=#{menuId,jdbcType=DECIMAL}
</select>
<resultMap id="BaseResultMap" type="com.hs.admin.model.SysRoleMenuRs">
<id column="ID" jdbcType="INTEGER" property="id"/>
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate"/>
<result column="CREATE_USERID" jdbcType="DECIMAL" property="createUserid"/>
<result column="STATE" jdbcType="DECIMAL" property="state"/>
<result column="MENU_ID" jdbcType="DECIMAL" property="menuId"/>
<result column="ROLE_ID" jdbcType="DECIMAL" property="roleId"/>
</resultMap>
<resultMap id="SysRoleMenuRsList" extends="BaseResultMap" type="com.hs.admin.model.respmodel.SysRoleMenuRsList">
<result column="PARENT_ID" jdbcType="DECIMAL" property="parentId"/>
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete
from SYS_ROLE_MENU_RS
where ID = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.hs.admin.model.SysRoleMenuRs">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT SEQ_SYS_ROLE_MENU_RSR_ID.nextval
</selectKey>
insert into SYS_ROLE_MENU_RS ("ID",CREATE_DATE, CREATE_USERID, "STATE",
MENU_ID, ROLE_ID)
values (#{id,jdbcType=DECIMAL},#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL},
#{state,jdbcType=DECIMAL},
#{menuId,jdbcType=DECIMAL}, #{roleId,jdbcType=DECIMAL})
</insert>
<update id="updateByPrimaryKey" parameterType="com.hs.admin.model.SysRoleMenuRs">
update SYS_ROLE_MENU_RS
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
"STATE" = #{state,jdbcType=DECIMAL},
MENU_ID = #{menuId,jdbcType=DECIMAL},
ROLE_ID = #{roleId,jdbcType=DECIMAL}
where "ID" = #{id,jdbcType=INTEGER}
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, "STATE", MENU_ID, ROLE_ID
from SYS_ROLE_MENU_RS
where ID = #{id,jdbcType=INTEGER}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, "STATE", MENU_ID, ROLE_ID
from SYS_ROLE_MENU_RS
</select>
<select id="selectByRole" resultMap="SysRoleMenuRsList">
select MAP.*, m.PARENT_ID
from SYS_ROLE_MENU_RS MAP
join SYS_MENU m on m.ID = MAP.MENU_ID
where MAP."STATE"=1 and MAP.ROLE_ID = #{roleId,jdbcType=DECIMAL}
</select>
<update id="deleteAllByRole">
update SYS_ROLE_MENU_RS
set "STATE"=0
where ROLE_ID = #{roleId,jdbcType=DECIMAL}
</update>
<select id="selectByUserWithRole" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID,"STATE", MENU_ID, ROLE_ID
from SYS_ROLE_MENU_RS
where ROLE_ID = #{roleId,jdbcType=DECIMAL}
and MENU_ID=#{menuId,jdbcType=DECIMAL}
</select>
</mapper>
\ No newline at end of file
......@@ -26,32 +26,33 @@
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete
from sys_user
where ID = #{id,jdbcType=INTEGER}
from SYS_USER
where "ID" = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.hs.admin.model.SysUser">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sys_user (CREATE_DATE, CREATE_USERID, `STATE`,
USER_CODE, USER_NAME, `PASSWORD`,
<!-- <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">-->
<!-- SELECT SEQ_SYS_USER_ID.nextval-->
<!-- </selectKey>-->
insert into sys_user ("ID",CREATE_DATE, CREATE_USERID, "STATE",
USER_CODE, USER_NAME, "PASSWORD",
IDCARD, SEX, MOBILE,
PAGE_COUNT, ERROR_COUNT, ERROR_TIME,
LAST_TIME, LAST_IP,MAC_ADDRESS)
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
LAST_TIME, LAST_IP)
values (SEQ_SYS_USER_ID.nextval,#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL},
#{state,jdbcType=DECIMAL},
#{userCode,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR},
#{idcard,jdbcType=VARCHAR}, #{sex,jdbcType=VARCHAR}, #{mobile,jdbcType=VARCHAR},
#{pageCount,jdbcType=DECIMAL}, #{errorCount,jdbcType=DECIMAL}, #{errorTime,jdbcType=TIMESTAMP},
#{lastTime,jdbcType=TIMESTAMP}, #{lastIp,jdbcType=VARCHAR},'EO-D5-5E-6C-4D-7B')
#{lastTime,jdbcType=TIMESTAMP}, #{lastIp,jdbcType=VARCHAR})
</insert>
<update id="updateByPrimaryKey" parameterType="com.hs.admin.model.SysUser">
update sys_user
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
`STATE` = #{state,jdbcType=DECIMAL},
"STATE" = #{state,jdbcType=DECIMAL},
USER_CODE = #{userCode,jdbcType=VARCHAR},
USER_NAME = #{userName,jdbcType=VARCHAR},
`PASSWORD` = #{password,jdbcType=VARCHAR},
"PASSWORD" = #{password,jdbcType=VARCHAR},
IDCARD = #{idcard,jdbcType=VARCHAR},
SEX = #{sex,jdbcType=VARCHAR},
MOBILE = #{mobile,jdbcType=VARCHAR},
......@@ -60,16 +61,16 @@
ERROR_TIME = #{errorTime,jdbcType=TIMESTAMP},
LAST_TIME = #{lastTime,jdbcType=TIMESTAMP},
LAST_IP = #{lastIp,jdbcType=VARCHAR}
where ID = #{id,jdbcType=INTEGER}
where "ID" = #{id,jdbcType=INTEGER}
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select ID,
select "ID",
CREATE_DATE,
CREATE_USERID,
`STATE`,
"STATE",
USER_CODE,
USER_NAME,
`PASSWORD`,
"PASSWORD",
IDCARD,
SEX,
MOBILE,
......@@ -79,16 +80,16 @@
LAST_TIME,
LAST_IP
from sys_user
where ID = #{id,jdbcType=INTEGER}
where "ID" = #{id,jdbcType=INTEGER}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID,
select "ID",
CREATE_DATE,
CREATE_USERID,
`STATE`,
"STATE",
USER_CODE,
USER_NAME,
`PASSWORD`,
"PASSWORD",
IDCARD,
SEX,
MOBILE,
......@@ -100,13 +101,13 @@
from sys_user
</select>
<select id="selectByCode" resultMap="BaseResultMap">
select ID,
select "ID",
CREATE_DATE,
CREATE_USERID,
STATE,
"STATE",
USER_CODE,
USER_NAME,
PASSWORD,
"PASSWORD",
IDCARD,
SEX,
MOBILE,
......@@ -117,25 +118,25 @@
LAST_IP
from SYS_USER
where USER_CODE = #{userCode,jdbcType=VARCHAR}
and `STATE` != 0
and "STATE" != 0
</select>
<select id="selectUserList" resultMap="SysUserList">
select r.ID as ROLE_ID, r.ROLE_NAME, s.ID as ORG_ID, s.ORG_NAME, u.*
from sys_user u
join sys_user_role_rs ur on ur.USER_ID = u.ID and ur.STATE = 1
join sys_role r on r.ID = ur.ROLE_ID and r.STATE = 1
join sys_user_sbj_rs us on us.USER_ID = u.ID and us.STATE = 1
join sys_subject s on s.ID = us.ORG_ID and s.STATE = 1 and ((s.PARENT_ID != 0 and r.ROLE_CODE != 1) or
(s.PARENT_ID = 0 and r.ROLE_CODE = 1))
join SYS_USER_ORG_RS us on us.USER_ID = u.ID and us.STATE = 1
join DIC_ORG s on s.ID = us.ORG_ID and s.STATE = 1 and ((s.PARENT_ID != 0 and r.ROLE_CODE != 1) or
(s.PARENT_ID = 0 and r.ROLE_CODE = 1))
</select>
<select id="selectUserById" resultMap="SysUserList">
select r.ID as ROLE_ID, r.ROLE_NAME, s.ID as ORG_ID, s.ORG_NAME, u.*
from sys_user u
join sys_user_role_rs ur on ur.USER_ID = u.ID and ur.STATE = 1
join sys_role r on r.ID = ur.ROLE_ID and r.STATE = 1
join sys_user_sbj_rs us on us.USER_ID = u.ID and us.STATE = 1
join sys_subject s on s.ID = us.ORG_ID and s.STATE = 1 and ((s.PARENT_ID != 0 and r.ROLE_CODE != 1) or
(s.PARENT_ID = 0 and r.ROLE_CODE = 1))
join SYS_USER_ORG_RS us on us.USER_ID = u.ID and us.STATE = 1
join DIC_ORG s on s.ID = us.ORG_ID and s.STATE = 1 and ((s.PARENT_ID != 0 and r.ROLE_CODE != 1) or
(s.PARENT_ID = 0 and r.ROLE_CODE = 1))
where u.id = #{id}
</select>
</mapper>
\ No newline at end of file
......@@ -14,52 +14,53 @@
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete
from sys_user_sbj_rs
where ID = #{id,jdbcType=INTEGER}
from SYS_USER_ORG_RS
where "ID" = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.hs.admin.model.SysUserOrgRs">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
SELECT SEQ_SYS_USER_ORG_RS_ID.nextval
</selectKey>
insert into sys_user_sbj_rs (CREATE_DATE, CREATE_USERID, `STATE`,
insert into SYS_USER_ORG_RS ("ID",CREATE_DATE, CREATE_USERID, "STATE",
USER_ID, ORG_ID)
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
values (#{id,jdbcType=DECIMAL},#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL},
#{state,jdbcType=DECIMAL},
#{userId,jdbcType=DECIMAL}, #{orgId,jdbcType=DECIMAL})
</insert>
<update id="updateByPrimaryKey" parameterType="com.hs.admin.model.SysUserOrgRs">
update sys_user_sbj_rs
update SYS_USER_ORG_RS
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
`STATE` = #{state,jdbcType=DECIMAL},
"STATE" = #{state,jdbcType=DECIMAL},
USER_ID = #{userId,jdbcType=DECIMAL},
ORG_ID = #{orgId,jdbcType=DECIMAL}
where ID = #{id,jdbcType=INTEGER}
where "ID" = #{id,jdbcType=INTEGER}
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, `STATE`, USER_ID, ORG_ID
from sys_user_sbj_rs
where ID = #{id,jdbcType=INTEGER}
select "ID", CREATE_DATE, CREATE_USERID, "STATE", USER_ID, ORG_ID
from SYS_USER_ORG_RS
where "ID" = #{id,jdbcType=INTEGER}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, `STATE`, USER_ID, ORG_ID
from sys_user_sbj_rs
select "ID", CREATE_DATE, CREATE_USERID, "STATE", USER_ID, ORG_ID
from SYS_USER_ORG_RS
</select>
<select id="selectByUser" resultMap="SysUserOrgRsList">
select map.*, o.PARENT_ID
from sys_user_sbj_rs MAP
join sys_subject o on o.ID = map.ORG_ID
where MAP.`STATE` = 1
from SYS_USER_ORG_RS MAP
join DIC_ORG o on o.ID = map.ORG_ID
where MAP."STATE" = 1
and MAP.USER_ID = #{userId,jdbcType=DECIMAL}
</select>
<select id="selectByUserWithOrg" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, `STATE`, USER_ID, ORG_ID
from sys_user_sbj_rs
select "ID", CREATE_DATE, CREATE_USERID, "STATE", USER_ID, ORG_ID
from SYS_USER_ORG_RS
where USER_ID = #{userId,jdbcType=DECIMAL}
and ORG_ID = #{orgId,jdbcType=DECIMAL}
</select>
<update id="deleteByUser">
update sys_user_sbj_rs
set `STATE` = 0
update SYS_USER_ORG_RS
set "STATE" = 0
where USER_ID = #{userId,jdbcType=DECIMAL}
</update>
</mapper>
\ No newline at end of file
......@@ -16,38 +16,39 @@
</delete>
<insert id="insert" parameterType="com.hs.admin.model.SysUserRoleRs">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
SELECT SEQ_SYS_USER_ROLE_RS_ID.nextval
</selectKey>
insert into sys_user_role_rs (CREATE_DATE, CREATE_USERID, `STATE`,
insert into sys_user_role_rs ("ID",CREATE_DATE, CREATE_USERID, "STATE",
USER_ID, ROLE_ID)
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
values (#{id,jdbcType=DECIMAL},#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL},
#{state,jdbcType=DECIMAL},
#{userId,jdbcType=DECIMAL}, #{roleId,jdbcType=DECIMAL})
</insert>
<update id="updateByPrimaryKey" parameterType="com.hs.admin.model.SysUserRoleRs">
update sys_user_role_rs
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
`STATE` = #{state,jdbcType=DECIMAL},
USER_ID = #{userId,jdbcType=DECIMAL},
ROLE_ID = #{roleId,jdbcType=DECIMAL}
where ID = #{id,jdbcType=INTEGER}
"STATE" = #{state,jdbcType=DECIMAL},
USER_ID = #{userId,jdbcType=DECIMAL},
ROLE_ID = #{roleId,jdbcType=DECIMAL}
where "ID" = #{id,jdbcType=INTEGER}
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, `STATE`, USER_ID, ROLE_ID
select ID, CREATE_DATE, CREATE_USERID, "STATE", USER_ID, ROLE_ID
from sys_user_role_rs
where ID = #{id,jdbcType=INTEGER}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, `STATE`, USER_ID, ROLE_ID
select ID, CREATE_DATE, CREATE_USERID, "STATE", USER_ID, ROLE_ID
from sys_user_role_rs
</select>
<update id="deleteByUser">
update SYS_USER_ROLE_RS
set `STATE` = 0
set "STATE" = 0
where USER_ID = #{userId,jdbcType=DECIMAL}
</update>
<select id="selectByUser" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, `STATE`, USER_ID, ROLE_ID
select ID, CREATE_DATE, CREATE_USERID, "STATE", USER_ID, ROLE_ID
from SYS_USER_ROLE_RS
where USER_ID = #{userId,jdbcType=DECIMAL}
and ROLE_ID = #{roleId,jdbcType=DECIMAL}
......
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=Cache-Control content="no-cache, no-store, must-revalidate"><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><meta name=renderer content=webkit><meta name=viewport content="width=1300"><link rel=icon href=./web/favicon.ico><title>大数据医院运营后台管理</title><script src=./web/scripts/jquery.min.js></script><script src=./web/scripts/linq.min.js></script><script src="./web/scripts/file.js?version=1.8.28.2"></script><script src=./web/scripts/echarts.min.js></script><script src=./web/scripts/walden.js></script><script src=./web/scripts/sucharts.min.2019.11.08.js></script><script src=./web/scripts/shim.min.js></script><script src=./web/scripts/xlsx.core.min.js></script><script src=./web/scripts/FileSaver.min.js></script><script src=./web/scripts/clipboard.min.js></script><link href=web/css/chunk-1220897c.bdc032ae.css rel=prefetch><link href=web/css/chunk-a5196180.0e433876.css rel=prefetch><link href=web/js/chunk-1220897c.10c4e9e7.js rel=prefetch><link href=web/js/chunk-2d0a5503.9031d9ee.js rel=prefetch><link href=web/js/chunk-2d21ad95.676b54b4.js rel=prefetch><link href=web/js/chunk-2d224c43.e946cfc1.js rel=prefetch><link href=web/js/chunk-a5196180.3f30abf3.js rel=prefetch><link href=web/css/app.3d25b637.css rel=preload as=style><link href=web/css/chunk-vendors.2a56b552.css rel=preload as=style><link href=web/js/app.a002290c.js rel=preload as=script><link href=web/js/chunk-vendors.e4ebf5f6.js rel=preload as=script><link href=web/css/chunk-vendors.2a56b552.css rel=stylesheet><link href=web/css/app.3d25b637.css rel=stylesheet></head><body><noscript><strong>We're sorry but temp_vue3 doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=web/js/chunk-vendors.e4ebf5f6.js></script><script src=web/js/app.a002290c.js></script></body></html>
\ No newline at end of file
.roleId{display:inline-block;width:120px;padding:0 12px 0 10px;height:40px}.xing{color:red}.selectks{position:absolute;right:85px;top:195px;width:217px}.selectks .el-form-item__content{margin-left:0!important}.qy{margin-right:10px}
\ 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.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0091c028"],{2326:function(t,e,r){},"3c2e":function(t,e,r){"use strict";var o=r("2326"),i=r.n(o);i.a},cf53:function(t,e,r){"use strict";r.r(e);var o=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"manage_page manage_org_page"},[r("div",{staticClass:"search_bar clearfix"},[r("div",{staticClass:"left"},[r("el-input",{staticStyle:{width:"300px"},attrs:{clearable:"",placeholder:"可输入机构名称搜索"},nativeOn:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.search()}},model:{value:t.searchContent,callback:function(e){t.searchContent=e},expression:"searchContent"}}),r("el-button",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]}),r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.search()}}},[t._v("搜索")])],1),r("div",{staticClass:"right"},[r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.orgAdd()}}},[t._v("添加机构")])],1)]),r("div",{staticClass:"table_box"},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableList,border:"",height:"100%","default-expand-all":"","row-key":function(t){return t.id},"row-class-name":t.$tableRowClassName,"tree-props":t.orgProps}},[r("el-table-column",{attrs:{prop:"title",label:"序号",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.$index+1))])]}}])}),t._l(t.tableColumns,(function(e,o){return[r("el-table-column",{key:o,attrs:{prop:e.prop,label:e.label,sortable:e.sortable,width:e.width||void 0},scopedSlots:t._u([{key:"default",fn:function(o){return[r("span",[t._v(t._s(t.$decimal(o.row[e.prop])))])]}}],null,!0)})]})),r("el-table-column",{attrs:{prop:"",label:"操作",width:"280",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(r){return t.orgEdit(e.row.id)}}},[t._v("编辑")]),r("el-button",{attrs:{size:"mini",type:"info"},on:{click:function(r){return t.orgAdd(e.row.id)}}},[t._v("添加子机构")]),r("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(r){return t.orgDel(e.row.id)}}},[t._v("删除")])]}}])})],2)],1),r("org-dialog",{attrs:{visible:t.orgDgVisible,orgId:t.orgId,parentId:t.parentId,orgOptions:t.tableOptions},on:{"update:visible":function(e){t.orgDgVisible=e},submitted:t.orgSubmitted}})],1)},i=[],n=(r("8e6e"),r("ac6a"),r("456d"),r("bd86")),a=r("2f62"),s=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("el-dialog",{staticClass:"org_dialog manage_dialog",attrs:{title:"机构配置",width:"600px",visible:t.dgVisible,"modal-append-to-body":!1},on:{"update:visible":function(e){t.dgVisible=e}}},[r("el-form",{ref:"form",staticClass:"manage_form",attrs:{model:t.form,"label-width":"120px"}},[r("my-input",{attrs:{placeholder:"请输入机构名称",titleName:"机构名称",required:!0,prop:"orgName",width:t.inputWidth,withForm:""},model:{value:t.form.orgName,callback:function(e){t.$set(t.form,"orgName",e)},expression:"form.orgName"}}),r("my-input",{attrs:{placeholder:"请输入机构编码",titleName:"机构编码",required:!0,prop:"orgCode",width:t.inputWidth,withForm:""},model:{value:t.form.orgCode,callback:function(e){t.$set(t.form,"orgCode",e)},expression:"form.orgCode"}}),r("my-input",{attrs:{placeholder:"请输入机构简称",titleName:"机构简称",required:!0,prop:"orgShortName",width:t.inputWidth,withForm:""},model:{value:t.form.orgShortName,callback:function(e){t.$set(t.form,"orgShortName",e)},expression:"form.orgShortName"}}),r("my-input",{attrs:{placeholder:"请输入机构类型",titleName:"机构类型",required:!0,prop:"orgType",width:t.inputWidth,withForm:""},model:{value:t.form.orgType,callback:function(e){t.$set(t.form,"orgType",e)},expression:"form.orgType"}}),r("my-input",{attrs:{placeholder:"请输入机构组织",titleName:"机构组织",required:!1,prop:"orgGroup",width:t.inputWidth,withForm:""},model:{value:t.form.orgGroup,callback:function(e){t.$set(t.form,"orgGroup",e)},expression:"form.orgGroup"}}),r("my-input",{attrs:{placeholder:"请输入机构编号",titleName:"机构编号",required:!1,prop:"orgNo",width:t.inputWidth,withForm:""},model:{value:t.form.orgNo,callback:function(e){t.$set(t.form,"orgNo",e)},expression:"form.orgNo"}}),r("my-input",{attrs:{placeholder:"请输入机构地址",titleName:"机构地址",required:!1,prop:"orgAddress",width:t.inputWidth,withForm:""},model:{value:t.form.orgAddress,callback:function(e){t.$set(t.form,"orgAddress",e)},expression:"form.orgAddress"}}),r("my-select",{attrs:{options:t.orgOptions,placeholder:"请选择所属机构",titleName:"所属机构",required:!0,prop:"parentId",width:t.inputWidth,withForm:""},model:{value:t.form.parentId,callback:function(e){t.$set(t.form,"parentId",e)},expression:"form.parentId"}})],1),r("div",{staticClass:"manage_handle"},[r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submit()}}},[t._v("提交")]),r("el-button",{on:{click:function(e){return t.cancel()}}},[t._v("取消")])],1)],1)},l=[],d=(r("c5f6"),{id:0,orgAddress:"",orgCode:"",orgGroup:"",orgName:"",orgNo:"",orgShortName:"",orgType:"",parentId:0}),c={name:"orgDialog",props:{visible:Boolean,orgId:Number,parentId:Number,orgOptions:Array},data:function(){return{dgVisible:this.visible,form:{},inputWidth:"300px"}},methods:{getInfo:function(){var t=this;this.$setLoading(!0),this.$dataPost("/org/info",{orgId:this.orgId},(function(e){for(var r in t.$setLoading(!1),d)t.$set(t.form,r,e[r]);t.$nextTick((function(){t.$refs.form.clearValidate()}))}))},setDefaultForm:function(){var t=this;this.form=this.$deepCopy(d),this.form.parentId=this.parentId,this.$nextTick((function(){t.$refs.form.clearValidate()}))},submit:function(){var t=this;this.$refs.form.validate((function(e){if(!e){var r=setTimeout((function(){t.$refs.form.clearValidate(),clearTimeout(r)}),2e3);return!1}if(t.form.id){var o=t.form;o.orgId=o.id,t.$dataPostXD("/org/update",o,(function(e){t.$emit("submitted",e),t.dgVisible=!1}))}else{var i=t.form;t.$dataPostXD("/org/add",i,(function(e){t.$emit("submitted",e),t.dgVisible=!1}))}}))},cancel:function(){this.dgVisible=!1}},watch:{visible:{immediate:!0,handler:function(t,e){this.dgVisible=t,1==t&&(this.orgId?this.getInfo():this.setDefaultForm())}},dgVisible:{handler:function(t,e){this.$emit("update:visible",t)}}}},u=c,p=r("2877"),f=Object(p["a"])(u,s,l,!1,null,null,null),m=f.exports;function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?g(Object(r),!0).forEach((function(e){Object(n["a"])(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var b={name:"manageOrg",data:function(){return{tableList:[],tableListCopy:[],tableOptions:[],searchContent:"",tableColumns:[{prop:"orgName",label:"机构名称",sortable:!0,width:""},{prop:"orgType",label:"机构类别",sortable:!0,width:""},{prop:"orgShortName",label:"机构简称",sortable:!0,width:""}],orgProps:{label:"orgName",children:"dicOrgList"},orgId:0,parentId:0,orgDgVisible:!1}},computed:{},mounted:function(){this.getList(),this.getListAll()},methods:h(h({},Object(a["b"])({})),{},{getList:function(){var t=this;this.$setLoading(!0),this.$dataPost("/org/parentall",{orgName:this.searchContent},(function(e){t.$setLoading(!1),e=e||[],t.tableListCopy=e,t.tableList=e}))},getListAll:function(){var t=this;this.$dataPost("/org/all",(function(e){e=e||[];var r=e.map((function(t){return{title:t.orgName,value:t.id}}));r.unshift({title:"无",value:0}),t.tableOptions=r}))},search:function(){var t=this.searchContent;this.tableList=this.tableListCopy.filter((function(e){return e.orgName.indexOf(t)>-1}))},orgAdd:function(t){this.parentId=t||0,this.orgId=0,this.orgDgVisible=!0},orgEdit:function(t){this.orgId=t,this.orgDgVisible=!0},orgDel:function(t){var e=this;this.orgId=t,this.$confirm("确认删除?","提示",{distinguishCancelAndClose:!0,confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.$dataPostXD("/org/delete",{orgId:t},(function(t){e.getList(),e.getListAll()}))})).catch((function(t){}))},orgSubmitted:function(){this.getList()}}),components:{orgDialog:m}},v=b,y=(r("3c2e"),Object(p["a"])(v,o,i,!1,null,"c768693c",null));e["default"]=y.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0a5503"],{"09bf":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"error_page error_404"},[r("div",{staticClass:"error_box center"},[r("ul",{staticClass:"error_logo"},[r("li",[r("img",{attrs:{src:t.imgDomain+"/num_4.png"}})]),r("li",{staticClass:"error_logo_middle"},[r("img",{attrs:{src:t.imgDomain+"/medical.png"}})]),r("li",[r("img",{attrs:{src:t.imgDomain+"/num_4.png"}})])]),r("p",{staticClass:"bottom_line"}),r("h3",{staticClass:"not_found"},[t._v("没有找到您要访问的页面\n "),r("p",{directives:[{name:"show",rawName:"v-show",value:t.jumpShow,expression:"jumpShow"}],staticStyle:{display:"inline-block"}},[t._v(",\n "),r("span",{staticClass:"second",attrs:{id:"second"}},[t._v(t._s(t.countDown))]),t._v("秒后\n "),r("router-link",{attrs:{to:"/"}},[t._v("返回首页")])],1)])])])},o=[],i=(r("5ab2"),r("6d57"),r("e10e"),r("f548"),r("f010")),s=r("08c1");function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach((function(e){Object(i["a"])(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var l={name:"page404",data:function(){return{mainUrl:"/hospital",countDown:5,timer:"",jumpShow:!0}},computed:c({},Object(s["c"])({imgDomain:function(t){return t.imgDomain}})),mounted:function(){var t=this;this.setLoading(!1);var e=this.$route.path;if(e.indexOf("/404")>-1)return this.jumpShow=!1,!1;this.timer=setInterval((function(){t.countDown>1?t.countDown--:(clearInterval(t.timer),t.$router.replace(t.mainUrl))}),1e3)},destroyed:function(){clearInterval(this.timer)},methods:c({},Object(s["b"])({setLoading:"setLoading"}))},u=l,p=r("5511"),m=Object(p["a"])(u,n,o,!1,null,null,null);e["default"]=m.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0a5503"],{"09bf":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"error_page error_404"},[r("div",{staticClass:"error_box center"},[r("ul",{staticClass:"error_logo"},[r("li",[r("img",{attrs:{src:t.imgDomain+"/num_4.png"}})]),r("li",{staticClass:"error_logo_middle"},[r("img",{attrs:{src:t.imgDomain+"/medical.png"}})]),r("li",[r("img",{attrs:{src:t.imgDomain+"/num_4.png"}})])]),r("p",{staticClass:"bottom_line"}),r("h3",{staticClass:"not_found"},[t._v("没有找到您要访问的页面\n "),r("p",{directives:[{name:"show",rawName:"v-show",value:t.jumpShow,expression:"jumpShow"}],staticStyle:{display:"inline-block"}},[t._v(",\n "),r("span",{staticClass:"second",attrs:{id:"second"}},[t._v(t._s(t.countDown))]),t._v("秒后\n "),r("router-link",{attrs:{to:"/"}},[t._v("返回首页")])],1)])])])},o=[],i=(r("8e6e"),r("ac6a"),r("456d"),r("a481"),r("bd86")),a=r("2f62");function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){Object(i["a"])(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var l={name:"page404",data:function(){return{mainUrl:"/hospital",countDown:5,timer:"",jumpShow:!0}},computed:c({},Object(a["c"])({imgDomain:function(t){return t.imgDomain}})),mounted:function(){var t=this;this.setLoading(!1);var e=this.$route.path;if(e.indexOf("/404")>-1)return this.jumpShow=!1,!1;this.timer=setInterval((function(){t.countDown>1?t.countDown--:(clearInterval(t.timer),t.$router.replace(t.mainUrl))}),1e3)},destroyed:function(){clearInterval(this.timer)},methods:c({},Object(a["b"])({setLoading:"setLoading"}))},u=l,p=r("2877"),m=Object(p["a"])(u,n,o,!1,null,null,null);e["default"]=m.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0a5503"],{"09bf":function(t,n,e){"use strict";e.r(n);var i=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"error_page error_404"},[e("div",{staticClass:"error_box center"},[e("ul",{staticClass:"error_logo"},[e("li",[e("img",{attrs:{src:t.imgDomain+"/num_4.png"}})]),e("li",{staticClass:"error_logo_middle"},[e("img",{attrs:{src:t.imgDomain+"/medical.png"}})]),e("li",[e("img",{attrs:{src:t.imgDomain+"/num_4.png"}})])]),e("p",{staticClass:"bottom_line"}),e("h3",{staticClass:"not_found"},[t._v("没有找到您要访问的页面\n "),e("p",{directives:[{name:"show",rawName:"v-show",value:t.jumpShow,expression:"jumpShow"}],staticStyle:{display:"inline-block"}},[t._v(",\n "),e("span",{staticClass:"second",attrs:{id:"second"}},[t._v(t._s(t.countDown))]),t._v("秒后\n "),e("router-link",{attrs:{to:"/"}},[t._v("返回首页")])],1)])])])},a=[],o=(e("a481"),e("cebc")),r=e("2f62"),s={name:"page404",data:function(){return{mainUrl:"/hospital",countDown:5,timer:"",jumpShow:!0}},computed:Object(o["a"])({},Object(r["c"])({imgDomain:function(t){return t.imgDomain}})),mounted:function(){var t=this;this.setLoading(!1);var n=this.$route.path;if(n.indexOf("/404")>-1)return this.jumpShow=!1,!1;this.timer=setInterval(function(){t.countDown>1?t.countDown--:(clearInterval(t.timer),t.$router.replace(t.mainUrl))},1e3)},destroyed:function(){clearInterval(this.timer)},methods:Object(o["a"])({},Object(r["b"])({setLoading:"setLoading"}))},c=s,l=e("2877"),u=Object(l["a"])(c,i,a,!1,null,null,null);n["default"]=u.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d21ad95"],{bcec:function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"manage_page manage_role_page"},[i("div",{staticClass:"search_bar clearfix"},[i("div",{staticClass:"left"},[i("el-input",{staticStyle:{width:"300px"},attrs:{clearable:"",placeholder:"可输入用户名搜索"},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search()}},model:{value:e.searchContent,callback:function(t){e.searchContent=t},expression:"searchContent"}}),i("el-button",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]}),i("el-button",{attrs:{type:"info"},on:{click:function(t){return e.search()}}},[i("i",{staticClass:"el-icon-search"}),e._v("搜索\n ")])],1),i("div",{staticClass:"right"},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.roleAdd()}}},[e._v("添加角色")])],1)]),i("div",{staticClass:"table_box"},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableList,border:"",height:"100%","row-key":function(e){return e.id},"row-class-name":e.$tableRowClassName}},[i("el-table-column",{attrs:{prop:"title",label:"序号",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.$index+1))])]}}])}),e._l(e.tableColumns,function(t,o){return[i("el-table-column",{key:o,attrs:{prop:t.prop,label:t.label,sortable:t.sortable,width:t.width||void 0},scopedSlots:e._u([{key:"default",fn:function(o){return[i("span",[e._v(e._s(e.$decimal(o.row[t.prop])))])]}}],null,!0)})]}),i("el-table-column",{attrs:{prop:"",label:"操作",width:"280",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(i){return e.roleEdit(t.row.id)}}},[e._v("编辑角色")]),i("el-button",{attrs:{size:"mini",type:"info"},on:{click:function(i){return e.roleMenuEdit(t.row.id,t.row.roleName)}}},[e._v("分配角色菜单")]),i("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(i){return e.roleDel(t.row.id)}}},[e._v("删除")])]}}])})],2)],1),i("role-dialog",{attrs:{visible:e.roleDgVisible,roleId:e.roleId},on:{"update:visible":function(t){e.roleDgVisible=t},submitted:e.roleSubmitted}}),i("role-menu-dialog",{attrs:{visible:e.roleMenuDgVisible,roleId:e.roleId,roleName:e.roleName},on:{"update:visible":function(t){e.roleMenuDgVisible=t}}})],1)},n=[],l=i("cebc"),a=i("2f62"),r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{staticClass:"role_dialog manage_dialog",attrs:{title:"角色配置",width:"600px",visible:e.dgVisible,"modal-append-to-body":!1},on:{"update:visible":function(t){e.dgVisible=t}}},[i("el-form",{ref:"form",staticClass:"manage_form",attrs:{model:e.form,"label-width":"120px"}},[i("my-input",{attrs:{placeholder:"请输入角色名称",titleName:"角色名称",required:!0,prop:"roleName",withForm:""},model:{value:e.form.roleName,callback:function(t){e.$set(e.form,"roleName",t)},expression:"form.roleName"}}),i("my-input",{attrs:{placeholder:"请输入角色编码",titleName:"角色编码",required:!0,prop:"roleCode",withForm:""},model:{value:e.form.roleCode,callback:function(t){e.$set(e.form,"roleCode",t)},expression:"form.roleCode"}})],1),i("div",{staticClass:"manage_handle"},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submit()}}},[e._v("提交")]),i("el-button",{on:{click:function(t){return e.cancel()}}},[e._v("取消")])],1)],1)},s=[],d=(i("c5f6"),{id:0,roleCode:"",roleName:""}),c={name:"roleDialog",props:{visible:Boolean,roleId:Number},data:function(){return{dgVisible:this.visible,form:{}}},methods:{getInfo:function(){var e=this;this.$setLoading(!0),this.$dataPost("/role/info",{roleId:this.roleId},function(t){for(var i in e.$setLoading(!1),d)e.$set(e.form,i,t[i]);e.$nextTick(function(){e.$refs.form.clearValidate()})})},setDefaultForm:function(){var e=this;this.form=this.$deepCopy(d),this.$nextTick(function(){e.$refs.form.clearValidate()})},submit:function(){var e=this;this.$refs.form.validate(function(t){if(!t){var i=setTimeout(function(){e.$refs.form.clearValidate(),clearTimeout(i)},2e3);return!1}if(e.form.id){var o=e.form;o.roleId=o.id,e.$dataPostXD("/role/update",o,function(t){e.$emit("submitted",t),e.dgVisible=!1})}else{var n=e.form;e.$dataPostXD("/role/add",n,function(t){e.$emit("submitted",t),e.dgVisible=!1})}})},cancel:function(){this.dgVisible=!1}},watch:{visible:{immediate:!0,handler:function(e,t){this.dgVisible=e,1==e&&(this.roleId?this.getInfo():this.setDefaultForm())}},dgVisible:{handler:function(e,t){this.$emit("update:visible",e)}}}},u=c,m=i("2877"),f=Object(m["a"])(u,r,s,!1,null,null,null),h=f.exports,b=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{staticClass:"role_dialog manage_dialog",attrs:{title:e.title,width:"600px",visible:e.dgVisible,"modal-append-to-body":!1},on:{"update:visible":function(t){e.dgVisible=t}}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"form",staticClass:"manage_form",attrs:{"label-width":"120px"}},[i("my-input",{attrs:{placeholder:"请输入角色名",titleName:"角色名",required:!1,prop:"roleName",withForm:"",disabled:""},model:{value:e.roleName,callback:function(t){e.roleName=t},expression:"roleName"}}),i("form-item",{attrs:{titleName:e.title,rules:[{required:!0,message:e.title+"必填",trigger:["change"]}]}},[i("el-tree",{ref:"tree",staticClass:"form_tree",attrs:{data:e.menuList,"node-key":"id",props:e.menuProps,"show-checkbox":"","default-expand-all":"","expand-on-click-node":!1,"default-checked-keys":e.checkedMenuList}})],1)],1),i("div",{staticClass:"manage_handle"},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submit()}}},[e._v("提交")]),i("el-button",{on:{click:function(t){return e.cancel()}}},[e._v("取消")])],1)],1)},p=[],g=(i("ac6a"),i("980e")),v={name:"roleMenuDialog",props:{visible:Boolean,roleId:Number,roleName:String},data:function(){return{title:"角色菜单",loading:!1,dgVisible:this.visible,checkedMenuList:[],menuList:[],menuProps:{label:"menuName",children:"sysMenuList"}}},methods:{getInfo:function(){var e=this;this.loading=!0,this.$dataPost("/menu/rolemenu",{roleId:this.roleId},function(t){e.loading=!1,t=t||[];var i=t||[];i.forEach(function(t){0==i.filter(function(e){return e.parentId===t.menuId}).length&&e.checkedMenuList.push(t.menuId)}),e.getMenuList(),e.$nextTick(function(){e.$refs.form.clearValidate()})})},getMenuList:function(){var e=this;this.loading=!0,this.$dataPost("/menu/parentall",{menuName:""},function(t){e.loading=!1,e.menuList=t||[]})},submit:function(){var e=this;this.$nextTick(function(){var t=e.$refs.tree.getCheckedNodes(),i=e.$refs.tree.getHalfCheckedNodes(),o=t.concat(i);if(0==t.length)return e.$message({message:e.title+"必填",type:"error",duration:1500}),!1;var n={menus:o.map(function(e){return e.id}),roleId:e.roleId};e.$dataPostXD("/menu/saverolemenu",n,function(t){e.$emit("submitted",t),e.dgVisible=!1})})},cancel:function(){this.dgVisible=!1}},components:{formItem:g["a"]},watch:{visible:{immediate:!0,handler:function(e,t){this.dgVisible=e,1==e&&(this.checkedMenuList=[],this.menuList=[],this.getInfo())}},dgVisible:{handler:function(e,t){this.$emit("update:visible",e)}}}},$=v,k=Object(m["a"])($,b,p,!1,null,null,null),w=k.exports,_={name:"manageRole",data:function(){return{routePath:"/result/detail",tableList:[],tableListCopy:[],searchContent:"",tableColumns:[{prop:"roleName",label:"角色名称",sortable:!0,width:""},{prop:"roleCode",label:"角色编码",sortable:!0,width:""}],roleId:0,roleName:"",roleDgVisible:!1,roleMenuDgVisible:!1}},computed:{allotid:function(){return this.$store.state.allotid||this.$getSession("allotid")}},mounted:function(){this.getList()},methods:Object(l["a"])({},Object(a["b"])({}),{getList:function(){var e=this;this.$setLoading(!0),this.$dataPost("/role/all",{roleName:this.searchContent},function(t){e.$setLoading(!1),t=t||[],e.tableListCopy=t,e.tableList=t})},search:function(){var e=this.searchContent;this.tableList=this.tableListCopy.filter(function(t){return t.roleName.indexOf(e)>-1})},roleAdd:function(){this.roleId=0,this.roleDgVisible=!0},roleEdit:function(e){console.log(e),this.roleId=e,this.roleDgVisible=!0},roleDel:function(e){var t=this;this.roleId=e,this.$confirm("确认删除?","提示",{distinguishCancelAndClose:!0,confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.$dataPostXD("/role/delete",{roleId:e},function(e){t.getList()})}).catch(function(e){})},roleMenuEdit:function(e,t){this.roleId=e,this.roleName=t,this.roleMenuDgVisible=!0},roleSubmitted:function(){this.getList()}}),components:{roleDialog:h,roleMenuDialog:w}},y=_,C=Object(m["a"])(y,o,n,!1,null,"a1cbc02a",null);t["default"]=C.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d21ad95"],{bcec:function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"manage_page manage_role_page"},[i("div",{staticClass:"search_bar clearfix"},[i("div",{staticClass:"left"},[i("el-input",{staticStyle:{width:"300px"},attrs:{clearable:"",placeholder:"可输入用户名搜索"},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search()}},model:{value:e.searchContent,callback:function(t){e.searchContent=t},expression:"searchContent"}}),i("el-button",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]}),i("el-button",{attrs:{type:"info"},on:{click:function(t){return e.search()}}},[i("i",{staticClass:"el-icon-search"}),e._v("搜索\n ")])],1),i("div",{staticClass:"right"},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.roleAdd()}}},[e._v("添加角色")])],1)]),i("div",{staticClass:"table_box"},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableList,border:"",height:"100%","row-key":function(e){return e.id},"row-class-name":e.$tableRowClassName}},[i("el-table-column",{attrs:{prop:"title",label:"序号",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.$index+1))])]}}])}),e._l(e.tableColumns,(function(t,o){return[i("el-table-column",{key:o,attrs:{prop:t.prop,label:t.label,sortable:t.sortable,width:t.width||void 0},scopedSlots:e._u([{key:"default",fn:function(o){return[i("span",[e._v(e._s(e.$decimal(o.row[t.prop])))])]}}],null,!0)})]})),i("el-table-column",{attrs:{prop:"",label:"操作",width:"280",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(i){return e.roleEdit(t.row.id)}}},[e._v("编辑角色")]),i("el-button",{attrs:{size:"mini",type:"info"},on:{click:function(i){return e.roleMenuEdit(t.row.id,t.row.roleName)}}},[e._v("分配角色菜单")]),i("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(i){return e.roleDel(t.row.id)}}},[e._v("删除")])]}}])})],2)],1),i("role-dialog",{attrs:{visible:e.roleDgVisible,roleId:e.roleId},on:{"update:visible":function(t){e.roleDgVisible=t},submitted:e.roleSubmitted}}),i("role-menu-dialog",{attrs:{visible:e.roleMenuDgVisible,roleId:e.roleId,roleName:e.roleName},on:{"update:visible":function(t){e.roleMenuDgVisible=t}}})],1)},n=[],r=(i("8e6e"),i("ac6a"),i("456d"),i("bd86")),l=i("2f62"),a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{staticClass:"role_dialog manage_dialog",attrs:{title:"角色配置",width:"600px",visible:e.dgVisible,"modal-append-to-body":!1},on:{"update:visible":function(t){e.dgVisible=t}}},[i("el-form",{ref:"form",staticClass:"manage_form",attrs:{model:e.form,"label-width":"120px"}},[i("my-input",{attrs:{placeholder:"请输入角色名称",titleName:"角色名称",required:!0,prop:"roleName",withForm:""},model:{value:e.form.roleName,callback:function(t){e.$set(e.form,"roleName",t)},expression:"form.roleName"}}),i("my-input",{attrs:{placeholder:"请输入角色编码",titleName:"角色编码",required:!0,prop:"roleCode",withForm:""},model:{value:e.form.roleCode,callback:function(t){e.$set(e.form,"roleCode",t)},expression:"form.roleCode"}})],1),i("div",{staticClass:"manage_handle"},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submit()}}},[e._v("提交")]),i("el-button",{on:{click:function(t){return e.cancel()}}},[e._v("取消")])],1)],1)},s=[],c=(i("c5f6"),{id:0,roleCode:"",roleName:""}),u={name:"roleDialog",props:{visible:Boolean,roleId:Number},data:function(){return{dgVisible:this.visible,form:{}}},methods:{getInfo:function(){var e=this;this.$setLoading(!0),this.$dataPost("/role/info",{roleId:this.roleId},(function(t){for(var i in e.$setLoading(!1),c)e.$set(e.form,i,t[i]);e.$nextTick((function(){e.$refs.form.clearValidate()}))}))},setDefaultForm:function(){var e=this;this.form=this.$deepCopy(c),this.$nextTick((function(){e.$refs.form.clearValidate()}))},submit:function(){var e=this;this.$refs.form.validate((function(t){if(!t){var i=setTimeout((function(){e.$refs.form.clearValidate(),clearTimeout(i)}),2e3);return!1}if(e.form.id){var o=e.form;o.roleId=o.id,e.$dataPostXD("/role/update",o,(function(t){e.$emit("submitted",t),e.dgVisible=!1}))}else{var n=e.form;e.$dataPostXD("/role/add",n,(function(t){e.$emit("submitted",t),e.dgVisible=!1}))}}))},cancel:function(){this.dgVisible=!1}},watch:{visible:{immediate:!0,handler:function(e,t){this.dgVisible=e,1==e&&(this.roleId?this.getInfo():this.setDefaultForm())}},dgVisible:{handler:function(e,t){this.$emit("update:visible",e)}}}},d=u,f=i("2877"),m=Object(f["a"])(d,a,s,!1,null,null,null),h=m.exports,b=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{staticClass:"role_dialog manage_dialog",attrs:{title:e.title,width:"600px",visible:e.dgVisible,"modal-append-to-body":!1},on:{"update:visible":function(t){e.dgVisible=t}}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"form",staticClass:"manage_form",attrs:{"label-width":"120px"}},[i("my-input",{attrs:{placeholder:"请输入角色名",titleName:"角色名",required:!1,prop:"roleName",withForm:"",disabled:""},model:{value:e.roleName,callback:function(t){e.roleName=t},expression:"roleName"}}),i("form-item",{attrs:{titleName:e.title,rules:[{required:!0,message:e.title+"必填",trigger:["change"]}]}},[i("el-tree",{ref:"tree",staticClass:"form_tree",attrs:{data:e.menuList,"node-key":"id",props:e.menuProps,"show-checkbox":"","default-expand-all":"","expand-on-click-node":!1,"default-checked-keys":e.checkedMenuList}})],1)],1),i("div",{staticClass:"manage_handle"},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submit()}}},[e._v("提交")]),i("el-button",{on:{click:function(t){return e.cancel()}}},[e._v("取消")])],1)],1)},p=[],g=i("980e"),v={name:"roleMenuDialog",props:{visible:Boolean,roleId:Number,roleName:String},data:function(){return{title:"角色菜单",loading:!1,dgVisible:this.visible,checkedMenuList:[],menuList:[],menuProps:{label:"menuName",children:"sysMenuList"}}},methods:{getInfo:function(){var e=this;this.loading=!0,this.$dataPost("/menu/rolemenu",{roleId:this.roleId},(function(t){e.loading=!1,t=t||[];var i=t||[];i.forEach((function(t){0==i.filter((function(e){return e.parentId===t.menuId})).length&&e.checkedMenuList.push(t.menuId)})),e.getMenuList(),e.$nextTick((function(){e.$refs.form.clearValidate()}))}))},getMenuList:function(){var e=this;this.loading=!0,this.$dataPost("/menu/parentall",{menuName:""},(function(t){e.loading=!1,e.menuList=t||[]}))},submit:function(){var e=this;this.$nextTick((function(){var t=e.$refs.tree.getCheckedNodes(),i=e.$refs.tree.getHalfCheckedNodes(),o=t.concat(i);if(0==t.length)return e.$message({message:e.title+"必填",type:"error",duration:1500}),!1;var n={menus:o.map((function(e){return e.id})),roleId:e.roleId};e.$dataPostXD("/menu/saverolemenu",n,(function(t){e.$emit("submitted",t),e.dgVisible=!1}))}))},cancel:function(){this.dgVisible=!1}},components:{formItem:g["a"]},watch:{visible:{immediate:!0,handler:function(e,t){this.dgVisible=e,1==e&&(this.checkedMenuList=[],this.menuList=[],this.getInfo())}},dgVisible:{handler:function(e,t){this.$emit("update:visible",e)}}}},y=v,w=Object(f["a"])(y,b,p,!1,null,null,null),k=w.exports;function $(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,o)}return i}function _(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?$(Object(i),!0).forEach((function(t){Object(r["a"])(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):$(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var C={name:"manageRole",data:function(){return{routePath:"/result/detail",tableList:[],tableListCopy:[],searchContent:"",tableColumns:[{prop:"roleName",label:"角色名称",sortable:!0,width:""},{prop:"roleCode",label:"角色编码",sortable:!0,width:""}],roleId:0,roleName:"",roleDgVisible:!1,roleMenuDgVisible:!1}},computed:{allotid:function(){return this.$store.state.allotid||this.$getSession("allotid")}},mounted:function(){this.getList()},methods:_(_({},Object(l["b"])({})),{},{getList:function(){var e=this;this.$setLoading(!0),this.$dataPost("/role/all",{roleName:this.searchContent},(function(t){e.$setLoading(!1),t=t||[],e.tableListCopy=t,e.tableList=t}))},search:function(){var e=this.searchContent;this.tableList=this.tableListCopy.filter((function(t){return t.roleName.indexOf(e)>-1}))},roleAdd:function(){this.roleId=0,this.roleDgVisible=!0},roleEdit:function(e){console.log(e),this.roleId=e,this.roleDgVisible=!0},roleDel:function(e){var t=this;this.roleId=e,this.$confirm("确认删除?","提示",{distinguishCancelAndClose:!0,confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.$dataPostXD("/role/delete",{roleId:e},(function(e){t.getList()}))})).catch((function(e){}))},roleMenuEdit:function(e,t){this.roleId=e,this.roleName=t,this.roleMenuDgVisible=!0},roleSubmitted:function(){this.getList()}}),components:{roleDialog:h,roleMenuDialog:k}},N=C,x=Object(f["a"])(N,o,n,!1,null,"a1cbc02a",null);t["default"]=x.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d21ad95"],{bcec:function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"manage_page manage_role_page"},[i("div",{staticClass:"search_bar clearfix"},[i("div",{staticClass:"left"},[i("el-input",{staticStyle:{width:"300px"},attrs:{clearable:"",placeholder:"可输入用户名搜索"},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search()}},model:{value:e.searchContent,callback:function(t){e.searchContent=t},expression:"searchContent"}}),i("el-button",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]}),i("el-button",{attrs:{type:"info"},on:{click:function(t){return e.search()}}},[i("i",{staticClass:"el-icon-search"}),e._v("搜索\n ")])],1),i("div",{staticClass:"right"},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.roleAdd()}}},[e._v("添加角色")])],1)]),i("div",{staticClass:"table_box"},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableList,border:"",height:"100%","row-key":function(e){return e.id},"row-class-name":e.$tableRowClassName}},[i("el-table-column",{attrs:{prop:"title",label:"序号",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.$index+1))])]}}])}),e._l(e.tableColumns,(function(t,o){return[i("el-table-column",{key:o,attrs:{prop:t.prop,label:t.label,sortable:t.sortable,width:t.width||void 0},scopedSlots:e._u([{key:"default",fn:function(o){return[i("span",[e._v(e._s(e.$decimal(o.row[t.prop])))])]}}],null,!0)})]})),i("el-table-column",{attrs:{prop:"",label:"操作",width:"280",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(i){return e.roleEdit(t.row.id)}}},[e._v("编辑角色")]),i("el-button",{attrs:{size:"mini",type:"info"},on:{click:function(i){return e.roleMenuEdit(t.row.id,t.row.roleName)}}},[e._v("分配角色菜单")]),i("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(i){return e.roleDel(t.row.id)}}},[e._v("删除")])]}}])})],2)],1),i("role-dialog",{attrs:{visible:e.roleDgVisible,roleId:e.roleId},on:{"update:visible":function(t){e.roleDgVisible=t},submitted:e.roleSubmitted}}),i("role-menu-dialog",{attrs:{visible:e.roleMenuDgVisible,roleId:e.roleId,roleName:e.roleName},on:{"update:visible":function(t){e.roleMenuDgVisible=t}}})],1)},n=[],r=(i("5ab2"),i("6d57"),i("e10e"),i("f010")),l=i("08c1"),a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{staticClass:"role_dialog manage_dialog",attrs:{title:"角色配置",width:"600px",visible:e.dgVisible,"modal-append-to-body":!1},on:{"update:visible":function(t){e.dgVisible=t}}},[i("el-form",{ref:"form",staticClass:"manage_form",attrs:{model:e.form,"label-width":"120px"}},[i("my-input",{attrs:{placeholder:"请输入角色名称",titleName:"角色名称",required:!0,prop:"roleName",withForm:""},model:{value:e.form.roleName,callback:function(t){e.$set(e.form,"roleName",t)},expression:"form.roleName"}}),i("my-input",{attrs:{placeholder:"请输入角色编码",titleName:"角色编码",required:!0,prop:"roleCode",withForm:""},model:{value:e.form.roleCode,callback:function(t){e.$set(e.form,"roleCode",t)},expression:"form.roleCode"}})],1),i("div",{staticClass:"manage_handle"},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submit()}}},[e._v("提交")]),i("el-button",{on:{click:function(t){return e.cancel()}}},[e._v("取消")])],1)],1)},s=[],c=(i("163d"),{id:0,roleCode:"",roleName:""}),u={name:"roleDialog",props:{visible:Boolean,roleId:Number},data:function(){return{dgVisible:this.visible,form:{}}},methods:{getInfo:function(){var e=this;this.$setLoading(!0),this.$dataPost("/role/info",{roleId:this.roleId},(function(t){for(var i in e.$setLoading(!1),c)e.$set(e.form,i,t[i]);e.$nextTick((function(){e.$refs.form.clearValidate()}))}))},setDefaultForm:function(){var e=this;this.form=this.$deepCopy(c),this.$nextTick((function(){e.$refs.form.clearValidate()}))},submit:function(){var e=this;this.$refs.form.validate((function(t){if(!t){var i=setTimeout((function(){e.$refs.form.clearValidate(),clearTimeout(i)}),2e3);return!1}if(e.form.id){var o=e.form;o.roleId=o.id,e.$dataPostXD("/role/update",o,(function(t){e.$emit("submitted",t),e.dgVisible=!1}))}else{var n=e.form;e.$dataPostXD("/role/add",n,(function(t){e.$emit("submitted",t),e.dgVisible=!1}))}}))},cancel:function(){this.dgVisible=!1}},watch:{visible:{immediate:!0,handler:function(e,t){this.dgVisible=e,1==e&&(this.roleId?this.getInfo():this.setDefaultForm())}},dgVisible:{handler:function(e,t){this.$emit("update:visible",e)}}}},d=u,f=i("5511"),m=Object(f["a"])(d,a,s,!1,null,null,null),h=m.exports,b=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{staticClass:"role_dialog manage_dialog",attrs:{title:e.title,width:"600px",visible:e.dgVisible,"modal-append-to-body":!1},on:{"update:visible":function(t){e.dgVisible=t}}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"form",staticClass:"manage_form",attrs:{"label-width":"120px"}},[i("my-input",{attrs:{placeholder:"请输入角色名",titleName:"角色名",required:!1,prop:"roleName",withForm:"",disabled:""},model:{value:e.roleName,callback:function(t){e.roleName=t},expression:"roleName"}}),i("form-item",{attrs:{titleName:e.title,rules:[{required:!0,message:e.title+"必填",trigger:["change"]}]}},[i("el-tree",{ref:"tree",staticClass:"form_tree",attrs:{data:e.menuList,"node-key":"id",props:e.menuProps,"show-checkbox":"","default-expand-all":"","expand-on-click-node":!1,"default-checked-keys":e.checkedMenuList}})],1)],1),i("div",{staticClass:"manage_handle"},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submit()}}},[e._v("提交")]),i("el-button",{on:{click:function(t){return e.cancel()}}},[e._v("取消")])],1)],1)},p=[],g=i("980e"),v={name:"roleMenuDialog",props:{visible:Boolean,roleId:Number,roleName:String},data:function(){return{title:"角色菜单",loading:!1,dgVisible:this.visible,checkedMenuList:[],menuList:[],menuProps:{label:"menuName",children:"sysMenuList"}}},methods:{getInfo:function(){var e=this;this.loading=!0,this.$dataPost("/menu/rolemenu",{roleId:this.roleId},(function(t){e.loading=!1,t=t||[];var i=t||[];i.forEach((function(t){0==i.filter((function(e){return e.parentId===t.menuId})).length&&e.checkedMenuList.push(t.menuId)})),e.getMenuList(),e.$nextTick((function(){e.$refs.form.clearValidate()}))}))},getMenuList:function(){var e=this;this.loading=!0,this.$dataPost("/menu/parentall",{menuName:""},(function(t){e.loading=!1,e.menuList=t||[]}))},submit:function(){var e=this;this.$nextTick((function(){var t=e.$refs.tree.getCheckedNodes(),i=e.$refs.tree.getHalfCheckedNodes(),o=t.concat(i);if(0==t.length)return e.$message({message:e.title+"必填",type:"error",duration:1500}),!1;var n={menus:o.map((function(e){return e.id})),roleId:e.roleId};e.$dataPostXD("/menu/saverolemenu",n,(function(t){e.$emit("submitted",t),e.dgVisible=!1}))}))},cancel:function(){this.dgVisible=!1}},components:{formItem:g["a"]},watch:{visible:{immediate:!0,handler:function(e,t){this.dgVisible=e,1==e&&(this.checkedMenuList=[],this.menuList=[],this.getInfo())}},dgVisible:{handler:function(e,t){this.$emit("update:visible",e)}}}},y=v,w=Object(f["a"])(y,b,p,!1,null,null,null),k=w.exports;function $(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,o)}return i}function _(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?$(Object(i),!0).forEach((function(t){Object(r["a"])(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):$(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var C={name:"manageRole",data:function(){return{routePath:"/result/detail",tableList:[],tableListCopy:[],searchContent:"",tableColumns:[{prop:"roleName",label:"角色名称",sortable:!0,width:""},{prop:"roleCode",label:"角色编码",sortable:!0,width:""}],roleId:0,roleName:"",roleDgVisible:!1,roleMenuDgVisible:!1}},computed:{allotid:function(){return this.$store.state.allotid||this.$getSession("allotid")}},mounted:function(){this.getList()},methods:_({},Object(l["b"])({}),{getList:function(){var e=this;this.$setLoading(!0),this.$dataPost("/role/all",{roleName:this.searchContent},(function(t){e.$setLoading(!1),t=t||[],e.tableListCopy=t,e.tableList=t}))},search:function(){var e=this.searchContent;this.tableList=this.tableListCopy.filter((function(t){return t.roleName.indexOf(e)>-1}))},roleAdd:function(){this.roleId=0,this.roleDgVisible=!0},roleEdit:function(e){console.log(e),this.roleId=e,this.roleDgVisible=!0},roleDel:function(e){var t=this;this.roleId=e,this.$confirm("确认删除?","提示",{distinguishCancelAndClose:!0,confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.$dataPostXD("/role/delete",{roleId:e},(function(e){t.getList()}))})).catch((function(e){}))},roleMenuEdit:function(e,t){this.roleId=e,this.roleName=t,this.roleMenuDgVisible=!0},roleSubmitted:function(){this.getList()}}),components:{roleDialog:h,roleMenuDialog:k}},N=C,x=Object(f["a"])(N,o,n,!1,null,"a1cbc02a",null);t["default"]=x.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-51ecf2aa"],{1812:function(t,e,r){"use strict";var o=r("8d94"),i=r.n(o);i.a},"8d94":function(t,e,r){},cf53:function(t,e,r){"use strict";r.r(e);var o=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"manage_page manage_org_page"},[r("div",{staticClass:"search_bar clearfix"},[r("div",{staticClass:"left"},[r("el-input",{staticStyle:{width:"300px"},attrs:{clearable:"",placeholder:"可输入机构名称搜索"},nativeOn:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.search()}},model:{value:t.searchContent,callback:function(e){t.searchContent=e},expression:"searchContent"}}),r("el-button",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]}),r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.search()}}},[t._v("搜索")])],1),r("div",{staticClass:"right"},[r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.orgAdd()}}},[t._v("添加机构")])],1)]),r("div",{staticClass:"table_box"},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableList,border:"",height:"100%","default-expand-all":"","row-key":function(t){return t.id},"row-class-name":t.$tableRowClassName,"tree-props":t.orgProps}},[r("el-table-column",{attrs:{prop:"title",label:"序号",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.$index+1))])]}}])}),t._l(t.tableColumns,(function(e,o){return[r("el-table-column",{key:o,attrs:{prop:e.prop,label:e.label,sortable:e.sortable,width:e.width||void 0},scopedSlots:t._u([{key:"default",fn:function(o){return[r("span",[t._v(t._s(t.$decimal(o.row[e.prop])))])]}}],null,!0)})]})),r("el-table-column",{attrs:{prop:"isNew",label:"是否新机构"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.isNew?"是":"否"))])]}}])}),r("el-table-column",{attrs:{prop:"",label:"操作",width:"280",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(r){return t.orgEdit(e.row.id)}}},[t._v("编辑")]),r("el-button",{attrs:{size:"mini",type:"info"},on:{click:function(r){return t.orgAdd(e.row.id)}}},[t._v("添加子机构")]),r("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(r){return t.orgDel(e.row.id)}}},[t._v("删除")])]}}])})],2)],1),r("org-dialog",{attrs:{visible:t.orgDgVisible,orgId:t.orgId,parentId:t.parentId,orgOptions:t.tableOptions},on:{"update:visible":function(e){t.orgDgVisible=e},submitted:t.orgSubmitted}})],1)},i=[],n=(r("8e6e"),r("ac6a"),r("456d"),r("bd86")),a=r("2f62"),s=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("el-dialog",{staticClass:"org_dialog manage_dialog",attrs:{title:"机构配置",width:"600px",visible:t.dgVisible,"modal-append-to-body":!1},on:{"update:visible":function(e){t.dgVisible=e}}},[r("el-form",{ref:"form",staticClass:"manage_form",attrs:{model:t.form,"label-width":"120px"}},[r("my-input",{attrs:{placeholder:"请输入机构名称",titleName:"机构名称",required:!0,prop:"orgName",width:t.inputWidth,withForm:""},model:{value:t.form.orgName,callback:function(e){t.$set(t.form,"orgName",e)},expression:"form.orgName"}}),r("my-input",{attrs:{placeholder:"请输入机构编码",titleName:"机构编码",required:!0,prop:"orgCode",width:t.inputWidth,withForm:""},model:{value:t.form.orgCode,callback:function(e){t.$set(t.form,"orgCode",e)},expression:"form.orgCode"}}),r("my-input",{attrs:{placeholder:"请输入机构简称",titleName:"机构简称",required:!0,prop:"orgShortName",width:t.inputWidth,withForm:""},model:{value:t.form.orgShortName,callback:function(e){t.$set(t.form,"orgShortName",e)},expression:"form.orgShortName"}}),r("my-input",{attrs:{placeholder:"请输入机构类型",titleName:"机构类型",required:!0,prop:"orgType",width:t.inputWidth,withForm:""},model:{value:t.form.orgType,callback:function(e){t.$set(t.form,"orgType",e)},expression:"form.orgType"}}),r("my-switch",{attrs:{titleName:"是否新机构",required:!0,prop:"isNew",width:t.inputWidth,withForm:""},model:{value:t.form.isNew,callback:function(e){t.$set(t.form,"isNew",e)},expression:"form.isNew"}}),r("my-input",{attrs:{placeholder:"请输入机构组织",titleName:"机构组织",required:!1,prop:"orgGroup",width:t.inputWidth,withForm:""},model:{value:t.form.orgGroup,callback:function(e){t.$set(t.form,"orgGroup",e)},expression:"form.orgGroup"}}),r("my-input",{attrs:{placeholder:"请输入机构编号",titleName:"机构编号",required:!1,prop:"orgNo",width:t.inputWidth,withForm:""},model:{value:t.form.orgNo,callback:function(e){t.$set(t.form,"orgNo",e)},expression:"form.orgNo"}}),r("my-input",{attrs:{placeholder:"请输入机构地址",titleName:"机构地址",required:!1,prop:"orgAddress",width:t.inputWidth,withForm:""},model:{value:t.form.orgAddress,callback:function(e){t.$set(t.form,"orgAddress",e)},expression:"form.orgAddress"}}),r("my-select",{attrs:{options:t.orgOptions,placeholder:"请选择所属机构",titleName:"所属机构",required:!0,prop:"parentId",width:t.inputWidth,withForm:""},model:{value:t.form.parentId,callback:function(e){t.$set(t.form,"parentId",e)},expression:"form.parentId"}})],1),r("div",{staticClass:"manage_handle"},[r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submit()}}},[t._v("提交")]),r("el-button",{on:{click:function(e){return t.cancel()}}},[t._v("取消")])],1)],1)},l=[],d=(r("c5f6"),{id:0,orgAddress:"",orgCode:"",orgGroup:"",orgName:"",orgNo:"",orgShortName:"",orgType:"",isNew:0,parentId:0}),c={name:"orgDialog",props:{visible:Boolean,orgId:Number,parentId:Number,orgOptions:Array},data:function(){return{dgVisible:this.visible,form:{},inputWidth:"300px"}},methods:{getInfo:function(){var t=this;this.$setLoading(!0),this.$dataPost("/org/info",{orgId:this.orgId},(function(e){for(var r in t.$setLoading(!1),d)t.$set(t.form,r,e[r]);t.$nextTick((function(){t.$refs.form.clearValidate()}))}))},setDefaultForm:function(){var t=this;this.form=this.$deepCopy(d),this.form.parentId=this.parentId,this.$nextTick((function(){t.$refs.form.clearValidate()}))},submit:function(){var t=this;this.$refs.form.validate((function(e){if(!e){var r=setTimeout((function(){t.$refs.form.clearValidate(),clearTimeout(r)}),2e3);return!1}if(t.form.id){var o=t.form;o.orgId=o.id,t.$dataPostXD("/org/update",o,(function(e){t.$emit("submitted",e),t.dgVisible=!1}))}else{var i=t.form;t.$dataPostXD("/org/add",i,(function(e){t.$emit("submitted",e),t.dgVisible=!1}))}}))},cancel:function(){this.dgVisible=!1}},watch:{visible:{immediate:!0,handler:function(t,e){this.dgVisible=t,1==t&&(this.orgId?this.getInfo():this.setDefaultForm())}},dgVisible:{handler:function(t,e){this.$emit("update:visible",t)}}}},u=c,p=r("2877"),f=Object(p["a"])(u,s,l,!1,null,null,null),m=f.exports;function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?g(Object(r),!0).forEach((function(e){Object(n["a"])(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var b={name:"manageOrg",data:function(){return{tableList:[],tableListCopy:[],tableOptions:[],searchContent:"",tableColumns:[{prop:"orgName",label:"机构名称",sortable:!0,width:""},{prop:"orgType",label:"机构类别",sortable:!0,width:""},{prop:"orgShortName",label:"机构简称",sortable:!0,width:""}],orgProps:{label:"orgName",children:"dicOrgList"},orgId:0,parentId:0,orgDgVisible:!1}},computed:{},mounted:function(){this.getList(),this.getListAll()},methods:h(h({},Object(a["b"])({})),{},{getList:function(){var t=this;this.$setLoading(!0),this.$dataPost("/org/parentall",{orgName:this.searchContent},(function(e){t.$setLoading(!1),e=e||[],t.tableListCopy=e,t.tableList=e}))},getListAll:function(){var t=this;this.$dataPost("/org/all",(function(e){e=e||[];var r=e.map((function(t){return{title:t.orgName,value:t.id}}));r.unshift({title:"无",value:0}),t.tableOptions=r}))},search:function(){var t=this.searchContent;this.tableList=this.tableListCopy.filter((function(e){return e.orgName.indexOf(t)>-1}))},orgAdd:function(t){this.parentId=t||0,this.orgId=0,this.orgDgVisible=!0},orgEdit:function(t){this.orgId=t,this.orgDgVisible=!0},orgDel:function(t){var e=this;this.orgId=t,this.$confirm("确认删除?","提示",{distinguishCancelAndClose:!0,confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.$dataPostXD("/org/delete",{orgId:t},(function(t){e.getList(),e.getListAll()}))})).catch((function(t){}))},orgSubmitted:function(){this.getList()}}),components:{orgDialog:m}},v=b,w=(r("1812"),Object(p["a"])(v,o,i,!1,null,"e14f701a",null));e["default"]=w.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-79bedd8b"],{"3c2e":function(t,e,r){"use strict";var o=r("6c1f"),i=r.n(o);i.a},"6c1f":function(t,e,r){},cf53:function(t,e,r){"use strict";r.r(e);var o=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"manage_page manage_org_page"},[r("div",{staticClass:"search_bar clearfix"},[r("div",{staticClass:"left"},[r("el-input",{staticStyle:{width:"300px"},attrs:{clearable:"",placeholder:"可输入机构名称搜索"},nativeOn:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.search()}},model:{value:t.searchContent,callback:function(e){t.searchContent=e},expression:"searchContent"}}),r("el-button",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]}),r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.search()}}},[t._v("搜索")])],1),r("div",{staticClass:"right"},[r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.orgAdd()}}},[t._v("添加机构")])],1)]),r("div",{staticClass:"table_box"},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableList,border:"",height:"100%","default-expand-all":"","row-key":function(t){return t.id},"row-class-name":t.$tableRowClassName,"tree-props":t.orgProps}},[r("el-table-column",{attrs:{prop:"title",label:"序号",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.$index+1))])]}}])}),t._l(t.tableColumns,(function(e,o){return[r("el-table-column",{key:o,attrs:{prop:e.prop,label:e.label,sortable:e.sortable,width:e.width||void 0},scopedSlots:t._u([{key:"default",fn:function(o){return[r("span",[t._v(t._s(t.$decimal(o.row[e.prop])))])]}}],null,!0)})]})),r("el-table-column",{attrs:{prop:"",label:"操作",width:"280",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(r){return t.orgEdit(e.row.id)}}},[t._v("编辑")]),r("el-button",{attrs:{size:"mini",type:"info"},on:{click:function(r){return t.orgAdd(e.row.id)}}},[t._v("添加子机构")]),r("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(r){return t.orgDel(e.row.id)}}},[t._v("删除")])]}}])})],2)],1),r("org-dialog",{attrs:{visible:t.orgDgVisible,orgId:t.orgId,parentId:t.parentId,orgOptions:t.tableOptions},on:{"update:visible":function(e){t.orgDgVisible=e},submitted:t.orgSubmitted}})],1)},i=[],n=(r("5ab2"),r("6d57"),r("e10e"),r("f010")),a=r("08c1"),s=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("el-dialog",{staticClass:"org_dialog manage_dialog",attrs:{title:"机构配置",width:"600px",visible:t.dgVisible,"modal-append-to-body":!1},on:{"update:visible":function(e){t.dgVisible=e}}},[r("el-form",{ref:"form",staticClass:"manage_form",attrs:{model:t.form,"label-width":"120px"}},[r("my-input",{attrs:{placeholder:"请输入机构名称",titleName:"机构名称",required:!0,prop:"orgName",width:t.inputWidth,withForm:""},model:{value:t.form.orgName,callback:function(e){t.$set(t.form,"orgName",e)},expression:"form.orgName"}}),r("my-input",{attrs:{placeholder:"请输入机构编码",titleName:"机构编码",required:!0,prop:"orgCode",width:t.inputWidth,withForm:""},model:{value:t.form.orgCode,callback:function(e){t.$set(t.form,"orgCode",e)},expression:"form.orgCode"}}),r("my-input",{attrs:{placeholder:"请输入机构简称",titleName:"机构简称",required:!0,prop:"orgShortName",width:t.inputWidth,withForm:""},model:{value:t.form.orgShortName,callback:function(e){t.$set(t.form,"orgShortName",e)},expression:"form.orgShortName"}}),r("my-input",{attrs:{placeholder:"请输入机构类型",titleName:"机构类型",required:!0,prop:"orgType",width:t.inputWidth,withForm:""},model:{value:t.form.orgType,callback:function(e){t.$set(t.form,"orgType",e)},expression:"form.orgType"}}),r("my-input",{attrs:{placeholder:"请输入机构组织",titleName:"机构组织",required:!1,prop:"orgGroup",width:t.inputWidth,withForm:""},model:{value:t.form.orgGroup,callback:function(e){t.$set(t.form,"orgGroup",e)},expression:"form.orgGroup"}}),r("my-input",{attrs:{placeholder:"请输入机构编号",titleName:"机构编号",required:!1,prop:"orgNo",width:t.inputWidth,withForm:""},model:{value:t.form.orgNo,callback:function(e){t.$set(t.form,"orgNo",e)},expression:"form.orgNo"}}),r("my-input",{attrs:{placeholder:"请输入机构地址",titleName:"机构地址",required:!1,prop:"orgAddress",width:t.inputWidth,withForm:""},model:{value:t.form.orgAddress,callback:function(e){t.$set(t.form,"orgAddress",e)},expression:"form.orgAddress"}}),r("my-select",{attrs:{options:t.orgOptions,placeholder:"请选择所属机构",titleName:"所属机构",required:!0,prop:"parentId",width:t.inputWidth,withForm:""},model:{value:t.form.parentId,callback:function(e){t.$set(t.form,"parentId",e)},expression:"form.parentId"}})],1),r("div",{staticClass:"manage_handle"},[r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submit()}}},[t._v("提交")]),r("el-button",{on:{click:function(e){return t.cancel()}}},[t._v("取消")])],1)],1)},l=[],d=(r("163d"),{id:0,orgAddress:"",orgCode:"",orgGroup:"",orgName:"",orgNo:"",orgShortName:"",orgType:"",parentId:0}),c={name:"orgDialog",props:{visible:Boolean,orgId:Number,parentId:Number,orgOptions:Array},data:function(){return{dgVisible:this.visible,form:{},inputWidth:"300px"}},methods:{getInfo:function(){var t=this;this.$setLoading(!0),this.$dataPost("/org/info",{orgId:this.orgId},(function(e){for(var r in t.$setLoading(!1),d)t.$set(t.form,r,e[r]);t.$nextTick((function(){t.$refs.form.clearValidate()}))}))},setDefaultForm:function(){var t=this;this.form=this.$deepCopy(d),this.form.parentId=this.parentId,this.$nextTick((function(){t.$refs.form.clearValidate()}))},submit:function(){var t=this;this.$refs.form.validate((function(e){if(!e){var r=setTimeout((function(){t.$refs.form.clearValidate(),clearTimeout(r)}),2e3);return!1}if(t.form.id){var o=t.form;o.orgId=o.id,t.$dataPostXD("/org/update",o,(function(e){t.$emit("submitted",e),t.dgVisible=!1}))}else{var i=t.form;t.$dataPostXD("/org/add",i,(function(e){t.$emit("submitted",e),t.dgVisible=!1}))}}))},cancel:function(){this.dgVisible=!1}},watch:{visible:{immediate:!0,handler:function(t,e){this.dgVisible=t,1==t&&(this.orgId?this.getInfo():this.setDefaultForm())}},dgVisible:{handler:function(t,e){this.$emit("update:visible",t)}}}},u=c,p=r("5511"),f=Object(p["a"])(u,s,l,!1,null,null,null),m=f.exports;function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?g(Object(r),!0).forEach((function(e){Object(n["a"])(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var b={name:"manageOrg",data:function(){return{tableList:[],tableListCopy:[],tableOptions:[],searchContent:"",tableColumns:[{prop:"orgName",label:"机构名称",sortable:!0,width:""},{prop:"orgType",label:"机构类别",sortable:!0,width:""},{prop:"orgShortName",label:"机构简称",sortable:!0,width:""}],orgProps:{label:"orgName",children:"dicOrgList"},orgId:0,parentId:0,orgDgVisible:!1}},computed:{},mounted:function(){this.getList(),this.getListAll()},methods:h({},Object(a["b"])({}),{getList:function(){var t=this;this.$setLoading(!0),this.$dataPost("/org/parentall",{orgName:this.searchContent},(function(e){t.$setLoading(!1),e=e||[],t.tableListCopy=e,t.tableList=e}))},getListAll:function(){var t=this;this.$dataPost("/org/all",(function(e){e=e||[];var r=e.map((function(t){return{title:t.orgName,value:t.id}}));r.unshift({title:"无",value:0}),t.tableOptions=r}))},search:function(){var t=this.searchContent;this.tableList=this.tableListCopy.filter((function(e){return e.orgName.indexOf(t)>-1}))},orgAdd:function(t){this.parentId=t||0,this.orgId=0,this.orgDgVisible=!0},orgEdit:function(t){this.orgId=t,this.orgDgVisible=!0},orgDel:function(t){var e=this;this.orgId=t,this.$confirm("确认删除?","提示",{distinguishCancelAndClose:!0,confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.$dataPostXD("/org/delete",{orgId:t},(function(t){e.getList(),e.getListAll()}))})).catch((function(t){}))},orgSubmitted:function(){this.getList()}}),components:{orgDialog:m}},v=b,y=(r("3c2e"),Object(p["a"])(v,o,i,!1,null,"c768693c",null));e["default"]=y.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a5196180"],{"3c2e":function(t,e,o){"use strict";var r=o("b48a"),i=o.n(r);i.a},b48a:function(t,e,o){},cf53:function(t,e,o){"use strict";o.r(e);var r=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"manage_page manage_org_page"},[o("div",{staticClass:"search_bar clearfix"},[o("div",{staticClass:"left"},[o("el-input",{staticStyle:{width:"300px"},attrs:{clearable:"",placeholder:"可输入机构名称搜索"},nativeOn:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.search()}},model:{value:t.searchContent,callback:function(e){t.searchContent=e},expression:"searchContent"}}),o("el-button",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]}),o("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.search()}}},[t._v("搜索")])],1),o("div",{staticClass:"right"},[o("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.orgAdd()}}},[t._v("添加机构")])],1)]),o("div",{staticClass:"table_box"},[o("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableList,border:"",height:"100%","default-expand-all":"","row-key":function(t){return t.id},"row-class-name":t.$tableRowClassName,"tree-props":t.orgProps}},[o("el-table-column",{attrs:{prop:"title",label:"序号",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("span",[t._v(t._s(e.$index+1))])]}}])}),t._l(t.tableColumns,function(e,r){return[o("el-table-column",{key:r,attrs:{prop:e.prop,label:e.label,sortable:e.sortable,width:e.width||void 0},scopedSlots:t._u([{key:"default",fn:function(r){return[o("span",[t._v(t._s(t.$decimal(r.row[e.prop])))])]}}],null,!0)})]}),o("el-table-column",{attrs:{prop:"",label:"操作",width:"280",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(o){return t.orgEdit(e.row.id)}}},[t._v("编辑")]),o("el-button",{attrs:{size:"mini",type:"info"},on:{click:function(o){return t.orgAdd(e.row.id)}}},[t._v("添加子机构")]),o("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(o){return t.orgDel(e.row.id)}}},[t._v("删除")])]}}])})],2)],1),o("org-dialog",{attrs:{visible:t.orgDgVisible,orgId:t.orgId,parentId:t.parentId,orgOptions:t.tableOptions},on:{"update:visible":function(e){t.orgDgVisible=e},submitted:t.orgSubmitted}})],1)},i=[],n=o("cebc"),a=o("2f62"),s=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("el-dialog",{staticClass:"org_dialog manage_dialog",attrs:{title:"机构配置",width:"600px",visible:t.dgVisible,"modal-append-to-body":!1},on:{"update:visible":function(e){t.dgVisible=e}}},[o("el-form",{ref:"form",staticClass:"manage_form",attrs:{model:t.form,"label-width":"120px"}},[o("my-input",{attrs:{placeholder:"请输入机构名称",titleName:"机构名称",required:!0,prop:"orgName",width:t.inputWidth,withForm:""},model:{value:t.form.orgName,callback:function(e){t.$set(t.form,"orgName",e)},expression:"form.orgName"}}),o("my-input",{attrs:{placeholder:"请输入机构编码",titleName:"机构编码",required:!0,prop:"orgCode",width:t.inputWidth,withForm:""},model:{value:t.form.orgCode,callback:function(e){t.$set(t.form,"orgCode",e)},expression:"form.orgCode"}}),o("my-input",{attrs:{placeholder:"请输入机构简称",titleName:"机构简称",required:!0,prop:"orgShortName",width:t.inputWidth,withForm:""},model:{value:t.form.orgShortName,callback:function(e){t.$set(t.form,"orgShortName",e)},expression:"form.orgShortName"}}),o("my-input",{attrs:{placeholder:"请输入机构类型",titleName:"机构类型",required:!0,prop:"orgType",width:t.inputWidth,withForm:""},model:{value:t.form.orgType,callback:function(e){t.$set(t.form,"orgType",e)},expression:"form.orgType"}}),o("my-input",{attrs:{placeholder:"请输入机构组织",titleName:"机构组织",required:!1,prop:"orgGroup",width:t.inputWidth,withForm:""},model:{value:t.form.orgGroup,callback:function(e){t.$set(t.form,"orgGroup",e)},expression:"form.orgGroup"}}),o("my-input",{attrs:{placeholder:"请输入机构编号",titleName:"机构编号",required:!1,prop:"orgNo",width:t.inputWidth,withForm:""},model:{value:t.form.orgNo,callback:function(e){t.$set(t.form,"orgNo",e)},expression:"form.orgNo"}}),o("my-input",{attrs:{placeholder:"请输入机构地址",titleName:"机构地址",required:!1,prop:"orgAddress",width:t.inputWidth,withForm:""},model:{value:t.form.orgAddress,callback:function(e){t.$set(t.form,"orgAddress",e)},expression:"form.orgAddress"}}),o("my-select",{attrs:{options:t.orgOptions,placeholder:"请选择所属机构",titleName:"所属机构",required:!0,prop:"parentId",width:t.inputWidth,withForm:""},model:{value:t.form.parentId,callback:function(e){t.$set(t.form,"parentId",e)},expression:"form.parentId"}})],1),o("div",{staticClass:"manage_handle"},[o("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submit()}}},[t._v("提交")]),o("el-button",{on:{click:function(e){return t.cancel()}}},[t._v("取消")])],1)],1)},l=[],d=(o("c5f6"),{id:0,orgAddress:"",orgCode:"",orgGroup:"",orgName:"",orgNo:"",orgShortName:"",orgType:"",parentId:0}),u={name:"orgDialog",props:{visible:Boolean,orgId:Number,parentId:Number,orgOptions:Array},data:function(){return{dgVisible:this.visible,form:{},inputWidth:"300px"}},methods:{getInfo:function(){var t=this;this.$setLoading(!0),this.$dataPost("/org/info",{orgId:this.orgId},function(e){for(var o in t.$setLoading(!1),d)t.$set(t.form,o,e[o]);t.$nextTick(function(){t.$refs.form.clearValidate()})})},setDefaultForm:function(){var t=this;this.form=this.$deepCopy(d),this.form.parentId=this.parentId,this.$nextTick(function(){t.$refs.form.clearValidate()})},submit:function(){var t=this;this.$refs.form.validate(function(e){if(!e){var o=setTimeout(function(){t.$refs.form.clearValidate(),clearTimeout(o)},2e3);return!1}if(t.form.id){var r=t.form;r.orgId=r.id,t.$dataPostXD("/org/update",r,function(e){t.$emit("submitted",e),t.dgVisible=!1})}else{var i=t.form;t.$dataPostXD("/org/add",i,function(e){t.$emit("submitted",e),t.dgVisible=!1})}})},cancel:function(){this.dgVisible=!1}},watch:{visible:{immediate:!0,handler:function(t,e){this.dgVisible=t,1==t&&(this.orgId?this.getInfo():this.setDefaultForm())}},dgVisible:{handler:function(t,e){this.$emit("update:visible",t)}}}},c=u,p=o("2877"),m=Object(p["a"])(c,s,l,!1,null,null,null),f=m.exports,g={name:"manageOrg",data:function(){return{tableList:[],tableListCopy:[],tableOptions:[],searchContent:"",tableColumns:[{prop:"orgName",label:"机构名称",sortable:!0,width:""},{prop:"orgType",label:"机构类别",sortable:!0,width:""},{prop:"orgShortName",label:"机构简称",sortable:!0,width:""}],orgProps:{label:"orgName",children:"dicOrgList"},orgId:0,parentId:0,orgDgVisible:!1}},computed:{},mounted:function(){this.getList(),this.getListAll()},methods:Object(n["a"])({},Object(a["b"])({}),{getList:function(){var t=this;this.$setLoading(!0),this.$dataPost("/org/parentall",{orgName:this.searchContent},function(e){t.$setLoading(!1),e=e||[],t.tableListCopy=e,t.tableList=e})},getListAll:function(){var t=this;this.$dataPost("/org/all",function(e){e=e||[];var o=e.map(function(t){return{title:t.orgName,value:t.id}});o.unshift({title:"无",value:0}),t.tableOptions=o})},search:function(){var t=this.searchContent;this.tableList=this.tableListCopy.filter(function(e){return e.orgName.indexOf(t)>-1})},orgAdd:function(t){this.parentId=t||0,this.orgId=0,this.orgDgVisible=!0},orgEdit:function(t){this.orgId=t,this.orgDgVisible=!0},orgDel:function(t){var e=this;this.orgId=t,this.$confirm("确认删除?","提示",{distinguishCancelAndClose:!0,confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$dataPostXD("/org/delete",{orgId:t},function(t){e.getList(),e.getListAll()})}).catch(function(t){})},orgSubmitted:function(){this.getList()}}),components:{orgDialog:f}},h=g,b=(o("3c2e"),Object(p["a"])(h,r,i,!1,null,"c768693c",null));e["default"]=b.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.
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.
(function(a,b){if("function"==typeof define&&define.amd)define([],b);else if("undefined"!=typeof exports)b();else{b(),a.FileSaver={exports:{}}.exports}})(this,function(){"use strict";function b(a,b){return"undefined"==typeof b?b={autoBom:!1}:"object"!=typeof b&&(console.warn("Deprecated: Expected third argument to be a object"),b={autoBom:!b}),b.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a}function c(b,c,d){var e=new XMLHttpRequest;e.open("GET",b),e.responseType="blob",e.onload=function(){a(e.response,c,d)},e.onerror=function(){console.error("could not download file")},e.send()}function d(a){var b=new XMLHttpRequest;b.open("HEAD",a,!1);try{b.send()}catch(a){}return 200<=b.status&&299>=b.status}function e(a){try{a.dispatchEvent(new MouseEvent("click"))}catch(c){var b=document.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(b)}}var f="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,a=f.saveAs||("object"!=typeof window||window!==f?function(){}:"download"in HTMLAnchorElement.prototype?function(b,g,h){var i=f.URL||f.webkitURL,j=document.createElement("a");g=g||b.name||"download",j.download=g,j.rel="noopener","string"==typeof b?(j.href=b,j.origin===location.origin?e(j):d(j.href)?c(b,g,h):e(j,j.target="_blank")):(j.href=i.createObjectURL(b),setTimeout(function(){i.revokeObjectURL(j.href)},4E4),setTimeout(function(){e(j)},0))}:"msSaveOrOpenBlob"in navigator?function(f,g,h){if(g=g||f.name||"download","string"!=typeof f)navigator.msSaveOrOpenBlob(b(f,h),g);else if(d(f))c(f,g,h);else{var i=document.createElement("a");i.href=f,i.target="_blank",setTimeout(function(){e(i)})}}:function(a,b,d,e){if(e=e||open("","_blank"),e&&(e.document.title=e.document.body.innerText="downloading..."),"string"==typeof a)return c(a,b,d);var g="application/octet-stream"===a.type,h=/constructor/i.test(f.HTMLElement)||f.safari,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||g&&h)&&"object"==typeof FileReader){var j=new FileReader;j.onloadend=function(){var a=j.result;a=i?a:a.replace(/^data:[^;]*;/,"data:attachment/file;"),e?e.location.href=a:location=a,e=null},j.readAsDataURL(a)}else{var k=f.URL||f.webkitURL,l=k.createObjectURL(a);e?e.location=l:location.href=l,e=null,setTimeout(function(){k.revokeObjectURL(l)},4E4)}});f.saveAs=a.saveAs=a,"undefined"!=typeof module&&(module.exports=a)});
//# sourceMappingURL=FileSaver.min.js.map
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
//最终API域名
var domain = "";
//
var baseParams = {
appname: "manager"
};
//状态颜色转换
function setPerColor(val){
if(val>=0 && val <=25){
//return "rgb(249, 130, 130)";
return "#ACAFB9";
}else if(val>25 && val <=50){
//return "rgb(247, 171, 97)";
return "#FF9E34";
}else if(val>50 && val <=75){
//return "rgb(186, 230, 96)";
return '#599FEE';
}else if(val>75 && val <=100){
//return "rgb(146, 197, 239)";
return "#00C6AF";
}
}
\ No newline at end of file
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
if(!Object.keys)Object.keys=function(){var t=Object.prototype.hasOwnProperty,e=!{toString:null}.propertyIsEnumerable("toString"),r=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],i=r.length;return function(n){if(typeof n!=="object"&&typeof n!=="function"||n===null)throw new TypeError("Object.keys called on non-object");var o=[];for(var a in n)if(t.call(n,a))o.push(a);if(e)for(var l=0;l<i;++l)if(t.call(n,r[l]))o.push(r[l]);return o}}();if(!String.prototype.trim)String.prototype.trim=function(){var t=this.replace(/^\s+/,"");for(var e=t.length-1;e>=0;--e)if(!t.charAt(e).match(/^\s/))return t.slice(0,e+1);return""};if(!Array.prototype.forEach)Array.prototype.forEach=function(t){var e=this.length>>>0,r=arguments[1]||void 0;for(var i=0;i<e;++i)if(i in this)r?t.call(r,this[i],i,this):t(this[i],i,this)};if(!Array.prototype.map)Array.prototype.map=function(t){var e=this.length>>>0,r=arguments[1]||void 0,i=new Array(e);for(var n=0;n<e;++n)if(n in this)i[n]=r?t.call(r,this[n],n,this):t(this[n],n,this);return i};if(!Array.prototype.indexOf)Array.prototype.indexOf=function(t){var e=this.length>>>0,r=arguments[1]|0||0;for(r<0&&(r+=e)<0&&(r=0);r<e;++r)if(this[r]===t)return r;return-1};if(!Array.prototype.lastIndexOf)Array.prototype.lastIndexOf=function(t){var e=this.length>>>0,r=e-1;for(;r>=0;--r)if(this[r]===t)return r;return-1};if(!Array.isArray)Array.isArray=function(t){return Object.prototype.toString.call(t)==="[object Array]"};if(!Date.prototype.toISOString)Date.prototype.toISOString=function(){function t(t,e){return("0000000"+t).slice(-(e||2))}return function e(){var e=this.getUTCFullYear(),r="";if(e>9999)r="+"+t(e,6);else if(e<0)r="-"+t(-e,6);else r=t(e,4);return[r,t(this.getUTCMonth()+1),t(this.getUTCDate())].join("-")+"T"+[t(this.getUTCHours()),t(this.getUTCMinutes()),t(this.getUTCSeconds())].join(":")+"."+t(this.getUTCMilliseconds(),3)+"Z"}}();if(typeof ArrayBuffer!=="undefined"&&!ArrayBuffer.prototype.slice)ArrayBuffer.prototype.slice=function(t,e){if(t==null)t=0;if(t<0){t+=this.byteLength;if(t<0)t=0}if(t>=this.byteLength)return new Uint8Array(0);if(e==null)e=this.byteLength;if(e<0){e+=this.byteLength;if(e<0)e=0}if(e>this.byteLength)e=this.byteLength;if(t>e)return new Uint8Array(0);var r=new ArrayBuffer(e-t);var i=new Uint8Array(r);var n=new Uint8Array(this,t,e-t);if(i.set)i.set(n);else while(t<=--e)i[e-t]=n[e];return r};if(typeof Uint8Array!=="undefined"&&!Uint8Array.prototype.slice)Uint8Array.prototype.slice=function(t,e){if(t==null)t=0;if(t<0){t+=this.length;if(t<0)t=0}if(t>=this.length)return new Uint8Array(0);if(e==null)e=this.length;if(e<0){e+=this.length;if(e<0)e=0}if(e>this.length)e=this.length;if(t>e)return new Uint8Array(0);var r=new Uint8Array(e-t);while(t<=--e)r[e-t]=this[e];return r};var IE_SaveFile=function(){try{if(typeof IE_SaveFile_Impl=="undefined")document.write(['<script type="text/vbscript" language="vbscript">','IE_GetProfileAndPath_Key = "HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\\"','Function IE_GetProfileAndPath(key): Set wshell = CreateObject("WScript.Shell"): IE_GetProfileAndPath = wshell.RegRead(IE_GetProfileAndPath_Key & key): IE_GetProfileAndPath = wshell.ExpandEnvironmentStrings("%USERPROFILE%") & "!" & IE_GetProfileAndPath: End Function','Function IE_SaveFile_Impl(FileName, payload): Dim data, plen, i, bit: data = CStr(payload): plen = Len(data): Set fso = CreateObject("Scripting.FileSystemObject"): fso.CreateTextFile FileName, True: Set f = fso.GetFile(FileName): Set stream = f.OpenAsTextStream(2, 0): For i = 1 To plen Step 3: bit = Mid(data, i, 2): stream.write Chr(CLng("&h" & bit)): Next: stream.Close: IE_SaveFile_Impl = True: End Function',"|/script>".replace("|","<")].join("\r\n"));if(typeof IE_SaveFile_Impl=="undefined")return void 0;var t=function(){var t="";try{t=IE_GetProfileAndPath("{374DE290-123F-4565-9164-39C4925E467B}")}catch(e){try{t=IE_GetProfileAndPath("Personal")}catch(e){try{t=IE_GetProfileAndPath("Desktop")}catch(e){throw e}}}var r=t.split("!");DDP=r[1].replace("%USERPROFILE%",r[0]);return function(t){return DDP+"\\"+t}}();function e(t){var e=[];var r=typeof t=="string";for(var i=0;i<t.length;++i)e.push(("00"+(r?t.charCodeAt(i):t[i]).toString(16)).slice(-2));var n=e.join("|");return n}return function(r,i){return IE_SaveFile_Impl(t(i),e(r))}}catch(r){return void 0}}();var IE_LoadFile=function(){try{if(typeof IE_LoadFile_Impl=="undefined")document.write(['<script type="text/vbscript" language="vbscript">','Function IE_LoadFile_Impl(FileName): Dim out(), plen, i, cc: Set fso = CreateObject("Scripting.FileSystemObject"): Set f = fso.GetFile(FileName): Set stream = f.OpenAsTextStream(1, 0): plen = f.Size: ReDim out(plen): For i = 1 To plen Step 1: cc = Hex(Asc(stream.read(1))): If Len(cc) < 2 Then: cc = "0" & cc: End If: out(i) = cc: Next: IE_LoadFile_Impl = Join(out,""): End Function',"|/script>".replace("|","<")].join("\r\n"));if(typeof IE_LoadFile_Impl=="undefined")return void 0;function t(t){var e=[];for(var r=0;r<t.length;r+=2)e.push(String.fromCharCode(parseInt(t.slice(r,r+2),16)));var i=e.join("");return i}return function(e){return t(IE_LoadFile_Impl(e))}}catch(e){return void 0}}();if(typeof window!=="undefined"&&typeof window.getComputedStyle!=="function"){window.getComputedStyle=function(t,e){return this.el=t,this.getPropertyValue=function(e){var r=/(\-([a-z]){1})/g;return e=="float"&&(e="styleFloat"),r.test(e)&&(e=e.replace(r,function(){return arguments[2].toUpperCase()})),t.currentStyle[e]?t.currentStyle[e]:null},this}}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
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