This commit is contained in:
parent
946f9f41ec
commit
8e74f27512
|
|
@ -131,9 +131,9 @@
|
||||||
fileList = res.obj
|
fileList = res.obj
|
||||||
|
|
||||||
if (fileList.length === 3) {
|
if (fileList.length === 3) {
|
||||||
$('#upload-btn').attr('disabled', true)
|
$('#upload-btn').hide()
|
||||||
} else {
|
} else {
|
||||||
$('#upload-btn').attr('disabled', false)
|
$('#upload-btn').show()
|
||||||
}
|
}
|
||||||
if (res.obj && res.obj.length > 0) {
|
if (res.obj && res.obj.length > 0) {
|
||||||
$('.password-book-list').empty()
|
$('.password-book-list').empty()
|
||||||
|
|
@ -153,13 +153,16 @@
|
||||||
getUploadFile()
|
getUploadFile()
|
||||||
|
|
||||||
// 删除文件
|
// 删除文件
|
||||||
function deleteFile() {
|
function deleteFile(id) {
|
||||||
console.log('删除', $(this).data('id'))
|
$.ajax({
|
||||||
|
url: ctxPath + '/upload/delFile',
|
||||||
|
type: 'POST',
|
||||||
|
data: { id },
|
||||||
|
success: function (res) {
|
||||||
|
getUploadFile()
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue