mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-03 16:24:28 +08:00
完成临时图片的自动删除;
This commit is contained in:
@@ -79,18 +79,18 @@
|
||||
|
||||
var boxItem = $('.tpl .table-card-box').clone()
|
||||
|
||||
$.each($(trItem).data(),function(index,value){
|
||||
|
||||
$(boxItem).data(index,value)
|
||||
$.each($(trItem).data(), function (index, value) {
|
||||
|
||||
$(boxItem).data(index, value)
|
||||
})
|
||||
|
||||
$(trItem).find('td').each(function (index, ele) {
|
||||
var itemItem = $('.tpl .table-card-item').clone()
|
||||
$(itemItem).find('.item-title').text($('.layui-table thead th').eq(index).text())
|
||||
|
||||
if($(ele).children().length == 0){
|
||||
if ($(ele).children().length == 0) {
|
||||
$(itemItem).find('.item-value').html($(ele).html())
|
||||
}else{
|
||||
} else {
|
||||
|
||||
$(ele).children().clone().appendTo($(itemItem).find('.item-value'))
|
||||
}
|
||||
@@ -105,6 +105,15 @@
|
||||
|
||||
|
||||
})
|
||||
|
||||
function callClearTempImg() {
|
||||
$.get('{:url("File/clearTempImg")}', function () {
|
||||
setTimeout(() => {
|
||||
callClearTempImg()
|
||||
}, 10000);
|
||||
})
|
||||
}
|
||||
callClearTempImg()
|
||||
</script>
|
||||
|
||||
<div class="tpl" style="display: none;">
|
||||
|
||||
Reference in New Issue
Block a user