Browse Source

Merge branch 'dev-fangyi' into test

shibei_master
jiangyy 3 years ago
parent
commit
addcdf10d7
  1. 54
      src/views/modules/base/community/buildTable.vue
  2. 42
      src/views/modules/base/community/communityTable.vue
  3. 42
      src/views/modules/base/community/roomTable.vue
  4. 12
      src/views/modules/base/epidemic/antiInfo.vue
  5. 2
      src/views/modules/base/epidemic/natInfo/natList.vue
  6. 119
      src/views/modules/shequ/cpts/people-more.vue
  7. 37
      src/views/modules/visual/basicinfo/basicInfoMain.vue
  8. 282
      src/views/modules/visual/basicinfo/cpts/people-more.vue
  9. 61
      src/views/modules/visual/basicinfo/peopleSearch.vue

54
src/views/modules/base/community/buildTable.vue

@ -81,6 +81,10 @@
class="diy-button--reset" class="diy-button--reset"
size="small" size="small"
@click="handleExport">导出</el-button> @click="handleExport">导出</el-button>
<el-button style="float:left;margin-left:10px"
class="diy-button--more"
size="small"
@click="deleteBatch">批量删除</el-button>
</div> </div>
<div class="div_table"> <div class="div_table">
@ -159,19 +163,6 @@
</el-pagination> </el-pagination>
</div> </div>
<div v-if="tableData.length>0"
class="div_del">
<el-checkbox style="height:32px"
:indeterminate="isIndeterminate"
v-model="selAllFlag"
@change="handleSelectAll">全选</el-checkbox>
<el-button v-show="showDeletBtn"
style="margin-left:15px"
type="red"
size="small"
@click="deleteBatch">删除</el-button>
</div>
</div> </div>
<!-- 修改弹出框 --> <!-- 修改弹出框 -->
@ -209,16 +200,14 @@ export default {
pageSize: 20, pageSize: 20,
pageNo: 0, pageNo: 0,
tableLoading: true, tableLoading: true,
selAllFlag: false,
isIndeterminate: false,//
// showImportBtn: false,//
agencyObj: {},// agencyObj: {},//
ownerName: '', ownerName: '',
ownerPhone: '', ownerPhone: '',
validTableDataNum: 0,// validTableDataNum: 0,//
selection: [], selection: [],
showDeletBtn: false,
//form //form
formShow: false, formShow: false,
@ -352,16 +341,7 @@ export default {
this.$emit('refreshTree') this.$emit('refreshTree')
}, },
handleSelectAll (selectAllFlag) {
this.$refs.ref_table.clearSelection();
if (selectAllFlag) {
this.tableData.forEach(row => {
if (row.showBtn) {
this.$refs.ref_table.toggleRowSelection(row);
}
});
}
},
deleteBatch () { deleteBatch () {
if (this.selection.length > 0) { if (this.selection.length > 0) {
this.$confirm("确认删除选择的楼宇?", "提示", { this.$confirm("确认删除选择的楼宇?", "提示", {
@ -388,23 +368,10 @@ export default {
selectAll (selection) { selectAll (selection) {
this.selection = selection this.selection = selection
if (selection.length === this.validTableDataNum) {
this.selAllFlag = true
} else {
this.selAllFlag = false
}
}, },
selectionChange (selection) { selectionChange (selection) {
this.selection = selection this.selection = selection
this.isIndeterminate = false
if (selection.length === this.validTableDataNum) {
this.selAllFlag = true
} else {
this.selAllFlag = false
}
}, },
async handleDelete (row) { async handleDelete (row) {
@ -699,14 +666,7 @@ export default {
} }
}, },
watch: { watch: {
selection (val) {
if (val.length > 0) {
this.showDeletBtn = true
} else {
this.showDeletBtn = false
}
}
}, },
props: { props: {
staffAgencyId: { staffAgencyId: {

42
src/views/modules/base/community/communityTable.vue

@ -108,6 +108,10 @@
class="diy-button--qrcode" class="diy-button--qrcode"
size="small" size="small"
@click="handleDownQr(agencyObj, 'community')">社区二维码</el-button> @click="handleDownQr(agencyObj, 'community')">社区二维码</el-button>
<el-button style="float:left;margin-left:10px"
class="diy-button--more"
size="small"
@click="deleteBatch">批量删除</el-button>
</div> </div>
@ -203,18 +207,6 @@
</el-pagination> </el-pagination>
</div> </div>
<div v-if="tableData.length>0"
class="div_del">
<el-checkbox style="height:32px"
:indeterminate="isIndeterminate"
v-model="selAllFlag"
@change="handleSelectAll">全选</el-checkbox>
<el-button v-show="showDeletBtn"
style="margin-left:15px"
class="diy-button--delete"
size="small"
@click="deleteBatch">删除</el-button>
</div>
</div> </div>
<!-- 修改弹出框 --> <!-- 修改弹出框 -->
@ -254,8 +246,7 @@ export default {
pageSize: 20, pageSize: 20,
pageNo: 0, pageNo: 0,
tableLoading: true, tableLoading: true,
selAllFlag: false,
isIndeterminate: false,//
showImportBtn: false,// showImportBtn: false,//
agencyObj: {},// agencyObj: {},//
@ -414,16 +405,7 @@ export default {
this.$emit('refreshTree') this.$emit('refreshTree')
}, },
handleSelectAll (selectAllFlag) {
this.$refs.ref_table.clearSelection();
if (selectAllFlag) {
this.tableData.forEach(row => {
if (row.showBtn) {
this.$refs.ref_table.toggleRowSelection(row);
}
});
}
},
deleteBatch () { deleteBatch () {
if (this.selection.length > 0) { if (this.selection.length > 0) {
this.$confirm("确认删除选择的小区?", "提示", { this.$confirm("确认删除选择的小区?", "提示", {
@ -451,23 +433,11 @@ export default {
this.selection = selection this.selection = selection
if (selection.length === this.validTableDataNum) {
this.selAllFlag = true
} else {
this.selAllFlag = false
}
}, },
selectionChange (selection) { selectionChange (selection) {
this.selection = selection this.selection = selection
this.isIndeterminate = false
if (selection.length === this.validTableDataNum) {
this.selAllFlag = true
} else {
this.selAllFlag = false
}
}, },
async handleDelete (row) { async handleDelete (row) {

42
src/views/modules/base/community/roomTable.vue

@ -64,6 +64,10 @@
class="diy-button--reset" class="diy-button--reset"
size="small" size="small"
@click="handleExport">导出</el-button> @click="handleExport">导出</el-button>
<el-button style="float:left;margin-left:10px"
class="diy-button--more"
size="small"
@click="deleteBatch">批量删除</el-button>
</div> </div>
<div class="div_table"> <div class="div_table">
@ -161,19 +165,6 @@
</el-pagination> </el-pagination>
</div> </div>
<div v-if="tableData.length>0"
class="div_del">
<el-checkbox style="height:32px"
:indeterminate="isIndeterminate"
v-model="selAllFlag"
@change="handleSelectAll">全选</el-checkbox>
<el-button v-show="showDeletBtn"
style="margin-left:15px"
type="red"
size="small"
@click="deleteBatch">删除</el-button>
</div>
</div> </div>
<!-- 修改弹出框 --> <!-- 修改弹出框 -->
@ -210,8 +201,7 @@ export default {
pageSize: 20, pageSize: 20,
pageNo: 0, pageNo: 0,
tableLoading: true, tableLoading: true,
selAllFlag: false,
isIndeterminate: false,//
// showImportBtn: false,// // showImportBtn: false,//
agencyObj: {},// agencyObj: {},//
@ -361,17 +351,7 @@ export default {
this.loadTable() this.loadTable()
}, },
handleSelectAll (selectAllFlag) {
this.$refs.ref_table.clearSelection();
if (selectAllFlag) {
this.tableData.forEach(row => {
if (row.showBtn) {
this.$refs.ref_table.toggleRowSelection(row);
}
});
}
},
deleteBatch () { deleteBatch () {
if (this.selection.length > 0) { if (this.selection.length > 0) {
this.$confirm("确认删除选择的房屋?", "提示", { this.$confirm("确认删除选择的房屋?", "提示", {
@ -397,23 +377,11 @@ export default {
}, },
selectAll (selection) { selectAll (selection) {
this.selection = selection this.selection = selection
if (selection.length === this.validTableDataNum) {
this.selAllFlag = true
} else {
this.selAllFlag = false
}
}, },
selectionChange (selection) { selectionChange (selection) {
this.selection = selection this.selection = selection
this.isIndeterminate = false
if (selection.length === this.validTableDataNum) {
this.selAllFlag = true
} else {
this.selAllFlag = false
}
}, },
async handleDelete (row) { async handleDelete (row) {

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

@ -185,7 +185,7 @@
header-align="center" header-align="center"
align="center" align="center"
label="姓名" label="姓名"
width="100"> width="120">
</el-table-column> </el-table-column>
<el-table-column prop="gridName" <el-table-column prop="gridName"
header-align="center" header-align="center"
@ -199,13 +199,13 @@
align="center" align="center"
label="所属房屋" label="所属房屋"
show-overflow-tooltip show-overflow-tooltip
width="240"> min-width="180">
</el-table-column> </el-table-column>
<el-table-column prop="mobile" <el-table-column prop="mobile"
header-align="center" header-align="center"
align="center" align="center"
label="手机号" label="手机号"
width="110"> width="180">
</el-table-column> </el-table-column>
<el-table-column prop="idCard" <el-table-column prop="idCard"
header-align="center" header-align="center"
@ -434,7 +434,7 @@
</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
@ -451,6 +451,7 @@
header-align="center" header-align="center"
align="center" align="center"
label="来自地区" label="来自地区"
show-overflow-tooltip
min-width="100"> min-width="100">
</el-table-column> </el-table-column>
<el-table-column prop="arrivalTime" <el-table-column prop="arrivalTime"
@ -475,10 +476,11 @@
header-align="center" header-align="center"
align="center" align="center"
label="备注" label="备注"
show-overflow-tooltip
width="120"> width="120">
</el-table-column> </el-table-column>
</el-table> </el-table>
</el-tab-pane> --> </el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
</div> </div>

2
src/views/modules/base/epidemic/natInfo/natList.vue

@ -165,7 +165,7 @@
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 prop="natResultShow" <el-table-column prop="natResultShow"

119
src/views/modules/shequ/cpts/people-more.vue

@ -136,6 +136,87 @@
</div> </div>
</div> </div>
</div> </div>
<div v-if="group.tableName == 'ic_hs'" style="margin-top:10px; padding: 0 20px;">
<el-table class="table"
:data="natList"
border
height="400"
:header-cell-style="{background:'#2195FE',color:'#FFFFFF'}"
style="width: 100%">
<el-table-column label="序号"
header-align="center"
align="center"
type="index"
width="50"></el-table-column>
<el-table-column prop="testTime"
header-align="center"
align="center"
label="检测时间"
width="150">
</el-table-column>
<el-table-column prop="address"
header-align="center"
align="center"
label="检测机构"
show-overflow-tooltip
min-width="180">
</el-table-column>
<el-table-column prop="result"
header-align="center"
align="center"
label="检测结果"
width="240">
</el-table-column>
</el-table>
</div>
<div v-if="group.tableName == 'ic_xc'" style="margin-top:10px; padding: 0 20px;">
<el-table class="table"
:data="tripList"
border
height="400"
:header-cell-style="{background:'#2195FE',color:'#FFFFFF'}"
style="width: 100%">
<el-table-column label="序号"
header-align="center"
align="center"
type="index"
width="50"></el-table-column>
<el-table-column prop="fromRegion"
header-align="center"
align="center"
label="来自地区"
show-overflow-tooltip
min-width="100">
</el-table-column>
<el-table-column prop="arrivalTime"
header-align="center"
align="center"
label="来到本地时间"
width="140">
</el-table-column>
<el-table-column prop="leaveTime"
header-align="center"
align="center"
label="离开本地时间"
width="140">
</el-table-column>
<el-table-column prop="noticeTime"
header-align="center"
align="center"
label="最近一次通知时间"
width="140">
</el-table-column>
<el-table-column prop="remark"
header-align="center"
align="center"
label="备注"
show-overflow-tooltip
width="120">
</el-table-column>
</el-table>
</div>
<div class="list" v-else> <div class="list" v-else>
<div <div
class="item" class="item"
@ -210,6 +291,8 @@ export default {
louList: [], louList: [],
danyuanList: [], danyuanList: [],
homeList: [], homeList: [],
natList: [], //
tripList: [], //
}; };
}, },
@ -315,6 +398,7 @@ export default {
async getApiData() { async getApiData() {
await this.getField(); await this.getField();
await this.getInfo(); await this.getInfo();
this.getDetailList()
this.getXiaoquList(); this.getXiaoquList();
this.getLouList(); this.getLouList();
this.getDanyuanList(); this.getDanyuanList();
@ -364,6 +448,7 @@ export default {
}); });
if (code === 0) { if (code === 0) {
this.groupList = data.groupList; this.groupList = data.groupList;
this.fieldList = (function (arr) { this.fieldList = (function (arr) {
let col = []; let col = [];
@ -429,6 +514,22 @@ export default {
} }
}); });
}); });
const arr = [{
groupId: "hs123",
itemList: [],
label: "核酸检测信息",
sort: 998,
supportAdd: false,
tableName: "ic_hs",
}, {
groupId: "hs124",
itemList: [],
label: "行程信息",
sort: 999,
supportAdd: false,
tableName: "ic_xc",
}]
this.groupList = [...this.groupList, ...arr]
} else { } else {
this.$message.error(msg); this.$message.error(msg);
} }
@ -500,6 +601,24 @@ export default {
this.$message.error(msg); this.$message.error(msg);
} }
}, },
async getDetailList () {
const url = "/epmetuser/epidemicPrevention/info"
let params = {
id: this.userId
}
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
const { vaccineList, natList, tripList } = data
this.vaccineList = vaccineList
this.natList = natList
this.tripList = tripList
} else {
this.$message.error(msg)
}
},
}, },
}; };
</script> </script>

37
src/views/modules/visual/basicinfo/basicInfoMain.vue

@ -14,19 +14,14 @@
</div> </div>
</div> </div>
<people v-if="orgLevel==='people'" <div class="div_content">
:uid="selUserId"
ref="ref_people"></people>
<div v-show="orgLevel!=='people' "
class="div_content">
<basic-info-community v-show="orgLevel==='neighborHood'" <basic-info-community v-show="orgLevel==='neighborHood'"
@toSubAgency="toSubAgency" @toSubAgency="toSubAgency"
ref="ref_community" ref="ref_community"
@refreshInfoList="refreshInfoList"></basic-info-community> @refreshInfoList="refreshInfoList"></basic-info-community>
<div v-show="orgLevel!=='people' && orgLevel!=='neighborHood'" <div v-show="orgLevel!=='neighborHood'"
class="div_map" class="div_map"
id="map" id="map"
ref="map"> ref="map">
@ -151,8 +146,7 @@ import { mapGetters } from "vuex";
import { Loading } from 'element-ui'; //Loading import { Loading } from 'element-ui'; //Loading
import { requestPost } from "@/js/dai/request"; import { requestPost } from "@/js/dai/request";
import BasicInfoCommunity from "./basicInfoCommunity"; import BasicInfoCommunity from "./basicInfoCommunity";
import PeopleSearch from "./peopleSearch";
import People from "./people";
import cptCard from "@/views/modules/visual/cpts/card"; import cptCard from "@/views/modules/visual/cpts/card";
import ScreenLoading from "@/views/modules/visual/cpts/loading"; import ScreenLoading from "@/views/modules/visual/cpts/loading";
@ -384,24 +378,11 @@ const vueGis = {
this.toSubAgency('polygon', e) this.toSubAgency('polygon', e)
}, },
// type:polygon / people // type:polygon /
async toSubAgency (type, e, searchName) { async toSubAgency (type, e, searchName) {
//neighborHood //neighborHood
if (type === 'people') {
this.runNum++
this.runAgencyArray.push(this.orgData)
this.orgLevel = 'people'
this.selUserId = e
this.orgId = ''
this.orgData = {
id: '',
level: 'people',
name: '人员档案'
}
this.searchName = searchName
} else {
if (!e) { if (!e) {
return false return false
@ -436,7 +417,7 @@ const vueGis = {
this.refreshMap(true) this.refreshMap(true)
} }
}
}, },
@ -530,11 +511,7 @@ const vueGis = {
this.center = this.orgData.center this.center = this.orgData.center
this.zoom = this.orgData.zoom this.zoom = this.orgData.zoom
if (this.orgLevel === 'people') { if (this.orgLevel === 'neighborHood') {//
}
else if (this.orgLevel === 'neighborHood') {//
} else { } else {
@ -951,7 +928,7 @@ const vueGis = {
...mapGetters(["clientHeight"]) ...mapGetters(["clientHeight"])
}, },
components: { BasicInfoCommunity, PeopleSearch, People, cptCard, ScreenLoading }, components: { BasicInfoCommunity, cptCard, ScreenLoading },
} }
export default vueGis; export default vueGis;
</script> </script>

282
src/views/modules/visual/basicinfo/cpts/people-more.vue

@ -7,42 +7,45 @@
<span>更多信息</span> <span>更多信息</span>
</div> </div>
<div class="btn-close" @click="handleClose"> <div class="btn-close"
@click="handleClose">
<img src="@/assets/img/shuju/people/close.png" /> <img src="@/assets/img/shuju/people/close.png" />
</div> </div>
<div <div :key="'fieldSubList' + index"
:key="'fieldSubList' + index" v-for="(fieldSubList, index) in fieldList">
v-for="(fieldSubList, index) in fieldList"
>
<div class="list"> <div class="list">
<div class="item" v-if="index == 0"> <div class="item"
v-if="index == 0">
<span class="item-field">所属网格</span> <span class="item-field">所属网格</span>
<span>{{ gridName }}</span> <span>{{ gridName }}</span>
</div> </div>
<div class="item" v-if="index == 0"> <div class="item"
v-if="index == 0">
<span class="item-field">所属小区</span> <span class="item-field">所属小区</span>
<span>{{ xiaoquName }}</span> <span>{{ xiaoquName }}</span>
</div> </div>
<div class="item" v-if="index == 0"> <div class="item"
v-if="index == 0">
<span class="item-field">所属楼宇</span> <span class="item-field">所属楼宇</span>
<span>{{ louName }}-{{ danyuanName }}</span> <span>{{ louName }}-{{ danyuanName }}</span>
</div> </div>
<div class="item" v-if="index == 0"> <div class="item"
v-if="index == 0">
<span class="item-field">所属家庭</span> <span class="item-field">所属家庭</span>
<span>{{ homeName }}</span> <span>{{ homeName }}</span>
</div> </div>
<div class="item" :key="field.itemId" v-for="field in fieldSubList"> <div class="item"
:key="field.itemId"
v-for="field in fieldSubList">
<span class="item-field">{{ field.label }}</span> <span class="item-field">{{ field.label }}</span>
<span <span v-if="
v-if="
field.itemType == 'select' || field.itemType == 'select' ||
field.itemType == 'radio' || field.itemType == 'radio' ||
field.itemType == 'checkbox' || field.itemType == 'checkbox' ||
field.itemType == 'cascader' field.itemType == 'cascader'
" ">{{
>{{
info[field.columnName] == null info[field.columnName] == null
? "--" ? "--"
: getOptionLabel( : getOptionLabel(
@ -50,8 +53,7 @@
info[field.columnName], info[field.columnName],
field.itemType field.itemType
) )
}}</span }}</span>
>
<span v-else>{{ <span v-else>{{
info[field.columnName] == null ? "--" : info[field.columnName] info[field.columnName] == null ? "--" : info[field.columnName]
@ -63,57 +65,43 @@
</div> </div>
<div class="tabs"> <div class="tabs">
<div <div class="tab-btn"
class="tab-btn"
@click="subStartGroupIndex" @click="subStartGroupIndex"
v-if="groupList.length > 9" v-if="groupList.length > 9">
>
<img src="@/assets/img/shuju/people/arrow-double-left.png" /> <img src="@/assets/img/shuju/people/arrow-double-left.png" />
</div> </div>
<div <div v-show="index >= startGroupIndex && index < startGroupIndex + 9"
v-show="index >= startGroupIndex && index < startGroupIndex + 9"
class="tab" class="tab"
:class="groupIndex % groupList.length == index ? 'z-on' : ''" :class="groupIndex % groupList.length == index ? 'z-on' : ''"
:key="'tab' + index" :key="'tab' + index"
@click="groupIndex = index" @click="groupIndex = index"
v-for="(item, index) in groupList" v-for="(item, index) in groupList">
>
{{ item.label }} {{ item.label }}
</div> </div>
<div <div class="tab-btn"
class="tab-btn"
@click="addStartGroupIndex" @click="addStartGroupIndex"
v-if="groupList.length > 9" v-if="groupList.length > 9">
>
<img src="@/assets/img/shuju/people/arrow-double-right.png" /> <img src="@/assets/img/shuju/people/arrow-double-right.png" />
</div> </div>
</div> </div>
<div <div :key="'group' + index"
:key="'group' + index"
v-show="groupIndex % groupList.length == index" v-show="groupIndex % groupList.length == index"
v-for="(group, index) in groupList" v-for="(group, index) in groupList">
>
<div v-if="group.tableName == 'ic_resi_demand' && Array.isArray(allInfo.ic_resi_demand) && allInfo.ic_resi_demand.length>0"> <div v-if="group.tableName == 'ic_resi_demand' && Array.isArray(allInfo.ic_resi_demand) && allInfo.ic_resi_demand.length>0">
<div <div class="list"
class="list"
:key="'ic_resi_demand' + infoIndex" :key="'ic_resi_demand' + infoIndex"
v-for="(infoItem, infoIndex) in allInfo.ic_resi_demand" v-for="(infoItem, infoIndex) in allInfo.ic_resi_demand">
> <div class="item"
<div
class="item"
:key="field.itemId" :key="field.itemId"
v-for="field in group.itemList" v-for="field in group.itemList">
>
<span class="item-field">{{ field.label }}</span> <span class="item-field">{{ field.label }}</span>
<span <span v-if="
v-if="
field.itemType == 'select' || field.itemType == 'select' ||
field.itemType == 'radio' || field.itemType == 'radio' ||
field.itemType == 'checkbox' || field.itemType == 'checkbox' ||
field.itemType == 'cascader' field.itemType == 'cascader'
" ">{{
>{{
infoItem[field.columnName] == null infoItem[field.columnName] == null
? "--" ? "--"
: getOptionLabel( : getOptionLabel(
@ -121,8 +109,7 @@
infoItem[field.columnName], infoItem[field.columnName],
field.itemType field.itemType
) )
}}</span }}</span>
>
<span v-else>{{ <span v-else>{{
infoItem[field.columnName] == null infoItem[field.columnName] == null
@ -132,21 +119,39 @@
</div> </div>
</div> </div>
</div> </div>
<div class="list" v-else> <div v-if="group.tableName == 'ic_hs'"
<div style="margin-top:10px; padding: 0 20px;">
class="item" <div class="tb">
<cpt-tb :col-list="natDemand.colList"
:loading="natDemand.loading"
:header="natDemand.header"
:list="natDemand.list"></cpt-tb>
</div>
</div>
<div v-if="group.tableName == 'ic_xc'"
style="margin-top:10px; padding: 0 20px;">
<div class="tb">
<cpt-tb :col-list="tripDemand.colList"
:loading="tripDemand.loading"
:header="tripDemand.header"
:list="tripDemand.list"></cpt-tb>
</div>
</div>
<div class="list"
v-else>
<div class="item"
:key="field.itemId" :key="field.itemId"
v-for="field in group.itemList" v-for="field in group.itemList">
>
<span class="item-field">{{ field.label }}</span> <span class="item-field">{{ field.label }}</span>
<span <span v-if="
v-if="
field.itemType == 'select' || field.itemType == 'select' ||
field.itemType == 'radio' || field.itemType == 'radio' ||
field.itemType == 'checkbox' || field.itemType == 'checkbox' ||
field.itemType == 'cascader' field.itemType == 'cascader'
" ">{{
>{{
!allInfo[group.tableName] || !allInfo[group.tableName] ||
allInfo[group.tableName][0][field.columnName] == null allInfo[group.tableName][0][field.columnName] == null
? "--" ? "--"
@ -155,8 +160,7 @@
allInfo[group.tableName][0][field.columnName], allInfo[group.tableName][0][field.columnName],
field.itemType field.itemType
) )
}}</span }}</span>
>
<span v-else>{{ <span v-else>{{
!allInfo[group.tableName] || !allInfo[group.tableName] ||
@ -175,6 +179,7 @@
<script> <script>
import cptCard from "@/views/modules/visual/cpts/card"; import cptCard from "@/views/modules/visual/cpts/card";
import { requestPost } from "@/js/dai/request"; import { requestPost } from "@/js/dai/request";
import cptTb from "@/views/modules/visual/cpts/tb";
export default { export default {
name: "peopleMore", name: "peopleMore",
@ -190,10 +195,10 @@ export default {
}, },
components: { components: {
cptCard, cptCard, cptTb
}, },
data() { data () {
return { return {
fieldList: [], fieldList: [],
groupList: [], groupList: [],
@ -206,11 +211,73 @@ export default {
louList: [], louList: [],
danyuanList: [], danyuanList: [],
homeList: [], homeList: [],
natList: [],//
tripList: [],//
natDemand: {
loading: false,
colList: [
{
align: "center",
width: "10%",
},
{
align: "center",
width: "15%",
},
{
align: "center",
width: "55%",
},
{
align: "center",
width: "10%",
},
],
header: ["序号", "检测时间", "检测地点", "检测结果"],
list: [],
srcList: [],
},
tripDemand: {
loading: false,
colList: [
{
align: "center",
width: "10%",
},
{
align: "center",
width: "30%",
},
{
align: "center",
width: "15%",
},
{
align: "center",
width: "15%",
},
{
align: "center",
width: "15%",
},
{
align: "center",
width: "15%",
},
],
header: ["序号", "来自地区", "来到本地地区", "离开本地地区", "最近一次通知时间", "备注"],
list: [],
srcList: [],
},
}; };
}, },
computed: { computed: {
xiaoquName() { xiaoquName () {
const { const {
xiaoquList, xiaoquList,
info: { VILLAGE_ID }, info: { VILLAGE_ID },
@ -223,7 +290,7 @@ export default {
} }
return ""; return "";
}, },
louName() { louName () {
const { const {
louList, louList,
info: { BUILD_ID }, info: { BUILD_ID },
@ -236,7 +303,7 @@ export default {
} }
return ""; return "";
}, },
danyuanName() { danyuanName () {
const { const {
danyuanList, danyuanList,
info: { UNIT_ID }, info: { UNIT_ID },
@ -249,7 +316,7 @@ export default {
} }
return ""; return "";
}, },
danyuanName() { danyuanName () {
const { const {
danyuanList, danyuanList,
info: { UNIT_ID }, info: { UNIT_ID },
@ -262,7 +329,7 @@ export default {
} }
return ""; return "";
}, },
homeName() { homeName () {
const { const {
homeList, homeList,
info: { HOME_ID }, info: { HOME_ID },
@ -278,17 +345,17 @@ export default {
}, },
watch: { watch: {
userId() { userId () {
this.getApiData(); this.getApiData();
}, },
}, },
mounted() { mounted () {
this.getApiData(); this.getApiData();
}, },
methods: { methods: {
addStartGroupIndex() { addStartGroupIndex () {
const { startGroupIndex, groupList } = this; const { startGroupIndex, groupList } = this;
if (startGroupIndex < groupList.length - 9) { if (startGroupIndex < groupList.length - 9) {
this.startGroupIndex = startGroupIndex + 1; this.startGroupIndex = startGroupIndex + 1;
@ -296,7 +363,7 @@ export default {
this.startGroupIndex = groupList.length - 9; this.startGroupIndex = groupList.length - 9;
} }
}, },
subStartGroupIndex() { subStartGroupIndex () {
const { startGroupIndex, groupList } = this; const { startGroupIndex, groupList } = this;
if (startGroupIndex > 0) { if (startGroupIndex > 0) {
this.startGroupIndex = startGroupIndex - 1; this.startGroupIndex = startGroupIndex - 1;
@ -304,20 +371,21 @@ export default {
this.startGroupIndex = 0; this.startGroupIndex = 0;
} }
}, },
handleClose() { handleClose () {
this.$emit("close"); this.$emit("close");
}, },
async getApiData() { async getApiData () {
await this.getField(); await this.getField();
await this.getInfo(); await this.getInfo();
this.getDetailList()
this.getXiaoquList(); this.getXiaoquList();
this.getLouList(); this.getLouList();
this.getDanyuanList(); this.getDanyuanList();
this.getHomeList(); this.getHomeList();
}, },
getOptionLabel(options, value, type = "") { getOptionLabel (options, value, type = "") {
if (Array.isArray(options)) { if (Array.isArray(options)) {
let valueArr = value.split(","); let valueArr = value.split(",");
if (type == "cascader") { if (type == "cascader") {
@ -351,7 +419,7 @@ export default {
}, },
// //
async getField() { async getField () {
const url = "/oper/customize/icform/getcustomerform"; const url = "/oper/customize/icform/getcustomerform";
const { data, code, msg } = await requestPost(url, { const { data, code, msg } = await requestPost(url, {
@ -391,7 +459,7 @@ export default {
}, },
// //
async getInfo() { async getInfo () {
const url = "/epmetuser/icresiuser/detail"; const url = "/epmetuser/icresiuser/detail";
const { data, code, msg } = await requestPost(url, { const { data, code, msg } = await requestPost(url, {
@ -425,13 +493,71 @@ export default {
} }
}); });
}); });
const arr = [{
groupId: "hs123",
itemList: [],
label: "核酸检测信息",
sort: 998,
supportAdd: false,
tableName: "ic_hs",
}, {
groupId: "hs124",
itemList: [],
label: "行程信息",
sort: 999,
supportAdd: false,
tableName: "ic_xc",
}]
this.groupList = [...this.groupList, ...arr]
} else { } else {
this.$message.error(msg); this.$message.error(msg);
} }
}, },
async getDetailList () {
const url = "/epmetuser/epidemicPrevention/info"
let params = {
id: this.userId
}
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
const { natList, tripList } = data
this.natList = natList
this.tripList = tripList
this.natDemand.list = natList.map((item) => {
return [
{ type: "index" },
item.testTime,
item.address,
item.result,
];
});
this.natDemand.srcList = natList;
this.tripDemand.list = tripList.map((item) => {
return [
{ type: "index" },
item.fromRegion,
item.arrivalTime,
item.leaveTime,
item.noticeTime,
item.remark,
];
});
this.tripDemand.srcList = tripList;
} else {
this.$message.error(msg)
}
},
// //
async getOptions(url) { async getOptions (url) {
if (!url) return []; if (!url) return [];
const { data, code, msg } = await requestPost(url, {}); const { data, code, msg } = await requestPost(url, {});
@ -443,7 +569,7 @@ export default {
} }
}, },
async getXiaoquList() { async getXiaoquList () {
const url = "/gov/org/icneighborhood/neighborhoodoption"; const url = "/gov/org/icneighborhood/neighborhoodoption";
const { data, code, msg } = await requestPost(url, { const { data, code, msg } = await requestPost(url, {
@ -457,7 +583,7 @@ export default {
this.$message.error(msg); this.$message.error(msg);
} }
}, },
async getLouList() { async getLouList () {
const url = "/gov/org/icbuilding/buildingoption"; const url = "/gov/org/icbuilding/buildingoption";
const { data, code, msg } = await requestPost(url, { const { data, code, msg } = await requestPost(url, {
@ -470,7 +596,7 @@ export default {
this.$message.error(msg); this.$message.error(msg);
} }
}, },
async getDanyuanList() { async getDanyuanList () {
const url = "/gov/org/icbuildingunit/unitoption"; const url = "/gov/org/icbuildingunit/unitoption";
const { data, code, msg } = await requestPost(url, { const { data, code, msg } = await requestPost(url, {
@ -483,7 +609,7 @@ export default {
this.$message.error(msg); this.$message.error(msg);
} }
}, },
async getHomeList() { async getHomeList () {
const url = "/gov/org/ichouse/houseoption"; const url = "/gov/org/ichouse/houseoption";
const { data, code, msg } = await requestPost(url, { const { data, code, msg } = await requestPost(url, {

61
src/views/modules/visual/basicinfo/peopleSearch.vue

@ -1,6 +1,16 @@
<template> <template>
<div> <div>
<div> <div v-if="orgLevel==='people'"
class="div_top">
<div class="router_line"></div>
<div class="div_router">
<span class="router_parents"
@click="handleClickBack()">返回</span>
</div>
</div>
<div v-if="orgLevel!=='people'">
<div class="div_search_list"> <div class="div_search_list">
<el-input size="mini" <el-input size="mini"
WarningColor='warning' WarningColor='warning'
@ -63,7 +73,13 @@
</div> </div>
</div> </div>
<people v-if="orgLevel==='people'"
:uid="selUserId"
ref="ref_people"></people>
</div> </div>
</template> </template>
<script> <script>
@ -79,10 +95,15 @@ export default {
return { return {
headerList: [], headerList: [],
tableData: [], tableData: [],
searchName: '', searchName: '',
pageSize: 4, pageSize: 4,
pageNo: 1, pageNo: 1,
total: 0 total: 0,
orgLevel: 'search',
selUserId: '',
//
runNum: 0,
runAgencyArray: [],
}; };
}, },
methods: { methods: {
@ -90,13 +111,7 @@ export default {
}, },
loadByName (searchName) {
this.searchName = searchName
// if (this.searchName) {
this.loadList()
// }
},
reset () { reset () {
this.searchName = '' this.searchName = ''
this.tableData = [] this.tableData = []
@ -126,27 +141,53 @@ export default {
// //
handelToPeople (index) { handelToPeople (index) {
this.$emit('toSubAgency', 'people', this.tableData[index].userId, this.searchName) this.toSubAgency('people', this.tableData[index].userId)
}, },
pageCurrentChangeHandle (val) { pageCurrentChangeHandle (val) {
this.pageNo = val this.pageNo = val
this.loadList() this.loadList()
}, },
// type:polygon / people
async toSubAgency (type, userId) {
this.orgLevel = 'people'
this.selUserId = userId
},
//
handleClickBack () {
this.orgLevel = 'search'
},
}, },
destroyed () { destroyed () {
console.log("我已经离开了!"); console.log("我已经离开了!");
}, },
}; };
</script> </script>
<style
lang="scss"
src="@/assets/scss/modules/visual/basicInfoMain.scss"
scoped
></style>
<style <style
lang="scss" lang="scss"
src="@/assets/scss/modules/visual/searchPerson.scss" src="@/assets/scss/modules/visual/searchPerson.scss"
scoped scoped
></style> ></style>
<style lang=scss> <style lang=scss>
.div_search_list { .div_search_list {
.el-input__inner[WarningColor="warning"] { .el-input__inner[WarningColor="warning"] {

Loading…
Cancel
Save