layui.use(['form', 'admin', 'ax'], function () {
admin.putTempData('formOk',true);
admin.putTempData('saleProvince','已选'+saleProvince+'个省');
admin.putTempData('provinceNo',selectProvinceCodes);
var index = parent.layer.getFrameIndex(window.name);
parent.layer.close(index); //再执行关闭
});
父页面接收:
ItemListInfoDlg.openAddDlg = function () {
func.open({
height: 720,
title: '设 置 可 销 售 地 区',
content: Feng.ctxPath + '/itemList/provinceAdd?itemId=' + Feng.getUrlParam("itemId"),
endCallback: function () {
$("#saleProvince").html(admin.getTempData('saleProvince'));
$("#provinceNo").val(admin.getTempData('provinceNo'));
form.render();
}
});
};
[[i] 本帖最后由 xiexie 于 2020-6-2 17:31 编辑 [/i]]