diff --git a/ruoyi-front/src/main/resources/templates/front/carousel/add.html b/ruoyi-front/src/main/resources/templates/front/carousel/add.html index f2d89227f..843d73d72 100644 --- a/ruoyi-front/src/main/resources/templates/front/carousel/add.html +++ b/ruoyi-front/src/main/resources/templates/front/carousel/add.html @@ -41,40 +41,40 @@ } } - // $(function() { - // $('.summernote').summernote({ - // lang: 'zh-CN', - // callbacks: { - // onChange: function(contents, $edittable) { - // $("input[name='" + this.id + "']").val(contents); - // }, - // onImageUpload: function(files) { - // var obj = this; - // var data = new FormData(); - // data.append("file", files[0]); - // $.ajax({ - // type: "post", - // url: ctx + "common/upload", - // data: data, - // cache: false, - // contentType: false, - // processData: false, - // dataType: 'json', - // success: function(result) { - // if (result.code == web_status.SUCCESS) { - // $('#' + obj.id).summernote('insertImage', result.url); - // } else { - // $.modal.alertError(result.msg); - // } - // }, - // error: function(error) { - // $.modal.alertWarning("图片上传失败。"); - // } - // }); - // } - // } - // }); - // }); + $(function() { + $('.summernote').summernote({ + lang: 'zh-CN', + callbacks: { + onChange: function(contents, $edittable) { + $("input[name='" + this.id + "']").val(contents); + }, + onImageUpload: function(files) { + var obj = this; + var data = new FormData(); + data.append("file", files[0]); + $.ajax({ + type: "post", + url: ctx + "common/upload", + data: data, + cache: false, + contentType: false, + processData: false, + dataType: 'json', + success: function(result) { + if (result.code == web_status.SUCCESS) { + $('#' + obj.id).summernote('insertImage', result.url); + } else { + $.modal.alertError(result.msg); + } + }, + error: function(error) { + $.modal.alertWarning("图片上传失败。"); + } + }); + } + } + }); + }); \ No newline at end of file diff --git a/ruoyi-front/src/main/resources/templates/front/carousel/edit.html b/ruoyi-front/src/main/resources/templates/front/carousel/edit.html index 23fbaca79..a2e07482d 100644 --- a/ruoyi-front/src/main/resources/templates/front/carousel/edit.html +++ b/ruoyi-front/src/main/resources/templates/front/carousel/edit.html @@ -34,44 +34,44 @@ $.operate.save(prefix + "/edit", $('#form-carousel-edit').serialize()); } } - // $(function() { - // $('.summernote').each(function(i) { - // $('#' + this.id).summernote({ - // lang: 'zh-CN', - // callbacks: { - // onChange: function(contents, $edittable) { - // $("input[name='" + this.id + "']").val(contents); - // }, - // onImageUpload: function(files) { - // var obj = this; - // var data = new FormData(); - // data.append("file", files[0]); - // $.ajax({ - // type: "post", - // url: ctx + "common/upload", - // data: data, - // cache: false, - // contentType: false, - // processData: false, - // dataType: 'json', - // success: function(result) { - // if (result.code == web_status.SUCCESS) { - // $('#' + obj.id).summernote('insertImage', result.url); - // } else { - // $.modal.alertError(result.msg); - // } - // }, - // error: function(error) { - // $.modal.alertWarning("图片上传失败。"); - // } - // }); - // } - // } - // }); - // var content = $("input[name='" + this.id + "']").val(); - // $('#' + this.id).summernote('code', content); - // }) - // }); + $(function() { + $('.summernote').each(function(i) { + $('#' + this.id).summernote({ + lang: 'zh-CN', + callbacks: { + onChange: function(contents, $edittable) { + $("input[name='" + this.id + "']").val(contents); + }, + onImageUpload: function(files) { + var obj = this; + var data = new FormData(); + data.append("file", files[0]); + $.ajax({ + type: "post", + url: ctx + "common/upload", + data: data, + cache: false, + contentType: false, + processData: false, + dataType: 'json', + success: function(result) { + if (result.code == web_status.SUCCESS) { + $('#' + obj.id).summernote('insertImage', result.url); + } else { + $.modal.alertError(result.msg); + } + }, + error: function(error) { + $.modal.alertWarning("图片上传失败。"); + } + }); + } + } + }); + var content = $("input[name='" + this.id + "']").val(); + $('#' + this.id).summernote('code', content); + }) + }); \ No newline at end of file diff --git a/ruoyi-front/src/main/resources/templates/front/cases/add.html b/ruoyi-front/src/main/resources/templates/front/cases/add.html index f1b21b4c9..1d45864ff 100644 --- a/ruoyi-front/src/main/resources/templates/front/cases/add.html +++ b/ruoyi-front/src/main/resources/templates/front/cases/add.html @@ -73,40 +73,40 @@ } } - // $(function() { - // $('.summernote').summernote({ - // lang: 'zh-CN', - // callbacks: { - // onChange: function(contents, $edittable) { - // $("input[name='" + this.id + "']").val(contents); - // }, - // onImageUpload: function(files) { - // var obj = this; - // var data = new FormData(); - // data.append("file", files[0]); - // $.ajax({ - // type: "post", - // url: ctx + "common/upload", - // data: data, - // cache: false, - // contentType: false, - // processData: false, - // dataType: 'json', - // success: function(result) { - // if (result.code == web_status.SUCCESS) { - // $('#' + obj.id).summernote('insertImage', result.url); - // } else { - // $.modal.alertError(result.msg); - // } - // }, - // error: function(error) { - // $.modal.alertWarning("图片上传失败。"); - // } - // }); - // } - // } - // }); - // }); + $(function() { + $('.summernote').summernote({ + lang: 'zh-CN', + callbacks: { + onChange: function(contents, $edittable) { + $("input[name='" + this.id + "']").val(contents); + }, + onImageUpload: function(files) { + var obj = this; + var data = new FormData(); + data.append("file", files[0]); + $.ajax({ + type: "post", + url: ctx + "common/upload", + data: data, + cache: false, + contentType: false, + processData: false, + dataType: 'json', + success: function(result) { + if (result.code == web_status.SUCCESS) { + $('#' + obj.id).summernote('insertImage', result.url); + } else { + $.modal.alertError(result.msg); + } + }, + error: function(error) { + $.modal.alertWarning("图片上传失败。"); + } + }); + } + } + }); + }); \ No newline at end of file diff --git a/ruoyi-front/src/main/resources/templates/front/cases/edit.html b/ruoyi-front/src/main/resources/templates/front/cases/edit.html index 6a5b4621f..3b4c61382 100644 --- a/ruoyi-front/src/main/resources/templates/front/cases/edit.html +++ b/ruoyi-front/src/main/resources/templates/front/cases/edit.html @@ -74,44 +74,44 @@ } } - // $(function() { - // $('.summernote').each(function(i) { - // $('#' + this.id).summernote({ - // lang: 'zh-CN', - // callbacks: { - // onChange: function(contents, $edittable) { - // $("input[name='" + this.id + "']").val(contents); - // }, - // onImageUpload: function(files) { - // var obj = this; - // var data = new FormData(); - // data.append("file", files[0]); - // $.ajax({ - // type: "post", - // url: ctx + "common/upload", - // data: data, - // cache: false, - // contentType: false, - // processData: false, - // dataType: 'json', - // success: function(result) { - // if (result.code == web_status.SUCCESS) { - // $('#' + obj.id).summernote('insertImage', result.url); - // } else { - // $.modal.alertError(result.msg); - // } - // }, - // error: function(error) { - // $.modal.alertWarning("图片上传失败。"); - // } - // }); - // } - // } - // }); - // var content = $("input[name='" + this.id + "']").val(); - // $('#' + this.id).summernote('code', content); - // }) - // }); + $(function() { + $('.summernote').each(function(i) { + $('#' + this.id).summernote({ + lang: 'zh-CN', + callbacks: { + onChange: function(contents, $edittable) { + $("input[name='" + this.id + "']").val(contents); + }, + onImageUpload: function(files) { + var obj = this; + var data = new FormData(); + data.append("file", files[0]); + $.ajax({ + type: "post", + url: ctx + "common/upload", + data: data, + cache: false, + contentType: false, + processData: false, + dataType: 'json', + success: function(result) { + if (result.code == web_status.SUCCESS) { + $('#' + obj.id).summernote('insertImage', result.url); + } else { + $.modal.alertError(result.msg); + } + }, + error: function(error) { + $.modal.alertWarning("图片上传失败。"); + } + }); + } + } + }); + var content = $("input[name='" + this.id + "']").val(); + $('#' + this.id).summernote('code', content); + }) + }); \ No newline at end of file diff --git a/ruoyi-front/src/main/resources/templates/front/information/add.html b/ruoyi-front/src/main/resources/templates/front/information/add.html index da931fee0..1e4a5208e 100644 --- a/ruoyi-front/src/main/resources/templates/front/information/add.html +++ b/ruoyi-front/src/main/resources/templates/front/information/add.html @@ -35,11 +35,10 @@
-
- - +
+ +
- 代码生成请选择字典属性
-
- - +
+ +
- 代码生成请选择字典属性
diff --git a/ruoyi-front/src/main/resources/templates/front/information/information.html b/ruoyi-front/src/main/resources/templates/front/information/information.html index 9d2c6dbcb..a97a05cee 100644 --- a/ruoyi-front/src/main/resources/templates/front/information/information.html +++ b/ruoyi-front/src/main/resources/templates/front/information/information.html @@ -18,15 +18,15 @@ -
  • +
  • - - +
  • @@ -48,9 +48,9 @@ 删除 - +
  • @@ -61,6 +61,7 @@ \ No newline at end of file diff --git a/ruoyi-front/src/main/resources/templates/front/recruitment/edit.html b/ruoyi-front/src/main/resources/templates/front/recruitment/edit.html index 4f0435fa4..17aa19f0f 100644 --- a/ruoyi-front/src/main/resources/templates/front/recruitment/edit.html +++ b/ruoyi-front/src/main/resources/templates/front/recruitment/edit.html @@ -70,44 +70,44 @@ $.operate.save(prefix + "/edit", $('#form-recruitment-edit').serialize()); } } - // $(function() { - // $('.summernote').each(function(i) { - // $('#' + this.id).summernote({ - // lang: 'zh-CN', - // callbacks: { - // onChange: function(contents, $edittable) { - // $("input[name='" + this.id + "']").val(contents); - // }, - // onImageUpload: function(files) { - // var obj = this; - // var data = new FormData(); - // data.append("file", files[0]); - // $.ajax({ - // type: "post", - // url: ctx + "common/upload", - // data: data, - // cache: false, - // contentType: false, - // processData: false, - // dataType: 'json', - // success: function(result) { - // if (result.code == web_status.SUCCESS) { - // $('#' + obj.id).summernote('insertImage', result.url); - // } else { - // $.modal.alertError(result.msg); - // } - // }, - // error: function(error) { - // $.modal.alertWarning("图片上传失败。"); - // } - // }); - // } - // } - // }); - // var content = $("input[name='" + this.id + "']").val(); - // $('#' + this.id).summernote('code', content); - // }) - // }); + $(function() { + $('.summernote').each(function(i) { + $('#' + this.id).summernote({ + lang: 'zh-CN', + callbacks: { + onChange: function(contents, $edittable) { + $("input[name='" + this.id + "']").val(contents); + }, + onImageUpload: function(files) { + var obj = this; + var data = new FormData(); + data.append("file", files[0]); + $.ajax({ + type: "post", + url: ctx + "common/upload", + data: data, + cache: false, + contentType: false, + processData: false, + dataType: 'json', + success: function(result) { + if (result.code == web_status.SUCCESS) { + $('#' + obj.id).summernote('insertImage', result.url); + } else { + $.modal.alertError(result.msg); + } + }, + error: function(error) { + $.modal.alertWarning("图片上传失败。"); + } + }); + } + } + }); + var content = $("input[name='" + this.id + "']").val(); + $('#' + this.id).summernote('code', content); + }) + }); \ No newline at end of file