通知公告

This commit is contained in:
wanglei
2021-12-13 14:02:07 +08:00
parent 29e8bf8957
commit 36d55c999e
3 changed files with 287 additions and 305 deletions

View File

@@ -100,23 +100,16 @@ export default {
},
}
},
watch: {
params: {
handler: function () {
if (this.params?.id) {
this.form.id = this.params?.id;
this.flag = this.params?.flag;
}
},
immediate: true
}
},
created() {
onLoad(opt) {
document.title = "新增公告";
if (this.params?.id) {
if(opt.id) {
this.form.id = opt.id;
this.flag = opt.flag;
this.getDetail();
}
},
methods: {
...mapActions(['selectEnterpriseContact']),
handleSelectUser() {
@@ -125,7 +118,6 @@ export default {
type: ["user"],
selectedUserIds: this.form.persons?.map(e => e.id)
}).then(res => {
console.log(res);
this.form.persons = res?.userList || []
})
},