From 1e64ef03770f4e3a7f357049a6fe744f39c2c4b6 Mon Sep 17 00:00:00 2001
From: 44323 <443237572@qq.com>
Date: 星期二, 21 十一月 2023 09:12:20 +0800
Subject: [PATCH] 后台bug修改
---
cloud-server-management/src/main/webapp/static/modular/system/tGoods/TStoreInfo.js | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tGoods/TStoreInfo.js b/cloud-server-management/src/main/webapp/static/modular/system/tGoods/TStoreInfo.js
index 7fcae33..f72e818 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/tGoods/TStoreInfo.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/tGoods/TStoreInfo.js
@@ -18,7 +18,6 @@
{title: '序号', field: 'id', visible: true, align: 'center', valign: 'middle'},
{title: '所在省市', field: 'provinceCity', visible: true, align: 'center', valign: 'middle'},
{title: '门店名称', field: 'name', visible: true, align: 'center', valign: 'middle'},
- {title: '闸机id', field: 'ids', visible: true, align: 'center', valign: 'middle'},
];
};
@@ -123,12 +122,15 @@
var citySelect = document.getElementById("city");
citySelect.innerHTML = "";
- var ajax = new $ax(Feng.ctxPath + "/tCouponManage/getCity", function(data){
+ var ajax = new $ax(Feng.ctxPath + "/tCouponManage/getCity1", function(data){
+
data.forEach(province => {
- var option = document.createElement("option");
- option.value = province.code; // 根据你的数据结构确定省份的id字段
- option.text = province.name; // 根据你的数据结构确定省份的name字段
- citySelect.appendChild(option);
+ var content='<option value="">选择市</option>';
+ $.each(data, function(k,v) {
+ content += "<option value='"+v.code+"'>"+v.name+"</option>";
+ });
+ $("#city").empty().append(content);
+
});
},function(data){
console.log('data:',data)
--
Gitblit v1.7.1