|
@@ -588,7 +588,7 @@ export default {
|
|
|
},
|
|
|
// 选择的房东
|
|
|
selectLandlady (val) {
|
|
|
-
|
|
|
+ debugger
|
|
|
this.selectDataLandladyTreeData.userList = [];
|
|
|
this.selectDataLandladyTreeData = val;
|
|
|
},
|
|
@@ -608,14 +608,12 @@ export default {
|
|
|
},
|
|
|
// 选择房东复选框变化
|
|
|
changeCheckboxlandlady (val) {
|
|
|
-
|
|
|
if (!this.ruleForm.popCommunityId) {
|
|
|
this.ruleForm.issueRoom.landlord = false;
|
|
|
return this.$message.warning('请先选择社区');
|
|
|
}
|
|
|
if (val) {
|
|
|
this.ruleForm.issueRoom.landlady = '全部房东';
|
|
|
-
|
|
|
this.$refs.selectTreelandlady.selectAllLandlady();
|
|
|
} else {
|
|
|
this.ruleForm.issueRoom.landlady = '';
|
|
@@ -654,6 +652,7 @@ export default {
|
|
|
},
|
|
|
// 选择房间复选框变化
|
|
|
changeCheckboxRoom (val) {
|
|
|
+ debugger
|
|
|
if (!this.ruleForm.popCommunityId) {
|
|
|
this.ruleForm.issueRoom.checkAll = false;
|
|
|
return this.$message.warning('请先选择社区');
|
|
@@ -663,11 +662,22 @@ export default {
|
|
|
// this.ruleForm.issueRoom.checkAll = true;
|
|
|
this.ruleForm.issueRoom.radioRoom = '全部房间';
|
|
|
// this.ruleForm.issueRoom.radioStaff = '';
|
|
|
+ debugger
|
|
|
this.$refs.selectTreeHouse.selectAllHouse();
|
|
|
+ this.ruleForm.issueRoom.landlord = true
|
|
|
+
|
|
|
+ this.ruleForm.issueRoom.landlady = '全部房东';
|
|
|
+ this.$refs.selectTreelandlady.selectAllLandlady();
|
|
|
} else {
|
|
|
+ debugger
|
|
|
this.ruleForm.issueRoom.radioRoom = '';
|
|
|
this.$refs.selectTreeHouse.selectHouseOr();
|
|
|
+
|
|
|
+ this.ruleForm.issueRoom.landlord = false
|
|
|
+ this.ruleForm.issueRoom.landlady = '';
|
|
|
+ this.$refs.selectTreelandlady.selectLandladyOr();
|
|
|
}
|
|
|
+
|
|
|
},
|
|
|
// 指定员工
|
|
|
changeRadioStaffRoom (val) {
|
|
@@ -710,10 +720,12 @@ export default {
|
|
|
content.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/g, function (match, capture) {
|
|
|
img.push(capture);
|
|
|
});
|
|
|
+ debugger
|
|
|
if (
|
|
|
this.selectDataHouseTreeData.userList.length === 0 &&
|
|
|
this.selectDataPeopleTreeData &&
|
|
|
- this.selectDataPeopleTreeData.userList.length === 0
|
|
|
+ this.selectDataPeopleTreeData.userList.length === 0 &&
|
|
|
+ this.selectDataLandladyTreeData.userList.length === 0
|
|
|
) {
|
|
|
return this.$message.warning('所选暂无人员,不可发布');
|
|
|
}
|
|
@@ -776,6 +788,7 @@ export default {
|
|
|
urgentFlag: this.ruleForm.exigencyOr == '是' ? 1 : 0,
|
|
|
userVos: userVos
|
|
|
};
|
|
|
+ debugger
|
|
|
console.log('query', query);
|
|
|
this.$http.post('/czc-community/notice/add', query).then((res) => {
|
|
|
if (res.status === 0) {
|