function openUserSelect() { $.dialog({ content: 'url:ClearingPointController.do?CleanSelect', zIndex: getzIndex(), title: '清运点选择', lock: true, width: '850px', height: '650px', opacity: 0.4, button: [ { name: '确定', callback: function () { const iframe = this.iframe.contentWindow; if (iframe.getReason().length > 0) { const strData = eval(iframe.getReason()); for (const key in strData[0]) { if (key === "strId") { $("#id").val(strData[0][key]); } else if (key === "strName") { $("#name").val(strData[0][key]); } } $("#name").focus(); } }, focus: true }, { name: '取消', callback: function () { } } ] }).zindex(); } function callbackCleanUser() { $('#name').val(''); $('#id').val(''); }