优化JS路径

This commit is contained in:
RuoYi
2018-04-28 21:39:42 +08:00
parent e74c244cdc
commit 55ccae57f8
81 changed files with 182 additions and 184 deletions

View File

@ -13,5 +13,5 @@ $("#form-dict-add").validate({
});
function add() {
_ajax_save("/system/dict/data/save", $("#form-dict-add").serialize());
_ajax_save(ctx + "system/dict/data/save", $("#form-dict-add").serialize());
}

View File

@ -1,4 +1,4 @@
var prefix = "/system/dict/data"
var prefix = ctx + "system/dict/data"
$(function() {
var columns = [{

View File

@ -13,5 +13,5 @@ $("#form-dict-edit").validate({
});
function update() {
_ajax_save("/system/dict/data/save", $("#form-dict-edit").serialize());
_ajax_save(ctx + "system/dict/data/save", $("#form-dict-edit").serialize());
}

View File

@ -7,7 +7,7 @@ $("#form-dict-add").validate({
required:true,
minlength: 5,
remote: {
url: "/system/dict/checkDictTypeUnique",
url: ctx + "system/dict/checkDictTypeUnique",
type: "post",
dataType: "text",
data: {
@ -33,5 +33,5 @@ $("#form-dict-add").validate({
});
function add() {
_ajax_save("/system/dict/save", $("#form-dict-add").serialize());
_ajax_save(ctx + "system/dict/save", $("#form-dict-add").serialize());
}

View File

@ -7,7 +7,7 @@ $("#form-dict-edit").validate({
required:true,
minlength: 5,
remote: {
url: "/system/dict/checkDictTypeUnique",
url: ctx + "system/dict/checkDictTypeUnique",
type: "post",
dataType: "text",
data: {
@ -36,5 +36,5 @@ $("#form-dict-edit").validate({
});
function update() {
_ajax_save("/system/dict/save", $("#form-dict-edit").serialize());
_ajax_save(ctx + "system/dict/save", $("#form-dict-edit").serialize());
}

View File

@ -1,4 +1,4 @@
var prefix = "/system/dict"
var prefix = ctx + "system/dict"
$(function() {
var columns = [{