mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-05 17:30:30 +00:00
Dev ansible windows 2 (#2783)
* [Update] 改密支持windows * [Update] 修改asset表结构 * [Feature] Windows支持批量改密、测试可连接性等功能 * [Update] 处理创建资产时labels的问题 * [Update] 优化测试管理系统、系统用户可连接性任务执行逻辑 * [Update] 优化ansible任务逻辑;添加自动推送rdp系统用户功能 * [Update] 添加翻译 * [Update] 优化ansible任务逻辑(测试系统用户可连接性, 通过协议过滤资产) * [Update] 更新翻译 * [Update] 更新翻译 * [Update] 推送windows系统用户,默认添加到Users、Remote Desktop Users组中 * [Update] 优化小细节 * [Update] 更新翻译,删除多余代码 * [Update] 更新翻译信息
This commit is contained in:
@@ -165,11 +165,13 @@ function formSubmit(props) {
|
||||
/*
|
||||
{
|
||||
"form": $("form"),
|
||||
"data": {},
|
||||
"url": "",
|
||||
"method": "POST",
|
||||
"redirect_to": "",
|
||||
"success": function(data, textStatue, jqXHR){},
|
||||
"error": function(jqXHR, textStatus, errorThrown) {}
|
||||
"error": function(jqXHR, textStatus, errorThrown) {},
|
||||
"message": "",
|
||||
}
|
||||
*/
|
||||
props = props || {};
|
||||
@@ -183,6 +185,10 @@ function formSubmit(props) {
|
||||
dataType: props.data_type || "json"
|
||||
}).done(function (data, textState, jqXHR) {
|
||||
if (redirect_to) {
|
||||
if (props.message) {
|
||||
var messages="ed65330a45559c87345a0eb6ac7812d18d0d8976$[[\"__json_message\"\0540\05425\054\"asdfasdf \\u521b\\u5efa\\u6210\\u529f\"]]"
|
||||
setCookie("messages", messages)
|
||||
}
|
||||
location.href = redirect_to;
|
||||
} else if (typeof props.success === 'function') {
|
||||
return props.success(data, textState, jqXHR);
|
||||
@@ -230,7 +236,15 @@ function formSubmit(props) {
|
||||
var help_msg = v.join("<br/>") ;
|
||||
helpBlockRef.html(help_msg);
|
||||
} else {
|
||||
noneFieldErrorMsg += v + '<br/>';
|
||||
$.each(v, function (kk, vv) {
|
||||
if (typeof errors === "object") {
|
||||
$.each(vv, function (kkk, vvv) {
|
||||
noneFieldErrorMsg += " " + vvv + '<br/>';
|
||||
})
|
||||
} else{
|
||||
noneFieldErrorMsg += vv + '<br/>';
|
||||
}
|
||||
})
|
||||
}
|
||||
});
|
||||
if (noneFieldErrorRef.length === 1 && noneFieldErrorMsg !== '') {
|
||||
|
Reference in New Issue
Block a user