From 079bd65cdec3927c21fe7fd6d0cccf4d31ef4a40 Mon Sep 17 00:00:00 2001 From: xuhubin <1269286451@qq.com> Date: Thu, 5 Nov 2020 17:12:10 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E6=96=B0=E9=97=BB=E5=8A=A8=E6=80=81?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=B0=83=E6=95=B4=202=E3=80=81=E5=AF=8C?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E7=BC=96=E8=BE=91=E5=99=A8=E4=B8=8D=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=97=AE=E9=A2=98=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/front/carousel/add.html | 68 ++++++++--------- .../templates/front/carousel/edit.html | 76 +++++++++---------- .../resources/templates/front/cases/add.html | 68 ++++++++--------- .../resources/templates/front/cases/edit.html | 76 +++++++++---------- .../templates/front/information/add.html | 7 +- .../templates/front/information/edit.html | 11 ++- .../front/information/information.html | 18 +++-- .../templates/front/recruitment/add.html | 68 ++++++++--------- .../templates/front/recruitment/edit.html | 76 +++++++++---------- 9 files changed, 235 insertions(+), 233 deletions(-) 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