jiangyy 3 years ago
parent
commit
6364584d63
  1. 2
      .env.development
  2. 4
      src/assets/scss/modules/management/list-main.scss
  3. 1285
      src/views/components/resiForm.vue
  4. 21
      src/views/dataBoard/renfang/cpts/fwgl.vue
  5. 21
      src/views/dataBoard/renfang/cpts/jmgl.vue
  6. 21
      src/views/dataBoard/renfang/cpts/rkfx.vue
  7. 21
      src/views/dataBoard/renfang/cpts/rkyj.vue
  8. 22
      src/views/dataBoard/renfang/index.vue
  9. 249
      src/views/modules/base/resi.vue

2
.env.development

@ -1,6 +1,6 @@
NODE_ENV=development
VUE_APP_API_SERVER = http://192.168.1.140/api
VUE_APP_API_SERVER = http://192.168.1.144/api
# VUE_APP_API_SERVER = http://118.190.150.119:41080/api
# VUE_APP_API_SERVER = https://epmet-yantai.elinkservice.cn/api
# VUE_APP_API_SERVER = https://epmet-test.elinkservice.cn/api

4
src/assets/scss/modules/management/list-main.scss

@ -225,7 +225,9 @@
.f-right8 {
margin-right: 8px !important;
}
.f-right10 {
margin-right: 10px !important;
}
.f-margin30 {
margin: 30px;
}

1285
src/views/components/resiForm.vue

File diff suppressed because it is too large

21
src/views/dataBoard/renfang/cpts/fwgl.vue

@ -0,0 +1,21 @@
<template>
<div>房屋概览</div>
</template>
<script>
import { requestPost } from "@/js/dai/request";
export default {
props: {
orgId: {
type: String,
default: "",
},
},
data() {},
mounted() {},
methods: {},
};
</script>
<style lang="scss" scoped></style>

21
src/views/dataBoard/renfang/cpts/jmgl.vue

@ -0,0 +1,21 @@
<template>
<div>房屋概览</div>
</template>
<script>
import { requestPost } from "@/js/dai/request";
export default {
props: {
orgId: {
type: String,
default: "",
},
},
data() {},
mounted() {},
methods: {},
};
</script>
<style lang="scss" scoped></style>

21
src/views/dataBoard/renfang/cpts/rkfx.vue

@ -0,0 +1,21 @@
<template>
<div>房屋概览</div>
</template>
<script>
import { requestPost } from "@/js/dai/request";
export default {
props: {
orgId: {
type: String,
default: "",
},
},
data() {},
mounted() {},
methods: {},
};
</script>
<style lang="scss" scoped></style>

21
src/views/dataBoard/renfang/cpts/rkyj.vue

@ -0,0 +1,21 @@
<template>
<div>房屋概览</div>
</template>
<script>
import { requestPost } from "@/js/dai/request";
export default {
props: {
orgId: {
type: String,
default: "",
},
},
data() {},
mounted() {},
methods: {},
};
</script>
<style lang="scss" scoped></style>

22
src/views/dataBoard/renfang/index.vue

@ -10,7 +10,9 @@
<div class="box-title-txt">房屋概览</div>
</div>
<div class="m-subbox"></div>
<div class="m-subbox">
<fwgl :orgId="orgData.id"></fwgl>
</div>
</div>
<div class="m-box">
@ -22,7 +24,9 @@
<div class="box-title-txt">居民概览</div>
</div>
<div class="m-subbox"></div>
<div class="m-subbox">
<jmgl :orgId="orgData.id"></jmgl>
</div>
</div>
</div>
@ -156,7 +160,9 @@
<div class="box-title-txt">人口分析</div>
</div>
<div class="m-subbox"></div>
<div class="m-subbox">
<rkfx :orgId="orgData.id"></rkfx>
</div>
</div>
<div class="m-box">
@ -168,7 +174,9 @@
<div class="box-title-txt">人口预警</div>
</div>
<div class="m-subbox"></div>
<div class="m-subbox">
<rkyj :orgId="orgData.id"></rkyj>
</div>
</div>
</div>
</div>
@ -176,11 +184,15 @@
<script>
import gridMap from "@/views/dataBoard/cpts/map/index";
import fwgl from "@/views/dataBoard/renfang/cpts/fwgl";
import jmgl from "@/views/dataBoard/renfang/cpts/jmgl";
import rkfx from "@/views/dataBoard/renfang/cpts/rkfx";
import rkyj from "@/views/dataBoard/renfang/cpts/rkyj";
import { requestPost } from "@/js/dai/request";
import getQueryPara from "dai-js/modules/getQueryPara";
export default {
components: { gridMap },
components: { gridMap, fwgl, jmgl, rkfx, rkyj },
data() {
return {

249
src/views/modules/base/resi.vue

@ -17,13 +17,7 @@
</el-collapse-item>
</el-collapse> -->
<!-- <template v-else> -->
<resi-search v-if="searchList.length > 0"
ref="resiSearch"
:form-list="searchList[0].queryItemList"
:column-name="defaultCategotyKey"
:show-grid="true"
:is-arrow="true"
@search="handleSearch" />
<!-- </template> -->
<!-- <el-row v-if="openSearch"
class="resi-search">
@ -127,19 +121,31 @@
:prop="item.columnName"
:label="item.label"
align="left"
:fixed="item.columnName == 'NAME' ? 'left' : false"
:show-overflow-tooltip="true"
:width="item.width || computedWidth(item.label, item.itemType)">
<!-- :width="item.itemType === 'radio' ? computedWidth(item.label) : 180" -->
<template slot-scope="scope">
<a v-if="item.columnName == 'NAME' && btnAuths.ic_resi_view"
class="name-a"
@click="handleLook(scope.row)">
>
{{ handleFilterSpan(scope.row, item) }}
</a>
<div v-else-if="item.columnName == 'gender'">
{{scope.row.gender == 1 ? '男' : '女' }}
</div>
<div v-else-if="item.columnName == 'birthday'">
{{scope.row.birthday.substr(0,10) }}
</div>
<div v-else-if="item.columnName == 'idNum'">
{{`${scope.row.idNum.substr(0,11)}`+'******'+`${scope.row.idNum.substr(16,2)}` }}
</div>
<div v-else-if="item.columnName == 'mobile'">
{{`${scope.row.mobile.substr(0,3)}`+'******'+`${scope.row.mobile.substr(7,4)}` }}
</div>
<span v-else>{{ handleFilterSpan(scope.row, item) }}</span>
</template>
</el-table-column>
<el-table-column fixed="right"
label="操作"
@ -166,21 +172,26 @@
<el-popconfirm v-if="btnAuths.ic_resi_del"
title="删除之后无法回复,确认删除?"
@onConfirm="handleDel(scope.row)">
<!-- <el-button slot="reference"
type="text"
size="small"
class="btn-color-del">删除</el-button> -->
</el-popconfirm>
</template>
<el-button @click="handleChangeTransfer(scope.row)"
<el-button
type="text"
class="div-table-button--blue"
size="small">迁出登记</el-button>
<el-button @click="handleDeath(scope.row)"
class="div-table-button--blue"
size="small" @click="handleLook(scope.row)">查看</el-button>
<el-button
type="text"
size="small">死亡登记</el-button>
class="div-table-button--blue f-right10"
size="small">编辑</el-button>
<el-dropdown trigger="click" @command="handelRegister">
<span class=" div-table-button--blue">
登记<i class="el-icon-arrow-down el-icon--right"></i>
</span>
<el-dropdown-menu slot="dropdown" >
<el-dropdown-item >死亡登记</el-dropdown-item>
<el-dropdown-item >迁出登记</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</template>
</el-table-column>
</el-table>
@ -450,7 +461,9 @@ export default {
editTableName: {},
formName: "",
formList: [],
tableHeader: [],
tableHeader: [
{columnName:'name',label:'姓名'}, {columnName:'birthday',label:'生日'},{columnName:'gender',label:'性别'},{columnName:'gridName',label:'所属网格'},{columnName:'homeName',label:'所属房屋'},{columnName:'idNum',label:'证件号'},{columnName:'mobile',label:'联系电话'}
],
tabsList: [],
selection: [],
@ -489,8 +502,6 @@ export default {
let query = this.$route.query;
this.defaultCategotyKey = query.columnName;
console.log("defaultCategotyKey----", this.defaultCategotyKey);
await this.getSearchList();
this.$refs.resiSearch.handleSearch();
}
},
computed: {
@ -509,20 +520,14 @@ export default {
this.defaultCategotyKey = query.columnName;
}
await this.getSearchList();
// await this.getFormList()
await this.getTableHeader();
// console.log('this.$refs.resiSearch', this)
this.$refs.resiSearch.handleSearch();
// this.handleSearch()
// this.getTableData()
// console.log('this.$refs.resiSearch', this)
this.getTableData()
this.pageLoading = true;
this.searchH = this.$refs.resiSearch.$el.offsetHeight;
console.log("storeoooo----0000", this.$store);
console.log("resiSearch", this.$refs.resiSearch.$el.offsetHeight);
},
async mounted () {
// this.$nextTick(() => {
@ -549,6 +554,9 @@ export default {
});
}
},
handelRegister(row){
console.log(row);
},
reportForm () {
this.$refs.baobiao.init({
elseParams: {
@ -706,31 +714,12 @@ export default {
return _val || row[item.columnName];
},
handleSearchFrom () {
let arr = [];
this.searchList.forEach((item) => {
const arr1 =
this.$refs[`resiSearch${item.itemGroupId}`][0].handleSearch();
arr = arr.concat(arr1);
// console.log('search-----refs', this.$refs[`resiSearch${item.itemGroupId}`])
});
console.log("search-----refs", this.$refs);
console.log("search-----arr", arr);
this.currentPage = 1;
this.conditions = arr;
this.getTableData();
},
handleSearch (val) {
console.log("searchhh--", val);
this.currentPage = 1;
this.conditions = val;
this.getTableData();
},
resetSearchForm (formName) {
// for(const n in this.form) {
// this.form[n] = ''
// }
// this.handleSearch()
this.searchList.forEach((item) => {
this.$refs[`resiSearch${item.itemGroupId}`][0].resetForm();
// console.log('search-----refs', this.$refs[`resiSearch${item.itemGroupId}`])
@ -933,6 +922,7 @@ export default {
console.log(tab, event);
},
async handleLook (row) {
console.log();
this.lookInfo.userId = row.icResiUserId;
this.lookInfo.gridName = row.GRID_ID;
this.showedPeopleMoreInfo = true;
@ -1057,12 +1047,35 @@ export default {
const arr = await this.formetForm();
if (arr) this.submitEdit(arr);
},
async handleSUbmit () {
this.$refs.baseForm.submit_from()
for (const key of this.$refs.baseForm) {
if(typeof key == "Object"){
console.log(key);
}
}
// console.log(this,$refs.baseForm);
// const arr = await this.formetForm();
// if (arr) this.submitAdd(arr);
this.dialogVisible = false;
// this.$refs.baseForm.tabsList.forEach(item=>{
// if(item.id){
// console.log(item.id);
// }
// })
// console.log(this.$refs.baseForm.tabsList);
// if(this.$refs.baseForm.form.hobbyInfoDto.hobbyCode.length != 0 || this.$refs.baseForm.form.volunteerDto.volunteerCategory.length != 0 ||this.$refs.baseForm.form.specialDto.specialCategoryCode.length != 0){
// this.$refs.baseForm.form.hobbyInfoDto.hobbyCode = this.$refs.baseForm.form.hobbyInfoDto.hobbyCode.join(',')
// this.$refs.baseForm.form.volunteerDto.volunteerCategory = this.$refs.baseForm.form.volunteerDto.volunteerCategory.join(',')
// this.$refs.baseForm.form.specialDto.specialCategoryCode = this.$refs.baseForm.form.specialDto.specialCategoryCode.join(',')
// }else {
// this.$refs.baseForm.form.hobbyInfoDto.hobbyCode = ''
// this.$refs.baseForm.form.volunteerDto.volunteerCategory=''
// this.$refs.baseForm.form.specialDto.specialCategoryCode = ''
// }
// this.submitAdd(this.$refs.baseForm.form);
console.log(this.$refs.baseForm.form);
// this.dialogVisible = false;
},
handleDel (row) {
let params = {
@ -1107,24 +1120,21 @@ export default {
async submitAdd (arr) {
this.btnLoading = true;
await this.$http
.post("/epmetuser/icresiuser/add", arr)
.post("/actual/base/residentBaseInfo/save", arr)
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg);
} else {
this.$message.success("提交成功");
// this.$refs[formName].resetFields();
this.$refs.baseForm.resetForm();
this.tabsList.forEach((item) => {
this.$refs["group" + item.groupId][0].resetForm();
});
this.getTableData();
this.dialogVisible = false;
}
})
.catch(() => {
return this.$message.error("网络错误");
});
// console.log(this.$refs.baseForm.form);
this.btnLoading = false;
},
async submitEdit (arr) {
@ -1150,71 +1160,21 @@ export default {
});
this.btnLoading = false;
},
async getTableHeader () {
await this.$http
.post("/oper/customize/icform/tableheaders", {
formCode: "resi_base_info",
})
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg);
} else {
this.tableHeader = res.data;
}
})
.catch(() => {
return this.$message.error("网络错误");
});
},
async getTableData () {
this.tableLoading = true;
// console.log(this.conditions);
// if(this.conditions.columnName){
// columnValue
// }
// var index = this.conditions.findIndex(item=>item.columnName === 'BIRTHDAY' )
// this.conditions.filter(item=>{
// if(item.columnName === "BIRTHDAY") {
// console.log(this.$refs.resiSearch.endPickerTime);
// item.columnValue = [this.$refs.resiSearch.endPickerTime,this.$refs.resiSearch.startPickerTime]
// }
// })
// console.log(this.conditions);
let timer = this.$refs.resiSearch.handelWatchStartDate()
console.log(timer, '派发');
let params = {
formCode: "resi_base_info",
pageNo: this.currentPage,
pageSize: this.pageSize,
conditions: this.conditions,
try {
let params = {
pageNo: this.currentPage,
pageSize: this.pageSize,
};
await this.$http
.post("/epmetuser/icresiuser/listresi", params)
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg);
} else {
this.tableData = res.data.list.map((item) => {
return {
...item,
isChecked: this.filterEdit(item.ORG_ID),
};
});
let _selAllFlagDisabled = true;
this.tableData.forEach((item) => {
if (item.isChecked) _selAllFlagDisabled = false;
});
this.selAllFlagDisabled = _selAllFlagDisabled;
this.total = res.data.total;
}
})
.catch(() => {
console.log(this.conditions);
return this.$message.error("网络错误");
});
// this.tableLoading = true;
const { data } = await this.$http.post("/actual/base/residentBaseInfo/page", params)
this.tableData =data.data.list
console.log(this.tableData);
console.log(data,'data');
} catch (error) {
console.log(error);
}
this.tableLoading = false;
},
getrowInfo (id) {
@ -1312,48 +1272,7 @@ export default {
});
return options;
},
async getSearchList () {
// /oper/customize/icform/conditionlist
await this.$http
.post("/oper/customize/icform/conditionlist-bygroup", {
formCode: "resi_base_info",
dynamic: true,
})
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg);
} else {
console.log("获取查询详情成功--sss", res);
res.data.forEach((item) => {
item.queryItemList.forEach((n) => {
if (n.optionSourceType === "remote") {
this.getOptionsList(n.optionSourceValue).then((res) => {
n.options = this.getTreeData(res);
});
// console.log('')
} else if (n.itemType == "radio" && n.options.length == 0) {
n.options = [
{
label: "是",
value: "1",
},
{
label: "否",
value: "0",
},
];
}
});
});
this.searchList = res.data;
console.log(this.searchList);
}
})
.catch(() => {
return this.$message.error("网络错误");
});
},
getTreeData (data) {
if (!Array.isArray(data)) return [];
let arr = data.map((item) => {

Loading…
Cancel
Save