From a65fcac55e7a57bb9d7f4ec864008cb3a0e0e78c Mon Sep 17 00:00:00 2001
From: lisy <linlangsur163@163.com>
Date: 星期一, 07 八月 2023 22:18:29 +0800
Subject: [PATCH] 管理后台的门店列表

---
 cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TStoreInfo.js |   25 +++++++++++++++++++++----
 1 files changed, 21 insertions(+), 4 deletions(-)

diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TStoreInfo.js b/cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TStoreInfo.js
index 6ecfd31..3699aca 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TStoreInfo.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TStoreInfo.js
@@ -38,13 +38,30 @@
 };
 
 
-function storeOfClosePage(){
+TStoreProvince.storeOfClosePage = function (){
     parent.layer.close(window.parent.couponInfoDlg.layerIndex);
 }
 
-function saveSelectStores(){
-
-
+TStoreProvince.saveSelectStores = function (){
+    var selected = $('#' + this.id).bootstrapTable('getSelections');
+    if (selected.length == 0) {
+        Feng.info("请先选中表格中的某一记录!");
+        return false;
+    }
+    var arr = [];
+    console.log('selected--->',selected)
+    for(var i in selected){
+        if(typeof selected[i].id != "undefined"){
+            arr.push({
+                id: selected[i].id,
+                companyName: typeof selected[i].companyName != "undefined" ? selected[i].companyName : "",
+                nickName: typeof selected[i].nickName != "undefined" ? selected[i].nickName : "",
+                phone: typeof selected[i].phone != "undefined" ? selected[i].phone : ""
+            })
+        }
+    }
+    window.parent.couponInfoDlg.selecUserOpt(arr);
+    TStoreProvince.storeOfClosePage();
 
 }
 

--
Gitblit v1.7.1