记得上下班打卡 | git大法好,push需谨慎

Commit 70c83a63 authored by sangchunxi's avatar sangchunxi

功能阻塞

parent 5dce2506
......@@ -384,7 +384,9 @@
for (let i = 0; i < list.length; i++) {
createListenerSearch(i + 1)
$(`#listActiveType${i+1}`).change(function () {
varObj[Object.keys(varObj)[i]].empty()
$('#listRemoteSearch' + (i + 1) + ' input').attr('value', '')
$('#listRemoteSearch' + (i + 1) + ' input').attr('data-id', '')
})
$('#listRemoteSearch' + (i + 1) + ' input').focus(function () {
......@@ -479,14 +481,24 @@
setTimeout(() => {
$(`#listActiveType${count}`).change(function () {
varObj[Object.keys(varObj)[count - 1]].empty()
$('#listRemoteSearch' + (count) + ' input').attr('value', '')
$('#listRemoteSearch' + (count) + ' input').attr('data-id', '')
})
$('#listRemoteSearch' + (count) + ' input').focus(function () {
$(this).val('')
$(this).attr('data-id', '')
})
}, 800)
}, 600)
setTimeout(() => {
$('#listRemoteSearch' + (count) + ' input').focus(function () {
$(this).val('')
$(this).attr('data-id', '')
})
}, 600)
} else {
layer.msg('不能添加')
......
......@@ -411,9 +411,11 @@
for (let i = 0; i < list.length; i++) {
createListenerSearch(i + 1)
$(`#listActiveType${i+1}`).change(function () {
varObj[Object.keys(varObj)[i]].empty()
$('#listRemoteSearch' + (i + 1) + ' input').attr('value', '')
$('#listRemoteSearch' + (i + 1) + ' input').attr('data-id', '')
})
$('#listRemoteSearch' + (i + 1) + ' input').focus(function (e) {
$('#listRemoteSearch' + (i + 1) + ' input').focus(function () {
$(this).val('')
$(this).attr('data-id', '')
})
......@@ -514,13 +516,23 @@
setTimeout(() => {
$(`#listActiveType${count}`).change(function () {
varObj[Object.keys(varObj)[count - 1]].empty()
$('#listRemoteSearch' + count + ' input').attr('value', '')
$('#listRemoteSearch' + count + ' input').attr('data-id', '')
})
}, 600)
setTimeout(() => {
$('#listRemoteSearch' + count + ' input').focus(function () {
$(this).val('')
$(this).attr('data-id', '')
})
// $('#listRemoteSearch' + count + ' input').blur(function () {
//
// })
}, 800)
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment