mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
优化代码
This commit is contained in:
parent
c7f9bd1df7
commit
bed248817c
@ -32,6 +32,7 @@
|
||||
<div class="col-sm-10">
|
||||
<select class="custom-select" v-model="addNoticeViewInfo.objType" @change="_changeObjType()">
|
||||
<option selected disabled value="">必填,请选择公告范围</option>
|
||||
<option value="005">关注用户</option>
|
||||
<option value="001">小区</option>
|
||||
<option value="002">楼栋</option>
|
||||
<option value="003">单元</option>
|
||||
|
||||
@ -106,10 +106,11 @@
|
||||
});
|
||||
},
|
||||
saveNoticeInfo: function () {
|
||||
if($that.addNoticeViewInfo.noticeTypeCd != '1003'){
|
||||
$that.addNoticeViewInfo.objType ='001';
|
||||
if ($that.addNoticeViewInfo.noticeTypeCd != '1003') {
|
||||
$that.addNoticeViewInfo.objType = '001';
|
||||
}
|
||||
if ($that.addNoticeViewInfo.objType == '001') {
|
||||
if ($that.addNoticeViewInfo.objType == '001'
|
||||
|| $that.addNoticeViewInfo.objType == '005') {
|
||||
$that.addNoticeViewInfo.objId = vc.getCurrentCommunity().communityId;
|
||||
} else if ($that.addNoticeViewInfo.objType == '002') {
|
||||
$that.addNoticeViewInfo.objId = $that.addNoticeViewInfo.floorId;
|
||||
@ -129,9 +130,9 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if($that.addNoticeViewInfo.objId == "" ){
|
||||
if ($that.addNoticeViewInfo.objId == "") {
|
||||
vc.toast("未选择发布范围");
|
||||
return ;
|
||||
return;
|
||||
}
|
||||
|
||||
vc.component.addNoticeViewInfo.communityId = vc.getCurrentCommunity().communityId;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user