2 Commits

Author SHA1 Message Date
liaozetao
0bfba01942 修改时间 2024-05-01 13:59:45 +08:00
liaozetao
bb25c03f85 修复其它视频文件 2024-04-02 11:28:26 +08:00
2 changed files with 10 additions and 9 deletions

View File

@@ -174,6 +174,8 @@
</template>
<script>
import TableHelper from '@/utils/bootstrap-table-helper';
import { formatTime } from '@/utils/maintainer';
export default {
name: "BlockedAdminView",
setup() { },
@@ -195,15 +197,10 @@ export default {
autoclose: true,
startDate: new Date()
})
$(function () {//默认时间
var todayDate = new Date();
var minute = todayDate.getMinutes() < 10 ? "0" + todayDate.getMinutes() : todayDate.getMinutes();
var month = (todayDate.getMonth() + 1) < 10 ? "0" + (todayDate.getMonth() + 1) : (todayDate.getMonth() + 1);
var todayDateStr = todayDate.getFullYear() + "-" + month + "-" + todayDate.getDate() + " " + todayDate.getHours() + ":" + minute;
$("#addStartDate").val(todayDateStr);
$("#startDate").val(todayDateStr);
})
$(function () {
var todayDate = new Date();
$("#addStartDate").val(formatTime(todayDate));
$("#startDate").val(formatTime(todayDate));
$('#table').bootstrapTable('destroy');
// 清空分页组件的容器
$('.fixed-table-pagination').empty();

View File

@@ -1181,7 +1181,7 @@ export default {
$("#seqNo").val('');
$("#giftId").val('');
$('#viewUploadFile').val('');
$('#viewUrl').attr('');
$('#viewUrl').val('');
$('#viewFile').attr("src", '');
$("#viewFileInfo").html('');
$("#startValidTime").val('');
@@ -1457,6 +1457,10 @@ export default {
autoclose: true,
});
$("#table").on("click", '.opt-edit', function () {
$('#viewUploadFile').val('');
$('#viewUrl').val('');
$('#viewFile').attr("src", '');
$("#viewFileInfo").html('');
console.log("btnEdit");
var id = $(this).attr("data-id");
$.ajax({