Your ROOT_URL in app.ini is http://git.zky.com/ but you are visiting http://61.178.84.89:8998/luoluo/ry_zhky/commit/6806ad935aee892ee422dad9338298c6d9a2f526?style=split&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
4 changed files with
19 additions and
7 deletions
@ -729,7 +729,19 @@ var table = {
}
}
} ) ;
} ) ;
return selects ;
return selects ;
} ,
// 获取选中单选框项
radioCheckeds : function ( name ) {
var radios = "" ;
$ ( 'input:radio[name="' + name + '"]:checked' ) . each ( function ( i ) {
if ( 0 == i ) {
radios = $ ( this ) . val ( ) ;
} else {
radios += ( "," + $ ( this ) . val ( ) ) ;
}
}
} ) ;
return radios ;
} ,
} ,
} ,
// 弹出层封装处理
// 弹出层封装处理
modal : {
modal : {
@ -92,7 +92,7 @@
< label class = "col-sm-4 control-label is-required" > 角色:< / label >
< label class = "col-sm-4 control-label is-required" > 角色:< / label >
< div class = "col-sm-8" >
< div class = "col-sm-8" >
< label th:each = "role:${roles}" class = "check-box" >
< label th:each = "role:${roles}" class = "check-box" >
< input name = "role" type = " checkbox " th:value = "${role.roleId}" th:text = "${role.roleName}" th:disabled = "${role.status == '1'}" >
< input name = "role" type = " radio " th:value = "${role.roleId}" th:text = "${role.roleName}" th:disabled = "${role.status == '1'}" >
< / label >
< / label >
< / div >
< / div >
< / div >
< / div >
@ -363,7 +363,7 @@
if ($.validate.form() & & checkpwd(chrtype, password)) {
if ($.validate.form() & & checkpwd(chrtype, password)) {
var data = $("#form-user-add").serializeArray();
var data = $("#form-user-add").serializeArray();
var status = $("input[id='status']").is(':checked') == true ? 0 : 1;
var status = $("input[id='status']").is(':checked') == true ? 0 : 1;
var roleIds = $.form.select Checkeds("role");
var roleIds = $.form.radio Checkeds("role");
var postIds = $.form.selectSelects("post");
var postIds = $.form.selectSelects("post");
data.push({"name": "status", "value": status});
data.push({"name": "status", "value": status});
data.push({"name": "roleIds", "value": roleIds});
data.push({"name": "roleIds", "value": roleIds});
@ -61,7 +61,7 @@
clickToSelect: true,
clickToSelect: true,
maintainSelected: true,
maintainSelected: true,
columns: [{
columns: [{
checkbox : true,
radio : true,
formatter:function (value, row, index) {
formatter:function (value, row, index) {
if($.common.isEmpty(value)) {
if($.common.isEmpty(value)) {
return { checked: row.flag };
return { checked: row.flag };
@ -81,7 +81,7 @@
< label class = "col-sm-4 control-label is-required" > 角色:< / label >
< label class = "col-sm-4 control-label is-required" > 角色:< / label >
< div class = "col-sm-8" >
< div class = "col-sm-8" >
< label th:each = "role:${roles}" required class = "check-box" >
< label th:each = "role:${roles}" required class = "check-box" >
< input name = "role" type = "checkbox " th:value = "${role.roleId}" th:text = "${role.roleName}" th:checked = "${role.flag}" th:disabled = "${role.status == '1'}" >
< input name = "role" type = "radio " th:value = "${role.roleId}" th:text = "${role.roleName}" th:checked = "${role.flag}" th:disabled = "${role.status == '1'}" >
< / label >
< / label >
< / div >
< / div >
< / div >
< / div >
@ -308,7 +308,7 @@
if ($.validate.form()) {
if ($.validate.form()) {
var data = $("#form-user-edit").serializeArray();
var data = $("#form-user-edit").serializeArray();
/*var status = $("input[id='status']").is(':checked') == true ? 0 : 1;*/
/*var status = $("input[id='status']").is(':checked') == true ? 0 : 1;*/
var roleIds = $.form.select Checkeds("role");
var roleIds = $.form.radio Checkeds("role");
var postIds = $.form.selectSelects("post");
var postIds = $.form.selectSelects("post");
/*data.push({"name": "status", "value": status});*/
/*data.push({"name": "status", "value": status});*/
data.push({"name": "roleIds", "value": roleIds});
data.push({"name": "roleIds", "value": roleIds});