完善web一些功能
This commit is contained in:
@@ -89,15 +89,16 @@
|
||||
<script src="/js/httpUtils.js"></script>
|
||||
<script src="/js/CommonConfig.js"></script>
|
||||
<script>
|
||||
function timeTips(isLive,that) {
|
||||
if(isLive){
|
||||
function timeTips(isLive, that) {
|
||||
if (isLive) {
|
||||
layer.tips('是从开始到结束时间范围内,主播开播会启动录制,超过结束范围不会中断正在录制的任务', that);
|
||||
}else{
|
||||
} else {
|
||||
layer.tips('仅在当前时间范围内录制,如遇到正在直播,则延迟到下播时停止录制', that);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
var roomId = getParam("roomId");
|
||||
var editArray = getParam("array")
|
||||
|
||||
layui.use(['form', 'laytpl', 'laydate'], function () {
|
||||
var form = layui.form;
|
||||
@@ -123,15 +124,35 @@
|
||||
}
|
||||
field.weeks = weeks;
|
||||
console.log(field)
|
||||
addRoomConfig(field)
|
||||
.then(json => {
|
||||
layer.msg(json.message, function () {
|
||||
if (json.status == 100) {
|
||||
close()
|
||||
}
|
||||
})
|
||||
if (editArray === null) {
|
||||
var loadIndex=showLoadingDialog();
|
||||
addRoomConfig(field)
|
||||
.then(json => {
|
||||
layer.close(loadIndex)
|
||||
layer.msg(json.message, function () {
|
||||
if (json.status == 100) {
|
||||
close()
|
||||
}
|
||||
})
|
||||
|
||||
})
|
||||
} else {
|
||||
var array = []
|
||||
editArray.split(',').forEach(element => {
|
||||
array.push(element)
|
||||
});
|
||||
var loadIndex=showLoadingDialog();
|
||||
setArrayRoomConfig(array, field)
|
||||
.then(json => {
|
||||
layer.close(loadIndex)
|
||||
layer.msg(json.message, function () {
|
||||
if (json.status == 100) {
|
||||
close()
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
return false; // 阻止默认 form 跳转
|
||||
});
|
||||
@@ -155,6 +176,9 @@
|
||||
$('#btn_reset').get(0).disabled = true;
|
||||
editRoom()
|
||||
}
|
||||
if (editArray !== null) {
|
||||
editArrayRoom()
|
||||
}
|
||||
}
|
||||
function getUserInfo() {
|
||||
getBiliAllUser()
|
||||
@@ -183,12 +207,20 @@
|
||||
for (let i = 0; i < json.weeks.length; i++) {
|
||||
result[`week_${json.weeks[i]}`] = true;
|
||||
}
|
||||
form.val('form-filter',result);
|
||||
|
||||
form.val('form-filter', result);
|
||||
|
||||
$('#url').get(0).disabled = true;
|
||||
}
|
||||
})
|
||||
}
|
||||
function editArrayRoom() {
|
||||
$('#btn_reset').get(0).disabled = true;
|
||||
$('#url').get(0).disabled = true;
|
||||
var result = {
|
||||
'url': editArray
|
||||
};
|
||||
form.val('form-filter', result);
|
||||
}
|
||||
init();
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user