diff --git a/ruoyi-admin/src/main/resources/templates/system/property/property/add.html b/ruoyi-admin/src/main/resources/templates/system/property/property/add.html index 7f7877c..8e8fa9f 100644 --- a/ruoyi-admin/src/main/resources/templates/system/property/property/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/property/property/add.html @@ -80,6 +80,15 @@ +
+ +
+ +
+
diff --git a/ruoyi-admin/src/main/resources/templates/system/property/property/edit.html b/ruoyi-admin/src/main/resources/templates/system/property/property/edit.html index 0797e68..a63d909 100644 --- a/ruoyi-admin/src/main/resources/templates/system/property/property/edit.html +++ b/ruoyi-admin/src/main/resources/templates/system/property/property/edit.html @@ -87,7 +87,14 @@
- +
+ +
+ +
+
diff --git a/ruoyi-admin/src/main/resources/templates/system/property/property/property.html b/ruoyi-admin/src/main/resources/templates/system/property/property/property.html index ab290f3..0220437 100644 --- a/ruoyi-admin/src/main/resources/templates/system/property/property/property.html +++ b/ruoyi-admin/src/main/resources/templates/system/property/property/property.html @@ -60,6 +60,7 @@ var editFlag = [[${@permission.hasPermi('system:property:edit')}]]; var removeFlag = [[${@permission.hasPermi('system:property:remove')}]]; var listFlag = [[${@permission.hasPermi('system:property:list')}]]; + var sysSecretsTypeDatas = [[${@dict.getType('sys_secrets_type')}]]; var prefix = ctx + "system/property"; let datas = [] $.ajax({ @@ -99,6 +100,13 @@ return getCity(datas, value) } }, + { + field: 'secretsType', + title: '密品分类', + formatter: function(value, row, index) { + return $.table.selectDictLabel(sysSecretsTypeDatas, value); + } + }, { field: 'useDepart', title: '使用部门' diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/TdPropertyManager.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/TdPropertyManager.java index e7e116a..2b133af 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/domain/TdPropertyManager.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/TdPropertyManager.java @@ -68,7 +68,7 @@ public class TdPropertyManager extends BaseEntity private Long propertyNum; - @Excel(name = "所属区县") + @Excel(name = "密品类型" ,readConverterExp = "1=涉密信息设备,2=涉密设备") private String secretsType; @@ -182,6 +182,14 @@ public class TdPropertyManager extends BaseEntity return propertyNum; } + public String getSecretsType() { + return secretsType; + } + + public void setSecretsType(String secretsType) { + this.secretsType = secretsType; + } + @Override public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) @@ -197,6 +205,7 @@ public class TdPropertyManager extends BaseEntity .append("part", getPart()) .append("areaId", getAreaId()) .append("propertyNum", getPropertyNum()) + .append("secretsType", getSecretsType()) .toString(); } } \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/TdPropertyManagerMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TdPropertyManagerMapper.xml index e862119..e79c4be 100644 --- a/ruoyi-system/src/main/resources/mapper/system/TdPropertyManagerMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/TdPropertyManagerMapper.xml @@ -17,10 +17,11 @@ + - select use_id, use_depart, user_name, use_date, framework_id, recover_depart, recover_name, recover_date, shemichengdu, part, area_id, property_num from td_property_manager + select use_id, use_depart, user_name, use_date, framework_id, recover_depart, recover_name, recover_date, shemichengdu, part, area_id, property_num,secrets_type from td_property_manager @@ -61,6 +63,7 @@ part, area_id, property_num, + secrets_type, #{useId}, @@ -75,6 +78,7 @@ #{part}, #{areaId}, #{propertyNum}, + #{secretsType}, @@ -92,6 +96,7 @@ part = #{part}, area_id = #{areaId}, property_num = #{propertyNum}, + secrets_type = #{secretsType}, where use_id = #{useId}