From 86d193d4b86441b154b898e20f42ff270f6163e2 Mon Sep 17 00:00:00 2001 From: liujie <liujie> Date: 星期二, 08 八月 2023 18:01:39 +0800 Subject: [PATCH] 后台代码--评价管理、公告管理、协议管理 --- cloud-server-management/src/main/webapp/static/modular/system/tSite/tSite.js | 26 ++++++++++++++++++++++++-- 1 files changed, 24 insertions(+), 2 deletions(-) diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tSite/tSite.js b/cloud-server-management/src/main/webapp/static/modular/system/tSite/tSite.js index c672429..efb9b57 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tSite/tSite.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tSite/tSite.js @@ -26,7 +26,10 @@ }, {title: '场地责任险有效期', field: 'lineNum', visible: true, align: 'center', valign: 'middle', }, - {title: language==1?'状态':(language==2?'State':'Status'), field: 'state', visible: true, align: 'center', valign: 'middle', + {title: '状态', field: 'state', visible: true, align: 'center', valign: 'middle', + formatter:function (data) { + return {1:"上架中",2:"下架中"}[data] + } } ]; }; @@ -44,7 +47,26 @@ return true; } }; - +TSite.oneChange = function (e) { + var oneId=$(e).val(); + var ajax = new $ax(Feng.ctxPath + "/tCity/onChange", function(data){ + if(data!=null){ + if(language==1){ + var content='<option value="">选择市</option>'; + }else if(language==2){ + var content='<option value="">Choose your franchisee</option>'; + }else { + var content='<option value="">Pilih franchisee Anda</option>'; + } + $.each(data, function(k,v) { + content += "<option value='"+v.code+"'>"+v.name+"</option>"; + }); + $("#cCode").empty().append(content); + } + }); + ajax.set("oneId",oneId); + ajax.start(); +} /** * 点击添加跨城站点管理 */ -- Gitblit v1.7.1