Browse Source

Merge branch 'dev-0420'

shibei_master
dai 4 years ago
parent
commit
8dd288f23f
  1. 109
      src/views/modules/base/epidemic/antiInfo.vue
  2. 6
      src/views/modules/base/epidemic/natFocus/natFocusList.vue
  3. 273
      src/views/modules/base/epidemic/vaccin.vue
  4. 415
      src/views/modules/base/epidemic/veroFocus/veroFocusList.vue

109
src/views/modules/base/epidemic/antiInfo.vue

@ -1,6 +1,7 @@
<template> <template>
<div class="div_main"> <div class="div_main">
<div ref="div_search" class="div_search"> <div ref="div_search"
class="div_search">
<el-form :inline="true" <el-form :inline="true"
:model="searchForm" :model="searchForm"
ref="ref_searchform" ref="ref_searchform"
@ -8,93 +9,73 @@
<div> <div>
<el-form-item label="所属网格" <el-form-item label="所属网格"
prop="gridId"> prop="gridId">
<el-select <el-select v-model.trim="searchForm.gridId"
v-model.trim="searchForm.gridId"
placeholder="请选择" placeholder="请选择"
size="small" size="small"
clearable clearable
class="resi-cell-select" class="resi-cell-select"
@change="handleChangeGrid" @change="handleChangeGrid">
> <el-option v-for="item in optionsG"
<el-option
v-for="item in optionsG"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value">
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="所属小区" <el-form-item label="所属小区"
prop="neighborId"> prop="neighborId">
<el-select <el-select v-model.trim="searchForm.neighborId"
v-model.trim="searchForm.neighborId"
placeholder="请选择小区" placeholder="请选择小区"
size="small" size="small"
clearable clearable
class="resi-cell-select" class="resi-cell-select"
@clear="handleClearVillage" @clear="handleClearVillage"
@change="handleChangeV" @change="handleChangeV">
> <el-option v-for="item in optionsV"
<el-option
v-for="item in optionsV"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value">
>
</el-option> </el-option>
</el-select> </el-select>
<el-select <el-select v-model.trim="searchForm.buildingId"
v-model.trim="searchForm.buildingId"
placeholder="楼号" placeholder="楼号"
size="small" size="small"
clearable clearable
style="width: 120px;" style="width: 120px;"
class="resi-cell-select" class="resi-cell-select"
@clear="handleClearBuild" @clear="handleClearBuild"
@change="handleChangeB" @change="handleChangeB">
> <el-option v-for="item in optionsB"
<el-option
v-for="item in optionsB"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value">
>
</el-option> </el-option>
</el-select> </el-select>
<el-select <el-select v-model.trim="searchForm.unitId"
v-model.trim="searchForm.unitId"
placeholder="单元" placeholder="单元"
size="small" size="small"
clearable clearable
style="width: 120px;" style="width: 120px;"
class="resi-cell-select" class="resi-cell-select"
@click="handleClearDan" @click="handleClearDan"
@change="handleChangeD" @change="handleChangeD">
> <el-option v-for="item in optionsD"
<el-option
v-for="item in optionsD"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value">
>
</el-option> </el-option>
</el-select> </el-select>
<el-select <el-select v-model.trim="searchForm.houseId"
v-model.trim="searchForm.houseId"
placeholder="房号" placeholder="房号"
size="small" size="small"
clearable clearable
style="width: 120px;" style="width: 120px;"
class="resi-cell-select" class="resi-cell-select">
> <el-option v-for="item in optionsH"
<el-option
v-for="item in optionsH"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value">
>
</el-option> </el-option>
</el-select> </el-select>
@ -368,7 +349,8 @@
</el-form> </el-form>
<div style="padding: 0 20px;"> <div style="padding: 0 20px;">
<el-tabs v-model="activeName"> <el-tabs v-model="activeName">
<el-tab-pane label="疫苗接种信息" name="first"> <el-tab-pane label="疫苗接种信息"
name="first">
<el-table class="table" <el-table class="table"
:data="vaccineList" :data="vaccineList"
border border
@ -401,7 +383,8 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="核酸检测信息" name="second"> <el-tab-pane label="核酸检测信息"
name="second">
<el-table class="table" <el-table class="table"
:data="natList" :data="natList"
border border
@ -434,7 +417,8 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="行程信息" name="third"> <el-tab-pane label="行程信息"
name="third">
<el-table class="table" <el-table class="table"
:data="tripList" :data="tripList"
border border
@ -490,7 +474,6 @@
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
@ -573,7 +556,7 @@ export default {
}, },
methods: { methods: {
handleCnalceForm() { handleCnalceForm () {
this.$refs.detail_form.resetFields() this.$refs.detail_form.resetFields()
this.vaccineList = [] this.vaccineList = []
this.natList = [] this.natList = []
@ -585,21 +568,21 @@ export default {
handleSearch () { handleSearch () {
this.loadTable() this.loadTable()
}, },
handleClearVillage() { handleClearVillage () {
this.searchForm.buildingId = '' this.searchForm.buildingId = ''
this.searchForm.unitId = '' this.searchForm.unitId = ''
this.searchForm.houseId = '' this.searchForm.houseId = ''
}, },
handleClearBuild() { handleClearBuild () {
this.searchForm.buildingId = '' this.searchForm.buildingId = ''
this.searchForm.unitId = '' this.searchForm.unitId = ''
this.searchForm.houseId = '' this.searchForm.houseId = ''
}, },
handleClearDan() { handleClearDan () {
this.searchForm.unitId = '' this.searchForm.unitId = ''
this.searchForm.houseId = '' this.searchForm.houseId = ''
}, },
handleChangeGrid(val) { handleChangeGrid (val) {
console.log('val', val) console.log('val', val)
this.searchForm.neighborId = '' this.searchForm.neighborId = ''
this.searchForm.buildingId = '' this.searchForm.buildingId = ''
@ -607,25 +590,25 @@ export default {
this.searchForm.houseId = '' this.searchForm.houseId = ''
this.getValiheList() this.getValiheList()
}, },
handleChangeV(val) { handleChangeV (val) {
console.log('val', val) console.log('val', val)
this.searchForm.buildingId = '' this.searchForm.buildingId = ''
this.searchForm.unitId = '' this.searchForm.unitId = ''
this.searchForm.houseId = '' this.searchForm.houseId = ''
this.getBuildList() this.getBuildList()
}, },
handleChangeB(val) { handleChangeB (val) {
console.log('val', val) console.log('val', val)
this.searchForm.unitId = '' this.searchForm.unitId = ''
this.searchForm.houseId = '' this.searchForm.houseId = ''
this.getUniList() this.getUniList()
}, },
handleChangeD(val) { handleChangeD (val) {
console.log('val', val) console.log('val', val)
this.searchForm.houseId = '' this.searchForm.houseId = ''
this.getHouseList() this.getHouseList()
}, },
getGridList() { getGridList () {
const { user } = this.$store.state const { user } = this.$store.state
this.$http this.$http
.post('/gov/org/customergrid/gridoption', { agencyId: user.agencyId, purpose: 'query' }) .post('/gov/org/customergrid/gridoption', { agencyId: user.agencyId, purpose: 'query' })
@ -641,7 +624,7 @@ export default {
return this.$message.error('网络错误') return this.$message.error('网络错误')
}) })
}, },
getValiheList() { getValiheList () {
const { user } = this.$store.state const { user } = this.$store.state
this.$http this.$http
.post('/gov/org/icneighborhood/neighborhoodoption', { .post('/gov/org/icneighborhood/neighborhoodoption', {
@ -661,7 +644,7 @@ export default {
return this.$message.error('网络错误') return this.$message.error('网络错误')
}) })
}, },
getBuildList() { getBuildList () {
this.$http this.$http
.post('/gov/org/icbuilding/buildingoption', { .post('/gov/org/icbuilding/buildingoption', {
neighborHoodId: this.searchForm.neighborId neighborHoodId: this.searchForm.neighborId
@ -678,7 +661,7 @@ export default {
return this.$message.error('网络错误') return this.$message.error('网络错误')
}) })
}, },
getUniList() { getUniList () {
this.$http this.$http
.post('/gov/org/icbuildingunit/unitoption', { .post('/gov/org/icbuildingunit/unitoption', {
buildingId: this.searchForm.buildingId buildingId: this.searchForm.buildingId
@ -695,7 +678,7 @@ export default {
return this.$message.error('网络错误') return this.$message.error('网络错误')
}) })
}, },
getHouseList() { getHouseList () {
this.$http this.$http
.post('/gov/org/ichouse/houseoption', { unitId: this.searchForm.unitId }) .post('/gov/org/ichouse/houseoption', { unitId: this.searchForm.unitId })
.then(({ data: res }) => { .then(({ data: res }) => {
@ -893,13 +876,13 @@ export default {
&-small { &-small {
width: 88px; width: 88px;
} }
} }
.resi-cell-select:last-child { .resi-cell-select:last-child {
margin-right: 0; margin-right: 0;
} }
.min-w180 { .min-w180 {
min-width: 170px; min-width: 170px;
} }
</style> </style>

6
src/views/modules/base/epidemic/natFocus/natFocusList.vue

@ -670,7 +670,7 @@ export default {
}) })
}, },
async handleEdit(row) { async handleEdit (row) {
this.editFormTitle = "修改核酸检测关注名单"; this.editFormTitle = "修改核酸检测关注名单";
this.editFormShow = true; this.editFormShow = true;
const row1 = { ...row } const row1 = { ...row }
@ -678,7 +678,7 @@ export default {
this.$refs.ref_form_edit.initForm("edit", row2); this.$refs.ref_form_edit.initForm("edit", row2);
}, },
async handleDetail(row) { async handleDetail (row) {
this.editFormTitle = "查看核酸检测关注名单"; this.editFormTitle = "查看核酸检测关注名单";
this.editFormShow = true; this.editFormShow = true;
const row1 = { ...row } const row1 = { ...row }
@ -686,7 +686,7 @@ export default {
this.$refs.ref_form_edit.initForm("detail", row2); this.$refs.ref_form_edit.initForm("detail", row2);
}, },
async getInfo(row) { async getInfo (row) {
const url = "/epmetuser/icEpidemicSpecialAttention/detail"; const url = "/epmetuser/icEpidemicSpecialAttention/detail";
let params = { let params = {

273
src/views/modules/base/epidemic/vaccin.vue

@ -1,51 +1,42 @@
<template> <template>
<div class="div_main"> <div class="div_main">
<div class="div_search"> <div class="div_search">
<el-form <el-form :inline="true"
:inline="true"
:model="formData" :model="formData"
ref="ref_searchform" ref="ref_searchform"
:label-width="'90px'" :label-width="'90px'">
>
<div> <div>
<el-form-item label="信息范围"> <el-form-item label="信息范围">
<el-select <el-select class="list_item_width_1"
class="list_item_width_1"
size="small" size="small"
v-model.trim="formData.searchType" v-model.trim="formData.searchType"
placeholder="请选择" placeholder="请选择">
> <el-option v-for="item in orgTypeList"
<el-option
v-for="item in orgTypeList"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value">
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="本辖区居民"> <el-form-item label="本辖区居民">
<el-select <el-select class="list_item_width_1"
class="list_item_width_1"
size="small" size="small"
:disabled="formData.searchType != 'current'" :disabled="formData.searchType != 'current'"
v-model.trim="formData.isResiUser" v-model.trim="formData.isResiUser"
placeholder="请选择" placeholder="请选择">
> <el-option v-for="item in isResiUserList"
<el-option
v-for="item in isResiUserList"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value">
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="接种时间" label-width="110px" prop="startTime"> <el-form-item label="接种时间"
<el-date-picker label-width="110px"
v-model="timeRange" prop="startTime">
<el-date-picker v-model="timeRange"
size="small" size="small"
type="datetimerange" type="datetimerange"
@change="handleTimeChange" @change="handleTimeChange"
@ -53,58 +44,48 @@
value-format="yyyy-MM-dd HH:mm" value-format="yyyy-MM-dd HH:mm"
range-separator="至" range-separator="至"
start-placeholder="开始时间" start-placeholder="开始时间"
end-placeholder="结束时间" end-placeholder="结束时间">
>
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<div> <div>
<el-form-item label="姓名" prop="name"> <el-form-item label="姓名"
<el-input prop="name">
v-model="formData.name" <el-input v-model="formData.name"
size="small" size="small"
class="list_item_width_1" class="list_item_width_1"
clearable clearable
placeholder="请输入姓名" placeholder="请输入姓名">
>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="手机号" prop="mobile"> <el-form-item label="手机号"
<el-input prop="mobile">
v-model="formData.mobile" <el-input v-model="formData.mobile"
size="small" size="small"
class="list_item_width_1" class="list_item_width_1"
clearable clearable
placeholder="请输入手机号" placeholder="请输入手机号">
>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="身份证" prop="idCard"> <el-form-item label="身份证"
<el-input prop="idCard">
v-model="formData.idCard" <el-input v-model="formData.idCard"
size="small" size="small"
class="list_item_width_1" class="list_item_width_1"
clearable clearable
placeholder="请输入身份证" placeholder="请输入身份证">
>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-button <el-button style="margin-left: 30px"
style="margin-left: 30px"
size="small" size="small"
class="diy-button--search" class="diy-button--search"
@click="handleSearch" @click="handleSearch">查询</el-button>
>查询</el-button <el-button style="margin-left: 10px"
>
<el-button
style="margin-left: 10px"
size="small" size="small"
class="diy-button--reset" class="diy-button--reset"
@click="resetSearch" @click="resetSearch">重置</el-button>
>重置</el-button
>
</div> </div>
</div> </div>
</el-form> </el-form>
@ -115,15 +96,11 @@
size="small" size="small"
@click="handleAdd">新增</el-button> --> @click="handleAdd">新增</el-button> -->
<el-button <el-button style="float: left"
style="float: left"
class="diy-button--export" class="diy-button--export"
size="small" size="small"
@click="handleExportModule" @click="handleExportModule">下载模板</el-button>
>下载模板</el-button <el-upload ref="upload"
>
<el-upload
ref="upload"
:multiple="false" :multiple="false"
:show-file-list="false" :show-file-list="false"
:before-upload="beforeUpload" :before-upload="beforeUpload"
@ -131,132 +108,98 @@
accept=".xlsx,.xls" accept=".xlsx,.xls"
:limit="1" :limit="1"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:http-request="uploadFile" :http-request="uploadFile">
> <el-button style="margin-left: 10px"
<el-button
style="margin-left: 10px"
size="small" size="small"
class="diy-button--delete" class="diy-button--delete">导入</el-button>
>导入</el-button
>
</el-upload> </el-upload>
<el-button <el-button style="float: left; margin-left: 10px"
style="float: left; margin-left: 10px"
class="diy-button--reset" class="diy-button--reset"
size="small" size="small"
@click="handleExport" @click="handleExport">导出</el-button>
>导出</el-button
>
</div> </div>
<el-table <el-table class="table"
class="table"
ref="ref_table" ref="ref_table"
:data="tableData" :data="tableData"
border border
:height="tableHeight" :height="tableHeight"
v-loading="tableLoading" v-loading="tableLoading"
:header-cell-style="{ background: '#2195FE', color: '#FFFFFF' }" :header-cell-style="{ background: '#2195FE', color: '#FFFFFF' }"
style="width: 100%" style="width: 100%">
> <el-table-column label="序号"
<el-table-column
label="序号"
header-align="center" header-align="center"
align="center" align="center"
type="index" type="index"
width="50" width="50"></el-table-column>
></el-table-column>
<el-table-column <el-table-column prop="name"
prop="name"
header-align="center" header-align="center"
align="center" align="center"
label="姓名" label="姓名"
width="180" width="180">
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="mobile"
prop="mobile"
header-align="center" header-align="center"
align="center" align="center"
label="手机号" label="手机号"
width="180" width="180">
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="idCard"
prop="idCard"
header-align="center" header-align="center"
align="center" align="center"
label="身份证" label="身份证"
width="180" width="180">
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="inoculateTime"
prop="inoculateTime"
header-align="center" header-align="center"
align="center" align="center"
label="接种时间" label="接种时间"
width="180" width="180">
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="inoculateAddress"
prop="inoculateAddress"
header-align="center" header-align="center"
align="center" align="center"
show-overflow-tooltip show-overflow-tooltip
label="接种地点" label="接种地点"
min-width="230" min-width="230">
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="manufacturer"
prop="manufacturer"
header-align="center" header-align="center"
align="center" align="center"
show-overflow-tooltip show-overflow-tooltip
label="疫苗厂家" label="疫苗厂家"
min-width="180" min-width="180">
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column v-if="isResiUser"
v-if="isResiUser"
prop="isResiUserShow" prop="isResiUserShow"
header-align="center" header-align="center"
align="center" align="center"
show-overflow-tooltip show-overflow-tooltip
label="本辖区居民" label="本辖区居民"
width="120" width="120">
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column label="操作"
label="操作"
fixed="right" fixed="right"
width="140" width="140"
header-align="center" header-align="center"
align="center" align="center"
class="operate" class="operate">
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button type="text"
type="text"
class="div-table-button--detail" class="div-table-button--detail"
size="small" size="small"
@click="handleDetail(scope.row)" @click="handleDetail(scope.row)">查看</el-button>
>查看</el-button
>
<el-button <el-button v-if="!isResiUser"
v-if="!isResiUser"
type="text" type="text"
class="div-table-button--edit" class="div-table-button--edit"
size="small" size="small"
@click="handleAttention(scope.row)" @click="handleAttention(scope.row)">同步</el-button>
>同步</el-button
>
<el-button <el-button v-if="
v-if="
isResiUser && isResiUser &&
scope.row.userType === 'synchro' && scope.row.userType === 'synchro' &&
scope.row.agencyId === agencyId scope.row.agencyId === agencyId
@ -264,42 +207,34 @@
type="text" type="text"
class="div-table-button--delete" class="div-table-button--delete"
size="small" size="small"
@click="handleCancelAttention(scope.row)" @click="handleCancelAttention(scope.row)">取消同步</el-button>
>取消同步</el-button
>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div> <div>
<el-pagination <el-pagination @size-change="handleSizeChange"
@size-change="handleSizeChange"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page.sync="pageNo" :current-page.sync="pageNo"
:page-sizes="[20, 50, 100, 200]" :page-sizes="[20, 50, 100, 200]"
:page-size="pageSize" :page-size="pageSize"
layout="sizes, prev, pager, next, total" layout="sizes, prev, pager, next, total"
:total="total" :total="total">
>
</el-pagination> </el-pagination>
</div> </div>
</div> </div>
<!-- 修改弹出框 --> <!-- 修改弹出框 -->
<el-dialog <el-dialog :visible.sync="formShow"
:visible.sync="formShow"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
:title="formTitle" :title="formTitle"
width="850px" width="850px"
top="5vh" top="5vh"
class="dialog-h" class="dialog-h"
@closed="diaClose" @closed="diaClose">
> <vaccinForm ref="ref_form"
<vaccinForm
ref="ref_form"
@dialogCancle="diaClose" @dialogCancle="diaClose"
@dialogOk="addFormOk" @dialogOk="addFormOk"></vaccinForm>
></vaccinForm>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
@ -314,7 +249,7 @@ import { Loading } from "element-ui"; // 引入Loading服务
let loading; // let loading; //
export default { export default {
data() { data () {
return { return {
loading: false, loading: false,
total: 0, total: 0,
@ -367,8 +302,8 @@ export default {
vaccinForm, vaccinForm,
natForm, natForm,
}, },
async created() {}, async created () { },
async mounted() { async mounted () {
// //
const { user } = this.$store.state; const { user } = this.$store.state;
@ -378,7 +313,7 @@ export default {
}, },
methods: { methods: {
async handleSearch() { async handleSearch () {
this.isResiUser = this.formData.searchType === "current"; this.isResiUser = this.formData.searchType === "current";
await this.loadTable(); await this.loadTable();
@ -388,7 +323,7 @@ export default {
}); });
}, },
async loadTable() { async loadTable () {
this.tableLoading = true; this.tableLoading = true;
const url = "/epmetuser/icVaccine/vaccine-list"; const url = "/epmetuser/icVaccine/vaccine-list";
@ -421,7 +356,7 @@ export default {
this.tableLoading = false; this.tableLoading = false;
}, },
handleTimeChange(time) { handleTimeChange (time) {
if (time) { if (time) {
this.formData.startTime = time[0]; this.formData.startTime = time[0];
this.formData.endTime = time[1]; this.formData.endTime = time[1];
@ -431,12 +366,12 @@ export default {
} }
}, },
diaClose() { diaClose () {
this.$refs.ref_form.resetData(); this.$refs.ref_form.resetData();
this.formShow = false; this.formShow = false;
}, },
async handleDetail(row) { async handleDetail (row) {
this.formTitle = "详情"; this.formTitle = "详情";
this.formShow = true; this.formShow = true;
const row1 = { ...row } const row1 = { ...row }
@ -444,7 +379,7 @@ export default {
this.$refs.ref_form.initForm("detail", row2); this.$refs.ref_form.initForm("detail", row2);
}, },
handleAdd() { handleAdd () {
this.formTitle = "新增"; this.formTitle = "新增";
this.formShow = true; this.formShow = true;
this.$nextTick(() => { this.$nextTick(() => {
@ -452,7 +387,7 @@ export default {
}); });
}, },
handleEdit(row) { handleEdit (row) {
this.formTitle = "修改"; this.formTitle = "修改";
this.formShow = true; this.formShow = true;
this.$nextTick(() => { this.$nextTick(() => {
@ -460,12 +395,12 @@ export default {
}); });
}, },
addFormOk() { addFormOk () {
this.formShow = false; this.formShow = false;
this.loadTable(); this.loadTable();
}, },
async getInfo(row) { async getInfo (row) {
const url = "/epmetuser/icVaccine/detail"; const url = "/epmetuser/icVaccine/detail";
let params = { let params = {
@ -481,7 +416,7 @@ export default {
return row; return row;
}, },
async handleDelete(row) { async handleDelete (row) {
let message = "确认删除?"; let message = "确认删除?";
this.$confirm(message, "提示", { this.$confirm(message, "提示", {
@ -492,10 +427,10 @@ export default {
.then(() => { .then(() => {
this.deleteNat(row); this.deleteNat(row);
}) })
.catch((err) => {}); .catch((err) => { });
}, },
async deleteNat(row) { async deleteNat (row) {
const url = "/epmetuser/icNat/del"; const url = "/epmetuser/icNat/del";
// const url = "http://yapi.elinkservice.cn/mock/245/epmetuser/icNat/del" // const url = "http://yapi.elinkservice.cn/mock/245/epmetuser/icNat/del"
@ -517,7 +452,7 @@ export default {
} }
}, },
async handleCancelAttention(row) { async handleCancelAttention (row) {
let message = let message =
"取消同步后将不能在本辖区居民检测记录中查看,确认取消同步?"; "取消同步后将不能在本辖区居民检测记录中查看,确认取消同步?";
@ -529,10 +464,10 @@ export default {
.then(() => { .then(() => {
this.cancelAttention(row); this.cancelAttention(row);
}) })
.catch((err) => {}); .catch((err) => { });
}, },
async cancelAttention(row) { async cancelAttention (row) {
const url = "/epmetuser/icVaccine/cancelsynchro"; const url = "/epmetuser/icVaccine/cancelsynchro";
let params = { let params = {
@ -553,7 +488,7 @@ export default {
} }
}, },
async handleAttention(row) { async handleAttention (row) {
this.$confirm("确认将信息同步到本辖区核酸检测信息中心?", "提示", { this.$confirm("确认将信息同步到本辖区核酸检测信息中心?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
@ -568,7 +503,7 @@ export default {
}); });
}, },
async attentionNat(row) { async attentionNat (row) {
const url = "/epmetuser/icVaccine/synchro"; const url = "/epmetuser/icVaccine/synchro";
// const url = "http://yapi.elinkservice.cn/mock/245/epmetuser/icNat/synchro" // const url = "http://yapi.elinkservice.cn/mock/245/epmetuser/icNat/synchro"
@ -591,7 +526,7 @@ export default {
}, },
// //
resetSearch() { resetSearch () {
this.formData = { this.formData = {
searchType: "current", //:current all searchType: "current", //:current all
name: "", // name: "", //
@ -606,18 +541,18 @@ export default {
// this.loadTable() // this.loadTable()
}, },
handleSizeChange(val) { handleSizeChange (val) {
this.pageSize = val; this.pageSize = val;
this.pageNo = 1; this.pageNo = 1;
this.loadTable(); this.loadTable();
}, },
handleCurrentChange(val) { handleCurrentChange (val) {
this.pageNo = val; this.pageNo = val;
this.loadTable(); this.loadTable();
}, },
// //
async handleExport() { async handleExport () {
let title = "核酸检测信息"; let title = "核酸检测信息";
const url = "/epmetuser/icVaccine/export"; const url = "/epmetuser/icVaccine/export";
@ -657,7 +592,7 @@ export default {
}, },
// //
download(data, fileName) { download (data, fileName) {
if (!data) { if (!data) {
return; return;
} }
@ -681,7 +616,7 @@ export default {
} }
}, },
async handleExportModule() { async handleExportModule () {
let title = "核酸检测信息导入模板"; let title = "核酸检测信息导入模板";
const url = "/epmetuser/icVaccine/import-template-download"; const url = "/epmetuser/icVaccine/import-template-download";
@ -722,7 +657,7 @@ export default {
}, },
// //
beforeUpload(file) { beforeUpload (file) {
const array = file.name.split("."); const array = file.name.split(".");
const extension = array[array.length - 1]; const extension = array[array.length - 1];
// const isLt1M = (file.size / 1024 / 1024) < 5 // const isLt1M = (file.size / 1024 / 1024) < 5
@ -736,11 +671,11 @@ export default {
} }
}, },
// //
handleExceed(files, fileList) { handleExceed (files, fileList) {
this.$message.warning(`当前限制选择 1 个文件,请删除后继续上传`); this.$message.warning(`当前限制选择 1 个文件,请删除后继续上传`);
}, },
async uploadFile() { async uploadFile () {
if (this.fileName == "") { if (this.fileName == "") {
this.$message.warning("请选择要上传的文件!"); this.$message.warning("请选择要上传的文件!");
return false; return false;
@ -777,13 +712,13 @@ export default {
this.$message.error(rspMsg); this.$message.error(rspMsg);
} }
}, },
(rspMsg, data) => {}, (rspMsg, data) => { },
{ headers: { "Content-Type": "multipart/form-data" } } { headers: { "Content-Type": "multipart/form-data" } }
); );
}, },
// //
startLoading() { startLoading () {
loading = Loading.service({ loading = Loading.service({
lock: true, // lock: true, //
text: "正在加载……", // text: "正在加载……", //
@ -791,7 +726,7 @@ export default {
}); });
}, },
// //
endLoading() { endLoading () {
// clearTimeout(timer); // clearTimeout(timer);
if (loading) { if (loading) {
loading.close(); loading.close();
@ -799,7 +734,7 @@ export default {
}, },
}, },
computed: { computed: {
tableHeight() { tableHeight () {
return this.$store.state.inIframe return this.$store.state.inIframe
? this.clientHeight - 420 + this.iframeHeight ? this.clientHeight - 420 + this.iframeHeight
: this.clientHeight - 420; : this.clientHeight - 420;

415
src/views/modules/base/epidemic/veroFocus/veroFocusList.vue

@ -1,58 +1,50 @@
<template> <template>
<div class="div_main"> <div class="div_main">
<div class="div_search"> <div class="div_search">
<el-form <el-form :inline="true"
:inline="true"
:model="formData" :model="formData"
ref="ref_searchform" ref="ref_searchform"
:label-width="'90px'" :label-width="'90px'">
>
<div> <div>
<el-form-item label="姓名" prop="name"> <el-form-item label="姓名"
<el-input prop="name">
v-model="formData.name" <el-input v-model="formData.name"
size="small" size="small"
class="list_item_width_1" class="list_item_width_1"
clearable clearable
placeholder="请输入姓名" placeholder="请输入姓名">
>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="手机号" prop="mobile"> <el-form-item label="手机号"
<el-input prop="mobile">
v-model="formData.mobile" <el-input v-model="formData.mobile"
size="small" size="small"
class="list_item_width_1" class="list_item_width_1"
clearable clearable
placeholder="请输入手机号" placeholder="请输入手机号">
>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="身份证" prop="mobile"> <el-form-item label="身份证"
<el-input prop="mobile">
v-model="formData.idCard" <el-input v-model="formData.idCard"
size="small" size="small"
class="list_item_width_1" class="list_item_width_1"
clearable clearable
placeholder="请输入身份证" placeholder="请输入身份证">
>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="接种针次" prop="vaccinationCount"> <el-form-item label="接种针次"
<el-select prop="vaccinationCount">
class="list_item_width_1" <el-select class="list_item_width_1"
v-model.trim="formData.vaccinationCount" v-model.trim="formData.vaccinationCount"
placeholder="请选择" placeholder="请选择"
clearable clearable>
> <el-option v-for="item in veroNumList"
<el-option
v-for="item in veroNumList"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value">
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -62,26 +54,21 @@
<div class="resi-cell-value"> <div class="resi-cell-value">
<div class="resi-cell-col"> <div class="resi-cell-col">
<el-form-item prop="villageId"> <el-form-item prop="villageId">
<el-select <el-select v-model.trim="formData.villageId"
v-model.trim="formData.villageId"
placeholder="小区" placeholder="小区"
size="small" size="small"
clearable clearable
class="resi-cell-select" class="resi-cell-select"
@change="handleChangeV" @change="handleChangeV">
> <el-option v-for="item in optionsV"
<el-option
v-for="item in optionsV"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value">
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item prop="buildId"> <el-form-item prop="buildId">
<el-select <el-select v-model.trim="formData.buildId"
v-model.trim="formData.buildId"
placeholder="楼号" placeholder="楼号"
:disabled="!this.formData.villageId" :disabled="!this.formData.villageId"
size="small" size="small"
@ -90,20 +77,16 @@
resi-cell-select resi-cell-select-middle resi-cell-select resi-cell-select-middle
list_item_width_1 list_item_width_1
" "
@change="handleChangeB" @change="handleChangeB">
> <el-option v-for="item in optionsB"
<el-option
v-for="item in optionsB"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value">
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item prop="unitId"> <el-form-item prop="unitId">
<el-select <el-select v-model.trim="formData.unitId"
v-model.trim="formData.unitId"
placeholder="单元" placeholder="单元"
size="small" size="small"
:disabled="!this.formData.buildId" :disabled="!this.formData.buildId"
@ -112,20 +95,16 @@
resi-cell-select resi-cell-select-middle resi-cell-select resi-cell-select-middle
list_item_width_1 list_item_width_1
" "
@change="handleChangeD" @change="handleChangeD">
> <el-option v-for="item in optionsD"
<el-option
v-for="item in optionsD"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value">
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item prop="homeId"> <el-form-item prop="homeId">
<el-select <el-select v-model.trim="formData.homeId"
v-model.trim="formData.homeId"
placeholder="房号" placeholder="房号"
:disabled="!this.formData.unitId" :disabled="!this.formData.unitId"
size="small" size="small"
@ -133,52 +112,39 @@
class=" class="
resi-cell-select resi-cell-select-middle resi-cell-select resi-cell-select-middle
list_item_width_1 list_item_width_1
" ">
> <el-option v-for="item in optionsH"
<el-option
v-for="item in optionsH"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value">
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
<el-button <el-button style="margin-left: 30px"
style="margin-left: 30px"
size="small" size="small"
class="diy-button--search" class="diy-button--search"
@click="handleSearch" @click="handleSearch">查询</el-button>
>查询</el-button <el-button style="margin-left: 10px"
>
<el-button
style="margin-left: 10px"
size="small" size="small"
class="diy-button--reset" class="diy-button--reset"
@click="resetSearch" @click="resetSearch">重置</el-button>
>重置</el-button
>
</div> </div>
</el-form> </el-form>
</div> </div>
<div class="div_table"> <div class="div_table">
<div class="div_btn"> <div class="div_btn">
<el-button class="diy-button--add" size="small" @click="handleAdd" <el-button class="diy-button--add"
>新增</el-button size="small"
> @click="handleAdd">新增</el-button>
<el-button <el-button style="float: left"
style="float: left"
class="diy-button--export" class="diy-button--export"
size="small" size="small"
@click="handleExportModule" @click="handleExportModule">下载模板</el-button>
>下载模板</el-button <el-upload ref="upload"
>
<el-upload
ref="upload"
:multiple="false" :multiple="false"
:show-file-list="false" :show-file-list="false"
:before-upload="beforeUpload" :before-upload="beforeUpload"
@ -186,42 +152,28 @@
accept=".xlsx" accept=".xlsx"
:limit="1" :limit="1"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:http-request="uploadFile" :http-request="uploadFile">
> <el-button style="margin-left: 10px"
<el-button
style="margin-left: 10px"
size="small" size="small"
class="diy-button--delete" class="diy-button--delete">导入</el-button>
>导入</el-button
>
</el-upload> </el-upload>
<el-button <el-button style="float: left; margin-left: 10px"
style="float: left; margin-left: 10px"
class="diy-button--reset" class="diy-button--reset"
size="small" size="small"
@click="handleExport" @click="handleExport">导出</el-button>
>导出</el-button
>
<el-button <el-button style="margin-left: 15px"
style="margin-left: 15px"
class="diy-button--more" class="diy-button--more"
size="small" size="small"
@click="handleSendNotice" @click="handleSendNotice">发送通知</el-button>
>发送通知</el-button <el-button style="margin-left: 15px"
>
<el-button
style="margin-left: 15px"
class="diy-button--more" class="diy-button--more"
size="small" size="small"
@click="handleDelete" @click="handleDelete">取消关注</el-button>
>取消关注</el-button
>
</div> </div>
<el-table <el-table ref="ref_table"
ref="ref_table"
class="table" class="table"
:data="tableData" :data="tableData"
border border
@ -230,164 +182,124 @@
:header-cell-style="{ background: '#2195FE', color: '#FFFFFF' }" :header-cell-style="{ background: '#2195FE', color: '#FFFFFF' }"
@select="handleSelectTable" @select="handleSelectTable"
@select-all="handleSelAll" @select-all="handleSelAll"
style="width: 100%" style="width: 100%">
> <el-table-column type="selection"
<el-table-column type="selection" width="55"></el-table-column> width="55"></el-table-column>
<el-table-column <el-table-column label="序号"
label="序号"
header-align="center" header-align="center"
align="center" align="center"
type="index" type="index"
width="50" width="50"></el-table-column>
></el-table-column>
<el-table-column <el-table-column prop="name"
prop="name"
header-align="center" header-align="center"
align="center" align="center"
label="姓名" label="姓名"
width="90" width="90">
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="mobile"
prop="mobile"
header-align="center" header-align="center"
align="center" align="center"
label="手机号" label="手机号"
width="110" width="110">
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="idCard"
prop="idCard"
header-align="center" header-align="center"
align="center" align="center"
label="身份证" label="身份证"
width="170" width="170">
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="allName"
prop="allName"
header-align="center" header-align="center"
align="center" align="center"
label="所属房屋" label="所属房屋"
min-width="200" min-width="200">
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="vaccinationCount"
prop="vaccinationCount"
header-align="center" header-align="center"
align="center" align="center"
label="接种针次" label="接种针次"
width="90" width="90">
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="reason"
prop="reason"
header-align="center" header-align="center"
align="center" align="center"
show-overflow-tooltip show-overflow-tooltip
label="关注原因" label="关注原因"
min-width="180" min-width="180">
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="remark"
prop="remark"
header-align="center" header-align="center"
align="center" align="center"
show-overflow-tooltip show-overflow-tooltip
label="备注" label="备注"
min-width="180" min-width="180">
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="lastInformTime"
prop="lastInformTime"
header-align="center" header-align="center"
align="center" align="center"
show-overflow-tooltip show-overflow-tooltip
label="最后一次通知时间" label="最后一次通知时间"
width="160" width="160">
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column label="操作"
label="操作"
fixed="right" fixed="right"
width="140" width="140"
header-align="center" header-align="center"
align="center" align="center"
class="operate" class="operate">
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button type="text"
type="text"
class="div-table-button--detail" class="div-table-button--detail"
size="small" size="small"
@click="handleDetail(scope.row)" @click="handleDetail(scope.row)">查看</el-button>
>查看</el-button <el-button type="text"
>
<el-button
type="text"
class="div-table-button--edit" class="div-table-button--edit"
size="small" size="small"
@click="handleEdit(scope.row)" @click="handleEdit(scope.row)">修改</el-button>
>修改</el-button
>
<el-popover <el-popover popper-class="btn-popper"
popper-class="btn-popper"
placement="bottom" placement="bottom"
style="margin-left: 10px" style="margin-left: 10px"
width="20" width="20"
trigger="hover" trigger="hover">
>
<div class="table-more-btn"> <div class="table-more-btn">
<el-button <el-button type="text"
type="text"
class="div-table-button--detail--noline" class="div-table-button--detail--noline"
size="small" size="small"
@click="handleNoticeList(scope.row)" @click="handleNoticeList(scope.row)">通知记录</el-button>
>通知记录</el-button
>
</div> </div>
<div class="table-more-btn"> <div class="table-more-btn">
<el-button <el-button type="text"
type="text"
class="div-table-button--detail--noline" class="div-table-button--detail--noline"
size="small" size="small"
@click="handleVisiteList(scope.row)" @click="handleVisiteList(scope.row)">随访记录</el-button>
>随访记录</el-button
>
</div> </div>
<el-button <el-button type="text"
type="text"
size="small" size="small"
class="div-table-button--more" class="div-table-button--more"
slot="reference" slot="reference">更多<i class="el-icon-caret-bottom"></i></el-button>
>更多<i class="el-icon-caret-bottom"></i
></el-button>
</el-popover> </el-popover>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div> <div>
<el-pagination <el-pagination @size-change="handleSizeChange"
@size-change="handleSizeChange"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page.sync="pageNo" :current-page.sync="pageNo"
:page-sizes="[20, 50, 100, 200]" :page-sizes="[20, 50, 100, 200]"
:page-size="pageSize" :page-size="pageSize"
layout="sizes, prev, pager, next, total" layout="sizes, prev, pager, next, total"
:total="total" :total="total">
>
</el-pagination> </el-pagination>
</div> </div>
</div> </div>
<!-- 新增弹出框 --> <!-- 新增弹出框 -->
<el-dialog <el-dialog :visible.sync="addFormShow"
:visible.sync="addFormShow"
: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"
@ -395,79 +307,60 @@
width="1050px" width="1050px"
top="5vh" top="5vh"
class="dialog-h" class="dialog-h"
@closed="diaClose" @closed="diaClose">
> <vero-focus-add ref="ref_form_add"
<vero-focus-add
ref="ref_form_add"
@dialogCancle="diaClose" @dialogCancle="diaClose"
@dialogOk="addFormOk" @dialogOk="addFormOk"></vero-focus-add>
></vero-focus-add>
</el-dialog> </el-dialog>
<!-- 修改弹出框 --> <!-- 修改弹出框 -->
<el-dialog <el-dialog :visible.sync="editFormShow"
:visible.sync="editFormShow"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
:title="editFormTitle" :title="editFormTitle"
width="1050px" width="1050px"
top="5vh" top="5vh"
class="dialog-h" class="dialog-h"
@closed="diaClose" @closed="diaClose">
> <vero-focus-edit ref="ref_form_edit"
<vero-focus-edit
ref="ref_form_edit"
@dialogCancle="diaClose" @dialogCancle="diaClose"
@dialogOk="addFormOk" @dialogOk="addFormOk"></vero-focus-edit>
></vero-focus-edit>
</el-dialog> </el-dialog>
<!-- 发送通知弹出框 --> <!-- 发送通知弹出框 -->
<el-dialog <el-dialog :visible.sync="sendNoticeFormShow"
: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="发送通知"
width="850px" width="850px"
top="5vh" top="5vh"
class="dialog-h" class="dialog-h"
@closed="diaClose" @closed="diaClose">
> <vf-send-notice ref="ref_sendnotice"
<vf-send-notice
ref="ref_sendnotice"
@dialogCancle="diaClose" @dialogCancle="diaClose"
@dialogOk="sendNoticeOk" @dialogOk="sendNoticeOk"></vf-send-notice>
></vf-send-notice>
</el-dialog> </el-dialog>
<!-- 通知记录弹出框 --> <!-- 通知记录弹出框 -->
<el-dialog <el-dialog :visible.sync="noticeListFormShow"
:visible.sync="noticeListFormShow"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
title="通知记录" title="通知记录"
width="1050px" width="1050px"
top="5vh" top="5vh"
class="dialog-h" class="dialog-h"
@closed="diaClose" @closed="diaClose">
> <vf-notice-list ref="ref_noticelist"
<vf-notice-list @dialogCancle="diaClose"></vf-notice-list>
ref="ref_noticelist"
@dialogCancle="diaClose"
></vf-notice-list>
</el-dialog> </el-dialog>
<!-- 随访记录弹出框 --> <!-- 随访记录弹出框 -->
<el-dialog <el-dialog :visible.sync="visiteListFormShow"
:visible.sync="visiteListFormShow"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
title="随访记录" title="随访记录"
width="1050px" width="1050px"
top="5vh" top="5vh"
class="dialog-h" class="dialog-h"
@closed="diaClose" @closed="diaClose">
> <vf-visite-list ref="ref_visitelist"
<vf-visite-list @dialogCancle="diaClose"></vf-visite-list>
ref="ref_visitelist"
@dialogCancle="diaClose"
></vf-visite-list>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
@ -485,7 +378,7 @@ import { Loading } from "element-ui"; // 引入Loading服务
let loading; // let loading; //
export default { export default {
data() { data () {
return { return {
loading: false, loading: false,
total: 0, total: 0,
@ -534,11 +427,11 @@ export default {
vfSendNotice, vfSendNotice,
vfVisiteList, vfVisiteList,
}, },
async created() {}, async created () { },
activated() { activated () {
this.$refs["ref_table"].doLayout(); this.$refs["ref_table"].doLayout();
}, },
async mounted() { async mounted () {
const { user } = this.$store.state; const { user } = this.$store.state;
this.agencyId = user.agencyId; this.agencyId = user.agencyId;
for (let i = 0; i < 11; i++) { for (let i = 0; i < 11; i++) {
@ -553,12 +446,12 @@ export default {
}, },
methods: { methods: {
handleSearch() { handleSearch () {
this.selectionAll = []; this.selectionAll = [];
this.loadTable(); this.loadTable();
}, },
async loadTable() { async loadTable () {
this.tableLoading = true; this.tableLoading = true;
const url = "/epmetuser/icEpidemicSpecialAttention/list"; const url = "/epmetuser/icEpidemicSpecialAttention/list";
@ -610,7 +503,7 @@ export default {
this.tableLoading = false; this.tableLoading = false;
}, },
handleChangeV(val) { handleChangeV (val) {
console.log("val", val); console.log("val", val);
this.formData.buildId = ""; this.formData.buildId = "";
this.formData.unitId = ""; this.formData.unitId = "";
@ -619,19 +512,19 @@ export default {
this.getUniList(); this.getUniList();
this.getHouseList(); this.getHouseList();
}, },
handleChangeB(val) { handleChangeB (val) {
console.log("val", val); console.log("val", val);
this.formData.unitId = ""; this.formData.unitId = "";
this.formData.homeId = ""; this.formData.homeId = "";
this.getUniList(); this.getUniList();
this.getHouseList(); this.getHouseList();
}, },
handleChangeD() { handleChangeD () {
this.formData.homeId = ""; this.formData.homeId = "";
this.getHouseList(); this.getHouseList();
}, },
getValiheList() { getValiheList () {
const { user } = this.$store.state; const { user } = this.$store.state;
this.$http this.$http
.post("/gov/org/icneighborhood/neighborhoodoption", { .post("/gov/org/icneighborhood/neighborhoodoption", {
@ -651,7 +544,7 @@ export default {
}); });
}, },
getBuildList() { getBuildList () {
this.$http this.$http
.post("/gov/org/icbuilding/buildingoption", { .post("/gov/org/icbuilding/buildingoption", {
neighborHoodId: this.formData.villageId, neighborHoodId: this.formData.villageId,
@ -668,7 +561,7 @@ export default {
return this.$message.error("网络错误"); return this.$message.error("网络错误");
}); });
}, },
getUniList() { getUniList () {
this.$http this.$http
.post("/gov/org/icbuildingunit/unitoption", { .post("/gov/org/icbuildingunit/unitoption", {
buildingId: this.formData.buildId, buildingId: this.formData.buildId,
@ -685,7 +578,7 @@ export default {
return this.$message.error("网络错误"); return this.$message.error("网络错误");
}); });
}, },
getHouseList() { getHouseList () {
this.$http this.$http
.post("/gov/org/ichouse/houseoption", { unitId: this.formData.unitId }) .post("/gov/org/ichouse/houseoption", { unitId: this.formData.unitId })
.then(({ data: res }) => { .then(({ data: res }) => {
@ -701,7 +594,7 @@ export default {
}); });
}, },
handleSelectTable(selection, row) { handleSelectTable (selection, row) {
row.isSel = !row.isSel; row.isSel = !row.isSel;
if (row.isSel) { if (row.isSel) {
@ -717,7 +610,7 @@ export default {
} }
}, },
handleSelAll(selection) { handleSelAll (selection) {
let selFlag = selection.length > 0; // let selFlag = selection.length > 0; //
for (let i = 0; i < this.tableData.length; i++) { for (let i = 0; i < this.tableData.length; i++) {
let tableItem = this.tableData[i]; let tableItem = this.tableData[i];
@ -741,7 +634,7 @@ export default {
}, },
// //
analysisTableSelection() { analysisTableSelection () {
this.$nextTick(() => { this.$nextTick(() => {
this.tableData.forEach((tableItem) => { this.tableData.forEach((tableItem) => {
for (let j = 0; j < this.selectionAll.length; j++) { for (let j = 0; j < this.selectionAll.length; j++) {
@ -759,7 +652,7 @@ export default {
}); });
}, },
diaClose() { diaClose () {
this.addFormShow = false; this.addFormShow = false;
this.editFormShow = false; this.editFormShow = false;
this.sendNoticeFormShow = false; this.sendNoticeFormShow = false;
@ -767,14 +660,14 @@ export default {
this.visiteListFormShow = false; this.visiteListFormShow = false;
}, },
handleAdd() { handleAdd () {
this.addFormShow = true; this.addFormShow = true;
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.ref_form_add.initForm(null, this.agencyId); this.$refs.ref_form_add.initForm(null, this.agencyId);
}); });
}, },
async handleEdit(row) { async handleEdit (row) {
this.editFormTitle = "修改疫苗接种关注名单"; this.editFormTitle = "修改疫苗接种关注名单";
this.editFormShow = true; this.editFormShow = true;
const row1 = { ...row } const row1 = { ...row }
@ -782,7 +675,7 @@ export default {
this.$refs.ref_form_edit.initForm("edit", row2); this.$refs.ref_form_edit.initForm("edit", row2);
}, },
async handleDetail(row) { async handleDetail (row) {
this.editFormTitle = "查看疫苗接种关注名单"; this.editFormTitle = "查看疫苗接种关注名单";
this.editFormShow = true; this.editFormShow = true;
const row1 = { ...row } const row1 = { ...row }
@ -790,7 +683,7 @@ export default {
this.$refs.ref_form_edit.initForm("detail", row2); this.$refs.ref_form_edit.initForm("detail", row2);
}, },
async getInfo(row) { async getInfo (row) {
const url = "/epmetuser/icEpidemicSpecialAttention/detail"; const url = "/epmetuser/icEpidemicSpecialAttention/detail";
let params = { let params = {
@ -806,7 +699,7 @@ export default {
return row; return row;
}, },
handleSendNotice() { handleSendNotice () {
if (this.selectionAll.length === 0) { if (this.selectionAll.length === 0) {
this.$message.info("请选择要通知的人员"); this.$message.info("请选择要通知的人员");
return false; return false;
@ -817,31 +710,31 @@ export default {
}); });
}, },
handleNoticeList(row) { handleNoticeList (row) {
this.noticeListFormShow = true; this.noticeListFormShow = true;
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.ref_noticelist.initTable(row.idCard); this.$refs.ref_noticelist.initTable(row.idCard);
}); });
}, },
handleVisiteList(row) { handleVisiteList (row) {
this.visiteListFormShow = true; this.visiteListFormShow = true;
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.ref_visitelist.initTable(row); this.$refs.ref_visitelist.initTable(row);
}); });
}, },
addFormOk() { addFormOk () {
this.addFormShow = false; this.addFormShow = false;
this.editFormShow = false; this.editFormShow = false;
this.loadTable(); this.loadTable();
}, },
sendNoticeOk() { sendNoticeOk () {
this.sendNoticeFormShow = false; this.sendNoticeFormShow = false;
this.selectionAll = []; this.selectionAll = [];
this.loadTable(); this.loadTable();
}, },
async handleDelete(row) { async handleDelete (row) {
if (this.selectionAll.length === 0) { if (this.selectionAll.length === 0) {
this.$message.info("请选择要取消关注的名单"); this.$message.info("请选择要取消关注的名单");
return false; return false;
@ -860,7 +753,7 @@ export default {
}); });
}, },
async deleteFocus(row) { async deleteFocus (row) {
const url = "/epmetuser/icEpidemicSpecialAttention/cancel-attention"; const url = "/epmetuser/icEpidemicSpecialAttention/cancel-attention";
// const url = "http://yapi.elinkservice.cn/mock/245/gov/org/placepatrolteam/del" // const url = "http://yapi.elinkservice.cn/mock/245/gov/org/placepatrolteam/del"
let idCards = []; let idCards = [];
@ -888,7 +781,7 @@ export default {
}, },
// //
resetSearch() { resetSearch () {
this.formData = { this.formData = {
attentionType: 1, //21 attentionType: 1, //21
name: "", name: "",
@ -901,18 +794,18 @@ export default {
// this.loadTable() // this.loadTable()
}, },
handleSizeChange(val) { handleSizeChange (val) {
this.pageSize = val; this.pageSize = val;
this.pageNo = 1; this.pageNo = 1;
this.loadTable(); this.loadTable();
}, },
handleCurrentChange(val) { handleCurrentChange (val) {
this.pageNo = val; this.pageNo = val;
this.loadTable(); this.loadTable();
}, },
// //
async handleExport() { async handleExport () {
let title = "疫苗接种关注名单"; let title = "疫苗接种关注名单";
const url = "/epmetuser/icEpidemicSpecialAttention/vaccination-export"; const url = "/epmetuser/icEpidemicSpecialAttention/vaccination-export";
@ -930,7 +823,7 @@ export default {
}, },
// //
download(data, fileName) { download (data, fileName) {
if (!data) { if (!data) {
return; return;
} }
@ -954,7 +847,7 @@ export default {
} }
}, },
handleExportModule() { handleExportModule () {
let title = "疫苗接种关注名单模板"; let title = "疫苗接种关注名单模板";
const url = "/epmetuser/icEpidemicSpecialAttention/export-template"; const url = "/epmetuser/icEpidemicSpecialAttention/export-template";
@ -975,7 +868,7 @@ export default {
}, },
// //
beforeUpload(file) { beforeUpload (file) {
const array = file.name.split("."); const array = file.name.split(".");
const extension = array[array.length - 1]; const extension = array[array.length - 1];
// const isLt1M = (file.size / 1024 / 1024) < 5 // const isLt1M = (file.size / 1024 / 1024) < 5
@ -989,11 +882,11 @@ export default {
} }
}, },
// //
handleExceed(files, fileList) { handleExceed (files, fileList) {
this.$message.warning(`当前限制选择 1 个文件,请删除后继续上传`); this.$message.warning(`当前限制选择 1 个文件,请删除后继续上传`);
}, },
async uploadFile() { async uploadFile () {
if (this.fileName == "") { if (this.fileName == "") {
this.$message.warning("请选择要上传的文件!"); this.$message.warning("请选择要上传的文件!");
return false; return false;
@ -1032,13 +925,13 @@ export default {
// this.loadTable() // this.loadTable()
}, },
(rspMsg, data) => {}, (rspMsg, data) => { },
{ headers: { "Content-Type": "multipart/form-data" } } { headers: { "Content-Type": "multipart/form-data" } }
); );
}, },
// //
startLoading() { startLoading () {
loading = Loading.service({ loading = Loading.service({
lock: true, // lock: true, //
text: "正在加载……", // text: "正在加载……", //
@ -1046,7 +939,7 @@ export default {
}); });
}, },
// //
endLoading() { endLoading () {
// clearTimeout(timer); // clearTimeout(timer);
if (loading) { if (loading) {
loading.close(); loading.close();
@ -1054,7 +947,7 @@ export default {
}, },
}, },
computed: { computed: {
tableHeight() { tableHeight () {
return this.$store.state.inIframe return this.$store.state.inIframe
? this.clientHeight - 415 + this.iframeHeight ? this.clientHeight - 415 + this.iframeHeight
: this.clientHeight - 415; : this.clientHeight - 415;

Loading…
Cancel
Save