|
@@ -316,7 +316,7 @@ $(function () {
|
|
|
//$(".img-wrapper").css("background-image", "url(../images/admin/notice_cover.png)");
|
|
|
$(".app-publish-wrapper").eq(0).show().siblings().hide();
|
|
|
$(".choose-publish-con").hide();
|
|
|
- } else if (noticeType == 2 || noticeType == 5) {
|
|
|
+ } else if (noticeType == 2 || noticeType == 5 || noticeType == 6) {
|
|
|
//$(".img-wrapper").css("background-image", "url(../images/admin/notice_cover.png)");
|
|
|
$(".app-publish-wrapper").hide();
|
|
|
$(".choose-publish-con").show();
|
|
@@ -326,8 +326,8 @@ $(function () {
|
|
|
contentType = 1; //选择公告和跳转链接时contentType传1
|
|
|
$(".app-publish-wrapper").eq(1).show().siblings().hide();
|
|
|
$(".choose-publish-con").hide();
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
});
|
|
@@ -343,7 +343,7 @@ $(function () {
|
|
|
//$(".img-wrapper").css("background-image", "url(../images/admin/notice_cover.png)");
|
|
|
$(".app-publish-wrapper").eq(3).show().siblings().hide();
|
|
|
$(".choose-publish-con").show();
|
|
|
- if($("#state").val()==5){
|
|
|
+ if($("#state").val()==5 || $("#state").val()==6){
|
|
|
$(".app-publish-wrapper").eq(3).find('.port-wp').css('visibility','hidden');
|
|
|
}else{
|
|
|
$(".app-publish-wrapper").eq(3).find('.port-wp').css('visibility','visible');
|
|
@@ -352,17 +352,17 @@ $(function () {
|
|
|
//$(".img-wrapper").css("background-image", "url(../images/admin/notice_cover.png)");
|
|
|
$(".app-publish-wrapper").eq(2).show().siblings().hide();
|
|
|
$(".choose-publish-con").show();
|
|
|
- if($("#state").val()==5){
|
|
|
+ if($("#state").val()==5 || $("#state").val()==6){
|
|
|
$(".app-publish-wrapper").eq(2).find('.port-wp').css('visibility','hidden');
|
|
|
}else{
|
|
|
$(".app-publish-wrapper").eq(2).find('.port-wp').css('visibility','visible');
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
});
|
|
|
//公告选择公众号发布端口
|
|
|
// $(" #announcement .port-con .checkbox-wp .check-item").on("click",function(){
|
|
|
- // if(!($("#announcement").is(':hidden')) &&
|
|
|
+ // if(!($("#announcement").is(':hidden')) &&
|
|
|
// ($(".port-con").find('input:checkbox[name="public"]').prop("checked")||$(".port-con").find('input:checkbox[name="pushMsg"]').prop("checked"))){
|
|
|
// if($(this).data("type")==3 || $(this).data("type")==1){
|
|
|
// $("#announcement .public-extra-wp").show();
|
|
@@ -372,7 +372,7 @@ $(function () {
|
|
|
// $("#announcement .search-wp").remove();
|
|
|
// }
|
|
|
// if($(this).data("type")==3){
|
|
|
-
|
|
|
+
|
|
|
// }else{
|
|
|
// $("#announcement .public-extra-msglist").hide();
|
|
|
// }
|
|
@@ -381,13 +381,13 @@ $(function () {
|
|
|
// $("#announcement .public-extra-wp").hide();
|
|
|
// $("#announcement .public-extra-msglist").hide();
|
|
|
// }
|
|
|
-
|
|
|
+
|
|
|
// });
|
|
|
//公告选择公众号发布端口 图文与模板消息只能选择1个 新需求 20211109
|
|
|
// var $dom =$("#announcement");
|
|
|
// $dom.find('input:checkbox[name="wx"]').prop("checked")
|
|
|
$(" #announcement .port-con .checkbox-wp .check-item").on("click",function(){
|
|
|
- if(!($("#announcement").is(':hidden')) &&
|
|
|
+ if(!($("#announcement").is(':hidden')) &&
|
|
|
($("#announcement .port-con").find('input:checkbox[name="public"]').prop("checked") )){//图文选中 模板消息不可以点击
|
|
|
console.log(4444444)
|
|
|
//图文选中 设置模板消息隐藏
|
|
@@ -397,7 +397,7 @@ $(function () {
|
|
|
//$('input:radio:first').attr('checked', 'checked');
|
|
|
//公众号所有粉丝 --隐藏部门的选中的值
|
|
|
// $("#announcement").find("input:radio[name='public']:first").prop('checked', true);
|
|
|
- // $("#announcement .tv-choose-content").hide();
|
|
|
+ // $("#announcement .tv-choose-content").hide();
|
|
|
$("#announcement .search-wp").remove();
|
|
|
}
|
|
|
// else if(!($("#announcement").is(':hidden')) && //图文不选中 模板消息可以点击
|
|
@@ -410,7 +410,7 @@ $(function () {
|
|
|
// $("#announcement .tv-choose-content").hide();
|
|
|
// $("#announcement .search-wp").remove();
|
|
|
// }
|
|
|
- else if(!($("#announcement").is(':hidden')) && // 模板消息选中 图文不可以点击
|
|
|
+ else if(!($("#announcement").is(':hidden')) && // 模板消息选中 图文不可以点击
|
|
|
( $("#announcement .port-con").find('input:checkbox[name="pushMsg"]').prop("checked"))){
|
|
|
console.log(33333)
|
|
|
$("#announcement .public-extra-wp").show();
|
|
@@ -428,7 +428,7 @@ $(function () {
|
|
|
$(".port-con").find('input:checkbox[name="public"]').show();
|
|
|
$(".port-con").find('input:checkbox[name="pushMsg"]').show();
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
});
|
|
|
//banner 跳转链接选择公众号发布端口
|
|
|
$("#link .port-con .checkbox-wp .check-item").on("click",function(){
|
|
@@ -473,7 +473,7 @@ $(function () {
|
|
|
if(type==4){
|
|
|
$("#announcement .tv-choose-content").show();
|
|
|
}else{
|
|
|
- $("#announcement .tv-choose-content").hide();
|
|
|
+ $("#announcement .tv-choose-content").hide();
|
|
|
}
|
|
|
});
|
|
|
|
|
@@ -489,9 +489,9 @@ $(function () {
|
|
|
$("#graphic .search-wp").remove();
|
|
|
}
|
|
|
if(type==4){
|
|
|
- $("#graphic .tv-choose-content").show();
|
|
|
+ $("#graphic .tv-choose-content").show();
|
|
|
}else{
|
|
|
- $("#graphic .tv-choose-content").hide();
|
|
|
+ $("#graphic .tv-choose-content").hide();
|
|
|
}
|
|
|
});
|
|
|
|
|
@@ -507,9 +507,9 @@ $(function () {
|
|
|
$("#link .search-wp").remove();
|
|
|
}
|
|
|
if(type==4){
|
|
|
- $("#link .tv-choose-content").show();
|
|
|
+ $("#link .tv-choose-content").show();
|
|
|
}else{
|
|
|
- $("#link .tv-choose-content").hide();
|
|
|
+ $("#link .tv-choose-content").hide();
|
|
|
}
|
|
|
});
|
|
|
//各个公告切换
|
|
@@ -1025,8 +1025,8 @@ $(function () {
|
|
|
|
|
|
|
|
|
var isPushTemplate=0
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
if(type==1){
|
|
|
//推送消息
|
|
|
if ($dom.find('input:checkbox[name="pushMsg"]').prop("checked")) {
|
|
@@ -1118,12 +1118,12 @@ $(function () {
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
|
|
|
var depListNotice=$("#announcement .tv-choose-content").val()
|
|
|
if($dom.find("input:radio[name='public']:checked").data("type")==4 && depListNotice){
|
|
|
- formData.append("deptGroupJson", depListNotice);
|
|
|
+ formData.append("deptGroupJson", depListNotice);
|
|
|
}else{
|
|
|
formData.append("deptGroupJson", "");
|
|
|
}
|
|
@@ -1135,7 +1135,7 @@ $(function () {
|
|
|
formData.append("isMessageList", isMessageList);
|
|
|
|
|
|
} else if (type == 2) {
|
|
|
- if(noticeType == 5){
|
|
|
+ if(noticeType == 5||noticeType == 6){
|
|
|
isApp = 0;
|
|
|
isWechat = 1;
|
|
|
positionTypeArr.push(2);
|
|
@@ -1204,7 +1204,7 @@ $(function () {
|
|
|
}
|
|
|
};
|
|
|
} else if (type == 3) {
|
|
|
- if(noticeType == 5){
|
|
|
+ if(noticeType == 5||noticeType == 6){
|
|
|
isApp = 0;
|
|
|
isWechat = 1;
|
|
|
positionTypeArr.push(2);
|
|
@@ -1277,7 +1277,7 @@ $(function () {
|
|
|
formData.append("isApp", isApp);
|
|
|
formData.append("positionType", positionType);
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
//添加审核类型
|
|
|
let approvetye=$("#approvalType").val()
|
|
@@ -1350,7 +1350,7 @@ $(function () {
|
|
|
console.log("部分选择",$("#announcement .tv-choose-content").val());
|
|
|
if (func == 'add') {
|
|
|
_this.throttle(_this.ajaxCreateApp(type, formData, ue, $dom), 5000);
|
|
|
-
|
|
|
+
|
|
|
} else {
|
|
|
_this.ajaxCreatePreviewApp(type, formData, ue, $dom);
|
|
|
// _this.previewPhone(type);
|
|
@@ -1364,7 +1364,7 @@ $(function () {
|
|
|
handler.apply(this, arguments);
|
|
|
lastTime = nowTime;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -1821,11 +1821,11 @@ $(function () {
|
|
|
$("#announcement .port-con").find('input:checkbox[name="pushMsg"]').hide();
|
|
|
if(data.publicObj==1){
|
|
|
$('#announcement input:radio[name="public"]').eq(0).prop("checked", true);
|
|
|
- $("#announcement .tv-choose-content").hide();
|
|
|
+ $("#announcement .tv-choose-content").hide();
|
|
|
}else if(data.publicObj==2){
|
|
|
var $dom = permPublish ? $('#announcement input:radio[name="public"]').eq(1) : $('#announcement input:radio[name="public"]').eq(0)
|
|
|
$dom.prop("checked", true);
|
|
|
- $("#announcement .tv-choose-content").hide();
|
|
|
+ $("#announcement .tv-choose-content").hide();
|
|
|
}else if(data.publicObj==3){
|
|
|
var $dom = permPublish ? $('#announcement input:radio[name="public"]').eq(2) : $('#announcement input:radio[name="public"]').eq(1)
|
|
|
$dom.prop("checked", true);
|
|
@@ -1835,7 +1835,7 @@ $(function () {
|
|
|
_this.getProjectSearch($(".search-select-wp"),2,function(allData){
|
|
|
_this.searchChooseEvent(2,$(".search-select-wp"),allData,data.userIds)
|
|
|
});
|
|
|
- $("#announcement .tv-choose-content").hide();
|
|
|
+ $("#announcement .tv-choose-content").hide();
|
|
|
}else if(data.publicObj==4){
|
|
|
var $dom = permPublish ? $('#announcement input:radio[name="public"]').eq(3) : $('#announcement input:radio[name="public"]').eq(1)
|
|
|
$dom.prop("checked", true);
|
|
@@ -1850,11 +1850,11 @@ $(function () {
|
|
|
$("#announcement .public-extra-msglist").hide();
|
|
|
if(data.publicObj==1){
|
|
|
$('#announcement input:radio[name="public"]').eq(0).prop("checked", true);
|
|
|
- $("#announcement .tv-choose-content").hide();
|
|
|
+ $("#announcement .tv-choose-content").hide();
|
|
|
}else if(data.publicObj==2){
|
|
|
var $dom = permPublish ? $('#announcement input:radio[name="public"]').eq(1) : $('#announcement input:radio[name="public"]').eq(0)
|
|
|
$dom.prop("checked", true);
|
|
|
- $("#announcement .tv-choose-content").hide();
|
|
|
+ $("#announcement .tv-choose-content").hide();
|
|
|
}else if(data.publicObj==3){
|
|
|
var $dom = permPublish ? $('#announcement input:radio[name="public"]').eq(2) : $('#announcement input:radio[name="public"]').eq(1)
|
|
|
$dom.prop("checked", true);
|
|
@@ -1864,7 +1864,7 @@ $(function () {
|
|
|
_this.getProjectSearch($(".search-select-wp"),2,function(allData){
|
|
|
_this.searchChooseEvent(2,$(".search-select-wp"),allData,data.userIds)
|
|
|
});
|
|
|
- $("#announcement .tv-choose-content").hide();
|
|
|
+ $("#announcement .tv-choose-content").hide();
|
|
|
}else if(data.publicObj==4){
|
|
|
var $dom = permPublish ? $('#announcement input:radio[name="public"]').eq(3) : $('#announcement input:radio[name="public"]').eq(1)
|
|
|
$dom.prop("checked", true);
|
|
@@ -1896,7 +1896,7 @@ $(function () {
|
|
|
// $('#announcement input:radio[name="public"]').attr("disabled", true);
|
|
|
// $('#announcement input:radio[name="msg"]').attr("disabled", true);
|
|
|
}
|
|
|
- } else if ((data.noticeType == 2 || data.noticeType == 5) && data.contentType == 1) {
|
|
|
+ } else if ((data.noticeType == 2 || data.noticeType == 5 || data.noticeType == 6) && data.contentType == 1) {
|
|
|
|
|
|
projectOrgId = !!data.orgId ? data.orgId+',' : data.orgIds;
|
|
|
var orgArr = projectOrgId.split(',');
|
|
@@ -1942,7 +1942,7 @@ $(function () {
|
|
|
if(data.isPushTemplate == 1){
|
|
|
if(data.publicObj==1){
|
|
|
$('#graphic input:radio[name="publicBanner"]').eq(0).prop("checked", true);
|
|
|
- $("#graphic .tv-choose-content").hide();
|
|
|
+ $("#graphic .tv-choose-content").hide();
|
|
|
}else if(data.publicObj==2){
|
|
|
$('#graphic input:radio[name="publicBanner"]').eq(1).prop("checked", true);
|
|
|
$("#graphic .tv-choose-content").hide();
|
|
@@ -1980,7 +1980,7 @@ $(function () {
|
|
|
if(data.isApp == 1){
|
|
|
$('#graphic input:checkbox[name="app2"]').prop("checked", true)
|
|
|
};
|
|
|
- } else if ((data.noticeType == 2 || data.noticeType == 5) && data.contentType == 2) {
|
|
|
+ } else if ((data.noticeType == 2 || data.noticeType == 5 || data.noticeType == 6) && data.contentType == 2) {
|
|
|
|
|
|
projectOrgId = !!data.orgId ? data.orgId+',' : data.orgIds;
|
|
|
var orgArr = projectOrgId.split(',');
|
|
@@ -1999,7 +1999,7 @@ $(function () {
|
|
|
$("#link #showImg").attr("src",data.coverUrl)
|
|
|
$(".img-wrapper").css("background-image", "url(" + data.coverUrl + ")");
|
|
|
$(".app-publish-wrapper").eq(2).show().siblings().hide();
|
|
|
- if(data.noticeType == 5){
|
|
|
+ if(data.noticeType == 5||data.noticeType == 6){
|
|
|
$(".app-publish-wrapper").eq(2).find('.port-wp').css('visibility','hidden');
|
|
|
}
|
|
|
$(".choose-publish-con").show();
|