|
@ -20,16 +20,18 @@ |
|
|
clearable |
|
|
clearable |
|
|
></el-input> |
|
|
></el-input> |
|
|
</el-form-item> |
|
|
</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-form-item> |
|
|
<el-button |
|
|
<el-button |
|
|
|
|
|
class="diy-button--search" |
|
|
size="small" |
|
|
size="small" |
|
|
class="diy-button--reset" |
|
|
@click="getDataList()" |
|
|
@click="resetSearch">重置</el-button> |
|
|
>{{ $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-item> |
|
|
<!--<el-form-item>--> |
|
|
<!--<el-form-item>--> |
|
|
<!--<el-button type="danger" @click="deleteHandle()">{{--> |
|
|
<!--<el-button type="danger" @click="deleteHandle()">{{--> |
|
@ -42,8 +44,9 @@ |
|
|
<div class="exportBtn"> |
|
|
<div class="exportBtn"> |
|
|
<el-button |
|
|
<el-button |
|
|
class="diy-button--add" |
|
|
class="diy-button--add" |
|
|
type="primary" size="small" |
|
|
type="primary" |
|
|
@click="addOrUpdateHandle()" |
|
|
size="small" |
|
|
|
|
|
@click="addOrUpdateHandle('', '新增')" |
|
|
>{{ $t("add") }}</el-button |
|
|
>{{ $t("add") }}</el-button |
|
|
> |
|
|
> |
|
|
<el-button |
|
|
<el-button |
|
@ -172,7 +175,13 @@ |
|
|
<el-button |
|
|
<el-button |
|
|
type="text" |
|
|
type="text" |
|
|
size="small" |
|
|
size="small" |
|
|
@click="addOrUpdateHandle(scope.row.id)" |
|
|
@click="addOrUpdateHandle(scope.row.id, '查看')" |
|
|
|
|
|
>{{ "查看" }}</el-button |
|
|
|
|
|
> |
|
|
|
|
|
<el-button |
|
|
|
|
|
type="text" |
|
|
|
|
|
size="small" |
|
|
|
|
|
@click="addOrUpdateHandle(scope.row.id, '修改')" |
|
|
>{{ $t("update") }}</el-button |
|
|
>{{ $t("update") }}</el-button |
|
|
> |
|
|
> |
|
|
<el-button |
|
|
<el-button |
|
@ -198,7 +207,7 @@ |
|
|
<!-- 弹窗, 新增 / 修改 --> |
|
|
<!-- 弹窗, 新增 / 修改 --> |
|
|
<el-dialog |
|
|
<el-dialog |
|
|
:visible.sync="addOrUpdateVisible" |
|
|
:visible.sync="addOrUpdateVisible" |
|
|
:title="!updateId ? $t('add') : $t('update')" |
|
|
:title="dialogTitle" |
|
|
:close-on-click-modal="false" |
|
|
:close-on-click-modal="false" |
|
|
:close-on-press-escape="false" |
|
|
:close-on-press-escape="false" |
|
|
:destroy-on-close="true" |
|
|
:destroy-on-close="true" |
|
@ -207,10 +216,12 @@ |
|
|
ref="addOrUpdate" |
|
|
ref="addOrUpdate" |
|
|
@refreshDataList="getDataList" |
|
|
@refreshDataList="getDataList" |
|
|
@closeDialog="closeDialog" |
|
|
@closeDialog="closeDialog" |
|
|
|
|
|
:dialogTitle="dialogTitle" |
|
|
></add-or-update> |
|
|
></add-or-update> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
<!-- 发送通知弹出框 --> |
|
|
<!-- 发送通知弹出框 --> |
|
|
<el-dialog :visible.sync="sendNoticeFormShow" |
|
|
<el-dialog |
|
|
|
|
|
:visible.sync="sendNoticeFormShow" |
|
|
:close-on-click-modal="false" |
|
|
:close-on-click-modal="false" |
|
|
:close-on-press-escape="false" |
|
|
:close-on-press-escape="false" |
|
|
title="发送通知" |
|
|
title="发送通知" |
|
@ -218,9 +229,13 @@ |
|
|
top="5vh" |
|
|
top="5vh" |
|
|
class="dialog-h" |
|
|
class="dialog-h" |
|
|
@closed="diaClose" |
|
|
@closed="diaClose" |
|
|
:destroy-on-close="true"> |
|
|
:destroy-on-close="true" |
|
|
<icpoint-noice ref="ref_sendnotice" |
|
|
> |
|
|
@diaClose="diaClose" :noticeOrigin="noticeOrigin" ></icpoint-noice> |
|
|
<icpoint-noice |
|
|
|
|
|
ref="ref_sendnotice" |
|
|
|
|
|
@diaClose="diaClose" |
|
|
|
|
|
:noticeOrigin="noticeOrigin" |
|
|
|
|
|
></icpoint-noice> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
@ -228,7 +243,7 @@ |
|
|
<script> |
|
|
<script> |
|
|
import mixinViewModule from "@/mixins/view-module"; |
|
|
import mixinViewModule from "@/mixins/view-module"; |
|
|
import AddOrUpdate from "./icpointvaccinesinoculation-add-or-update"; |
|
|
import AddOrUpdate from "./icpointvaccinesinoculation-add-or-update"; |
|
|
import icpointNoice from './icpointNoice' |
|
|
import icpointNoice from "./icpointNoice"; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
mixins: [mixinViewModule], |
|
|
mixins: [mixinViewModule], |
|
@ -245,49 +260,50 @@ export default { |
|
|
mobile: "", |
|
|
mobile: "", |
|
|
}, |
|
|
}, |
|
|
updateId: null, |
|
|
updateId: null, |
|
|
sendNoticeFormShow:false, |
|
|
sendNoticeFormShow: false, |
|
|
noticeVisible:false, |
|
|
noticeVisible: false, |
|
|
noticeOrigin:"4" |
|
|
noticeOrigin: "4", |
|
|
|
|
|
dialogTitle: '', |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
components: { |
|
|
components: { |
|
|
AddOrUpdate, |
|
|
AddOrUpdate, |
|
|
icpointNoice |
|
|
icpointNoice, |
|
|
}, |
|
|
}, |
|
|
mounted(){ |
|
|
mounted() { |
|
|
this.noticeFun() |
|
|
this.noticeFun(); |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
//重置搜索条件 |
|
|
//重置搜索条件 |
|
|
resetSearch () { |
|
|
resetSearch() { |
|
|
this.dataForm = { |
|
|
this.dataForm = { |
|
|
name: '', |
|
|
name: "", |
|
|
mobile: '' |
|
|
mobile: "", |
|
|
} |
|
|
}; |
|
|
this.pageNo = 1 |
|
|
this.pageNo = 1; |
|
|
}, |
|
|
}, |
|
|
// 发送通知 |
|
|
// 发送通知 |
|
|
handleSendNotice () { |
|
|
handleSendNotice() { |
|
|
this.sendNoticeFormShow = true |
|
|
this.sendNoticeFormShow = true; |
|
|
}, |
|
|
}, |
|
|
// 关闭通知 |
|
|
// 关闭通知 |
|
|
diaClose(){ |
|
|
diaClose() { |
|
|
this.sendNoticeFormShow = false |
|
|
this.sendNoticeFormShow = false; |
|
|
}, |
|
|
}, |
|
|
// 获取发送通知按钮显示与隐藏 |
|
|
// 获取发送通知按钮显示与隐藏 |
|
|
noticeFun(){ |
|
|
noticeFun() { |
|
|
this.$http |
|
|
this.$http |
|
|
.post(`/epmetuser/icPointNucleicMonitoring/getShowType`) |
|
|
.post(`/epmetuser/icPointNucleicMonitoring/getShowType`) |
|
|
.then(({ data: res }) => { |
|
|
.then(({ data: res }) => { |
|
|
if (res.code === 0 && res.data) { |
|
|
if (res.code === 0 && res.data) { |
|
|
this.noticeVisible = true |
|
|
this.noticeVisible = true; |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
.catch(() => {}); |
|
|
.catch(() => {}); |
|
|
}, |
|
|
}, |
|
|
// 新增 / 修改 |
|
|
// 新增 / 修改 |
|
|
addOrUpdateHandle(id) { |
|
|
addOrUpdateHandle(id,title) { |
|
|
this.updateId = id; |
|
|
this.dialogTitle = title; |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
this.$refs.addOrUpdate.dataForm.id = id; |
|
|
this.$refs.addOrUpdate.dataForm.id = id; |
|
|
this.$refs.addOrUpdate.init(); |
|
|
this.$refs.addOrUpdate.init(); |
|
@ -297,7 +313,7 @@ export default { |
|
|
// 关闭弹窗 |
|
|
// 关闭弹窗 |
|
|
closeDialog() { |
|
|
closeDialog() { |
|
|
this.addOrUpdateVisible = false; |
|
|
this.addOrUpdateVisible = false; |
|
|
this.updateId = null; |
|
|
this.dialogTitle = ''; |
|
|
}, |
|
|
}, |
|
|
handleExportModule() { |
|
|
handleExportModule() { |
|
|
let title = "疫苗接种点模板"; |
|
|
let title = "疫苗接种点模板"; |
|
|