|
|
@ -38,9 +38,6 @@ function updateSelectList(url, id) {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}(jQuery));
|
|
|
|
}(jQuery));
|
|
|
|
$(function () {
|
|
|
|
|
|
|
|
$('#backTop').backTop();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
//ajax cache
|
|
|
|
//ajax cache
|
|
|
|
$(function () {
|
|
|
|
$(function () {
|
|
|
|
$.ajaxSetup({
|
|
|
|
$.ajaxSetup({
|
|
|
@ -260,28 +257,28 @@ $(function () {
|
|
|
|
$('select.search').select2({ language: "zh-CN" });
|
|
|
|
$('select.search').select2({ language: "zh-CN" });
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$('body').on('click', '.cmd', function () {
|
|
|
|
$('body').on('click', '.cmd', function () {
|
|
|
|
$.getJSON($(this).attr('href'), function (response) {
|
|
|
|
$.getJSON($(this).attr('href'), function (response) {
|
|
|
|
console.log(response);
|
|
|
|
console.log(response);
|
|
|
|
}).fail(function (jqxhr, textStatus, error) {
|
|
|
|
}).fail(function (jqxhr, textStatus, error) {
|
|
|
|
var err = textStatus + ", " + error;
|
|
|
|
var err = textStatus + ", " + error;
|
|
|
|
alert(err);
|
|
|
|
alert(err);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
function update(url, parent, targetId) {
|
|
|
|
function update(url, parent, targetId) {
|
|
|
|
$(targetId).find('option').not('[value=""]').remove();
|
|
|
|
$(targetId).find('option').not('[value=""]').remove();
|
|
|
|
if (url != null) {
|
|
|
|
if (url != null) {
|
|
|
|
url += '?parentId=' + encodeURI(parent);
|
|
|
|
url += '?parentId=' + encodeURI(parent);
|
|
|
|
$.getJSON(url, function (data) {
|
|
|
|
$.getJSON(url, function (data) {
|
|
|
|
$.each(data, function (i, v) {
|
|
|
|
$.each(data, function (i, v) {
|
|
|
|
$(targetId).append('<option value="' + v.Value + '">' + v.Text + '</option>');
|
|
|
|
$(targetId).append('<option value="' + v.Value + '">' + v.Text + '</option>');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function reset() {
|
|
|
|
function reset() {
|
|
|
|
$('form').removeData('validator');
|
|
|
|
$('form').removeData('validator');
|
|
|
|
$('form').removeData('unobtrusiveValidation');
|
|
|
|
$('form').removeData('unobtrusiveValidation');
|
|
|
|
$.validator.unobtrusive.parse('form');
|
|
|
|
$.validator.unobtrusive.parse('form');
|
|
|
|
}
|
|
|
|
}
|