From d4505c1e8cf5a3044a296a861bc8e540f4e95803 Mon Sep 17 00:00:00 2001 From: weizhiqiang <598748873@qq.com> Date: Sun, 8 Jan 2023 21:44:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E7=BC=96=E7=A0=81=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../js/codeRule/businessDataCodeRuleConfig.js | 56 ------------------- .../codeRule/businessDataCodeRuleConfig.html | 52 ----------------- .../template/js/dsFormPage/pageList.js | 8 ++- 3 files changed, 6 insertions(+), 110 deletions(-) delete mode 100644 common/src/main/resources/template/js/codeRule/businessDataCodeRuleConfig.js delete mode 100644 common/src/main/resources/template/tpl/codeRule/businessDataCodeRuleConfig.html diff --git a/common/src/main/resources/template/js/codeRule/businessDataCodeRuleConfig.js b/common/src/main/resources/template/js/codeRule/businessDataCodeRuleConfig.js deleted file mode 100644 index 9053d978b..000000000 --- a/common/src/main/resources/template/js/codeRule/businessDataCodeRuleConfig.js +++ /dev/null @@ -1,56 +0,0 @@ - -layui.config({ - base: basePath, - version: skyeyeVersion -}).extend({ - window: 'js/winui.window' -}).define(['window', 'jquery', 'winui', 'form'], function (exports) { - winui.renderColor(); - var $ = layui.$, - form = layui.form; - - // 获取所有编码规则 - var codeRuleSelectHtml = ''; - AjaxPostUtil.request({url: reqBasePath + "getAllCodeRuleList", params: {}, type: 'json', method: "GET", callback: function(json) { - codeRuleSelectHtml = getDataUseHandlebars(getFileContent('tpl/template/select-option.tpl'), json); - }, async: false}); - - // 获取需要配置编码规则的业务功能对象 - showGrid({ - id: "showForm", - url: reqBasePath + "queryClassCodeRuleList", - params: {}, - pagination: false, - method: "GET", - template: $("#baseTemplate").html(), - ajaxSendLoadBefore: function (hdb, json) { - $.each(json.bean, function (key, appIdValue) { - $.each(appIdValue, function (i, groupNameValue) { - $.each(groupNameValue, function (j, bean) { - bean.selectHtml = codeRuleSelectHtml; - }); - }); - }); - }, - ajaxSendAfter: function (json) { - $.each(json.bean, function (key, appIdValue) { - $.each(appIdValue, function (i, groupNameValue) { - $.each(groupNameValue, function (j, bean) { - $("#" + bean.id).val(bean.codeRuleId); - }) - }); - }); - - form.render(); - form.on('select(codeRole)', function(data) { - var cudeRuleId = data.value; - var id = data.elem.id; - AjaxPostUtil.request({url: reqBasePath + "editClassCodeRuleConfig", params: {id: id, cudeRuleId: cudeRuleId}, type: 'json', method: "POST", callback: function (json) { - winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000}); - }}); - }); - } - }); - - exports('businessDataCodeRuleConfig', {}); -}); diff --git a/common/src/main/resources/template/tpl/codeRule/businessDataCodeRuleConfig.html b/common/src/main/resources/template/tpl/codeRule/businessDataCodeRuleConfig.html deleted file mode 100644 index 5e0ab07a9..000000000 --- a/common/src/main/resources/template/tpl/codeRule/businessDataCodeRuleConfig.html +++ /dev/null @@ -1,52 +0,0 @@ - - -
- -