/**
|
* 角色管理的单例
|
*/
|
var HomeSystemConfigure = {
|
};
|
|
|
/**
|
* 修改转发状态
|
* @param id
|
* @param s
|
*/
|
HomeSystemConfigure.saveHomeSystemConfigure = function(){
|
let content = "";
|
const label1 = $('#label1').val();
|
const label2 = $('#label2').val();
|
if(null == label1 || '' == label1 || null == label2 || '' == label2){
|
Feng.error("请填写完整信息");
|
return
|
}
|
content = [label1, label2];
|
var ajax = new $ax(Feng.ctxPath + "/systemConfigure/saveSystemConfigure", function (data) {
|
if(data.code == 200 ){
|
Feng.success("保存成功!");
|
HomeSystemConfigure.table.refresh();
|
}else{
|
Feng.error(data.msg);
|
}
|
}, function (data) {
|
Feng.error("保存失败!" + data.responseJSON.message + "!");
|
});
|
ajax.set({
|
id: $('#id').val(),
|
type: 5,
|
content: JSON.stringify(content)
|
});
|
ajax.start();
|
}
|
|
|
|
$(function () {
|
// 初始化头像上传
|
var avatarUp = new $WebUpload("label1");
|
avatarUp.setUploadBarId("progressBar");
|
avatarUp.init();
|
});
|