|
@@ -79,18 +79,6 @@
|
|
|
</div>
|
|
|
<div class="row">
|
|
|
</div>
|
|
|
- <div class="row">
|
|
|
- <div class="col-sm-8" >
|
|
|
- <div class="form-group"style="width: 100%;margin-left: 0">
|
|
|
- <label style="font-weight: bold">角色</label><br>
|
|
|
- <label th:each="role:${roles}" class="check-box">
|
|
|
- <input name="role" class="role" th:id="'role' + ${role.roleId}" type="radio"
|
|
|
- th:value="${role.roleId}"
|
|
|
- th:text="${role.roleName}" th:checked="${role.flag}">
|
|
|
- </label>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
<div class="row">
|
|
|
<div class="col-sm-4" id="parentUser">
|
|
|
<div class="form-group" style="margin-left: 0">
|
|
@@ -256,53 +244,50 @@
|
|
|
$("#annex1").css("width", "65%")
|
|
|
}
|
|
|
}
|
|
|
- $(".role").on("ifChecked",
|
|
|
- function (event) {
|
|
|
- roleId = Number($(event.target).val());
|
|
|
- if (roleId == role_id.RSZHGLBM_CAO_ZUO_YUAN || roleId == role_id.RSZHGLBM_CHU_SHEN_LING_DAO) {
|
|
|
- $("#parentUserId").empty();
|
|
|
- $("#parentUserLabel").text("上级用户");
|
|
|
- $("#parentUser").css('display', 'block');
|
|
|
- selectParentUsers(roleId + 1);
|
|
|
- } else if (roleId == role_id.RSZHGLBM_ZHONG_SHEN_LING_DAO || roleId==115) {
|
|
|
- $("#parentUserId").empty();
|
|
|
- $("#parentUser").css('display', 'none');
|
|
|
- }
|
|
|
- else if(roleId == role_id.CZY_DL ){
|
|
|
- $("#parentUserId").empty();
|
|
|
- $("#parentUser").css('display', 'block');
|
|
|
- $("#parentUserLabel").text("*辅助用户");
|
|
|
- selectParentUsers(role_id.RSZHGLBM_CAO_ZUO_YUAN);
|
|
|
- }
|
|
|
- else if(roleId == role_id.CSLD_DL){
|
|
|
- $("#parentUserId").empty();
|
|
|
- $("#parentUser").css('display', 'block');
|
|
|
- $("#parentUserLabel").text("*辅助用户");
|
|
|
- selectParentUsers(role_id.RSZHGLBM_CHU_SHEN_LING_DAO);
|
|
|
- }
|
|
|
- else if(roleId == role_id.ZSLD_DL){
|
|
|
- $("#parentUserId").empty();
|
|
|
- $("#parentUser").css('display', 'block');
|
|
|
- $("#parentUserLabel").text("*辅助用户");
|
|
|
- selectParentUsers(role_id.RSZHGLBM_ZHONG_SHEN_LING_DAO);
|
|
|
- }
|
|
|
- // 操作员,初审,终审 显示盖章权限
|
|
|
- if (roleId == role_id.RSZHGLBM_CAO_ZUO_YUAN || roleId == role_id.RSZHGLBM_CHU_SHEN_LING_DAO
|
|
|
- || roleId == role_id.RSZHGLBM_ZHONG_SHEN_LING_DAO) {
|
|
|
- $('#sign1').css("display", 'block');
|
|
|
- } else {
|
|
|
- $('#sign1').css("display", 'none');
|
|
|
- $('#signFlag').attr("checked", false);
|
|
|
- }
|
|
|
+ if (roleId == role_id.RSZHGLBM_CAO_ZUO_YUAN || roleId == role_id.RSZHGLBM_CHU_SHEN_LING_DAO) {
|
|
|
+ $("#parentUserId").empty();
|
|
|
+ $("#parentUserLabel").text("上级用户");
|
|
|
+ $("#parentUser").css('display', 'block');
|
|
|
+ selectParentUsers(roleId + 1);
|
|
|
+ } else if (roleId == role_id.RSZHGLBM_ZHONG_SHEN_LING_DAO || roleId==115) {
|
|
|
+ $("#parentUserId").empty();
|
|
|
+ $("#parentUser").css('display', 'none');
|
|
|
+ }
|
|
|
+ else if(roleId == role_id.CZY_DL ){
|
|
|
+ $("#parentUserId").empty();
|
|
|
+ $("#parentUser").css('display', 'block');
|
|
|
+ $("#parentUserLabel").text("*辅助用户");
|
|
|
+ selectParentUsers(role_id.RSZHGLBM_CAO_ZUO_YUAN);
|
|
|
+ }
|
|
|
+ else if(roleId == role_id.CSLD_DL){
|
|
|
+ $("#parentUserId").empty();
|
|
|
+ $("#parentUser").css('display', 'block');
|
|
|
+ $("#parentUserLabel").text("*辅助用户");
|
|
|
+ selectParentUsers(role_id.RSZHGLBM_CHU_SHEN_LING_DAO);
|
|
|
+ }
|
|
|
+ else if(roleId == role_id.ZSLD_DL){
|
|
|
+ $("#parentUserId").empty();
|
|
|
+ $("#parentUser").css('display', 'block');
|
|
|
+ $("#parentUserLabel").text("*辅助用户");
|
|
|
+ selectParentUsers(role_id.RSZHGLBM_ZHONG_SHEN_LING_DAO);
|
|
|
+ }
|
|
|
+ // 操作员,初审,终审 显示盖章权限
|
|
|
+ if (roleId == role_id.RSZHGLBM_CAO_ZUO_YUAN || roleId == role_id.RSZHGLBM_CHU_SHEN_LING_DAO
|
|
|
+ || roleId == role_id.RSZHGLBM_ZHONG_SHEN_LING_DAO) {
|
|
|
+ $('#sign1').css("display", 'block');
|
|
|
+ } else {
|
|
|
+ $('#sign1').css("display", 'none');
|
|
|
+ $('#signFlag').attr("checked", false);
|
|
|
+ }
|
|
|
|
|
|
|
|
|
- if (roleId == role_id.RSZHGLBM_CAO_ZUO_YUAN || roleId == role_id.RSZHGLBM_CHU_SHEN_LING_DAO || roleId == role_id.RSZHGLBM_ZHONG_SHEN_LING_DAO) {
|
|
|
- $('#sign1').css("display", 'block');
|
|
|
- } else {
|
|
|
- $('#sign1').css("display", 'none');
|
|
|
- $('#signFlag').attr("checked", false);
|
|
|
- }
|
|
|
- });
|
|
|
+ if (roleId == role_id.RSZHGLBM_CAO_ZUO_YUAN || roleId == role_id.RSZHGLBM_CHU_SHEN_LING_DAO || roleId == role_id.RSZHGLBM_ZHONG_SHEN_LING_DAO) {
|
|
|
+ $('#sign1').css("display", 'block');
|
|
|
+ } else {
|
|
|
+ $('#sign1').css("display", 'none');
|
|
|
+ $('#signFlag').attr("checked", false);
|
|
|
+ }
|
|
|
+
|
|
|
if(changeParentUserFlag == false){
|
|
|
$("#parentUserId").attr("disabled","true");
|
|
|
$("#parentUser").on("click",
|
|
@@ -310,12 +295,6 @@
|
|
|
$.modal.alertWarning("该用户有管理的申报单位,不能修改父用户");
|
|
|
}
|
|
|
);
|
|
|
- $(".role").attr("disabled","true");
|
|
|
- $(".check-box").on("click",
|
|
|
- function () {
|
|
|
- $.modal.alertWarning("请交接工作后再试");
|
|
|
- }
|
|
|
- );
|
|
|
}
|
|
|
|
|
|
//初始化上级用户
|
|
@@ -410,13 +389,6 @@
|
|
|
var manageDeptIds = user.manageDeptIds;
|
|
|
var manageModuleCodes = user.manageModuleCodes;
|
|
|
|
|
|
- if($("input[name='role']:checked").val() == role_id.SYDW_CHA_KAN_YUAN || $("input[name='role']:checked").val() == role_id.ZGBM_CHA_KAN_YUAN){
|
|
|
- if(!$.common.isEmpty(manageModuleCodes)){
|
|
|
- $.modal.alertWarning("请将申报权限转交给他人后再修改为操作员");
|
|
|
- return;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
data.push({"name": "roleIds", "value": roleId});
|
|
|
data.push({"name": "parentUserId", "value": parentUserId});
|
|
|
data.push({"name": "manageDeptIds", "value": manageDeptIds});
|