puzhibing
2023-08-14 26e2592813b9263124d518d238262910e817d323
cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TStoreInfo.js
@@ -5,7 +5,8 @@
    id: "TStoreProvinceTable",   //表格id
    seItem: null,      //选中的条目
    table: null,
    layerIndex: -1
    layerIndex: -1,
    storeList: []
};
/**
@@ -13,7 +14,7 @@
 */
TStoreProvince.initColumn = function () {
    return [
        {field: 'selectItem', radio: true},
        {field: 'selectItem', checkbox: true},
        {title: '选择', field: '', visible: true, align: 'center', valign: 'middle'},
        {title: 'id', field: 'id', visible: false, align: 'center', valign: 'middle'},
        {title: '所属账号', field: 'accountName', visible: true, align: 'center', valign: 'middle'},
@@ -37,11 +38,30 @@
};
function storeOfClosePage(){
    parent.layer.close(window.parent.couponInfoDlg.layerIndex);
TStoreProvince.storeOfClosePage = function (){
    parent.layer.close(parent.layer.getFrameIndex(window.frameElement.id));
}
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,
                provinceCity: typeof selected[i].provinceCity != "undefined" ? selected[i].provinceCity : "",
                accountName: typeof selected[i].accountName != "undefined" ? selected[i].accountName : "",
                name: typeof selected[i].name != "undefined" ? selected[i].name : ""
            })
        }
    }
    window.parent.couponInfoDlg.selecUserOpt(arr);
    TStoreProvince.storeOfClosePage();
}