var tipShow = false, __campNo, __groupNo, __enabeTip = true, __roleHandleApi;
$(function () {
resizeHeight_Cmd();
window.addEventListener('resize', resizeHeight_Cmd);
getGroupRole();
getRunningScene();
bindTxtChange();
});
function setCampGroup(campNo, groupNo, enableTip, roleHandleApi) {
__campNo = campNo;
__groupNo = groupNo;
__enabeTip = enableTip;
__roleHandleApi = roleHandleApi;
}
function getGroupRole() {
$.iwbAjax4({
url: abp.appUrl + `Query/GetGroupRoleSelectStr?no=${__groupNo}`,
success: function (res) {
var str = ""
if (res) {
res += str
$('#role-select').html(res).select2({ minimumResultsForSearch: -1 });
} else {
$('#role-select').html(str).select2({ minimumResultsForSearch: -1 });
}
}
});
}
function getRunningScene() {
$('.scene-box').html(`
加载中...
`)
$.iwbAjax5({
url: abp.appUrl + `Query/GetGroupRunningScenes?no=${__groupNo}`,
success: function (res) {
formateRunningScene(res);
resizeHeight_Cmd();
}
});
}
function formateRunningScene(data) {
$('.scene-box').empty()
if (data && data.length) {
var str = "";
for (var i = 0; i < data.length; i++) {
var item = data[i];
var active = i == 0 ? "active" : "";
str += `