提交代码

dev_xd
姜玉琦 2024-09-09 23:58:23 +08:00
parent 6f7807a7ac
commit ac7ee58db2
21 changed files with 229 additions and 68 deletions

View File

@ -22,6 +22,9 @@ public class SysDept extends BaseEntity
/** 部门ID */ /** 部门ID */
private Long deptId; private Long deptId;
/** 公司编号 */
private Long comId;
/** 父部门ID */ /** 父部门ID */
private Long parentId; private Long parentId;
@ -77,6 +80,14 @@ public class SysDept extends BaseEntity
this.deptId = deptId; this.deptId = deptId;
} }
public Long getComId() {
return comId;
}
public void setComId(Long comId) {
this.comId = comId;
}
public Long getParentId() public Long getParentId()
{ {
return parentId; return parentId;
@ -229,6 +240,7 @@ public class SysDept extends BaseEntity
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("deptId", getDeptId()) .append("deptId", getDeptId())
.append("comId", getComId())
.append("parentId", getParentId()) .append("parentId", getParentId())
.append("ancestors", getAncestors()) .append("ancestors", getAncestors())
.append("deptName", getDeptName()) .append("deptName", getDeptName())

View File

@ -25,6 +25,10 @@ public class SysUser extends BaseEntity
@Excel(name = "用户序号", cellType = ColumnType.NUMERIC, prompt = "用户编号") @Excel(name = "用户序号", cellType = ColumnType.NUMERIC, prompt = "用户编号")
private Long userId; private Long userId;
/** 公司编号 */
@Excel(name = "公司编号", type = Type.IMPORT)
private Long comId;
/** 部门ID */ /** 部门ID */
@Excel(name = "部门编号", type = Type.IMPORT) @Excel(name = "部门编号", type = Type.IMPORT)
private Long deptId; private Long deptId;
@ -49,6 +53,18 @@ public class SysUser extends BaseEntity
@Excel(name = "证件号码") @Excel(name = "证件号码")
private String cardCode; private String cardCode;
/** 用户肖像 */
@Excel(name = "用户肖像")
private String userPicture;
/** 证件正面 */
@Excel(name = "证件正面")
private String cardImgPos;
/** 证件反面 */
@Excel(name = "证件反面")
private String cardImgInv;
/** 用户详情 */ /** 用户详情 */
@Excel(name = "用户详情") @Excel(name = "用户详情")
private String userInfos; private String userInfos;
@ -135,6 +151,14 @@ public class SysUser extends BaseEntity
return userId != null && 1L == userId; return userId != null && 1L == userId;
} }
public Long getComId() {
return comId;
}
public void setComId(Long comId) {
this.comId = comId;
}
public Long getDeptId() public Long getDeptId()
{ {
return deptId; return deptId;
@ -194,6 +218,30 @@ public class SysUser extends BaseEntity
this.cardCode = cardCode; this.cardCode = cardCode;
} }
public String getUserPicture() {
return userPicture;
}
public void setUserPicture(String userPicture) {
this.userPicture = userPicture;
}
public String getCardImgPos() {
return cardImgPos;
}
public void setCardImgPos(String cardImgPos) {
this.cardImgPos = cardImgPos;
}
public String getCardImgInv() {
return cardImgInv;
}
public void setCardImgInv(String cardImgInv) {
this.cardImgInv = cardImgInv;
}
public String getUserInfos() { public String getUserInfos() {
return userInfos; return userInfos;
} }
@ -348,6 +396,7 @@ public class SysUser extends BaseEntity
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("comId", getComId())
.append("userId", getUserId()) .append("userId", getUserId())
.append("deptId", getDeptId()) .append("deptId", getDeptId())
.append("userName", getUserName()) .append("userName", getUserName())
@ -355,6 +404,9 @@ public class SysUser extends BaseEntity
.append("userType", getUserType()) .append("userType", getUserType())
.append("cardType", getCardType()) .append("cardType", getCardType())
.append("cardCode", getCardCode()) .append("cardCode", getCardCode())
.append("userPicture", getUserPicture())
.append("cardImgPos", getCardImgPos())
.append("cardImgInv", getCardImgInv())
.append("userInfos", getUserInfos()) .append("userInfos", getUserInfos())
.append("email", getEmail()) .append("email", getEmail())
.append("phonenumber", getPhonenumber()) .append("phonenumber", getPhonenumber())

View File

@ -39,7 +39,13 @@ public class BaseEntity implements Serializable
private String remark; private String remark;
/** 选中页签 */ /** 选中页签 */
private String activeName; private String activeTags;
/** 选中页签 */
private String activeComId;
/** 选中页签 */
private String activeProjectId;
/** 所属单位 */ /** 所属单位 */
private Long activeDeptId; private Long activeDeptId;
@ -122,12 +128,28 @@ public class BaseEntity implements Serializable
this.params = params; this.params = params;
} }
public String getActiveName() { public String getActiveTags() {
return activeName; return activeTags;
} }
public void setActiveName(String activeName) { public void setActiveTags(String activeTags) {
this.activeName = activeName; this.activeTags = activeTags;
}
public String getActiveComId() {
return activeComId;
}
public void setActiveComId(String activeComId) {
this.activeComId = activeComId;
}
public String getActiveProjectId() {
return activeProjectId;
}
public void setActiveProjectId(String activeProjectId) {
this.activeProjectId = activeProjectId;
} }
public Long getActiveDeptId() { public Long getActiveDeptId() {

View File

@ -18,13 +18,13 @@ public class ProProjectInfoSubdepts extends BaseEntity
/** 主键 */ /** 主键 */
private Long id; private Long id;
/** 单位主键 */ /** 公司主键 */
@Excel(name = "单位主键") @Excel(name = "公司主键")
private Long deptId; private Long comId;
/** 单位名称 */ /** 公司名称 */
@Excel(name = "单位名称") @Excel(name = "公司名称")
private String deptName; private String comName;
/** 项目主键 */ /** 项目主键 */
@Excel(name = "项目主键") @Excel(name = "项目主键")
@ -91,16 +91,16 @@ public class ProProjectInfoSubdepts extends BaseEntity
{ {
return id; return id;
} }
public void setDeptId(Long deptId)
{ public Long getComId() {
this.deptId = deptId; return comId;
} }
public Long getDeptId() public void setComId(Long comId) {
{ this.comId = comId;
return deptId;
} }
public void setProjectId(Long projectId)
public void setProjectId(Long projectId)
{ {
this.projectId = projectId; this.projectId = projectId;
} }
@ -218,12 +218,12 @@ public class ProProjectInfoSubdepts extends BaseEntity
return isDel; return isDel;
} }
public String getDeptName() { public String getComName() {
return deptName; return comName;
} }
public void setDeptName(String deptName) { public void setComName(String comName) {
this.deptName = deptName; this.comName = comName;
} }
public String getProjectName() { public String getProjectName() {
@ -238,7 +238,7 @@ public class ProProjectInfoSubdepts extends BaseEntity
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId()) .append("id", getId())
.append("deptId", getDeptId()) .append("comId", getComId())
.append("projectId", getProjectId()) .append("projectId", getProjectId())
.append("subDeptId", getSubDeptId()) .append("subDeptId", getSubDeptId())
.append("subDeptType", getSubDeptType()) .append("subDeptType", getSubDeptType())

View File

@ -18,6 +18,10 @@ public class ProProjectInfoSubdeptsGroup extends BaseEntity
/** 主键 */ /** 主键 */
private Long id; private Long id;
/** 公司主键 */
@Excel(name = "公司主键")
private Long comId;
/** 项目主键 */ /** 项目主键 */
@Excel(name = "项目主键") @Excel(name = "项目主键")
private Long projectId; private Long projectId;
@ -30,8 +34,8 @@ public class ProProjectInfoSubdeptsGroup extends BaseEntity
@Excel(name = "分包单位") @Excel(name = "分包单位")
private Long subDeptId; private Long subDeptId;
/** 分包单位类型 */ /** 单位类型 */
@Excel(name = "分包单位类型") @Excel(name = "单位类型")
private String subDeptType; private String subDeptType;
/** 分包单位名称 */ /** 分包单位名称 */
@ -95,7 +99,16 @@ public class ProProjectInfoSubdeptsGroup extends BaseEntity
{ {
return id; return id;
} }
public void setProjectId(Long projectId)
public Long getComId() {
return comId;
}
public void setComId(Long comId) {
this.comId = comId;
}
public void setProjectId(Long projectId)
{ {
this.projectId = projectId; this.projectId = projectId;
} }
@ -252,6 +265,7 @@ public class ProProjectInfoSubdeptsGroup extends BaseEntity
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId()) .append("id", getId())
.append("comId", getComId())
.append("projectId", getProjectId()) .append("projectId", getProjectId())
.append("subDeptId", getSubDeptId()) .append("subDeptId", getSubDeptId())
.append("subDeptType", getSubDeptType()) .append("subDeptType", getSubDeptType())

View File

@ -21,6 +21,10 @@ public class ProProjectInfoSubdeptsUsers extends BaseEntity
/** 主键 */ /** 主键 */
private Long id; private Long id;
/** 公司主键 */
@Excel(name = "公司主键")
private Long comId;
/** 项目主键 */ /** 项目主键 */
@Excel(name = "项目主键") @Excel(name = "项目主键")
private Long projectId; private Long projectId;
@ -33,6 +37,10 @@ public class ProProjectInfoSubdeptsUsers extends BaseEntity
@Excel(name = "分包单位") @Excel(name = "分包单位")
private Long subDeptId; private Long subDeptId;
/** 单位类型 */
@Excel(name = "单位类型")
private String subDeptType;
/** 分包单位名称 */ /** 分包单位名称 */
@Excel(name = "分包单位名称") @Excel(name = "分包单位名称")
private String subDeptName; private String subDeptName;
@ -41,6 +49,10 @@ public class ProProjectInfoSubdeptsUsers extends BaseEntity
@Excel(name = "用户主键") @Excel(name = "用户主键")
private Long userId; private Long userId;
/** 工人类型 */
@Excel(name = "工人类型")
private String userType;
/** 工人姓名 */ /** 工人姓名 */
@Excel(name = "工人姓名") @Excel(name = "工人姓名")
private String userName; private String userName;
@ -265,6 +277,30 @@ public class ProProjectInfoSubdeptsUsers extends BaseEntity
this.projectName = projectName; this.projectName = projectName;
} }
public Long getComId() {
return comId;
}
public void setComId(Long comId) {
this.comId = comId;
}
public String getSubDeptType() {
return subDeptType;
}
public void setSubDeptType(String subDeptType) {
this.subDeptType = subDeptType;
}
public String getUserType() {
return userType;
}
public void setUserType(String userType) {
this.userType = userType;
}
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)

View File

@ -45,8 +45,8 @@
<if test='nowRole == "5" or nowRole == "6" or nowRole == "7"'> and fa.businessKey in (select DISTINCT projectId from sur_project_unit_info where unitId=#{nowDept} and del_flag=0)</if> <if test='nowRole == "5" or nowRole == "6" or nowRole == "7"'> and fa.businessKey in (select DISTINCT projectId from sur_project_unit_info where unitId=#{nowDept} and del_flag=0)</if>
<!--普通用户查询项目人员--> <!--普通用户查询项目人员-->
<if test='nowRole == "15" or nowRole == "16" or nowRole == "17" or nowRole == "99"'> and fa.startUserId = #{nowUser}</if> <if test='nowRole == "15" or nowRole == "16" or nowRole == "17" or nowRole == "99"'> and fa.startUserId = #{nowUser}</if>
<if test='activeName == "await"'> and fa.finishTime is null</if> <if test='activeTags == "await"'> and fa.finishTime is null</if>
<if test='activeName == "finished"'> and fa.finishTime is not null</if> <if test='activeTags == "finished"'> and fa.finishTime is not null</if>
</where> </where>
order by fa.createTime desc order by fa.createTime desc
</select> </select>

View File

@ -6,6 +6,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<resultMap type="ProProjectInfoSubdeptsGroup" id="ProProjectInfoSubdeptsGroupResult"> <resultMap type="ProProjectInfoSubdeptsGroup" id="ProProjectInfoSubdeptsGroupResult">
<result property="id" column="id" /> <result property="id" column="id" />
<result property="comId" column="com_id" />
<result property="projectId" column="project_id" /> <result property="projectId" column="project_id" />
<result property="projectName" column="project_name" /> <result property="projectName" column="project_name" />
<result property="subDeptId" column="sub_dept_id" /> <result property="subDeptId" column="sub_dept_id" />
@ -31,7 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap> </resultMap>
<sql id="selectProProjectInfoSubdeptsGroupVo"> <sql id="selectProProjectInfoSubdeptsGroupVo">
select psg.id, psg.project_id, pi.project_name, psg.sub_dept_id, psg.sub_dept_type, psg.sub_dept_name, psg.sub_dept_code, psg.group_name, psg.group_code, psg.craft_type, psg.craft_post, psg.group_leader_name, psg.group_leader_code, psg.group_leader_phone, psg.use_status, psg.approve_status, psg.qr_code, psg.is_del, psg.create_by, psg.create_time, psg.update_by, psg.update_time, psg.remark from pro_project_info_subdepts_group psg select psg.id, psg.com_id, psg.project_id, pi.project_name, psg.sub_dept_id, psg.sub_dept_type, psg.sub_dept_name, psg.sub_dept_code, psg.group_name, psg.group_code, psg.craft_type, psg.craft_post, psg.group_leader_name, psg.group_leader_code, psg.group_leader_phone, psg.use_status, psg.approve_status, psg.qr_code, psg.is_del, psg.create_by, psg.create_time, psg.update_by, psg.update_time, psg.remark from pro_project_info_subdepts_group psg
left join pro_project_info pi on pi.id = psg.project_id left join pro_project_info pi on pi.id = psg.project_id
left join sys_dept sd on sd.dept_id = pi.dept_id left join sys_dept sd on sd.dept_id = pi.dept_id
</sql> </sql>
@ -39,7 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectProProjectInfoSubdeptsGroupList" parameterType="ProProjectInfoSubdeptsGroup" resultMap="ProProjectInfoSubdeptsGroupResult"> <select id="selectProProjectInfoSubdeptsGroupList" parameterType="ProProjectInfoSubdeptsGroup" resultMap="ProProjectInfoSubdeptsGroupResult">
<include refid="selectProProjectInfoSubdeptsGroupVo"/> <include refid="selectProProjectInfoSubdeptsGroupVo"/>
<where> <where>
<if test="activeDeptId != null "> and sd.dept_id = #{activeDeptId}</if> <if test="comId != null "> and psg.com_id = #{comId}</if>
<if test="projectId != null "> and psg.project_id = #{projectId}</if> <if test="projectId != null "> and psg.project_id = #{projectId}</if>
<if test="projectName != null and projectName != ''"> and pi.project_name like concat('%', #{projectName}, '%')</if> <if test="projectName != null and projectName != ''"> and pi.project_name like concat('%', #{projectName}, '%')</if>
<if test="subDeptId != null "> and psg.sub_dept_id = #{subDeptId}</if> <if test="subDeptId != null "> and psg.sub_dept_id = #{subDeptId}</if>
@ -67,6 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<insert id="insertProProjectInfoSubdeptsGroup" parameterType="ProProjectInfoSubdeptsGroup" useGeneratedKeys="true" keyProperty="id"> <insert id="insertProProjectInfoSubdeptsGroup" parameterType="ProProjectInfoSubdeptsGroup" useGeneratedKeys="true" keyProperty="id">
insert into pro_project_info_subdepts_group insert into pro_project_info_subdepts_group
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="comId != null">com_id,</if>
<if test="projectId != null">project_id,</if> <if test="projectId != null">project_id,</if>
<if test="subDeptId != null">sub_dept_id,</if> <if test="subDeptId != null">sub_dept_id,</if>
<if test="subDeptType != null">sub_dept_type,</if> <if test="subDeptType != null">sub_dept_type,</if>
@ -90,6 +92,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="remark != null">remark,</if> <if test="remark != null">remark,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="comId != null">#{comId},</if>
<if test="projectId != null">#{projectId},</if> <if test="projectId != null">#{projectId},</if>
<if test="subDeptId != null">#{subDeptId},</if> <if test="subDeptId != null">#{subDeptId},</if>
<if test="subDeptType != null">#{subDeptType},</if> <if test="subDeptType != null">#{subDeptType},</if>
@ -117,6 +120,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<update id="updateProProjectInfoSubdeptsGroup" parameterType="ProProjectInfoSubdeptsGroup"> <update id="updateProProjectInfoSubdeptsGroup" parameterType="ProProjectInfoSubdeptsGroup">
update pro_project_info_subdepts_group update pro_project_info_subdepts_group
<trim prefix="SET" suffixOverrides=","> <trim prefix="SET" suffixOverrides=",">
<if test="comId != null">com_id = #{comId},</if>
<if test="projectId != null">project_id = #{projectId},</if> <if test="projectId != null">project_id = #{projectId},</if>
<if test="subDeptId != null">sub_dept_id = #{subDeptId},</if> <if test="subDeptId != null">sub_dept_id = #{subDeptId},</if>
<if test="subDeptType != null">sub_dept_type = #{subDeptType},</if> <if test="subDeptType != null">sub_dept_type = #{subDeptType},</if>

View File

@ -6,8 +6,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<resultMap type="ProProjectInfoSubdepts" id="ProProjectInfoSubdeptsResult"> <resultMap type="ProProjectInfoSubdepts" id="ProProjectInfoSubdeptsResult">
<result property="id" column="id" /> <result property="id" column="id" />
<result property="deptId" column="dept_id" /> <result property="comId" column="com_id" />
<result property="deptName" column="dept_name" /> <result property="comName" column="com_name" />
<result property="projectId" column="project_id" /> <result property="projectId" column="project_id" />
<result property="projectName" column="project_name" /> <result property="projectName" column="project_name" />
<result property="subDeptId" column="sub_dept_id" /> <result property="subDeptId" column="sub_dept_id" />
@ -30,7 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap> </resultMap>
<sql id="selectProProjectInfoSubdeptsVo"> <sql id="selectProProjectInfoSubdeptsVo">
select ps.id, dept_id, sd.dept_name, ps.project_id, pi.project_name, ps.sub_dept_id, ps.sub_dept_type, ps.sub_dept_name, ps.sub_dept_code, ps.sub_dept_leader_id, ps.sub_dept_leader_name, ps.sub_dept_leader_code, ps.sub_dept_leader_phone, ps.use_status, ps.approve_status, ps.qr_code, ps.is_del, ps.create_by, ps.create_time, ps.update_by, ps.update_time, ps.remark from pro_project_info_subdepts ps select ps.id, ps.com_id, sd.dept_name, ps.project_id, pi.project_name, ps.sub_dept_id, ps.sub_dept_type, ps.sub_dept_name, ps.sub_dept_code, ps.sub_dept_leader_id, ps.sub_dept_leader_name, ps.sub_dept_leader_code, ps.sub_dept_leader_phone, ps.use_status, ps.approve_status, ps.qr_code, ps.is_del, ps.create_by, ps.create_time, ps.update_by, ps.update_time, ps.remark from pro_project_info_subdepts ps
left join pro_project_info pi on pi.id = ps.project_id left join pro_project_info pi on pi.id = ps.project_id
left join sys_dept sd on sd.dept_id = pi.dept_id left join sys_dept sd on sd.dept_id = pi.dept_id
</sql> </sql>
@ -38,8 +38,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectProProjectInfoSubdeptsList" parameterType="ProProjectInfoSubdepts" resultMap="ProProjectInfoSubdeptsResult"> <select id="selectProProjectInfoSubdeptsList" parameterType="ProProjectInfoSubdepts" resultMap="ProProjectInfoSubdeptsResult">
<include refid="selectProProjectInfoSubdeptsVo"/> <include refid="selectProProjectInfoSubdeptsVo"/>
<where> <where>
<if test="deptId != null "> and ps.dept_id = #{deptId}</if> <if test="comId != null "> and ps.com_id = #{comId}</if>
<if test="activeDeptId != null "> and sd.dept_id = #{activeDeptId}</if>
<if test="projectId != null "> and ps.project_id = #{projectId}</if> <if test="projectId != null "> and ps.project_id = #{projectId}</if>
<if test="projectName != null and projectName != ''"> and pi.project_name like concat('%', #{projectName}, '%')</if> <if test="projectName != null and projectName != ''"> and pi.project_name like concat('%', #{projectName}, '%')</if>
<if test="subDeptId != null "> and ps.sub_dept_id = #{subDeptId}</if> <if test="subDeptId != null "> and ps.sub_dept_id = #{subDeptId}</if>
@ -65,7 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<insert id="insertProProjectInfoSubdepts" parameterType="ProProjectInfoSubdepts" useGeneratedKeys="true" keyProperty="id"> <insert id="insertProProjectInfoSubdepts" parameterType="ProProjectInfoSubdepts" useGeneratedKeys="true" keyProperty="id">
insert into pro_project_info_subdepts insert into pro_project_info_subdepts
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="deptId != null">dept_id,</if> <if test="comId != null">com_id,</if>
<if test="projectId != null">project_id,</if> <if test="projectId != null">project_id,</if>
<if test="subDeptId != null">sub_dept_id,</if> <if test="subDeptId != null">sub_dept_id,</if>
<if test="subDeptType != null">sub_dept_type,</if> <if test="subDeptType != null">sub_dept_type,</if>
@ -86,7 +85,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="remark != null">remark,</if> <if test="remark != null">remark,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="deptId != null">#{deptId},</if> <if test="comId != null">#{comId},</if>
<if test="projectId != null">#{projectId},</if> <if test="projectId != null">#{projectId},</if>
<if test="subDeptId != null">#{subDeptId},</if> <if test="subDeptId != null">#{subDeptId},</if>
<if test="subDeptType != null">#{subDeptType},</if> <if test="subDeptType != null">#{subDeptType},</if>
@ -111,7 +110,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<update id="updateProProjectInfoSubdepts" parameterType="ProProjectInfoSubdepts"> <update id="updateProProjectInfoSubdepts" parameterType="ProProjectInfoSubdepts">
update pro_project_info_subdepts update pro_project_info_subdepts
<trim prefix="SET" suffixOverrides=","> <trim prefix="SET" suffixOverrides=",">
<if test="deptId != null">dept_id = #{deptId},</if> <if test="comId != null">com_id = #{comId},</if>
<if test="projectId != null">project_id = #{projectId},</if> <if test="projectId != null">project_id = #{projectId},</if>
<if test="subDeptId != null">sub_dept_id = #{subDeptId},</if> <if test="subDeptId != null">sub_dept_id = #{subDeptId},</if>
<if test="subDeptType != null">sub_dept_type = #{subDeptType},</if> <if test="subDeptType != null">sub_dept_type = #{subDeptType},</if>

View File

@ -6,11 +6,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<resultMap type="ProProjectInfoSubdeptsUsers" id="ProProjectInfoSubdeptsUsersResult"> <resultMap type="ProProjectInfoSubdeptsUsers" id="ProProjectInfoSubdeptsUsersResult">
<result property="id" column="id" /> <result property="id" column="id" />
<result property="comId" column="com_id" />
<result property="projectId" column="project_id" /> <result property="projectId" column="project_id" />
<result property="projectName" column="project_name" /> <result property="projectName" column="project_name" />
<result property="subDeptId" column="sub_dept_id" /> <result property="subDeptId" column="sub_dept_id" />
<result property="subDeptType" column="sub_dept_type" />
<result property="subDeptName" column="sub_dept_name" /> <result property="subDeptName" column="sub_dept_name" />
<result property="userId" column="user_id" /> <result property="userId" column="user_id" />
<result property="userType" column="user_type" />
<result property="userName" column="user_name" /> <result property="userName" column="user_name" />
<result property="craftType" column="craft_type" /> <result property="craftType" column="craft_type" />
<result property="craftPost" column="craft_post" /> <result property="craftPost" column="craft_post" />
@ -32,7 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap> </resultMap>
<sql id="selectProProjectInfoSubdeptsUsersVo"> <sql id="selectProProjectInfoSubdeptsUsersVo">
select psu.id, psu.project_id, pi.project_name, psu.sub_dept_id, psu.sub_dept_name, psu.user_id, psu.user_name, psu.craft_type, psu.craft_post, psu.edu_status, psu.edu_file_path, psu.edu_sign_path, psu.edu_date, psu.approve_status, psu.use_status, psu.sub_step, psu.illness_status, psu.sup_illness_status, psu.is_del, psu.create_by, psu.create_time, psu.update_by, psu.update_time, psu.remark from pro_project_info_subdepts_users psu select psu.id, psu.com_id, psu.project_id, pi.project_name, psu.sub_dept_id, psu.sub_dept_type, psu.sub_dept_name, psu.user_id, psu.user_type, psu.user_name, psu.craft_type, psu.craft_post, psu.edu_status, psu.edu_file_path, psu.edu_sign_path, psu.edu_date, psu.approve_status, psu.use_status, psu.sub_step, psu.illness_status, psu.sup_illness_status, psu.is_del, psu.create_by, psu.create_time, psu.update_by, psu.update_time, psu.remark from pro_project_info_subdepts_users psu
left join pro_project_info pi on pi.id = psu.project_id left join pro_project_info pi on pi.id = psu.project_id
left join sys_dept sd on sd.dept_id = pi.dept_id left join sys_dept sd on sd.dept_id = pi.dept_id
</sql> </sql>
@ -40,7 +43,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectProProjectInfoSubdeptsUsersList" parameterType="ProProjectInfoSubdeptsUsers" resultMap="ProProjectInfoSubdeptsUsersResult"> <select id="selectProProjectInfoSubdeptsUsersList" parameterType="ProProjectInfoSubdeptsUsers" resultMap="ProProjectInfoSubdeptsUsersResult">
<include refid="selectProProjectInfoSubdeptsUsersVo"/> <include refid="selectProProjectInfoSubdeptsUsersVo"/>
<where> <where>
<if test="activeDeptId != null "> and sd.dept_id = #{activeDeptId}</if> <if test="comId != null "> and psu.com_id = #{comId}</if>
<if test="projectId != null "> and psu.project_id = #{projectId}</if> <if test="projectId != null "> and psu.project_id = #{projectId}</if>
<if test="projectName != null and projectName != ''"> and pi.project_name like concat('%', #{projectName}, '%')</if> <if test="projectName != null and projectName != ''"> and pi.project_name like concat('%', #{projectName}, '%')</if>
<if test="subDeptId != null "> and psu.sub_dept_id = #{subDeptId}</if> <if test="subDeptId != null "> and psu.sub_dept_id = #{subDeptId}</if>
@ -68,6 +71,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<insert id="insertProProjectInfoSubdeptsUsers" parameterType="ProProjectInfoSubdeptsUsers" useGeneratedKeys="true" keyProperty="id"> <insert id="insertProProjectInfoSubdeptsUsers" parameterType="ProProjectInfoSubdeptsUsers" useGeneratedKeys="true" keyProperty="id">
insert into pro_project_info_subdepts_users insert into pro_project_info_subdepts_users
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="comId != null">com_id,</if>
<if test="projectId != null">project_id,</if> <if test="projectId != null">project_id,</if>
<if test="subDeptId != null">sub_dept_id,</if> <if test="subDeptId != null">sub_dept_id,</if>
<if test="subDeptName != null">sub_dept_name,</if> <if test="subDeptName != null">sub_dept_name,</if>
@ -92,6 +96,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="remark != null">remark,</if> <if test="remark != null">remark,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="comId != null">#{comId},</if>
<if test="projectId != null">#{projectId},</if> <if test="projectId != null">#{projectId},</if>
<if test="subDeptId != null">#{subDeptId},</if> <if test="subDeptId != null">#{subDeptId},</if>
<if test="subDeptName != null">#{subDeptName},</if> <if test="subDeptName != null">#{subDeptName},</if>
@ -120,6 +125,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<update id="updateProProjectInfoSubdeptsUsers" parameterType="ProProjectInfoSubdeptsUsers"> <update id="updateProProjectInfoSubdeptsUsers" parameterType="ProProjectInfoSubdeptsUsers">
update pro_project_info_subdepts_users update pro_project_info_subdepts_users
<trim prefix="SET" suffixOverrides=","> <trim prefix="SET" suffixOverrides=",">
<if test="comId != null">com_id = #{comId},</if>
<if test="projectId != null">project_id = #{projectId},</if> <if test="projectId != null">project_id = #{projectId},</if>
<if test="subDeptId != null">sub_dept_id = #{subDeptId},</if> <if test="subDeptId != null">sub_dept_id = #{subDeptId},</if>
<if test="subDeptName != null">sub_dept_name = #{subDeptName},</if> <if test="subDeptName != null">sub_dept_name = #{subDeptName},</if>

View File

@ -43,9 +43,9 @@ public class FlowBusinessKeyServiceImpl implements IFlowBusinessKeyService {
*/ */
@Override @Override
public Map<String,Object> quueryCount(FlowTaskEntity flowTaskEntity) { public Map<String,Object> quueryCount(FlowTaskEntity flowTaskEntity) {
flowTaskEntity.setActiveName("await"); flowTaskEntity.setActiveTags("await");
int awaitSize = flowBusinessKeyMapper.selectAllFlowTaskByParams(flowTaskEntity).size(); int awaitSize = flowBusinessKeyMapper.selectAllFlowTaskByParams(flowTaskEntity).size();
flowTaskEntity.setActiveName("finished"); flowTaskEntity.setActiveTags("finished");
int finishedSize = flowBusinessKeyMapper.selectAllFlowTaskByParams(flowTaskEntity).size(); int finishedSize = flowBusinessKeyMapper.selectAllFlowTaskByParams(flowTaskEntity).size();
Map<String, Object> dataMap = new HashMap<>(); Map<String, Object> dataMap = new HashMap<>();
dataMap.put("await",awaitSize); dataMap.put("await",awaitSize);

View File

@ -6,12 +6,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<resultMap type="SysUser" id="SysUserResult"> <resultMap type="SysUser" id="SysUserResult">
<id property="userId" column="user_id" /> <id property="userId" column="user_id" />
<id property="comId" column="com_id" />
<result property="deptId" column="dept_id" /> <result property="deptId" column="dept_id" />
<result property="userName" column="user_name" /> <result property="userName" column="user_name" />
<result property="nickName" column="nick_name" /> <result property="nickName" column="nick_name" />
<result property="userType" column="user_type" /> <result property="userType" column="user_type" />
<result property="cardType" column="card_type" /> <result property="cardType" column="card_type" />
<result property="cardCode" column="card_code" /> <result property="cardCode" column="card_code" />
<result property="userPicture" column="user_picture" />
<result property="cardImgPos" column="card_img_pos" />
<result property="cardImgInv" column="card_img_inv" />
<result property="userInfos" column="user_infos" /> <result property="userInfos" column="user_infos" />
<result property="email" column="email" /> <result property="email" column="email" />
<result property="phonenumber" column="phonenumber" /> <result property="phonenumber" column="phonenumber" />
@ -54,7 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap> </resultMap>
<sql id="selectUserVo"> <sql id="selectUserVo">
select u.user_id, u.dept_id, u.user_name, u.nick_name, u.user_type, u.card_type, u.card_code, u.user_infos, u.email, u.avatar, u.phonenumber, u.password, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, select u.user_id, u.com_id, u.dept_id, u.user_name, u.nick_name, u.user_type, u.card_type, u.card_code, u.user_picture, u.card_img_pos, u.card_img_inv, u.user_infos, u.email, u.avatar, u.phonenumber, u.password, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark,
d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.dept_short_name, d.dept_code, d.dept_type, d.order_num, d.leader, d.status as dept_status, d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.dept_short_name, d.dept_code, d.dept_type, d.order_num, d.leader, d.status as dept_status,
r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.status as role_status r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.status as role_status
from sys_user u from sys_user u
@ -64,7 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</sql> </sql>
<select id="selectUserList" parameterType="SysUser" resultMap="SysUserResult"> <select id="selectUserList" parameterType="SysUser" resultMap="SysUserResult">
select u.user_id, u.dept_id, u.nick_name, u.user_name, u.user_type, u.card_type, u.card_code, u.user_infos, u.email, u.avatar, u.phonenumber, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, d.dept_name, d.leader from sys_user u select u.user_id, u.com_id, u.dept_id, u.nick_name, u.user_name, u.user_type, u.card_type, u.card_code, u.user_picture, u.card_img_pos, u.card_img_inv, u.user_infos, u.email, u.avatar, u.phonenumber, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, d.dept_name, d.leader from sys_user u
left join sys_dept d on u.dept_id = d.dept_id left join sys_dept d on u.dept_id = d.dept_id
where u.del_flag = '0' where u.del_flag = '0'
<if test="userId != null and userId != 0"> <if test="userId != null and userId != 0">
@ -102,7 +106,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select> </select>
<select id="selectAllocatedList" parameterType="SysUser" resultMap="SysUserResult"> <select id="selectAllocatedList" parameterType="SysUser" resultMap="SysUserResult">
select distinct u.user_id, u.dept_id, u.user_name, u.nick_name, u.user_type, u.card_type, u.card_code, u.email, u.phonenumber, u.status, u.create_time select distinct u.user_id, u.com_id, u.dept_id, u.user_name, u.nick_name, u.user_type, u.card_type, u.card_code, u.email, u.phonenumber, u.status, u.create_time
from sys_user u from sys_user u
left join sys_dept d on u.dept_id = d.dept_id left join sys_dept d on u.dept_id = d.dept_id
left join sys_user_role ur on u.user_id = ur.user_id left join sys_user_role ur on u.user_id = ur.user_id
@ -119,7 +123,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select> </select>
<select id="selectUnallocatedList" parameterType="SysUser" resultMap="SysUserResult"> <select id="selectUnallocatedList" parameterType="SysUser" resultMap="SysUserResult">
select distinct u.user_id, u.dept_id, u.user_name, u.nick_name, u.user_type, u.card_type, u.card_code, u.email, u.phonenumber, u.status, u.create_time select distinct u.user_id, u.com_id, u.dept_id, u.user_name, u.nick_name, u.user_type, u.card_type, u.card_code, u.email, u.phonenumber, u.status, u.create_time
from sys_user u from sys_user u
left join sys_dept d on u.dept_id = d.dept_id left join sys_dept d on u.dept_id = d.dept_id
left join sys_user_role ur on u.user_id = ur.user_id left join sys_user_role ur on u.user_id = ur.user_id
@ -165,12 +169,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<insert id="insertUser" parameterType="SysUser" useGeneratedKeys="true" keyProperty="userId"> <insert id="insertUser" parameterType="SysUser" useGeneratedKeys="true" keyProperty="userId">
insert into sys_user( insert into sys_user(
<if test="userId != null and userId != 0">user_id,</if> <if test="userId != null and userId != 0">user_id,</if>
<if test="comId != null and comId != 0">com_id,</if>
<if test="deptId != null and deptId != 0">dept_id,</if> <if test="deptId != null and deptId != 0">dept_id,</if>
<if test="userName != null and userName != ''">user_name,</if> <if test="userName != null and userName != ''">user_name,</if>
<if test="nickName != null and nickName != ''">nick_name,</if> <if test="nickName != null and nickName != ''">nick_name,</if>
<if test="userType != null and userType != ''">user_type,</if> <if test="userType != null and userType != ''">user_type,</if>
<if test="cardType != null and cardType != ''">card_type,</if> <if test="cardType != null and cardType != ''">card_type,</if>
<if test="cardCode != null and cardCode != ''">card_code,</if> <if test="cardCode != null and cardCode != ''">card_code,</if>
<if test="userPicture != null and userPicture != ''">user_picture,</if>
<if test="cardImgPos != null and cardImgPos != ''">card_img_pos,</if>
<if test="cardImgInv != null and cardImgInv != ''">card_img_inv,</if>
<if test="userInfos != null and userInfos != ''">user_infos,</if> <if test="userInfos != null and userInfos != ''">user_infos,</if>
<if test="email != null and email != ''">email,</if> <if test="email != null and email != ''">email,</if>
<if test="avatar != null and avatar != ''">avatar,</if> <if test="avatar != null and avatar != ''">avatar,</if>
@ -182,13 +190,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="remark != null and remark != ''">remark,</if> <if test="remark != null and remark != ''">remark,</if>
create_time create_time
)values( )values(
<if test="userId != null and userId != ''">#{userId},</if> <if test="userId != null and userId != 0">#{userId},</if>
<if test="deptId != null and deptId != ''">#{deptId},</if> <if test="comId != null and comId != 0">#{comId},</if>
<if test="deptId != null and deptId != 0">#{deptId},</if>
<if test="userName != null and userName != ''">#{userName},</if> <if test="userName != null and userName != ''">#{userName},</if>
<if test="nickName != null and nickName != ''">#{nickName},</if> <if test="nickName != null and nickName != ''">#{nickName},</if>
<if test="userType != null and userType != ''">#{userType},</if> <if test="userType != null and userType != ''">#{userType},</if>
<if test="cardType != null and cardType != ''">#{cardType},</if> <if test="cardType != null and cardType != ''">#{cardType},</if>
<if test="cardCode != null and cardCode != ''">#{cardCode},</if> <if test="cardCode != null and cardCode != ''">#{cardCode},</if>
<if test="userPicture != null and userPicture != ''">#{userPicture},</if>
<if test="cardImgPos != null and cardImgPos != ''">#{cardImgPos},</if>
<if test="cardImgInv != null and cardImgInv != ''">#{cardImgInv},</if>
<if test="userInfos != null and userInfos != ''">#{userInfos},</if> <if test="userInfos != null and userInfos != ''">#{userInfos},</if>
<if test="email != null and email != ''">#{email},</if> <if test="email != null and email != ''">#{email},</if>
<if test="avatar != null and avatar != ''">#{avatar},</if> <if test="avatar != null and avatar != ''">#{avatar},</if>
@ -205,12 +217,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<update id="updateUser" parameterType="SysUser"> <update id="updateUser" parameterType="SysUser">
update sys_user update sys_user
<set> <set>
<if test="comId != null and comId != 0">com_id = #{comId},</if>
<if test="deptId != null and deptId != 0">dept_id = #{deptId},</if> <if test="deptId != null and deptId != 0">dept_id = #{deptId},</if>
<if test="userName != null and userName != ''">user_name = #{userName},</if> <if test="userName != null and userName != ''">user_name = #{userName},</if>
<if test="nickName != null and nickName != ''">nick_name = #{nickName},</if> <if test="nickName != null and nickName != ''">nick_name = #{nickName},</if>
<if test="userType != null and userType != ''">user_type = #{userType},</if> <if test="userType != null and userType != ''">user_type = #{userType},</if>
<if test="cardType != null and cardType != ''">card_type = #{cardType},</if> <if test="cardType != null and cardType != ''">card_type = #{cardType},</if>
<if test="cardCode != null and cardCode != ''">card_code = #{cardCode},</if> <if test="cardCode != null and cardCode != ''">card_code = #{cardCode},</if>
<if test="userPicture != null and userPicture != ''">user_picture = #{userPicture},</if>
<if test="cardImgPos != null and cardImgPos != ''">card_img_pos = #{cardImgPos},</if>
<if test="cardImgInv != null and cardImgInv != ''">card_img_inv = #{cardImgInv},</if>
<if test="userInfos != null and userInfos != ''">user_infos = #{userInfos},</if> <if test="userInfos != null and userInfos != ''">user_infos = #{userInfos},</if>
<if test="email != null ">email = #{email},</if> <if test="email != null ">email = #{email},</if>
<if test="phonenumber != null ">phonenumber = #{phonenumber},</if> <if test="phonenumber != null ">phonenumber = #{phonenumber},</if>
@ -252,7 +268,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<!--根据用户编号查询入场项目信息--> <!--根据用户编号查询入场项目信息-->
<select id="selectProjectsByUserId" parameterType="Long" resultType="Map"> <select id="selectProjectsByUserId" parameterType="Long" resultType="Map">
select * from pro_project_info_users where user_id=#{userId} and is_del=0 and use_status=1 order by create_time desc select * from pro_project_info_users where user_id=#{userId} and is_del=0 and use_status=1 order by sort_by asc
</select> </select>
</mapper> </mapper>

View File

@ -6,7 +6,7 @@
<!-- <el-button type="danger" icon="Delete" @click="changePanel"/>--> <!-- <el-button type="danger" icon="Delete" @click="changePanel"/>-->
</div> </div>
</template> </template>
<el-collapse v-model="activeName" > <el-collapse v-model="activeTags" >
<!-- 常规信息 --> <!-- 常规信息 -->
<el-collapse-item name="common"> <el-collapse-item name="common">
<template #title><el-icon><InfoFilled/> </el-icon> </template> <template #title><el-icon><InfoFilled/> </el-icon> </template>
@ -80,7 +80,7 @@ const modelerStore = useModelerStore()
const { proxy } = getCurrentInstance(); const { proxy } = getCurrentInstance();
const activeName = ref('common'); const activeTags = ref('common');
const executionListenerCount = ref(0); const executionListenerCount = ref(0);
const taskListenerCount = ref(0); const taskListenerCount = ref(0);
const elementId = ref(""); const elementId = ref("");
@ -123,7 +123,7 @@ const { formData, rules } = toRefs(data);
// //
watch(elementId, newVal => { watch(elementId, newVal => {
activeName.value = "common"; activeTags.value = "common";
} }
) )

View File

@ -7,7 +7,7 @@
<el-button style="float: right;" size="small" type="danger" @click="goBack"></el-button> <el-button style="float: right;" size="small" type="danger" @click="goBack"></el-button>
</div> </div>
</template> </template>
<el-tabs tab-position="top" v-model="activeName" @tab-click="handleClick"> <el-tabs tab-position="top" v-model="activeTags" @tab-click="handleClick">
<!--表单信息--> <!--表单信息-->
<el-tab-pane label="表单信息" name="1"> <el-tab-pane label="表单信息" name="1">
<el-col :span="16" :offset="4"> <el-col :span="16" :offset="4">
@ -107,7 +107,7 @@ const { proxy } = getCurrentInstance();
// xml // xml
const flowData = ref({}); const flowData = ref({});
// tab // tab
const activeName = ref('1'); const activeTags = ref('1');
// //
const loading = ref(true); const loading = ref(true);
// //

View File

@ -7,7 +7,7 @@
<el-button style="float: right;" size="small" type="danger" @click="goBack"></el-button> <el-button style="float: right;" size="small" type="danger" @click="goBack"></el-button>
</div> </div>
</template> </template>
<el-tabs tab-position="top" v-model="activeName" @tab-click="handleClick"> <el-tabs tab-position="top" v-model="activeTags" @tab-click="handleClick">
<!--表单信息--> <!--表单信息-->
<el-tab-pane label="表单信息" name="1"> <el-tab-pane label="表单信息" name="1">
<el-col :span="16" :offset="4"> <el-col :span="16" :offset="4">
@ -110,7 +110,7 @@ const { proxy } = getCurrentInstance();
// xml // xml
const flowData = ref({}); const flowData = ref({});
// tab // tab
const activeName = ref('1'); const activeTags = ref('1');
// //
const loading = ref(true); const loading = ref(true);
// //

View File

@ -7,7 +7,7 @@
<el-button style="float: right;" size="small" type="danger" @click="goBack"></el-button> <el-button style="float: right;" size="small" type="danger" @click="goBack"></el-button>
</div> </div>
</template> </template>
<el-tabs tab-position="top" v-model="activeName" @tab-click="handleClick"> <el-tabs tab-position="top" v-model="activeTags" @tab-click="handleClick">
<!--表单信息--> <!--表单信息-->
<el-tab-pane label="表单信息" name="1"> <el-tab-pane label="表单信息" name="1">
<!--初始化流程加载表单信息--> <!--初始化流程加载表单信息-->
@ -53,7 +53,7 @@ const { proxy } = getCurrentInstance();
// xml // xml
const flowData = ref({}); const flowData = ref({});
// tab // tab
const activeName = ref('1'); const activeTags = ref('1');
// //
const loading = ref(true); const loading = ref(true);
// //

View File

@ -9,7 +9,7 @@
<el-button style="float: right;" size="small" type="danger" @click="goBack"></el-button> <el-button style="float: right;" size="small" type="danger" @click="goBack"></el-button>
</div> </div>
</template> </template>
<el-tabs tab-position="top" v-model="activeName" @tab-click="handleClick"> <el-tabs tab-position="top" v-model="activeTags" @tab-click="handleClick">
<!--表单信息--> <!--表单信息-->
<el-tab-pane label="表单信息" name="1"> <el-tab-pane label="表单信息" name="1">
<el-col :span="16" :offset="4"> <el-col :span="16" :offset="4">
@ -199,7 +199,7 @@ const { proxy } = getCurrentInstance();
// xml // xml
const flowData = ref({}); const flowData = ref({});
// tab // tab
const activeName = ref('1'); const activeTags = ref('1');
// //
const loading = ref(true); const loading = ref(true);
// //

View File

@ -171,7 +171,7 @@
<el-input v-model="form.trainFileType" type="textarea" placeholder="请输入内容" /> <el-input v-model="form.trainFileType" type="textarea" placeholder="请输入内容" />
</el-form-item> </el-form-item>
<el-form-item label="培训文件地址" prop="trainFilePath"> <el-form-item label="培训文件地址" prop="trainFilePath">
<file-upload v-model="form.trainFilePath" /> <file-upload v-model="form.trainFilePath" :fileType="['mp4']" />
</el-form-item> </el-form-item>
<el-form-item label="培训文件主图" prop="trainFileImage"> <el-form-item label="培训文件主图" prop="trainFileImage">
<image-upload v-model="form.trainFileImage" /> <image-upload v-model="form.trainFileImage" />

View File

@ -151,7 +151,7 @@
<el-dialog :title="title" v-model="open" width="1080px" append-to-body> <el-dialog :title="title" v-model="open" width="1080px" append-to-body>
<el-form ref="proProjectInfoRef" :model="form" :rules="rules" label-width="100px"> <el-form ref="proProjectInfoRef" :model="form" :rules="rules" label-width="100px">
<el-tabs <el-tabs
v-model="activeName" v-model="activeTags"
type="card" type="card"
class="demo-tabs" class="demo-tabs"
> >
@ -440,7 +440,7 @@ const single = ref(true);
const multiple = ref(true); const multiple = ref(true);
const total = ref(0); const total = ref(0);
const title = ref(""); const title = ref("");
const activeName = ref('base') const activeTags = ref('base')
const addressInfos = ref(""); const addressInfos = ref("");
const projectDeptsList = ref([]); const projectDeptsList = ref([]);
const checkedProjectDepts = ref([]); const checkedProjectDepts = ref([]);

View File

@ -1,6 +1,6 @@
<template> <template>
<el-card> <el-card>
<el-tabs v-model="activeName"> <el-tabs v-model="activeTags">
<el-tab-pane label="基本信息" name="basic"> <el-tab-pane label="基本信息" name="basic">
<basic-info-form ref="basicInfo" :info="info" /> <basic-info-form ref="basicInfo" :info="info" />
</el-tab-pane> </el-tab-pane>
@ -135,7 +135,7 @@ import genInfoForm from "./genInfoForm";
const route = useRoute(); const route = useRoute();
const { proxy } = getCurrentInstance(); const { proxy } = getCurrentInstance();
const activeName = ref("columnInfo"); const activeTags = ref("columnInfo");
const tableHeight = ref(document.documentElement.scrollHeight - 245 + "px"); const tableHeight = ref(document.documentElement.scrollHeight - 245 + "px");
const tables = ref([]); const tables = ref([]);
const columns = ref([]); const columns = ref([]);

View File

@ -133,7 +133,7 @@
/> />
<!-- 预览界面 --> <!-- 预览界面 -->
<el-dialog :title="preview.title" v-model="preview.open" width="80%" top="5vh" append-to-body custom-class="scrollbar"> <el-dialog :title="preview.title" v-model="preview.open" width="80%" top="5vh" append-to-body custom-class="scrollbar">
<el-tabs v-model="preview.activeName"> <el-tabs v-model="preview.activeTags">
<el-tab-pane <el-tab-pane
v-for="(value, key) in preview.data" v-for="(value, key) in preview.data"
:label="key.substring(key.lastIndexOf('/')+1,key.indexOf('.vm'))" :label="key.substring(key.lastIndexOf('/')+1,key.indexOf('.vm'))"
@ -179,7 +179,7 @@ const data = reactive({
open: false, open: false,
title: "代码预览", title: "代码预览",
data: {}, data: {},
activeName: "domain.java" activeTags: "domain.java"
} }
}); });
@ -249,7 +249,7 @@ function handlePreview(row) {
previewTable(row.tableId).then(response => { previewTable(row.tableId).then(response => {
preview.value.data = response.data; preview.value.data = response.data;
preview.value.open = true; preview.value.open = true;
preview.value.activeName = "domain.java"; preview.value.activeTags = "domain.java";
}); });
} }
/** 复制代码成功 */ /** 复制代码成功 */