|
|
@ -32,16 +32,18 @@ |
|
|
|
clearable |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-button class="diy-button--search" size="small" @click="getDataList()">{{ |
|
|
|
$t("query") |
|
|
|
}}</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-button |
|
|
|
class="diy-button--search" |
|
|
|
size="small" |
|
|
|
class="diy-button--reset" |
|
|
|
@click="resetSearch">重置</el-button> |
|
|
|
@click="getDataList()" |
|
|
|
>{{ $t("query") }}</el-button |
|
|
|
> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-button size="small" class="diy-button--reset" @click="resetSearch" |
|
|
|
>重置</el-button |
|
|
|
> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
</div> |
|
|
@ -50,8 +52,9 @@ |
|
|
|
<div class="exportBtn"> |
|
|
|
<el-button |
|
|
|
class="diy-button--add" |
|
|
|
type="primary" size="small" |
|
|
|
@click="addOrUpdateHandle('','新增')" |
|
|
|
type="primary" |
|
|
|
size="small" |
|
|
|
@click="addOrUpdateHandle('', '新增')" |
|
|
|
>{{ $t("add") }}</el-button |
|
|
|
> |
|
|
|
<el-button |
|
|
@ -150,13 +153,13 @@ |
|
|
|
<el-button |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
@click="addOrUpdateHandle(scope.row.id,'查看')" |
|
|
|
>{{ '查看' }}</el-button |
|
|
|
@click="addOrUpdateHandle(scope.row.id, '查看')" |
|
|
|
>{{ "查看" }}</el-button |
|
|
|
> |
|
|
|
<el-button |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
@click="addOrUpdateHandle(scope.row.id,'修改')" |
|
|
|
@click="addOrUpdateHandle(scope.row.id, '修改')" |
|
|
|
>{{ $t("update") }}</el-button |
|
|
|
> |
|
|
|
<el-button |
|
|
@ -188,14 +191,15 @@ |
|
|
|
:destroy-on-close="true" |
|
|
|
> |
|
|
|
<add-or-update |
|
|
|
v-if="addOrUpdateVisible" |
|
|
|
ref="addOrUpdate" |
|
|
|
@refreshDataList="getDataList" |
|
|
|
@closeDialog="closeDialog" |
|
|
|
:dialogTitle="dialogTitle" |
|
|
|
></add-or-update> |
|
|
|
</el-dialog> |
|
|
|
<!-- 发送通知弹出框 --> |
|
|
|
<el-dialog :visible.sync="sendNoticeFormShow" |
|
|
|
<el-dialog |
|
|
|
:visible.sync="sendNoticeFormShow" |
|
|
|
:close-on-click-modal="false" |
|
|
|
:close-on-press-escape="false" |
|
|
|
title="发送通知" |
|
|
@ -203,9 +207,13 @@ |
|
|
|
top="5vh" |
|
|
|
class="dialog-h" |
|
|
|
@closed="diaClose" |
|
|
|
:destroy-on-close="true"> |
|
|
|
<icpoint-noice ref="ref_sendnotice" |
|
|
|
@diaClose="diaClose" :noticeOrigin="noticeOrigin"></icpoint-noice> |
|
|
|
:destroy-on-close="true" |
|
|
|
> |
|
|
|
<icpoint-noice |
|
|
|
ref="ref_sendnotice" |
|
|
|
@diaClose="diaClose" |
|
|
|
:noticeOrigin="noticeOrigin" |
|
|
|
></icpoint-noice> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
</template> |
|
|
@ -213,7 +221,7 @@ |
|
|
|
<script> |
|
|
|
import mixinViewModule from "@/mixins/view-module"; |
|
|
|
import AddOrUpdate from "./icpointnucleicmonitoring-add-or-update"; |
|
|
|
import icpointNoice from './icpointNoice' |
|
|
|
import icpointNoice from "./icpointNoice"; |
|
|
|
|
|
|
|
export default { |
|
|
|
mixins: [mixinViewModule], |
|
|
@ -232,41 +240,41 @@ export default { |
|
|
|
}, |
|
|
|
organizationList: [], |
|
|
|
orgIds: [], |
|
|
|
dialogTitle: '', |
|
|
|
sendNoticeFormShow:false, |
|
|
|
noticeVisible:false, |
|
|
|
noticeOrigin:"3" |
|
|
|
dialogTitle: "", |
|
|
|
sendNoticeFormShow: false, |
|
|
|
noticeVisible: false, |
|
|
|
noticeOrigin: "3", |
|
|
|
}; |
|
|
|
}, |
|
|
|
components: { |
|
|
|
AddOrUpdate, |
|
|
|
icpointNoice |
|
|
|
icpointNoice, |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.noticeFun() |
|
|
|
this.noticeFun(); |
|
|
|
this.getFormInfo(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
//重置搜索条件 |
|
|
|
resetSearch () { |
|
|
|
resetSearch() { |
|
|
|
this.dataForm = { |
|
|
|
name: '', |
|
|
|
mobile: '', |
|
|
|
orgId: '' |
|
|
|
} |
|
|
|
this.pageNo = 1 |
|
|
|
this.orgIds = [] |
|
|
|
name: "", |
|
|
|
mobile: "", |
|
|
|
orgId: "", |
|
|
|
}; |
|
|
|
this.pageNo = 1; |
|
|
|
this.orgIds = []; |
|
|
|
}, |
|
|
|
// 发送通知 |
|
|
|
handleSendNotice () { |
|
|
|
this.sendNoticeFormShow = true |
|
|
|
handleSendNotice() { |
|
|
|
this.sendNoticeFormShow = true; |
|
|
|
}, |
|
|
|
// 关闭通知 |
|
|
|
diaClose(){ |
|
|
|
this.sendNoticeFormShow = false |
|
|
|
diaClose() { |
|
|
|
this.sendNoticeFormShow = false; |
|
|
|
}, |
|
|
|
// 新增 / 修改 |
|
|
|
addOrUpdateHandle(id,title) { |
|
|
|
addOrUpdateHandle(id, title) { |
|
|
|
this.dialogTitle = title; |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs.addOrUpdate.dataForm.id = id; |
|
|
@ -277,7 +285,7 @@ export default { |
|
|
|
// 关闭弹窗 |
|
|
|
closeDialog() { |
|
|
|
this.addOrUpdateVisible = false; |
|
|
|
this.dialogTitle = ''; |
|
|
|
this.dialogTitle = ""; |
|
|
|
}, |
|
|
|
// 获取所属组织列表 |
|
|
|
getFormInfo() { |
|
|
@ -293,12 +301,12 @@ export default { |
|
|
|
.catch(() => {}); |
|
|
|
}, |
|
|
|
// 获取发送通知按钮显示与隐藏 |
|
|
|
noticeFun(){ |
|
|
|
noticeFun() { |
|
|
|
this.$http |
|
|
|
.post(`/epmetuser/icPointNucleicMonitoring/getShowType`) |
|
|
|
.then(({ data: res }) => { |
|
|
|
if (res.code === 0 && res.data) { |
|
|
|
this.noticeVisible = true |
|
|
|
this.noticeVisible = true; |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(() => {}); |
|
|
|