修改提出的问题
This commit is contained in:
parent
04062656ce
commit
d836f3f626
@ -1,7 +0,0 @@
|
|||||||
FROM openjdk:8u292-jre-buster
|
|
||||||
ARG JAR_FILE=/target/*.jar
|
|
||||||
COPY ${JAR_FILE} system-city.jar
|
|
||||||
ENTRYPOINT ["java","-jar","-Dspring.profiles.active=jnhb","/system-city.jar"]
|
|
||||||
|
|
||||||
# 时区问题
|
|
||||||
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
|
|
70
readme.md
70
readme.md
@ -1,36 +1,50 @@
|
|||||||
# 系统名称
|
# 20231023迭代`未上线`
|
||||||
|
|
||||||
稀土高新区网格化系统
|
## 表结构调整
|
||||||
|
|
||||||
# 服务单位
|
### city_dict
|
||||||
|
|
||||||
包头稀土高新区组织部
|
| 字段 | 类型 | 默认值 | 描述 | 操作 |
|
||||||
|
|---------|--------|-----|------|----|
|
||||||
|
| is_hide | int(1) | 0 | 是否隐藏 | 新增 |
|
||||||
|
|
||||||
# 核心业务
|
### city_community
|
||||||
|
|
||||||
## 绩效考核
|
| 字段 | 类型 | 默认值 | 描述 | 操作 |
|
||||||
|
|-----------------|---------------|-----|---------|----|
|
||||||
绩效扣除逻辑:
|
| jump_system_url | varchar(1000) | | 跳转系统的地址 | 新增 |
|
||||||
1. 每天签到、签退各一次(专管员与网格员一致)
|
|
||||||
2. 未签到 或 未签退 一次 扣除 2.4%(若同时出现,扣 4.8%)
|
|
||||||
3. 请假 一次 扣除 2.4%
|
|
||||||
4. 未签到 或 未签退 中 扣除 请假次数
|
|
||||||
5. 旷工(没签到并且没请假) 一次 扣除 5% (不记录签到签退情况)
|
|
||||||
|
|
||||||
# 系统版本
|
|
||||||
|
|
||||||
> 与POM同步,有业务代码调整时记录
|
|
||||||
|
|
||||||
当前版本:[1.0.0-SNAPSHOT](#1.0.0-SNAPSHOT)
|
|
||||||
|
|
||||||
历史版本
|
|
||||||
- 无
|
|
||||||
|
|
||||||
# 版本调整历史(倒叙)
|
|
||||||
|
|
||||||
# <a id="1.0.0-SNAPSHOT">1.0.0-SNAPSHOT</a>
|
|
||||||
### 业务调整
|
|
||||||
|
|
||||||
### 菜单调整
|
### 菜单调整
|
||||||
|
|
||||||
####
|
社区(村)管理:
|
||||||
|
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th colspan="4">变更前</th>
|
||||||
|
<th colspan="4">变更后</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>链接</th>
|
||||||
|
<th>接口前缀</th>
|
||||||
|
<th>资源前缀</th>
|
||||||
|
<th>路由前缀</th>
|
||||||
|
<th>链接</th>
|
||||||
|
<th>接口前缀</th>
|
||||||
|
<th>资源前缀</th>
|
||||||
|
<th>路由前缀</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>list.html</td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td>list-tree.html</td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
@ -96,8 +96,8 @@ public class CommunityController extends AbstractController {
|
|||||||
throw new ParamsException("地区名称不能为空");
|
throw new ParamsException("地区名称不能为空");
|
||||||
}
|
}
|
||||||
params.put("areaName", communityVO.getAreaName());
|
params.put("areaName", communityVO.getAreaName());
|
||||||
|
|
||||||
params.put("communitySummary", communityVO.getCommunitySummary());
|
params.put("communitySummary", communityVO.getCommunitySummary());
|
||||||
|
params.put("jumpSystemUrl", communityVO.getJumpSystemUrl());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "社区列表", notes = "社区列表接口")
|
@ApiOperation(value = "社区列表", notes = "社区列表接口")
|
||||||
|
@ -78,23 +78,6 @@ public class ConfigController extends AbstractController {
|
|||||||
throw new ParamsException("专管员签退截止时间不能为空");
|
throw new ParamsException("专管员签退截止时间不能为空");
|
||||||
}
|
}
|
||||||
params.put("nSignOutEnd", configVO.getnSignOutEnd());
|
params.put("nSignOutEnd", configVO.getnSignOutEnd());
|
||||||
// 公安打卡设置
|
|
||||||
if (StringUtils.isBlank(configVO.getGaSignInStr())) {
|
|
||||||
throw new ParamsException("公安签到开始时间不能为空");
|
|
||||||
}
|
|
||||||
params.put("gaSignInStr", configVO.getGaSignInStr());
|
|
||||||
if (StringUtils.isBlank(configVO.getGaSignInEnd())) {
|
|
||||||
throw new ParamsException("公安签到截止时间不能为空");
|
|
||||||
}
|
|
||||||
params.put("gaSignInEnd", configVO.getGaSignInEnd());
|
|
||||||
if (StringUtils.isBlank(configVO.getGaSignOutStr())) {
|
|
||||||
throw new ParamsException("公安签退开始时间不能为空");
|
|
||||||
}
|
|
||||||
params.put("gaSignOutStr", configVO.getGaSignOutStr());
|
|
||||||
if (StringUtils.isBlank(configVO.getGaSignOutEnd())) {
|
|
||||||
throw new ParamsException("公安签退截止时间不能为空");
|
|
||||||
}
|
|
||||||
params.put("gaSignOutEnd", configVO.getGaSignOutEnd());
|
|
||||||
// 不记录轨迹时间设置
|
// 不记录轨迹时间设置
|
||||||
if (StringUtils.isBlank(configVO.getPositionRecordStr())) {
|
if (StringUtils.isBlank(configVO.getPositionRecordStr())) {
|
||||||
throw new ParamsException("网格员不记录轨迹开始时间不能为空");
|
throw new ParamsException("网格员不记录轨迹开始时间不能为空");
|
||||||
|
@ -95,6 +95,7 @@ public class DictController extends AbstractController {
|
|||||||
}
|
}
|
||||||
params.put("dictOrder", dictVO.getDictOrder());
|
params.put("dictOrder", dictVO.getDictOrder());
|
||||||
params.put("industryCode", dictVO.getIndustryCode());
|
params.put("industryCode", dictVO.getIndustryCode());
|
||||||
|
params.put("isHide", dictVO.getIsHide());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "字典列表", notes = "字典列表接口")
|
@ApiOperation(value = "字典列表", notes = "字典列表接口")
|
||||||
|
@ -58,12 +58,16 @@ public class ConfigAppController extends AbstractController {
|
|||||||
punchTimeDTOV2.setnSignOutStr(config.get("nSignOutStr").toString());
|
punchTimeDTOV2.setnSignOutStr(config.get("nSignOutStr").toString());
|
||||||
punchTimeDTOV2.setnSignOutEnd(config.get("nSignOutEnd").toString());
|
punchTimeDTOV2.setnSignOutEnd(config.get("nSignOutEnd").toString());
|
||||||
boolean isGa = cityUserService.isGaUser(appTokenUser.getId());
|
boolean isGa = cityUserService.isGaUser(appTokenUser.getId());
|
||||||
punchTimeDTOV2.setGa(isGa);
|
String[] signDepartment = cityUserService.getSignDepartment(appTokenUser);
|
||||||
if (isGa) {
|
if (signDepartment != null) {
|
||||||
punchTimeDTOV2.setGaSignInStr(config.get("gaSignInStr").toString());
|
String[] signInEndTime = cityUserService.getSignInEndTime(appTokenUser);
|
||||||
punchTimeDTOV2.setGaSignInEnd(config.get("gaSignInEnd").toString());
|
String[] signOutEndTime = cityUserService.getSignOutEndTime(appTokenUser);
|
||||||
punchTimeDTOV2.setGaSignOutStr(config.get("gaSignOutStr").toString());
|
punchTimeDTOV2.setCustomSignDepartmentId(signDepartment[0]);
|
||||||
punchTimeDTOV2.setGaSignOutEnd(config.get("gaSignOutEnd").toString());
|
punchTimeDTOV2.setCustomSignDepartmentName(signDepartment[1]);
|
||||||
|
punchTimeDTOV2.setCustomSignInStr(signInEndTime[0]);
|
||||||
|
punchTimeDTOV2.setCustomSignInEnd(signInEndTime[1]);
|
||||||
|
punchTimeDTOV2.setCustomSignOutStr(signOutEndTime[0]);
|
||||||
|
punchTimeDTOV2.setCustomSignOutEnd(signOutEndTime[1]);
|
||||||
}
|
}
|
||||||
punchTimeDTOV2.setPositionRecordSrt(config.get("positionRecordStr").toString());
|
punchTimeDTOV2.setPositionRecordSrt(config.get("positionRecordStr").toString());
|
||||||
punchTimeDTOV2.setPositionRecordEnd(config.get("positionRecordEnd").toString());
|
punchTimeDTOV2.setPositionRecordEnd(config.get("positionRecordEnd").toString());
|
||||||
|
@ -29,6 +29,8 @@ public class CommunityDTO implements Serializable {
|
|||||||
private String areaName;
|
private String areaName;
|
||||||
@ApiModelProperty(name = "communityBossId", value = "网格员ID")
|
@ApiModelProperty(name = "communityBossId", value = "网格员ID")
|
||||||
private String communityBossId;
|
private String communityBossId;
|
||||||
|
@ApiModelProperty(name = "jumpSystemUrl", value = "跳转地址")
|
||||||
|
private String jumpSystemUrl;
|
||||||
|
|
||||||
public String getCommunityId() {
|
public String getCommunityId() {
|
||||||
return communityId;
|
return communityId;
|
||||||
@ -86,24 +88,12 @@ public class CommunityDTO implements Serializable {
|
|||||||
this.communityBossId = communityBossId;
|
this.communityBossId = communityBossId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
public String getJumpSystemUrl() {
|
||||||
public String toString() {
|
return jumpSystemUrl;
|
||||||
final StringBuilder sb = new StringBuilder("{");
|
|
||||||
sb.append("\"communityId\":\"")
|
|
||||||
.append(communityId).append('\"');
|
|
||||||
sb.append(",\"communityName\":\"")
|
|
||||||
.append(communityName).append('\"');
|
|
||||||
sb.append(",\"communitySummary\":\"")
|
|
||||||
.append(communitySummary).append('\"');
|
|
||||||
sb.append(",\"communityOrder\":")
|
|
||||||
.append(communityOrder);
|
|
||||||
sb.append(",\"areaId\":\"")
|
|
||||||
.append(areaId).append('\"');
|
|
||||||
sb.append(",\"areaName\":\"")
|
|
||||||
.append(areaName).append('\"');
|
|
||||||
sb.append(",\"communityBossId\":\"")
|
|
||||||
.append(communityBossId).append('\"');
|
|
||||||
sb.append('}');
|
|
||||||
return sb.toString();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setJumpSystemUrl(String jumpSystemUrl) {
|
||||||
|
this.jumpSystemUrl = jumpSystemUrl;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -27,16 +27,6 @@ public class PunchTimeDTOV2 {
|
|||||||
private String nSignOutStr;
|
private String nSignOutStr;
|
||||||
@ApiModelProperty(name = "nSignOutEnd", value = "专管员签退截止时间")
|
@ApiModelProperty(name = "nSignOutEnd", value = "专管员签退截止时间")
|
||||||
private String nSignOutEnd;
|
private String nSignOutEnd;
|
||||||
@ApiModelProperty(name = "isGa", value = "是否公安")
|
|
||||||
private Boolean isGa;
|
|
||||||
@ApiModelProperty(name = "gaSignInStr", value = "公安签到开始时间")
|
|
||||||
private String gaSignInStr;
|
|
||||||
@ApiModelProperty(name = "gaSignInEnd", value = "公安签到截止时间")
|
|
||||||
private String gaSignInEnd;
|
|
||||||
@ApiModelProperty(name = "gaSignOutStr", value = "公安签退开始时间")
|
|
||||||
private String gaSignOutStr;
|
|
||||||
@ApiModelProperty(name = "gaSignOutEnd", value = "公安签退截止时间")
|
|
||||||
private String gaSignOutEnd;
|
|
||||||
@ApiModelProperty(name = "positionRecordSrt", value = "网格员不记录轨迹开始时间")
|
@ApiModelProperty(name = "positionRecordSrt", value = "网格员不记录轨迹开始时间")
|
||||||
private String positionRecordSrt;
|
private String positionRecordSrt;
|
||||||
@ApiModelProperty(name = "positionRecordEnd", value = "网格员不记录轨迹截止时间")
|
@ApiModelProperty(name = "positionRecordEnd", value = "网格员不记录轨迹截止时间")
|
||||||
@ -45,6 +35,19 @@ public class PunchTimeDTOV2 {
|
|||||||
private String nPositionRecordStr;
|
private String nPositionRecordStr;
|
||||||
@ApiModelProperty(name = "nPositionRecordEnd", value = "专管员不记录轨迹开始时间")
|
@ApiModelProperty(name = "nPositionRecordEnd", value = "专管员不记录轨迹开始时间")
|
||||||
private String nPositionRecordEnd;
|
private String nPositionRecordEnd;
|
||||||
|
@ApiModelProperty(name = "customSignDepartmentId", value = "自定义打卡部门ID")
|
||||||
|
private String customSignDepartmentId;
|
||||||
|
@ApiModelProperty(name = "customSignDepartmentName", value = "自定义打卡部门名称")
|
||||||
|
private String customSignDepartmentName;
|
||||||
|
@ApiModelProperty(name = "customSignInStr", value = "自定义签到开始时间")
|
||||||
|
private String customSignInStr;
|
||||||
|
@ApiModelProperty(name = "customSignInEnd", value = "自定义签到结束时间")
|
||||||
|
private String customSignInEnd;
|
||||||
|
@ApiModelProperty(name = "customSignOutStr", value = "自定义签退开始时间")
|
||||||
|
private String customSignOutStr;
|
||||||
|
@ApiModelProperty(name = "customSignOutEnd", value = "自定义签退结束时间")
|
||||||
|
private String customSignOutEnd;
|
||||||
|
|
||||||
|
|
||||||
public String getSignInStr() {
|
public String getSignInStr() {
|
||||||
return signInStr == null ? "" : signInStr;
|
return signInStr == null ? "" : signInStr;
|
||||||
@ -110,46 +113,6 @@ public class PunchTimeDTOV2 {
|
|||||||
this.nSignOutEnd = nSignOutEnd;
|
this.nSignOutEnd = nSignOutEnd;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Boolean getGa() {
|
|
||||||
return isGa;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setGa(Boolean ga) {
|
|
||||||
isGa = ga;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getGaSignInStr() {
|
|
||||||
return gaSignInStr;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setGaSignInStr(String gaSignInStr) {
|
|
||||||
this.gaSignInStr = gaSignInStr;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getGaSignInEnd() {
|
|
||||||
return gaSignInEnd;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setGaSignInEnd(String gaSignInEnd) {
|
|
||||||
this.gaSignInEnd = gaSignInEnd;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getGaSignOutStr() {
|
|
||||||
return gaSignOutStr;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setGaSignOutStr(String gaSignOutStr) {
|
|
||||||
this.gaSignOutStr = gaSignOutStr;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getGaSignOutEnd() {
|
|
||||||
return gaSignOutEnd;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setGaSignOutEnd(String gaSignOutEnd) {
|
|
||||||
this.gaSignOutEnd = gaSignOutEnd;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPositionRecordSrt() {
|
public String getPositionRecordSrt() {
|
||||||
return positionRecordSrt == null ? "" : positionRecordSrt;
|
return positionRecordSrt == null ? "" : positionRecordSrt;
|
||||||
}
|
}
|
||||||
@ -182,34 +145,51 @@ public class PunchTimeDTOV2 {
|
|||||||
this.nPositionRecordEnd = nPositionRecordEnd;
|
this.nPositionRecordEnd = nPositionRecordEnd;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
public String getCustomSignDepartmentId() {
|
||||||
public String toString() {
|
return customSignDepartmentId;
|
||||||
final StringBuilder sb = new StringBuilder("{");
|
}
|
||||||
sb.append("\"signInStr\":\"")
|
|
||||||
.append(signInStr).append('\"');
|
public void setCustomSignDepartmentId(String customSignDepartmentId) {
|
||||||
sb.append(",\"signInEnd\":\"")
|
this.customSignDepartmentId = customSignDepartmentId;
|
||||||
.append(signInEnd).append('\"');
|
}
|
||||||
sb.append(",\"signOutStr\":\"")
|
|
||||||
.append(signOutStr).append('\"');
|
public String getCustomSignDepartmentName() {
|
||||||
sb.append(",\"signOutEnd\":\"")
|
return customSignDepartmentName;
|
||||||
.append(signOutEnd).append('\"');
|
}
|
||||||
sb.append(",\"nSignInStr\":\"")
|
|
||||||
.append(nSignInStr).append('\"');
|
public void setCustomSignDepartmentName(String customSignDepartmentName) {
|
||||||
sb.append(",\"nSignInEnd\":\"")
|
this.customSignDepartmentName = customSignDepartmentName;
|
||||||
.append(nSignInEnd).append('\"');
|
}
|
||||||
sb.append(",\"nSignOutStr\":\"")
|
|
||||||
.append(nSignOutStr).append('\"');
|
public String getCustomSignInStr() {
|
||||||
sb.append(",\"nSignOutEnd\":\"")
|
return customSignInStr;
|
||||||
.append(nSignOutEnd).append('\"');
|
}
|
||||||
sb.append(",\"positionRecordSrt\":\"")
|
|
||||||
.append(positionRecordSrt).append('\"');
|
public void setCustomSignInStr(String customSignInStr) {
|
||||||
sb.append(",\"positionRecordEnd\":\"")
|
this.customSignInStr = customSignInStr;
|
||||||
.append(positionRecordEnd).append('\"');
|
}
|
||||||
sb.append(",\"nPositionRecordStr\":\"")
|
|
||||||
.append(nPositionRecordStr).append('\"');
|
public String getCustomSignInEnd() {
|
||||||
sb.append(",\"nPositionRecordEnd\":\"")
|
return customSignInEnd;
|
||||||
.append(nPositionRecordEnd).append('\"');
|
}
|
||||||
sb.append('}');
|
|
||||||
return sb.toString();
|
public void setCustomSignInEnd(String customSignInEnd) {
|
||||||
|
this.customSignInEnd = customSignInEnd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCustomSignOutStr() {
|
||||||
|
return customSignOutStr;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCustomSignOutStr(String customSignOutStr) {
|
||||||
|
this.customSignOutStr = customSignOutStr;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCustomSignOutEnd() {
|
||||||
|
return customSignOutEnd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCustomSignOutEnd(String customSignOutEnd) {
|
||||||
|
this.customSignOutEnd = customSignOutEnd;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,6 +24,8 @@ public class DictDTO {
|
|||||||
private String dictParentName;
|
private String dictParentName;
|
||||||
@ApiModelProperty(name = "isParent", value = "是否父级")
|
@ApiModelProperty(name = "isParent", value = "是否父级")
|
||||||
private Boolean isParent;
|
private Boolean isParent;
|
||||||
|
@ApiModelProperty(name = "isHide", value = "是否隐藏")
|
||||||
|
private Integer isHide;
|
||||||
@ApiModelProperty(name = "dictName", value = "字典名称")
|
@ApiModelProperty(name = "dictName", value = "字典名称")
|
||||||
private String dictName;
|
private String dictName;
|
||||||
@ApiModelProperty(name = "dictSummary", value = "字典说明")
|
@ApiModelProperty(name = "dictSummary", value = "字典说明")
|
||||||
@ -69,6 +71,14 @@ public class DictDTO {
|
|||||||
isParent = parent;
|
isParent = parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Integer getIsHide() {
|
||||||
|
return isHide;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIsHide(Integer isHide) {
|
||||||
|
this.isHide = isHide;
|
||||||
|
}
|
||||||
|
|
||||||
public String getDictName() {
|
public String getDictName() {
|
||||||
return dictName == null ? "" : dictName.trim();
|
return dictName == null ? "" : dictName.trim();
|
||||||
}
|
}
|
||||||
|
@ -24,6 +24,8 @@ public class CommunityVO {
|
|||||||
private String areaId;
|
private String areaId;
|
||||||
@ApiModelProperty(name = "areaName", value = "地区名称")
|
@ApiModelProperty(name = "areaName", value = "地区名称")
|
||||||
private String areaName;
|
private String areaName;
|
||||||
|
@ApiModelProperty(name = "jumpSystemUrl", value = "跳转地址")
|
||||||
|
private String jumpSystemUrl;
|
||||||
|
|
||||||
public String getCommunityName() {
|
public String getCommunityName() {
|
||||||
return communityName;
|
return communityName;
|
||||||
@ -65,21 +67,12 @@ public class CommunityVO {
|
|||||||
this.areaName = areaName;
|
this.areaName = areaName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getJumpSystemUrl() {
|
||||||
@Override
|
return jumpSystemUrl;
|
||||||
public String toString() {
|
|
||||||
final StringBuilder sb = new StringBuilder("{");
|
|
||||||
sb.append(",\"communityName\":")
|
|
||||||
.append("\"").append(communityName).append("\"");
|
|
||||||
sb.append(",\"communitySummary\":")
|
|
||||||
.append("\"").append(communitySummary).append("\"");
|
|
||||||
sb.append(",\"communityOrder\":")
|
|
||||||
.append("\"").append(communityOrder).append("\"");
|
|
||||||
sb.append(",\"areaId\":")
|
|
||||||
.append("\"").append(areaId).append("\"");
|
|
||||||
sb.append(",\"areaName\":")
|
|
||||||
.append("\"").append(areaName).append("\"");
|
|
||||||
sb.append('}');
|
|
||||||
return sb.toString();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setJumpSystemUrl(String jumpSystemUrl) {
|
||||||
|
this.jumpSystemUrl = jumpSystemUrl;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -24,6 +24,8 @@ public class DictVO {
|
|||||||
private Integer dictOrder;
|
private Integer dictOrder;
|
||||||
@ApiModelProperty(name = "industryCode", value = "行业代码")
|
@ApiModelProperty(name = "industryCode", value = "行业代码")
|
||||||
private String industryCode;
|
private String industryCode;
|
||||||
|
@ApiModelProperty(name = "isHide", value = "是否隐藏")
|
||||||
|
private Integer isHide;
|
||||||
|
|
||||||
public String getDictParentId() {
|
public String getDictParentId() {
|
||||||
return dictParentId;
|
return dictParentId;
|
||||||
@ -65,6 +67,14 @@ public class DictVO {
|
|||||||
this.industryCode = industryCode;
|
this.industryCode = industryCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Integer getIsHide() {
|
||||||
|
return isHide;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIsHide(Integer isHide) {
|
||||||
|
this.isHide = isHide;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
final StringBuilder sb = new StringBuilder("{");
|
final StringBuilder sb = new StringBuilder("{");
|
||||||
|
@ -83,7 +83,7 @@ public class DictServiceImpl extends AbstractService implements IDictService {
|
|||||||
public List<DictDTO> listBindCaseTypeAll(Map<String, Object> params) {
|
public List<DictDTO> listBindCaseTypeAll(Map<String, Object> params) {
|
||||||
// 查找所有绑定部门的案件类型父级列表
|
// 查找所有绑定部门的案件类型父级列表
|
||||||
List<DictDTO> dictDTOS = listCaseTypeParentBind(params);
|
List<DictDTO> dictDTOS = listCaseTypeParentBind(params);
|
||||||
for (DictDTO item : dictDTOS){
|
for (DictDTO item : dictDTOS) {
|
||||||
params.clear();
|
params.clear();
|
||||||
params.put("dictParentId", item.getDictId());
|
params.put("dictParentId", item.getDictId());
|
||||||
List<DictDTO> subDTOs = listCaseTypeBind(params);
|
List<DictDTO> subDTOs = listCaseTypeBind(params);
|
||||||
@ -125,7 +125,7 @@ public class DictServiceImpl extends AbstractService implements IDictService {
|
|||||||
List<DictDTO> dictDTOs = listDict(params);
|
List<DictDTO> dictDTOs = listDict(params);
|
||||||
List<EasyUITreeDTO> easyUITreeDTOs = new ArrayList<>();
|
List<EasyUITreeDTO> easyUITreeDTOs = new ArrayList<>();
|
||||||
for (DictDTO dictDTO : dictDTOs) {
|
for (DictDTO dictDTO : dictDTOs) {
|
||||||
easyUITreeDTOs.add(new EasyUITreeDTO("case_"+ dictDTO.getDictId(), dictDTO.getDictName(), null, "icon-case-type"));
|
easyUITreeDTOs.add(new EasyUITreeDTO("case_" + dictDTO.getDictId(), dictDTO.getDictName(), null, "icon-case-type"));
|
||||||
}
|
}
|
||||||
return easyUITreeDTOs;
|
return easyUITreeDTOs;
|
||||||
}
|
}
|
||||||
@ -160,15 +160,16 @@ public class DictServiceImpl extends AbstractService implements IDictService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据父级ID和名称查询
|
* 根据父级ID和名称查询
|
||||||
|
*
|
||||||
* @param parentId
|
* @param parentId
|
||||||
* @param name
|
* @param name
|
||||||
* @return
|
* @return
|
||||||
* @throws SearchException
|
* @throws SearchException
|
||||||
*/
|
*/
|
||||||
public DictDTO getDictByNameAndParentId(String parentId,String name) throws SearchException{
|
public DictDTO getDictByNameAndParentId(String parentId, String name) throws SearchException {
|
||||||
Map<String,Object> params = new HashMap<>();
|
Map<String, Object> params = new HashMap<>();
|
||||||
params.put("dictParentId",parentId);
|
params.put("dictParentId", parentId);
|
||||||
params.put("dictName",name);
|
params.put("dictName", name);
|
||||||
return dictDao.getDictByNameAndParentId(params);
|
return dictDao.getDictByNameAndParentId(params);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -180,32 +181,32 @@ public class DictServiceImpl extends AbstractService implements IDictService {
|
|||||||
*/
|
*/
|
||||||
params.put("dictParentId", "46d108b2-4ef9-4f6f-b30c-0c700e3ee852");
|
params.put("dictParentId", "46d108b2-4ef9-4f6f-b30c-0c700e3ee852");
|
||||||
List<DictDTO> dictDTOS = dictDao.listDict(params);
|
List<DictDTO> dictDTOS = dictDao.listDict(params);
|
||||||
if(dictDTOS == null || dictDTOS.size() == 0){
|
if (dictDTOS == null || dictDTOS.size() == 0) {
|
||||||
return new ArrayList<>(0);
|
return new ArrayList<>(0);
|
||||||
}
|
}
|
||||||
// 查询该案件类型下是否绑定了部门
|
// 查询该案件类型下是否绑定了部门
|
||||||
List<DictDTO> bindDictList = new ArrayList<>();
|
List<DictDTO> bindDictList = new ArrayList<>();
|
||||||
for (DictDTO item : dictDTOS){
|
for (DictDTO item : dictDTOS) {
|
||||||
List<String> caseTypeIds = new ArrayList<>();
|
List<String> caseTypeIds = new ArrayList<>();
|
||||||
params.put("dictParentId", item.getDictId());
|
params.put("dictParentId", item.getDictId());
|
||||||
List<DictDTO> subDictDTOs = dictDao.listDict(params);
|
List<DictDTO> subDictDTOs = dictDao.listDict(params);
|
||||||
if(subDictDTOs == null || subDictDTOs.size() == 0){
|
if (subDictDTOs == null || subDictDTOs.size() == 0) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
for(DictDTO subItem : subDictDTOs){
|
for (DictDTO subItem : subDictDTOs) {
|
||||||
caseTypeIds.add(subItem.getDictId());
|
caseTypeIds.add(subItem.getDictId());
|
||||||
}
|
}
|
||||||
params.put("caseTypeIds",StringUtils.join(caseTypeIds, ","));
|
params.put("caseTypeIds", StringUtils.join(caseTypeIds, ","));
|
||||||
List<Map<String, Object>> deptList = dictDao.listBindDept(params);
|
List<Map<String, Object>> deptList = dictDao.listBindDept(params);
|
||||||
if(deptList != null && deptList.size() > 0){
|
if (deptList != null && deptList.size() > 0) {
|
||||||
List<String> deptIds = new ArrayList<>();
|
List<String> deptIds = new ArrayList<>();
|
||||||
for (Map<String, Object> deptItem :deptList){
|
for (Map<String, Object> deptItem : deptList) {
|
||||||
deptIds.add(deptItem.get("department_id").toString());
|
deptIds.add(deptItem.get("department_id").toString());
|
||||||
}
|
}
|
||||||
// 查询部门集合中是否有专管员
|
// 查询部门集合中是否有专管员
|
||||||
params.put("deptIds",StringUtils.join(deptIds, ","));
|
params.put("deptIds", StringUtils.join(deptIds, ","));
|
||||||
List<Map<String, Object>> deptUserMap = dictDao.listBindDeptUser(params);
|
List<Map<String, Object>> deptUserMap = dictDao.listBindDeptUser(params);
|
||||||
if(deptUserMap != null && deptUserMap.size() > 0){
|
if (deptUserMap != null && deptUserMap.size() > 0) {
|
||||||
bindDictList.add(item);
|
bindDictList.add(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -216,24 +217,24 @@ public class DictServiceImpl extends AbstractService implements IDictService {
|
|||||||
@Override
|
@Override
|
||||||
public List<DictDTO> listCaseTypeBind(Map<String, Object> params) {
|
public List<DictDTO> listCaseTypeBind(Map<String, Object> params) {
|
||||||
List<DictDTO> dictDTOS = dictDao.listDict(params);
|
List<DictDTO> dictDTOS = dictDao.listDict(params);
|
||||||
if(dictDTOS == null || dictDTOS.size() == 0){
|
if (dictDTOS == null || dictDTOS.size() == 0) {
|
||||||
return new ArrayList<>(0);
|
return new ArrayList<>(0);
|
||||||
}
|
}
|
||||||
List<DictDTO> bindDictList = new ArrayList<>();
|
List<DictDTO> bindDictList = new ArrayList<>();
|
||||||
for(DictDTO item : dictDTOS){
|
for (DictDTO item : dictDTOS) {
|
||||||
List<String> caseTypeIds = new ArrayList<>();
|
List<String> caseTypeIds = new ArrayList<>();
|
||||||
caseTypeIds.add(item.getDictId());
|
caseTypeIds.add(item.getDictId());
|
||||||
params.put("caseTypeIds",StringUtils.join(caseTypeIds, ","));
|
params.put("caseTypeIds", StringUtils.join(caseTypeIds, ","));
|
||||||
List<Map<String, Object>> deptList = dictDao.listBindDept(params);
|
List<Map<String, Object>> deptList = dictDao.listBindDept(params);
|
||||||
if(deptList != null && deptList.size() > 0){
|
if (deptList != null && deptList.size() > 0) {
|
||||||
List<String> deptIds = new ArrayList<>();
|
List<String> deptIds = new ArrayList<>();
|
||||||
for (Map<String, Object> deptItem :deptList){
|
for (Map<String, Object> deptItem : deptList) {
|
||||||
deptIds.add(deptItem.get("department_id").toString());
|
deptIds.add(deptItem.get("department_id").toString());
|
||||||
}
|
}
|
||||||
// 查询部门集合中是否有专管员
|
// 查询部门集合中是否有专管员
|
||||||
params.put("deptIds",StringUtils.join(deptIds, ","));
|
params.put("deptIds", StringUtils.join(deptIds, ","));
|
||||||
List<Map<String, Object>> deptUserMap = dictDao.listBindDeptUser(params);
|
List<Map<String, Object>> deptUserMap = dictDao.listBindDeptUser(params);
|
||||||
if(deptUserMap != null && deptUserMap.size() > 0){
|
if (deptUserMap != null && deptUserMap.size() > 0) {
|
||||||
bindDictList.add(item);
|
bindDictList.add(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,7 @@ package com.cm.systemcity.service.user;
|
|||||||
import com.alibaba.fastjson.JSONArray;
|
import com.alibaba.fastjson.JSONArray;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.cm.common.exception.base.SystemException;
|
import com.cm.common.exception.base.SystemException;
|
||||||
|
import com.cm.common.token.app.entity.AppToken;
|
||||||
import com.cm.common.token.app.entity.AppTokenUser;
|
import com.cm.common.token.app.entity.AppTokenUser;
|
||||||
import com.cm.common.token.app.entity.AppTokenUserDepartment;
|
import com.cm.common.token.app.entity.AppTokenUserDepartment;
|
||||||
import com.cm.systemcity.config.properties.ConstsIdProperties;
|
import com.cm.systemcity.config.properties.ConstsIdProperties;
|
||||||
@ -44,10 +45,31 @@ public class CityUserService extends BaseService {
|
|||||||
return count != null && count > 0;
|
return count != null && count > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String[] getSignDepartment(AppTokenUser appTokenUser) {
|
||||||
|
appTokenUser.getDepartments();
|
||||||
|
Map<String, Object> config = CacheManager.getInstance().getConfig();
|
||||||
|
// 先判断部门
|
||||||
|
List<String> departmentIds = appTokenUser.getDepartments().stream().map(AppTokenUserDepartment::getDepartmentId).collect(Collectors.toList());
|
||||||
|
if (!departmentIds.isEmpty()) {
|
||||||
|
// 配置
|
||||||
|
Object customSignArray = config.get("customSignArray");
|
||||||
|
if (!Objects.isNull(customSignArray) && !StringUtils.isBlank(customSignArray.toString())) {
|
||||||
|
JSONArray array = JSONArray.parseArray(customSignArray.toString());
|
||||||
|
for (int i = 0; i < array.size(); i++) {
|
||||||
|
JSONObject customSignObject = array.getJSONObject(i);
|
||||||
|
for (String departmentId : departmentIds) {
|
||||||
|
if (StringUtils.equals(customSignObject.getString("departmentId"), departmentId)) {
|
||||||
|
return new String[]{customSignObject.getString("departmentId"), customSignObject.getString("departmentName")};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
public String[] getSignInEndTime(AppTokenUser appTokenUser) {
|
public String[] getSignInEndTime(AppTokenUser appTokenUser) {
|
||||||
// 所在部门
|
// 所在部门
|
||||||
Map<String, Object> params = getHashMap(2);
|
|
||||||
params.put("userId", appTokenUser.getId());
|
|
||||||
appTokenUser.getDepartments();
|
appTokenUser.getDepartments();
|
||||||
Map<String, Object> config = CacheManager.getInstance().getConfig();
|
Map<String, Object> config = CacheManager.getInstance().getConfig();
|
||||||
// 先判断部门
|
// 先判断部门
|
||||||
@ -77,8 +99,6 @@ public class CityUserService extends BaseService {
|
|||||||
|
|
||||||
public String[] getSignOutEndTime(AppTokenUser appTokenUser) {
|
public String[] getSignOutEndTime(AppTokenUser appTokenUser) {
|
||||||
// 所在部门
|
// 所在部门
|
||||||
Map<String, Object> params = getHashMap(2);
|
|
||||||
params.put("userId", appTokenUser.getId());
|
|
||||||
appTokenUser.getDepartments();
|
appTokenUser.getDepartments();
|
||||||
Map<String, Object> config = CacheManager.getInstance().getConfig();
|
Map<String, Object> config = CacheManager.getInstance().getConfig();
|
||||||
// 先判断部门
|
// 先判断部门
|
||||||
@ -106,4 +126,5 @@ public class CityUserService extends BaseService {
|
|||||||
return new String[]{config.get("signOutStr").toString(), config.get("signOutEnd").toString()};
|
return new String[]{config.get("signOutStr").toString(), config.get("signOutEnd").toString()};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -81,7 +81,7 @@ file:
|
|||||||
# 安全
|
# 安全
|
||||||
security:
|
security:
|
||||||
oauth2:
|
oauth2:
|
||||||
oauth-server: http://127.0.0.1:7021/usercenter
|
oauth-server: http://192.168.0.15:7021/usercenter
|
||||||
oauth-logout: ${security.oauth2.oauth-server}/logout?redirect_uri=${server.url}
|
oauth-logout: ${security.oauth2.oauth-server}/logout?redirect_uri=${server.url}
|
||||||
client:
|
client:
|
||||||
client-id: c024a89b35b04d4d8b5b4ea4d66a8acb
|
client-id: c024a89b35b04d4d8b5b4ea4d66a8acb
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
<result property="communityOrder" column="community_order"/>
|
<result property="communityOrder" column="community_order"/>
|
||||||
<result property="areaId" column="area_id"/>
|
<result property="areaId" column="area_id"/>
|
||||||
<result property="areaName" column="area_name"/>
|
<result property="areaName" column="area_name"/>
|
||||||
|
<result property="jumpSystemUrl" column="jump_system_url"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<!-- 新增社区 -->
|
<!-- 新增社区 -->
|
||||||
@ -20,6 +21,7 @@
|
|||||||
community_order,
|
community_order,
|
||||||
area_id,
|
area_id,
|
||||||
area_name,
|
area_name,
|
||||||
|
jump_system_url,
|
||||||
creator,
|
creator,
|
||||||
gmt_create,
|
gmt_create,
|
||||||
modifier,
|
modifier,
|
||||||
@ -32,6 +34,7 @@
|
|||||||
#{communityOrder},
|
#{communityOrder},
|
||||||
#{areaId},
|
#{areaId},
|
||||||
#{areaName},
|
#{areaName},
|
||||||
|
#{jumpSystemUrl},
|
||||||
#{creator},
|
#{creator},
|
||||||
#{gmtCreate},
|
#{gmtCreate},
|
||||||
#{modifier},
|
#{modifier},
|
||||||
@ -74,6 +77,9 @@
|
|||||||
</if>
|
</if>
|
||||||
<if test="areaName != null and areaName != ''">
|
<if test="areaName != null and areaName != ''">
|
||||||
area_name = #{areaName},
|
area_name = #{areaName},
|
||||||
|
</if>
|
||||||
|
<if test="jumpSystemUrl != null and jumpSystemUrl != ''">
|
||||||
|
jump_system_url = #{jumpSystemUrl},
|
||||||
</if>
|
</if>
|
||||||
modifier = #{modifier},
|
modifier = #{modifier},
|
||||||
gmt_modified = #{gmtModified}
|
gmt_modified = #{gmtModified}
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
<result property="dictCode" column="dict_code"/>
|
<result property="dictCode" column="dict_code"/>
|
||||||
<result property="dictOrder" column="dict_order"/>
|
<result property="dictOrder" column="dict_order"/>
|
||||||
<result property="industryCode" column="industry_code"/>
|
<result property="industryCode" column="industry_code"/>
|
||||||
|
<result property="isHide" column="is_hide"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<resultMap id="dictZTreeDTO" type="com.cm.common.pojo.dtos.ZTreeDTO">
|
<resultMap id="dictZTreeDTO" type="com.cm.common.pojo.dtos.ZTreeDTO">
|
||||||
@ -29,6 +30,7 @@
|
|||||||
dict_code,
|
dict_code,
|
||||||
dict_order,
|
dict_order,
|
||||||
industry_code,
|
industry_code,
|
||||||
|
is_hide,
|
||||||
creator,
|
creator,
|
||||||
gmt_create,
|
gmt_create,
|
||||||
modifier,
|
modifier,
|
||||||
@ -42,6 +44,7 @@
|
|||||||
#{dictCode},
|
#{dictCode},
|
||||||
#{dictOrder},
|
#{dictOrder},
|
||||||
#{industryCode},
|
#{industryCode},
|
||||||
|
#{isHide},
|
||||||
#{creator},
|
#{creator},
|
||||||
#{gmtCreate},
|
#{gmtCreate},
|
||||||
#{modifier},
|
#{modifier},
|
||||||
@ -84,6 +87,9 @@
|
|||||||
</if>
|
</if>
|
||||||
<if test="industryCode != null">
|
<if test="industryCode != null">
|
||||||
industry_code = #{industryCode},
|
industry_code = #{industryCode},
|
||||||
|
</if>
|
||||||
|
<if test="isHide != null">
|
||||||
|
is_hide = #{isHide},
|
||||||
</if>
|
</if>
|
||||||
modifier = #{modifier},
|
modifier = #{modifier},
|
||||||
gmt_modified = #{gmtModified}
|
gmt_modified = #{gmtModified}
|
||||||
@ -99,6 +105,10 @@
|
|||||||
city_dict
|
city_dict
|
||||||
WHERE
|
WHERE
|
||||||
is_delete = 0
|
is_delete = 0
|
||||||
|
<if test="isHide != null">
|
||||||
|
AND
|
||||||
|
is_hide = #{isHide}
|
||||||
|
</if>
|
||||||
<if test="dictParentId != null and dictParentId != ''">
|
<if test="dictParentId != null and dictParentId != ''">
|
||||||
AND
|
AND
|
||||||
dict_parent_id = #{dictParentId}
|
dict_parent_id = #{dictParentId}
|
||||||
@ -125,6 +135,10 @@
|
|||||||
AND
|
AND
|
||||||
t1.gmt_create <![CDATA[ >= ]]> #{startTime}
|
t1.gmt_create <![CDATA[ >= ]]> #{startTime}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="isHide != null">
|
||||||
|
AND
|
||||||
|
t1.is_hide = #{isHide}
|
||||||
|
</if>
|
||||||
<if test="endTime != null and endTime != ''">
|
<if test="endTime != null and endTime != ''">
|
||||||
AND
|
AND
|
||||||
t1.gmt_create <![CDATA[ <= ]]> #{endTime}
|
t1.gmt_create <![CDATA[ <= ]]> #{endTime}
|
||||||
|
@ -11,16 +11,23 @@
|
|||||||
<link rel="stylesheet" href="assets/layuiadmin/style/admin.css" media="all">
|
<link rel="stylesheet" href="assets/layuiadmin/style/admin.css" media="all">
|
||||||
<link rel="stylesheet" href="assets/js/vendor/zTree3/css/metroStyle/metroStyle.css"/>
|
<link rel="stylesheet" href="assets/js/vendor/zTree3/css/metroStyle/metroStyle.css"/>
|
||||||
<link rel="stylesheet" href="assets/layuiadmin/style/common.css" media="all">
|
<link rel="stylesheet" href="assets/layuiadmin/style/common.css" media="all">
|
||||||
|
<style>
|
||||||
|
.street {border: 1px solid #EEEEEE; padding: 10px; margin-bottom: 10px; text-align: center; cursor: pointer;}
|
||||||
|
.street.active {background-color: #1e9fff; color: #FFF;}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="layui-fluid layui-anim layui-anim-fadein">
|
<div class="layui-fluid layui-anim layui-anim-fadein">
|
||||||
<div class="layui-row layui-col-space15">
|
<div class="layui-row layui-col-space15">
|
||||||
<div class="layui-col-md15">
|
<div class="layui-col-md2">
|
||||||
<div class="layui-card">
|
<div class="layui-card">
|
||||||
<div class="layui-card-body left-tree-wrap">
|
<div class="layui-card-body" id="streetContainer"></div>
|
||||||
<div id="leftTreeWrap">
|
</div>
|
||||||
<ul id="leftTree" class="ztree"></ul>
|
</div>
|
||||||
</div>
|
<div class="layui-col-md10">
|
||||||
|
<div class="layui-card">
|
||||||
|
<div class="layui-card-body" id="listContainer">
|
||||||
|
<iframe id="listContent" frameborder="0" class="layadmin-iframe"></iframe>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -38,63 +45,49 @@
|
|||||||
var $ = layui.$;
|
var $ = layui.$;
|
||||||
var $win = $(window);
|
var $win = $(window);
|
||||||
var resizeTimeout = null;
|
var resizeTimeout = null;
|
||||||
var companyType = top.restAjax.params(window.location.href).companyType;
|
|
||||||
var j = 0; // 用于控制移除非单位类型数据的次数,确保不会将单位类型的子集移除
|
|
||||||
|
|
||||||
|
var renderIFrame = function(areaId, areaName) {
|
||||||
|
$('#listContent').attr('src', top.restAjax.path('route/community/list.html?areaId={areaId}&areaName={areaName}', [areaId, encodeURI(areaName)]))
|
||||||
|
}
|
||||||
|
|
||||||
|
var renderStreet = function() {
|
||||||
|
top.restAjax.get(top.restAjax.path('api/dict/listztreedict?id={id}', ['9d179f05-3ea0-48f7-853c-d3b7124b791c']), {
|
||||||
|
isHide: 0
|
||||||
|
}, null, function(code, data) {
|
||||||
|
var divs = ''
|
||||||
|
$.each(data, function(index, item) {
|
||||||
|
divs += `<div class="street ${index === 0 ? 'active' : ''}" data-id="${item.id}">${item.name}</div>`;
|
||||||
|
});
|
||||||
|
var $streetContainer = $('#streetContainer');
|
||||||
|
$streetContainer.empty();
|
||||||
|
$streetContainer.append(divs);
|
||||||
|
|
||||||
|
renderIFrame(data[0].id, data[0].name);
|
||||||
|
}, function(code, data) {
|
||||||
|
top.DialogBox.msg(data.msg);
|
||||||
|
})
|
||||||
|
}
|
||||||
// 初始化大小
|
// 初始化大小
|
||||||
function initSize() {
|
var initSize = function() {
|
||||||
$('#leftTreeWrap').css({
|
$('#streetContainer').css({
|
||||||
height: $win.height() - 30,
|
height: $win.height() - 50,
|
||||||
overflow: 'auto'
|
overflow: 'auto'
|
||||||
});
|
});
|
||||||
$('#listContentWrap').css({
|
$('#listContainer').css({
|
||||||
height: $win.height() - 50,
|
height: $win.height() - 50,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// 初始化树
|
// 初始化树
|
||||||
function initThree() {
|
|
||||||
var setting = {
|
|
||||||
async: {
|
|
||||||
enable: true,
|
|
||||||
autoLoad: false,
|
|
||||||
type: 'get',
|
|
||||||
url: top.restAjax.path('api/dict/listztreedict?id={id}', ['9d179f05-3ea0-48f7-853c-d3b7124b791c']),
|
|
||||||
autoParam: ['id'],
|
|
||||||
otherParam: {},
|
|
||||||
dataFilter: function (treeId, parentNode, childNodes) {
|
|
||||||
if (!childNodes) return null;
|
|
||||||
for (var i = 0, l = childNodes.length; i < l; i++) {
|
|
||||||
childNodes[i].name = childNodes[i].name.replace(/\.n/g, '.');
|
|
||||||
}
|
|
||||||
return childNodes;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
callback: {
|
|
||||||
onClick: function (event, treeId, treeNode) {
|
|
||||||
top.dialog.dialogData.areaId = treeNode.id;
|
|
||||||
top.dialog.dialogData.areaName = treeNode.name;
|
|
||||||
layer.confirm('您选择的是:' + treeNode.name, function (index) {
|
|
||||||
var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
|
||||||
parent.layer.close(index);
|
|
||||||
});
|
|
||||||
},
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
var zTree = $.fn.zTree.init($("#leftTree"), setting);
|
|
||||||
zTree.addNodes(null, {
|
|
||||||
id: '0',
|
|
||||||
pId: '-1',
|
|
||||||
name: top.dataMessage.tree.rootName,
|
|
||||||
url: 'javascript:;',
|
|
||||||
isParent: 'true'
|
|
||||||
});
|
|
||||||
|
|
||||||
common.refreshTree('leftTree');
|
|
||||||
}
|
|
||||||
|
|
||||||
initSize();
|
initSize();
|
||||||
initThree();
|
renderStreet();
|
||||||
|
|
||||||
|
$(document).on('click', '.street', function(e) {
|
||||||
|
var id = this.dataset.id;
|
||||||
|
var name = this.dataset.name;
|
||||||
|
$('.street').removeClass('active');
|
||||||
|
$(this).addClass('active');
|
||||||
|
renderIFrame(id, this.innerHTML);
|
||||||
|
})
|
||||||
|
|
||||||
// 事件 - 页面变化
|
// 事件 - 页面变化
|
||||||
$win.on('resize', function() {
|
$win.on('resize', function() {
|
||||||
|
@ -11,20 +11,12 @@
|
|||||||
<link rel="stylesheet" href="assets/layuiadmin/style/admin.css" media="all">
|
<link rel="stylesheet" href="assets/layuiadmin/style/admin.css" media="all">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="layui-fluid layui-anim layui-anim-fadein">
|
<div class="layui-anim layui-anim-fadein">
|
||||||
<div class="layui-row">
|
<div class="layui-row">
|
||||||
<div class="layui-col-md12">
|
<div class="layui-col-md12">
|
||||||
<div class="layui-card">
|
<div class="layui-card">
|
||||||
<div class="layui-card-body">
|
<div class="layui-card-body">
|
||||||
<div class="test-table-reload-btn" style="margin-bottom: 10px;">
|
<div class="test-table-reload-btn" style="margin-bottom: 10px;">
|
||||||
<div class="layui-inline layui-form" id="areaSelectTemplateBox" lay-filter="areaSelectTemplateBox"></div>
|
|
||||||
<script id="areaSelectTemplate" type="text/html">
|
|
||||||
<select id="area" name="area" lay-filter="areaChange">
|
|
||||||
{{# for(var i = 0, item; item = d[i++];) { }}
|
|
||||||
<option value="{{item.dictId}}">{{item.dictName}}</option>
|
|
||||||
{{# } }}
|
|
||||||
</select>
|
|
||||||
</script>
|
|
||||||
<div class="layui-inline">
|
<div class="layui-inline">
|
||||||
<input type="text" id="keywords" style="height: 38px;" class="layui-input search-item" placeholder="输入关键字">
|
<input type="text" id="keywords" style="height: 38px;" class="layui-input search-item" placeholder="输入关键字">
|
||||||
</div>
|
</div>
|
||||||
@ -65,26 +57,11 @@
|
|||||||
var table = layui.table;
|
var table = layui.table;
|
||||||
var admin = layui.admin;
|
var admin = layui.admin;
|
||||||
var laytpl = layui.laytpl;
|
var laytpl = layui.laytpl;
|
||||||
|
var query = top.restAjax.params(window.location.href);
|
||||||
|
var areaId = query.areaId;
|
||||||
|
var areaName = decodeURI(query.areaName);
|
||||||
var tableUrl = top.restAjax.path('api/community/listpagecommunity', []);
|
var tableUrl = top.restAjax.path('api/community/listpagecommunity', []);
|
||||||
|
|
||||||
function init(){
|
|
||||||
initArea1Select();
|
|
||||||
}
|
|
||||||
init();
|
|
||||||
|
|
||||||
// 初始化街镇
|
|
||||||
function initArea1Select() {
|
|
||||||
top.restAjax.get(top.restAjax.path('api/dict/listdict/9d179f05-3ea0-48f7-853c-d3b7124b791c', []), {}, null, function(code, data, args) {
|
|
||||||
laytpl(document.getElementById('areaSelectTemplate').innerHTML).render(data, function(html) {
|
|
||||||
document.getElementById('areaSelectTemplateBox').innerHTML = html;
|
|
||||||
});
|
|
||||||
form.render('select', 'areaSelectTemplateBox');
|
|
||||||
initTable();
|
|
||||||
}, function(code, data) {
|
|
||||||
top.dialog.msg(data.msg);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
form.on('select(areaChange)', function(data){
|
form.on('select(areaChange)', function(data){
|
||||||
reloadTable(1);
|
reloadTable(1);
|
||||||
});
|
});
|
||||||
@ -96,11 +73,11 @@
|
|||||||
id: 'dataTable',
|
id: 'dataTable',
|
||||||
url: tableUrl,
|
url: tableUrl,
|
||||||
width: admin.screen() > 1 ? '100%' : '',
|
width: admin.screen() > 1 ? '100%' : '',
|
||||||
height: $win.height() - 100,
|
height: $win.height() - 68,
|
||||||
limit: 20,
|
limit: 20,
|
||||||
limits: [20, 40, 60, 80, 100, 200],
|
limits: [20, 40, 60, 80, 100, 200],
|
||||||
where : {
|
where : {
|
||||||
areaId : $('#area').val()
|
areaId: areaId
|
||||||
},
|
},
|
||||||
toolbar: '#headerToolBar',
|
toolbar: '#headerToolBar',
|
||||||
request: {
|
request: {
|
||||||
@ -115,6 +92,15 @@
|
|||||||
{field:'communitySummary', width:160, title: '说明', align:'center',},
|
{field:'communitySummary', width:160, title: '说明', align:'center',},
|
||||||
{field:'communityOrder', width:160, title: '排序', align:'center',},
|
{field:'communityOrder', width:160, title: '排序', align:'center',},
|
||||||
{field:'areaName', width:150, title: '地区名称', align:'center',},
|
{field:'areaName', width:150, title: '地区名称', align:'center',},
|
||||||
|
{field:'jumpSystemUrl', width:200, title: '跳转地址', align:'center',
|
||||||
|
templet: function(row) {
|
||||||
|
var data = row.jumpSystemUrl;
|
||||||
|
if(data) {
|
||||||
|
return `<a href="${data}" target="_blank">${data}</a>`;
|
||||||
|
}
|
||||||
|
return '-';
|
||||||
|
}
|
||||||
|
},
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
page: true,
|
page: true,
|
||||||
@ -128,6 +114,7 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
initTable();
|
||||||
|
|
||||||
// 重载表格
|
// 重载表格
|
||||||
function reloadTable(currentPage) {
|
function reloadTable(currentPage) {
|
||||||
@ -140,7 +127,6 @@
|
|||||||
page: {
|
page: {
|
||||||
curr: currentPage
|
curr: currentPage
|
||||||
},
|
},
|
||||||
height: $win.height() - 100,
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -157,12 +143,13 @@
|
|||||||
if(layEvent === 'save') {
|
if(layEvent === 'save') {
|
||||||
layer.open({
|
layer.open({
|
||||||
type: 2,
|
type: 2,
|
||||||
title: '新增社区(村)',
|
title: `${areaName}:新增社区(村)`,
|
||||||
closeBtn: 1,
|
closeBtn: 1,
|
||||||
area: ['40%', '50%'],
|
area: ['40%', '100%'],
|
||||||
|
offset: 'r',
|
||||||
shadeClose: false,
|
shadeClose: false,
|
||||||
anim: 2,
|
anim: 2,
|
||||||
content: top.restAjax.path('route/community/save.html', []),
|
content: top.restAjax.path('route/community/save.html?areaId={areaId}&areaName={areaName}', [areaId, query.areaName]),
|
||||||
end: function() {
|
end: function() {
|
||||||
reloadTable();
|
reloadTable();
|
||||||
}
|
}
|
||||||
@ -175,9 +162,10 @@
|
|||||||
} else {
|
} else {
|
||||||
layer.open({
|
layer.open({
|
||||||
type: 2,
|
type: 2,
|
||||||
title: '编辑信息',
|
title: `${areaName}:编辑社区(村)`,
|
||||||
|
offset: 'r',
|
||||||
closeBtn: 1,
|
closeBtn: 1,
|
||||||
area: ['40%', '50%'],
|
area: ['40%', '100%'],
|
||||||
shadeClose: false,
|
shadeClose: false,
|
||||||
anim: 2,
|
anim: 2,
|
||||||
content: top.restAjax.path('route/community/update.html?communityId={id}', [checkDatas[0].communityId]),
|
content: top.restAjax.path('route/community/update.html?communityId={id}', [checkDatas[0].communityId]),
|
||||||
|
@ -34,6 +34,12 @@
|
|||||||
<input type="text" name="communitySummary" placeholder="请输入补充说明" class="layui-input">
|
<input type="text" name="communitySummary" placeholder="请输入补充说明" class="layui-input">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="layui-form-item">
|
||||||
|
<label class="layui-form-label">跳转地址</label>
|
||||||
|
<div class="layui-input-block">
|
||||||
|
<input type="text" name="jumpSystemUrl" placeholder="请输入跳转系统地址" class="layui-input">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="layui-form-item">
|
<div class="layui-form-item">
|
||||||
<label class="layui-form-label">排序</label>
|
<label class="layui-form-label">排序</label>
|
||||||
<div class="layui-input-block">
|
<div class="layui-input-block">
|
||||||
@ -62,16 +68,16 @@
|
|||||||
}).use(['index', 'form', 'laydate'], function() {
|
}).use(['index', 'form', 'laydate'], function() {
|
||||||
var $ = layui.$;
|
var $ = layui.$;
|
||||||
var form = layui.form;
|
var form = layui.form;
|
||||||
var dictionaryParentId = top.restAjax.params(window.location.href).dictParentId;
|
var query = top.restAjax.params(window.location.href);
|
||||||
var formObject = {
|
var areaId = query.areaId;
|
||||||
communityName: null,
|
var areaName = decodeURI(query.areaName);
|
||||||
communitySummary: null,
|
|
||||||
communityOrder: '1',
|
|
||||||
areaId: null,
|
|
||||||
areaName: null,
|
|
||||||
}
|
|
||||||
|
|
||||||
$('.layui-card').height($(window).height() - 30);
|
var init = function() {
|
||||||
|
$('#areaId').val(areaId);
|
||||||
|
$('#areaName').val(areaName);
|
||||||
|
$('.layui-card').height($(window).height() - 30);
|
||||||
|
}
|
||||||
|
init();
|
||||||
|
|
||||||
function closeBox() {
|
function closeBox() {
|
||||||
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
||||||
@ -111,36 +117,6 @@
|
|||||||
closeBox();
|
closeBox();
|
||||||
});
|
});
|
||||||
|
|
||||||
// 点击地区名称选择输入框,弹出层方法
|
|
||||||
$(document).on('click', '#areaName', function() {
|
|
||||||
top.dialog.tree({
|
|
||||||
title: '所属地区',
|
|
||||||
apiUri: 'api/dict/listztreedict',
|
|
||||||
width: '200px',
|
|
||||||
height: '400px',
|
|
||||||
defaultParams: {id: '9d179f05-3ea0-48f7-853c-d3b7124b791c'},
|
|
||||||
selectedNodes: [
|
|
||||||
{
|
|
||||||
id: formObject.areaId,
|
|
||||||
name: formObject.areaName,
|
|
||||||
title: formObject.areaName
|
|
||||||
}
|
|
||||||
],
|
|
||||||
onClose: function() {
|
|
||||||
var selectNodes = top.dialog.dialogTreeData.selectedNodes;
|
|
||||||
if(typeof(selectNodes) != 'undefined' && selectNodes != null) {
|
|
||||||
if(selectNodes.length > 0) {
|
|
||||||
var selectedNode = selectNodes[0];
|
|
||||||
$('#areaId').val(selectedNode.id);
|
|
||||||
$('#areaName').val(selectedNode.name);
|
|
||||||
} else {
|
|
||||||
$('#areaId').val();
|
|
||||||
$('#areaName').val();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
@ -34,6 +34,12 @@
|
|||||||
<input type="text" name="communitySummary" placeholder="请输入补充说明" class="layui-input">
|
<input type="text" name="communitySummary" placeholder="请输入补充说明" class="layui-input">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="layui-form-item">
|
||||||
|
<label class="layui-form-label">跳转地址</label>
|
||||||
|
<div class="layui-input-block">
|
||||||
|
<input type="text" name="jumpSystemUrl" placeholder="请输入跳转系统地址" class="layui-input">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="layui-form-item">
|
<div class="layui-form-item">
|
||||||
<label class="layui-form-label">排序</label>
|
<label class="layui-form-label">排序</label>
|
||||||
<div class="layui-input-block">
|
<div class="layui-input-block">
|
||||||
@ -119,41 +125,6 @@
|
|||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
/*// 点击志愿者选择输入框,弹出层方法
|
|
||||||
$(document).on('click', '#areaName', function() {
|
|
||||||
top.dialog.tree({
|
|
||||||
title: '选择地区',
|
|
||||||
apiUri: 'api/dict/listztreedict',
|
|
||||||
width: '200px',
|
|
||||||
height: '400px',
|
|
||||||
defaultParams: {id: '9d179f05-3ea0-48f7-853c-d3b7124b791c'},
|
|
||||||
selectedNodes: [
|
|
||||||
{
|
|
||||||
id: $('#areaId').val(),
|
|
||||||
name: $('#areaName').val(),
|
|
||||||
title: $('#areaName').val()
|
|
||||||
}
|
|
||||||
],
|
|
||||||
onClose: function() {
|
|
||||||
var selectNodes = top.dialog.dialogTreeData.selectedNodes;
|
|
||||||
if(typeof(selectNodes) != 'undefined' && selectNodes != null) {
|
|
||||||
if(selectNodes.length > 0) {
|
|
||||||
var selectedNode = selectNodes[0];
|
|
||||||
formObject.areaId = selectedNode.id;
|
|
||||||
formObject.areaName = selectedNode.name;
|
|
||||||
$('#areaId').val(selectedNode.id);
|
|
||||||
$('#areaName').val(selectedNode.name);
|
|
||||||
} else {
|
|
||||||
formObject.areaId = null;
|
|
||||||
formObject.areaName = null;
|
|
||||||
$('#areaId').val(selectedNode.id);
|
|
||||||
$('#areaName').val(selectedNode.name);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});*/
|
|
||||||
|
|
||||||
$('.close').on('click', function() {
|
$('.close').on('click', function() {
|
||||||
closeBox();
|
closeBox();
|
||||||
});
|
});
|
||||||
|
@ -82,6 +82,17 @@
|
|||||||
{field:'dictSummary', width:160, title: '字典说明', align:'center',},
|
{field:'dictSummary', width:160, title: '字典说明', align:'center',},
|
||||||
{field:'dictCode', width:100, title: '字典编码', align:'center',},
|
{field:'dictCode', width:100, title: '字典编码', align:'center',},
|
||||||
{field:'dictOrder', width:100, title: '排序', align:'center',},
|
{field:'dictOrder', width:100, title: '排序', align:'center',},
|
||||||
|
{field:'isHide', width:100, title: '是否隐藏', align:'center',
|
||||||
|
templet: function(row) {
|
||||||
|
if(row.isHide === 0) {
|
||||||
|
return '否'
|
||||||
|
}
|
||||||
|
if(row.isHide === 1) {
|
||||||
|
return '是';
|
||||||
|
}
|
||||||
|
return '错误';
|
||||||
|
}
|
||||||
|
},
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
page: true,
|
page: true,
|
||||||
|
@ -58,7 +58,13 @@
|
|||||||
<input type="number" name="dictOrder" lay-verify="number" placeholder="请输入字典排序" value="0" class="layui-input">
|
<input type="number" name="dictOrder" lay-verify="number" placeholder="请输入字典排序" value="0" class="layui-input">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="layui-form-item" pane>
|
||||||
|
<label class="layui-form-label">是否隐藏</label>
|
||||||
|
<div class="layui-input-block">
|
||||||
|
<input type="radio" name="isHide" value="0" title="否" checked>
|
||||||
|
<input type="radio" name="isHide" value="1" title="是">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="layui-form-item layui-layout-admin">
|
<div class="layui-form-item layui-layout-admin">
|
||||||
<div class="layui-input-block">
|
<div class="layui-input-block">
|
||||||
<div class="layui-footer" style="left: 0;">
|
<div class="layui-footer" style="left: 0;">
|
||||||
|
@ -58,7 +58,13 @@
|
|||||||
<input type="number" name="dictOrder" lay-verify="number" placeholder="请输入字典排序" value="0" class="layui-input">
|
<input type="number" name="dictOrder" lay-verify="number" placeholder="请输入字典排序" value="0" class="layui-input">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="layui-form-item" pane>
|
||||||
|
<label class="layui-form-label">是否隐藏</label>
|
||||||
|
<div class="layui-input-block">
|
||||||
|
<input type="radio" name="isHide" value="0" title="否">
|
||||||
|
<input type="radio" name="isHide" value="1" title="是">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="layui-form-item layui-layout-admin">
|
<div class="layui-form-item layui-layout-admin">
|
||||||
<div class="layui-input-block">
|
<div class="layui-input-block">
|
||||||
<div class="layui-footer" style="left: 0;">
|
<div class="layui-footer" style="left: 0;">
|
||||||
@ -95,7 +101,8 @@
|
|||||||
industryCode: data.industryCode,
|
industryCode: data.industryCode,
|
||||||
dictSummary: data.dictSummary,
|
dictSummary: data.dictSummary,
|
||||||
dictCode: data.dictCode,
|
dictCode: data.dictCode,
|
||||||
dictOrder: data.dictOrder
|
dictOrder: data.dictOrder,
|
||||||
|
isHide: data.isHide,
|
||||||
});
|
});
|
||||||
form.render(null, 'dataForm');
|
form.render(null, 'dataForm');
|
||||||
}, function(code, data) {
|
}, function(code, data) {
|
||||||
|
Loading…
Reference in New Issue
Block a user