Browse Source

人房总览bug

feature
dai 3 years ago
parent
commit
e19c91bb42
  1. 12
      src/views/dataBoard/cpts/map/popup.vue
  2. 6
      src/views/dataBoard/renfang/cpts/fwgl.vue
  3. 2
      src/views/dataBoard/renfang/cpts/rkfx.vue
  4. 1
      src/views/dataBoard/renfang/cpts/rkyj.vue
  5. 15
      src/views/dataBoard/renfang/index.vue
  6. 4
      src/views/dataBoard/renfang/resi/analyze.vue
  7. 16
      src/views/dataBoard/renfang/resi/class.vue
  8. 4
      src/views/dataBoard/renfang/resi/list.vue
  9. 4
      src/views/dataBoard/renfang/warn/resi.vue
  10. 48
      src/views/modules/base/smartImport.vue

12
src/views/dataBoard/cpts/map/popup.vue

@ -54,7 +54,7 @@
<span>{{ info.classtype || "--" }}</span> <span>{{ info.classtype || "--" }}</span>
</div> </div>
<div class="operate"> <div class="operate" v-if="false">
<div <div
@click="handleClickBtn('create-demand')" @click="handleClickBtn('create-demand')"
v-if="info.agencyId == $store.state.user.agencyId" v-if="info.agencyId == $store.state.user.agencyId"
@ -154,6 +154,10 @@
<span class="field">楼长电话</span> <span class="field">楼长电话</span>
<span>{{ info.hm_phone || "--" }}</span> <span>{{ info.hm_phone || "--" }}</span>
</div> </div>
<div class="item">
<span class="field">详细地址</span>
<span>{{ info.location || "--" }}</span>
</div>
</div> </div>
<div v-if="type === '4'"> <div v-if="type === '4'">
@ -195,9 +199,13 @@
<span>{{ info.holder_phone || "--" }}</span> <span>{{ info.holder_phone || "--" }}</span>
</div> </div>
<div class="item"> <div class="item">
<span class="field">房主身份</span> <span class="field">房主证件号</span>
<span>{{ info.holder_idcard || "--" }}</span> <span>{{ info.holder_idcard || "--" }}</span>
</div> </div>
<div class="item">
<span class="field">备注</span>
<span>{{ info.remark || "--" }}</span>
</div>
</div> </div>
</div> </div>
</div> </div>

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

@ -42,7 +42,7 @@
<div <div
class="row-item marginleft10" class="row-item marginleft10"
@click="toListPage('self_dwelling', '自住房屋')" @click="toListPage('self_dwelling', '自住')"
> >
<div class="item-one"> <div class="item-one">
<img <img
@ -62,7 +62,7 @@
</div> </div>
<div <div
class="right-row margintop18" class="right-row margintop18"
@click="toListPage('lease', '出租房屋')" @click="toListPage('lease', '出租')"
> >
<div class="row-item"> <div class="row-item">
<div class="item-one"> <div class="item-one">
@ -81,7 +81,7 @@
<div <div
class="row-item marginleft10" class="row-item marginleft10"
@click="toListPage('unused', '闲置房屋')" @click="toListPage('unused', '闲置')"
> >
<div class="item-one"> <div class="item-one">
<img <img

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

@ -126,7 +126,7 @@ export default {
handleClickItem(item) { handleClickItem(item) {
const { type, name } = item; const { type, name } = item;
this.$router.push({ this.$router.push({
path: "/dataBoard/renfang/resi-list", path: "/dataBoard/renfang/resi-analyze",
query: { query: {
org_id: this.orgId, org_id: this.orgId,
type, type,

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

@ -245,6 +245,7 @@ export default {
.item-num { .item-num {
width: 33%; width: 33%;
text-align: center; text-align: center;
cursor: pointer;
.img { .img {
display: inline-block; display: inline-block;
width: 32px; width: 32px;

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

@ -151,7 +151,7 @@
<input <input
type="text" type="text"
placeholder="输入关键词搜索" placeholder="搜索本组织及下级的居民、小区、楼栋、房屋"
@keyup.enter="handleSearch" @keyup.enter="handleSearch"
v-model="searchModule.keyword" v-model="searchModule.keyword"
/> />
@ -265,9 +265,15 @@
src="~@/assets/images/shuju/renfang/index/znyc.png" src="~@/assets/images/shuju/renfang/index/znyc.png"
/> />
<span>智能预测</span> <span>智能预测</span>
<img
src="~@/assets/images/shuju/renfang/index/i-hint.png" <el-tooltip placement="top">
/> <div slot="content">
根据智能分类设置规则预测来年育龄妇女老年人空巢老人独居老人分别有多少人
</div>
<img
src="~@/assets/images/shuju/renfang/index/i-hint.png"
/>
</el-tooltip>
</div> </div>
<div <div
@ -326,6 +332,7 @@
v-if="resiCategoryForecastData.length > 0" v-if="resiCategoryForecastData.length > 0"
> >
<div <div
@click="toResiClassPage(item.code, item.name)"
class="item" class="item"
:key="item.code + index" :key="item.code + index"
v-for="( v-for="(

4
src/views/dataBoard/renfang/resi/analyze.vue

@ -128,8 +128,8 @@ export default {
"姓名", "姓名",
"所属网格", "所属网格",
"所属房屋", "所属房屋",
"手机", "联系电话",
"身份证", "证件号",
"性别", "性别",
"出生日期", "出生日期",
"操作", "操作",

16
src/views/dataBoard/renfang/resi/class.vue

@ -16,7 +16,7 @@
<div class="tip_title">{{ tableTitle }}</div> <div class="tip_title">{{ tableTitle }}</div>
<div class="title_line"></div> <div class="title_line"></div>
<div class="second-select" v-if="type_id == '6'"> <div class="second-select" v-if="type_id == 'special_popu'">
<el-select <el-select
v-model="subclassId" v-model="subclassId"
:popper-append-to-body="false" :popper-append-to-body="false"
@ -146,8 +146,8 @@ export default {
"姓名", "姓名",
"所属网格", "所属网格",
"所属房屋", "所属房屋",
"手机", "联系电话",
"身份证", "证件号",
"性别", "性别",
"出生日期", "出生日期",
"操作", "操作",
@ -170,7 +170,7 @@ export default {
this.pageNo = 1; this.pageNo = 1;
this.getList(); this.getList();
this.getCount(); this.getCount();
if (this.type_id == "6") { if (this.type_id == "special_popu") {
this.getSubclass(); this.getSubclass();
} }
}, },
@ -213,7 +213,7 @@ export default {
const { org_id, type_id } = this; const { org_id, type_id } = this;
this.loading = true; this.loading = true;
const url = "resident_analyze_list"; const url = "special_type_list";
const { data, code, msg } = await requestPostBi( const { data, code, msg } = await requestPostBi(
url, url,
@ -253,8 +253,7 @@ export default {
{ {
queryParam: { queryParam: {
org_id, org_id,
type_id, type_id: subclassId || type_id,
subclassId,
pageNo, pageNo,
pageSize, pageSize,
}, },
@ -299,8 +298,7 @@ export default {
{ {
queryParam: { queryParam: {
org_id, org_id,
type_id, type_id: subclassId || type_id,
subclassId,
pageNo, pageNo,
pageSize, pageSize,
}, },

4
src/views/dataBoard/renfang/resi/list.vue

@ -128,8 +128,8 @@ export default {
"姓名", "姓名",
"所属网格", "所属网格",
"所属房屋", "所属房屋",
"手机", "联系电话",
"身份证", "证件号",
"性别", "性别",
"出生日期", "出生日期",
"操作", "操作",

4
src/views/dataBoard/renfang/warn/resi.vue

@ -116,8 +116,8 @@ export default {
"姓名", "姓名",
"所属网格", "所属网格",
"所属房屋", "所属房屋",
"手机", "联系电话",
"身份证", "证件号",
"性别", "性别",
"出生日期", "出生日期",
"操作", "操作",

48
src/views/modules/base/smartImport.vue

@ -161,6 +161,8 @@ export default {
importCode: "", importCode: "",
importOption: { exist: {}, notExist: {} }, importOption: { exist: {}, notExist: {} },
fileData: null,
}; };
}, },
@ -374,6 +376,7 @@ export default {
]; ];
this.importOption = data.option; this.importOption = data.option;
this.importCode = data.code; this.importCode = data.code;
this.fileData = file;
} else this.$message.error(res.data.msg); } else this.$message.error(res.data.msg);
}) })
.catch((err) => { .catch((err) => {
@ -389,11 +392,6 @@ export default {
async handleComfirm() { async handleComfirm() {
this.importLoading = true; this.importLoading = true;
this.importBtnTitle = "正在上传中..."; this.importBtnTitle = "正在上传中...";
this.$message({
showClose: true,
message: "导入中,请到系统管理-导入记录中查看进度",
duration: 0,
});
const { importOption, importCode, dataList } = this; const { importOption, importCode, dataList } = this;
dataList.forEach((item) => { dataList.forEach((item) => {
if (!item.exist) { if (!item.exist) {
@ -411,8 +409,30 @@ export default {
.then((res) => { .then((res) => {
console.log("res-up", res); console.log("res-up", res);
if (res.data.code == 0 && res.data.msg == "success") { if (res.data.code == 0 && res.data.msg == "success") {
// this.$message.success('') this.upload2(this.fileData, this.importCode);
this.dataList = []; } else this.$message.error(res.data.msg);
})
.catch((err) => {
console.log("失败", err);
file.onError(); //
// this.$message.error('')
});
this.importLoading = false;
this.importBtnTitle = "导入";
},
async upload2(file, code) {
this.importLoading = true;
this.importBtnTitle = "正在上次中...";
const formData = new FormData(); //FormDataappend('key', value)
formData.append("file", file.file); //
formData.append("code", code); //
await this.$http
.post("/actual/base/residentBaseInfo/importExcel", formData)
.then((res) => {
console.log("res-up", res);
if (res.data.code == 0 && res.data.msg == "success") {
this.afterSuccess();
} else this.$message.error(res.data.msg); } else this.$message.error(res.data.msg);
}) })
.catch((err) => { .catch((err) => {
@ -422,6 +442,20 @@ export default {
}); });
this.importLoading = false; this.importLoading = false;
this.importBtnTitle = "导入"; this.importBtnTitle = "导入";
this.$refs.upload.clearFiles();
},
afterSuccess() {
this.$message({
showClose: true,
message: "导入成功,请到系统管理-导入记录中查看进度",
duration: 0,
});
this.dataList = [];
this.importOption = {};
this.importCode = "";
this.fileData = null;
}, },
// //

Loading…
Cancel
Save