|
|
@ -105,6 +105,7 @@ |
|
|
|
class="diy-button--more" |
|
|
|
size="small" |
|
|
|
@click="handleSendNotice" |
|
|
|
v-if="noticeVisible" |
|
|
|
>发送通知</el-button |
|
|
|
> |
|
|
|
</div> |
|
|
@ -208,9 +209,10 @@ |
|
|
|
width="850px" |
|
|
|
top="5vh" |
|
|
|
class="dialog-h" |
|
|
|
@closed="diaClose"> |
|
|
|
@closed="diaClose" |
|
|
|
:destroy-on-close="true"> |
|
|
|
<icpoint-noice ref="ref_sendnotice" |
|
|
|
@diaClose="diaClose"></icpoint-noice> |
|
|
|
@diaClose="diaClose" :noticeOrigin="noticeOrigin"></icpoint-noice> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
</template> |
|
|
@ -239,6 +241,8 @@ export default { |
|
|
|
orgIds: [], |
|
|
|
updateId: null, |
|
|
|
sendNoticeFormShow:false, |
|
|
|
noticeVisible:false, |
|
|
|
noticeOrigin:"3" |
|
|
|
}; |
|
|
|
}, |
|
|
|
components: { |
|
|
@ -246,15 +250,13 @@ export default { |
|
|
|
icpointNoice |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.noticeFun() |
|
|
|
this.getFormInfo(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 发送通知 |
|
|
|
handleSendNotice () { |
|
|
|
this.sendNoticeFormShow = true |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs.ref_sendnotice.initForm(this.selectionAll, '3') |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 关闭通知 |
|
|
|
diaClose(){ |
|
|
@ -287,6 +289,17 @@ export default { |
|
|
|
}) |
|
|
|
.catch(() => {}); |
|
|
|
}, |
|
|
|
// 获取发送通知按钮显示与隐藏 |
|
|
|
noticeFun(){ |
|
|
|
this.$http |
|
|
|
.post(`/epmetuser/icPointNucleicMonitoring/getShowType`) |
|
|
|
.then(({ data: res }) => { |
|
|
|
if (res.code === 0 && res.data) { |
|
|
|
this.noticeVisible = true |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(() => {}); |
|
|
|
}, |
|
|
|
deleteChildren(arr) { |
|
|
|
let childs = arr; |
|
|
|
for (let i = childs.length; i--; i > 0) { |
|
|
|