From e8568e7d8215f372dfe446f1cbc4ac9661a0a318 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=81=E7=91=9E=E8=B6=85?= <281809423@qq.com> Date: Tue, 3 Nov 2020 12:48:56 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=20=E5=90=88=E5=90=8C=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=EF=BC=8C=E5=90=88=E5=90=8C=E5=88=86=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../front/ContractTemplateController.java | 16 +-- .../front/ContractTypeController.java | 18 +-- .../com/ruoyi/front/domain/ClasssicCases.java | 1 - .../templates/front/contract/add.html | 49 ------- .../templates/front/contract/edit.html | 44 ------- .../front/contract_template/add.html | 124 ++++++++++++++++++ .../front/contract_template/edit.html | 123 +++++++++++++++++ .../template.html} | 72 +++++++--- 8 files changed, 319 insertions(+), 128 deletions(-) delete mode 100644 ruoyi-front/src/main/resources/templates/front/contract/add.html delete mode 100644 ruoyi-front/src/main/resources/templates/front/contract/edit.html create mode 100644 ruoyi-front/src/main/resources/templates/front/contract_template/add.html create mode 100644 ruoyi-front/src/main/resources/templates/front/contract_template/edit.html rename ruoyi-front/src/main/resources/templates/front/{contract/contract.html => contract_template/template.html} (57%) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/front/ContractTemplateController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/front/ContractTemplateController.java index 6cbf073af..dc7aabb00 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/front/ContractTemplateController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/front/ContractTemplateController.java @@ -26,15 +26,15 @@ import com.ruoyi.common.core.page.TableDataInfo; * @date 2020-10-21 */ @Controller -@RequestMapping("/front/template") +@RequestMapping("/front/contractTemplate") public class ContractTemplateController extends BaseController { - private String prefix = "front/template"; + private String prefix = "front/contract_template"; @Autowired private IContractTemplateService contractTemplateService; - @RequiresPermissions("front:template:view") + @RequiresPermissions("front:contract_template:view") @GetMapping() public String template() { @@ -44,7 +44,7 @@ public class ContractTemplateController extends BaseController /** * 查询合同模板列表 */ - @RequiresPermissions("front:template:list") + @RequiresPermissions("front:contractTemplate:list") @PostMapping("/list") @ResponseBody public TableDataInfo list(ContractTemplate contractTemplate) @@ -57,7 +57,7 @@ public class ContractTemplateController extends BaseController /** * 导出合同模板列表 */ - @RequiresPermissions("front:template:export") + @RequiresPermissions("front:contractTemplate:export") @Log(title = "合同模板", businessType = BusinessType.EXPORT) @PostMapping("/export") @ResponseBody @@ -80,7 +80,7 @@ public class ContractTemplateController extends BaseController /** * 新增保存合同模板 */ - @RequiresPermissions("front:template:add") + @RequiresPermissions("front:contractTemplate:add") @Log(title = "合同模板", businessType = BusinessType.INSERT) @PostMapping("/add") @ResponseBody @@ -103,7 +103,7 @@ public class ContractTemplateController extends BaseController /** * 修改保存合同模板 */ - @RequiresPermissions("front:template:edit") + @RequiresPermissions("front:contract_template:edit") @Log(title = "合同模板", businessType = BusinessType.UPDATE) @PostMapping("/edit") @ResponseBody @@ -115,7 +115,7 @@ public class ContractTemplateController extends BaseController /** * 删除合同模板 */ - @RequiresPermissions("front:template:remove") + @RequiresPermissions("front:contractTemplate:remove") @Log(title = "合同模板", businessType = BusinessType.DELETE) @PostMapping( "/remove") @ResponseBody diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/front/ContractTypeController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/front/ContractTypeController.java index 4ac195b52..691de574a 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/front/ContractTypeController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/front/ContractTypeController.java @@ -26,25 +26,25 @@ import com.ruoyi.common.core.page.TableDataInfo; * @date 2020-10-21 */ @Controller -@RequestMapping("/front/contract") +@RequestMapping("/front/contractType") public class ContractTypeController extends BaseController { - private String prefix = "front/contract"; + private String prefix = "front/contract_type"; @Autowired private IContractTypeService contractTypeService; - @RequiresPermissions("front:contract:view") + @RequiresPermissions("front:contractType:view") @GetMapping() public String contract() { - return prefix + "/contract"; + return prefix + "/type"; } /** * 查询合同分类列表 */ - @RequiresPermissions("front:contract:list") + @RequiresPermissions("front:contractType:list") @PostMapping("/list") @ResponseBody public TableDataInfo list(ContractType contractType) @@ -57,7 +57,7 @@ public class ContractTypeController extends BaseController /** * 导出合同分类列表 */ - @RequiresPermissions("front:contract:export") + @RequiresPermissions("front:contractType:export") @Log(title = "合同分类", businessType = BusinessType.EXPORT) @PostMapping("/export") @ResponseBody @@ -80,7 +80,7 @@ public class ContractTypeController extends BaseController /** * 新增保存合同分类 */ - @RequiresPermissions("front:contract:add") + @RequiresPermissions("front:contractType:add") @Log(title = "合同分类", businessType = BusinessType.INSERT) @PostMapping("/add") @ResponseBody @@ -103,7 +103,7 @@ public class ContractTypeController extends BaseController /** * 修改保存合同分类 */ - @RequiresPermissions("front:contract:edit") + @RequiresPermissions("front:contractType:edit") @Log(title = "合同分类", businessType = BusinessType.UPDATE) @PostMapping("/edit") @ResponseBody @@ -115,7 +115,7 @@ public class ContractTypeController extends BaseController /** * 删除合同分类 */ - @RequiresPermissions("front:contract:remove") + @RequiresPermissions("front:contractType:remove") @Log(title = "合同分类", businessType = BusinessType.DELETE) @PostMapping( "/remove") @ResponseBody diff --git a/ruoyi-front/src/main/java/com/ruoyi/front/domain/ClasssicCases.java b/ruoyi-front/src/main/java/com/ruoyi/front/domain/ClasssicCases.java index 9f65b3393..1525b1e5b 100644 --- a/ruoyi-front/src/main/java/com/ruoyi/front/domain/ClasssicCases.java +++ b/ruoyi-front/src/main/java/com/ruoyi/front/domain/ClasssicCases.java @@ -39,7 +39,6 @@ public class ClasssicCases extends BaseEntity private Integer hits; /** 图片地址(多个地址用,分隔) */ - @Excel(name = "图片地址", readConverterExp = "多=个地址用,分隔") private String pictureUrl; /** 状态(0正常 1停用) */ diff --git a/ruoyi-front/src/main/resources/templates/front/contract/add.html b/ruoyi-front/src/main/resources/templates/front/contract/add.html deleted file mode 100644 index 7f788ba08..000000000 --- a/ruoyi-front/src/main/resources/templates/front/contract/add.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
-
- - - - \ No newline at end of file diff --git a/ruoyi-front/src/main/resources/templates/front/contract/edit.html b/ruoyi-front/src/main/resources/templates/front/contract/edit.html deleted file mode 100644 index 6847bf771..000000000 --- a/ruoyi-front/src/main/resources/templates/front/contract/edit.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - -
-
- -
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
-
- - - - \ No newline at end of file diff --git a/ruoyi-front/src/main/resources/templates/front/contract_template/add.html b/ruoyi-front/src/main/resources/templates/front/contract_template/add.html new file mode 100644 index 000000000..4f86b01cb --- /dev/null +++ b/ruoyi-front/src/main/resources/templates/front/contract_template/add.html @@ -0,0 +1,124 @@ + + + + + + + +
+
+
+ +
+ + 代码生成请选择字典属性 +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+ 代码生成请选择字典属性 +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + + \ No newline at end of file diff --git a/ruoyi-front/src/main/resources/templates/front/contract_template/edit.html b/ruoyi-front/src/main/resources/templates/front/contract_template/edit.html new file mode 100644 index 000000000..7fc1f1f98 --- /dev/null +++ b/ruoyi-front/src/main/resources/templates/front/contract_template/edit.html @@ -0,0 +1,123 @@ + + + + + + + +
+
+ +
+ +
+ + 代码生成请选择字典属性 +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+ 代码生成请选择字典属性 +
+
+
+ +
+ +
+
+
+
+ + + + + \ No newline at end of file diff --git a/ruoyi-front/src/main/resources/templates/front/contract/contract.html b/ruoyi-front/src/main/resources/templates/front/contract_template/template.html similarity index 57% rename from ruoyi-front/src/main/resources/templates/front/contract/contract.html rename to ruoyi-front/src/main/resources/templates/front/contract_template/template.html index bc64c888e..c1cab019b 100644 --- a/ruoyi-front/src/main/resources/templates/front/contract/contract.html +++ b/ruoyi-front/src/main/resources/templates/front/contract_template/template.html @@ -1,7 +1,7 @@ - +
@@ -11,12 +11,30 @@
  • - - + +
  • - - + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + +
  •  搜索 @@ -28,16 +46,16 @@
@@ -48,9 +66,9 @@
+ + \ No newline at end of file diff --git a/ruoyi-front/src/main/resources/templates/front/contract_type/edit.html b/ruoyi-front/src/main/resources/templates/front/contract_type/edit.html new file mode 100644 index 000000000..8736c0bc8 --- /dev/null +++ b/ruoyi-front/src/main/resources/templates/front/contract_type/edit.html @@ -0,0 +1,44 @@ + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-front/src/main/resources/templates/front/contract_type/type.html b/ruoyi-front/src/main/resources/templates/front/contract_type/type.html new file mode 100644 index 000000000..a275b7483 --- /dev/null +++ b/ruoyi-front/src/main/resources/templates/front/contract_type/type.html @@ -0,0 +1,98 @@ + + + + + + +
+
+
+
+
+ +
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file From 51f79bc0f602b8c1115b6fb0dbe8989fa03e27d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=81=E7=91=9E=E8=B6=85?= <281809423@qq.com> Date: Tue, 3 Nov 2020 13:09:37 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E5=90=88=E5=90=8C=E5=88=86=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/templates/front/contract_type/add.html | 10 +++++----- .../templates/front/contract_type/edit.html | 6 +++--- .../templates/front/contract_type/type.html | 12 ++++++------ 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/ruoyi-front/src/main/resources/templates/front/contract_type/add.html b/ruoyi-front/src/main/resources/templates/front/contract_type/add.html index d105f9b33..ca89828fb 100644 --- a/ruoyi-front/src/main/resources/templates/front/contract_type/add.html +++ b/ruoyi-front/src/main/resources/templates/front/contract_type/add.html @@ -13,23 +13,23 @@
- +
-
+ +
diff --git a/ruoyi-front/src/main/resources/templates/front/contract_type/edit.html b/ruoyi-front/src/main/resources/templates/front/contract_type/edit.html index 8736c0bc8..b91c64426 100644 --- a/ruoyi-front/src/main/resources/templates/front/contract_type/edit.html +++ b/ruoyi-front/src/main/resources/templates/front/contract_type/edit.html @@ -14,17 +14,17 @@
- +
-
+
diff --git a/ruoyi-front/src/main/resources/templates/front/contract_type/type.html b/ruoyi-front/src/main/resources/templates/front/contract_type/type.html index a275b7483..3fa2c3632 100644 --- a/ruoyi-front/src/main/resources/templates/front/contract_type/type.html +++ b/ruoyi-front/src/main/resources/templates/front/contract_type/type.html @@ -15,7 +15,7 @@
  • - +
  • @@ -37,9 +37,9 @@ 删除 - +
    @@ -74,12 +74,12 @@ }, { field: 'englishName', - title: '分类名称' + title: '分类英文名称' }, - { + /*{ field: 'remark', title: '备注' - }, + },*/ { title: '操作', align: 'center',