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