From 2f26d01864244b187f3ed3475265ba16514a51af Mon Sep 17 00:00:00 2001 From: huangyao <792466870@qq.com> Date: Wed, 13 Jan 2021 15:24:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=9F=A5=E8=AF=A2=EF=BC=9B?= =?UTF-8?q?=20=E6=B7=BB=E5=8A=A0=E5=AD=97=E5=85=B8=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../webapp/assets/modular/system/dict/dict.js | 21 +++++++++---------- .../modular/system/dictType/dictType.js | 2 +- .../pages/modular/system/dict/dict_add.html | 12 +++++++++++ .../pages/modular/system/dict/dict_edit.html | 12 +++++++++++ 4 files changed, 35 insertions(+), 12 deletions(-) diff --git a/src/main/webapp/assets/modular/system/dict/dict.js b/src/main/webapp/assets/modular/system/dict/dict.js index efcb0e7f..79e3e426 100644 --- a/src/main/webapp/assets/modular/system/dict/dict.js +++ b/src/main/webapp/assets/modular/system/dict/dict.js @@ -23,7 +23,6 @@ layui.use(['table', 'treeTable', 'func', 'HttpRequest'], function () { {type: 'checkbox'}, {field: 'dictName', align: "center", title: '字典名称'}, {field: 'dictCode', align: "center", title: '字典编码'}, - {field: 'dictNamePinYin', align: "center", title: '字典拼音'}, {align: 'center', toolbar: '#tableBar', title: '操作'} ]; }; @@ -43,7 +42,7 @@ layui.use(['table', 'treeTable', 'func', 'HttpRequest'], function () { */ Dict.openAddDlg = function () { func.open({ - height: 550, + height: 680, title: '添加字典', content: Feng.ctxPath + '/view/dict/addView?dictTypeId=' + $("#dictTypeId").val(), tableId: Dict.tableId, @@ -60,7 +59,7 @@ layui.use(['table', 'treeTable', 'func', 'HttpRequest'], function () { */ Dict.openEditDlg = function (data) { func.open({ - height: 550, + height: 680, title: '修改字典', content: Feng.ctxPath + '/view/dict/editView?dictId=' + data.dictId, tableId: Dict.tableId, @@ -77,14 +76,14 @@ layui.use(['table', 'treeTable', 'func', 'HttpRequest'], function () { */ Dict.onDeleteItem = function (data) { var operation = function () { - // var ajax = new $ax(Feng.ctxPath + "/dict/delete", function (data) { - // Feng.success("删除成功!"); - // Dict.search(); - // }, function (data) { - // Feng.error("删除失败!" + data.responseJSON.message + "!"); - // }); - // ajax.set("dictId", data.dictId); - // ajax.start(); + var httpRequest = new HttpRequest(Feng.ctxPath + "/dict/deleteDict", 'post', function (data) { + Feng.success("删除成功!"); + Dict.search(); + }, function (data) { + Feng.error("删除失败!" + data.message + "!"); + }); + httpRequest.set(data); + httpRequest.start(true); }; Feng.confirm("是否删除?", operation); }; diff --git a/src/main/webapp/assets/modular/system/dictType/dictType.js b/src/main/webapp/assets/modular/system/dictType/dictType.js index 769279e8..f51d3665 100644 --- a/src/main/webapp/assets/modular/system/dictType/dictType.js +++ b/src/main/webapp/assets/modular/system/dictType/dictType.js @@ -34,7 +34,7 @@ layui.use(['table', 'func', 'HttpRequest', 'form'], function () { } } }, - {field: 'dictTypeNamePinYin', align: "center", sort: true, title: '名词拼音'}, + {field: 'dictTypeNamePinyin', align: "center", sort: true, title: '名词拼音'}, {field: 'dictTypeCode', align: "center", sort: true, title: '类型编码', minWidth: 166}, {field: 'dictTypeBusCode', align: "center", sort: true, title: '业务编码', minWidth: 166}, {field: 'dictTypeDesc', align: "center", sort: true, title: '字典描述'}, diff --git a/src/main/webapp/pages/modular/system/dict/dict_add.html b/src/main/webapp/pages/modular/system/dict/dict_add.html index d9503be7..dabf742f 100644 --- a/src/main/webapp/pages/modular/system/dict/dict_add.html +++ b/src/main/webapp/pages/modular/system/dict/dict_add.html @@ -20,12 +20,24 @@ +