'use strict'; /** * * * @author lanjianrong * @date 2020/8/7 * @version */ $(document).ready(function () { autoFlashHeight() let oldVal = null let timer = null let oldSearchVal = null handleFileList(fileList) // 控制上报弹窗的文案 function checkModal(isHide) { if (isHide) { $('#tm-fail').show() $('#tm-success').hide() $('#tm-submit').hide() } else { $('#tm-fail').hide() $('#tm-success').show() $('#tm-submit').show() } } $('#gr-search').bind('input propertychange', function(e) { oldSearchVal = e.target.value timer && clearTimeout(timer) timer = setTimeout(() => { const newVal = $('#gr-search').val() let html = '' if (newVal && newVal === oldSearchVal) { accountList.filter(item => item.name.indexOf(newVal) !== -1 || item.mobile === newVal).forEach(item => { html += `
${item.name}${item.mobile || ''}
${item.role || ''}${item.name}${item.mobile || ''}
${item.role || ''}中交第一公路工程局有限公司国道311线满别公路施工一分部
const html = [] html.push('${data.company}