增加角色管理配置预览是否显示水印

master
zengwh 3 years ago
parent 82a3478353
commit 34bd6fa523

@ -90,6 +90,8 @@ public class PowerWebServiceImpl implements PowerWebService {
userWebServiceVo.setUserEmail(user.getDownloadRecord()+"");
//查看打印简要设置在职位字段
userWebServiceVo.setUserAge(user.getShowPrint());
//预览显示水印设置在年龄字段
userWebServiceVo.setUserSex(user.getShowWater());
userWebServiceVo.setMenus(menus);
}
}

@ -143,9 +143,14 @@
<label for="re_effective" class="control-label left">档案管理系统权限:</label>
<input type="checkbox" name="showRecordCheckbox">免申请预览档案
<input type="checkbox" name="downloadRecordCheckbox">免申请下载档案
<input type="checkbox" name="showPrintCheckbox">查看打印简要
<input type="hidden" name="showRecord" id="showRecord">
<input type="hidden" name="downloadRecord" id="downloadRecord">
</div>
<div class="formDiv">
<label for="re_effective" class="control-label left">档案管理系统权限:</label>
<input type="checkbox" name="showWaterCheckbox">预览显示水印
<input type="checkbox" name="showPrintCheckbox">查看打印简要
<input type="hidden" name="showWater" id="showWater">
<input type="hidden" name="showPrint" id="showPrint">
</div>
<div class="formDiv">

@ -195,6 +195,7 @@ function edit(id){
var showRecord = data.showRecord;
var downloadRecord = data.downloadRecord;
var showPrint = data.showPrint;
var showWater = data.showWater;
if(showRecord == 1){
$("input[name='showRecordCheckbox']").prop("checked",true);
$("#showRecord").val("1");
@ -216,6 +217,13 @@ function edit(id){
$("input[name='showPrintCheckbox']").prop("checked",false);
$("#showPrint").val("0");
}
if(showWater == 1){
$("input[name='showWaterCheckbox']").prop("checked",true);
$("#showWater").val("1");
}else{
$("input[name='showWaterCheckbox']").prop("checked",false);
$("#showWater").val("0");
}
}
});
$('#myModal').modal('show')
@ -277,6 +285,12 @@ $('#btn_submit').click(function () {
}else{
$("#showPrint").val(0);
}
var showWater = $("input[name='showWaterCheckbox']").is(":checked");
if(showWater){
$("#showWater").val(1);
}else{
$("#showWater").val(0);
}
var roleName = $("#re_roleName").val();
if(roleName != ''){
var roleId = $("#re_roleId").val();

@ -12,6 +12,8 @@ public class Power_Role{
private Short showPrint;
private Short showWater;
private String remark;
private Integer effective;
@ -111,4 +113,12 @@ public class Power_Role{
public void setUpdater(String updater) {
this.updater = updater;
}
public Short getShowWater() {
return showWater;
}
public void setShowWater(Short showWater) {
this.showWater = showWater;
}
}

@ -50,12 +50,22 @@ public class Power_UserVo extends Power_User {
private Integer showPrint;
private Integer showWater;
private Set<String> menus;
private List<User_Dept_Menu> menuList;
private List<User> userList;
public Integer getShowWater() {
return showWater;
}
public void setShowWater(Integer showWater) {
this.showWater = showWater;
}
public Integer getShowPrint() {
return showPrint;
}

@ -7,6 +7,7 @@
<result column="show_record" property="showRecord" jdbcType="SMALLINT" />
<result column="downLoad_record" property="downloadRecord" jdbcType="SMALLINT" />
<result column="show_print" property="showPrint" jdbcType="SMALLINT" />
<result column="show_water" property="showWater" jdbcType="SMALLINT" />
<result column="remark" property="remark" jdbcType="VARCHAR" />
<result column="effective" property="effective" jdbcType="INTEGER" />
<result column="create_date" property="createDate" jdbcType="CHAR" />
@ -15,7 +16,7 @@
<result column="updater" property="updater" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
role_id, role_name, show_record, downLoad_record, show_print, remark, effective,
role_id, role_name, show_record, downLoad_record, show_print,show_water, remark, effective,
create_date, creater, update_date, updater
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
@ -56,6 +57,9 @@
<if test="showPrint != null" >
show_print,
</if>
<if test="showWater != null" >
show_water,
</if>
<if test="remark != null" >
remark,
</if>
@ -126,6 +130,9 @@
<if test="showPrint != null" >
show_print = #{showPrint,jdbcType=SMALLINT},
</if>
<if test="showWater != null" >
show_water = #{showWater,jdbcType=SMALLINT},
</if>
<if test="remark != null" >
remark = #{remark,jdbcType=VARCHAR},
</if>

@ -237,6 +237,7 @@
power_role.show_record,
power_role.downLoad_record,
power_role.show_print,
power_role.show_water,
user_name,
NAME,
user_sex,

Loading…
Cancel
Save