Browse Source

bug#165小区详情中居民区类型不显示居民区类型,bug#148房屋信息下载房屋模板文件名称修改,居民信息年龄搜索不能小于起始年龄

feature
mk 2 years ago
parent
commit
6188520aa3
  1. 4
      src/views/components/resiInfo.vue
  2. 59
      src/views/components/resiSearch.vue
  3. 9
      src/views/modules/base/community/communityDetail.vue
  4. 393
      src/views/modules/base/community/communityTable.vue

4
src/views/components/resiInfo.vue

@ -946,7 +946,7 @@
</div> </div>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<div class="f-flex f-bto16 f-top24"> <!-- <div class="f-flex f-bto16 f-top24">
<div class="f-labels">是否请长假 :</div> <div class="f-labels">是否请长假 :</div>
<span class="f-left8 f-font-color">{{ <span class="f-left8 f-font-color">{{
residentPartyMemberInfoObj.longHolidayFlag == 1 residentPartyMemberInfoObj.longHolidayFlag == 1
@ -955,7 +955,7 @@
? "否" ? "否"
: "--" : "--"
}}</span> }}</span>
</div> </div> -->
</el-col> </el-col>
</el-row> </el-row>
</el-tab-pane> </el-tab-pane>

59
src/views/components/resiSearch.vue

@ -46,7 +46,7 @@
<el-input v-model="form.ageStart" class="u-item-width-daterange" placeholder="请输入" clearable size="small"> <el-input v-model="form.ageStart" class="u-item-width-daterange" placeholder="请输入" clearable size="small">
</el-input> </el-input>
<span class="u-data-tag"></span> <span class="u-data-tag"></span>
<el-input v-model="form.ageEnd" class="u-item-width-daterange u-data-tag" placeholder="请输入" clearable size="small"> <el-input v-model="form.ageEnd" @change="handleAgeChange" class="u-item-width-daterange u-data-tag" placeholder="请输入" clearable size="small">
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="文化程度" > <el-form-item label="文化程度" >
@ -399,16 +399,16 @@ export default {
} }
}, },
pickerOptionsEnd: { pickerOptionsEnd: {
disabledDate: time => { disabledDate:time=>{
let dateVal = this.form.birthdayStart let nowData = Date.now();
if (dateVal) { if (this.form.birthdayStart) {
if(time.getTime() < new Date(dateVal).getTime()){ let birthdayStartTime = new Date(this.form.birthdayStart);
return time.getTime(); return (
}else { time.getTime() <birthdayStartTime- 24 * 60 * 60 * 1000 ||
return time.getTime() > Date.now() - 8.64e6; time.getTime()> nowData
} );
}else { } else {
return time.getTime() > Date.now() - 8.64e6; return (time.getTime() > nowData || time.getTime() === nowData) ;
} }
} }
}, },
@ -586,39 +586,16 @@ export default {
// } // }
// }, // },
handleOpenSearch() { handleAgeChange() {
this.openSearch = !this.openSearch console.log(11>5);
}, console.log(11>10);
handleAgeChange(val) { if(this.form.ageStart){
console.log('val----age---', val) if(this.form.ageStart>this.form.ageEnd){
// console.log(v); this.$message.warning('结束年龄不能小于开始年龄')
if(val.start){ }
const s = this.computedBirth1(val.start)
const e = this.computedBirth(val.start)
this.form.BIRTHDAY = [s, e]
}else {
this.form.BIRTHDAY = []
return
} }
}, },
handleChangeAgency(val) { handleChangeAgency(val) {
// let obj = this.$refs["myCascader"].getCheckedNodes()[0].data
// if (obj) {
// this.form.agencyId = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : '';
// this.GRID_ID = ''
// } else {
// this.form.agencyId = ''
// this.GRID_ID = ''
// }
// this.form.villageId = ''
// this.form.buildId = ''
// this.form.unitId = ''
// this.form.homeId = ''
this.sarr = [] this.sarr = []
const map = new Map(); const map = new Map();
this.getLastItem( this.getLastItem(

9
src/views/modules/base/community/communityDetail.vue

@ -29,8 +29,8 @@
<span>{{dataForm.realBuilding?dataForm.realBuilding:0 }}</span> <span>{{dataForm.realBuilding?dataForm.realBuilding:0 }}</span>
</div> </div>
<div class="m-info-prop"> <div class="m-info-prop">
<span class="u-info-title u-info-title-100">备注</span> <span class="u-info-title u-info-title-100">居民区类型</span>
<span>{{ dataForm.remark||'--' }}</span> <span>{{ dataForm.quartersType?dataForm.quartersType=='1'?'片区':dataForm.quartersType=='0'?'小区':'--':'--' }}</span>
</div> </div>
<div class="m-info-prop"> <div class="m-info-prop">
<span class="u-info-title u-info-title-100">详细地址</span> <span class="u-info-title u-info-title-100">详细地址</span>
@ -45,7 +45,10 @@
</div> </div>
</div> </div>
<div class="m-info-prop">
<span class="u-info-title u-info-title-100">备注</span>
<span>{{ dataForm.remark||'--' }}</span>
</div>
</div> </div>
<div class="m-info-2row"> <div class="m-info-2row">
<div class="m-info-prop"> <div class="m-info-prop">

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

@ -2,105 +2,56 @@
<div class="m-table"> <div class="m-table">
<div class="u-table-btn2"> <div class="u-table-btn2">
<div class="u-table-btn2-left"> <div class="u-table-btn2-left">
<el-button style="" <el-button style="" size="small" type="primary " icon="el-icon-plus" @click="handleAdd">新增小区</el-button>
size="small"
type="primary " <div v-if="showImportBtn" class="u-btn-upload">
icon="el-icon-plus" <el-popover v-if="showImportBtn" popper-class="btn-popper" placement="bottom" width="20" trigger="click">
@click="handleAdd">新增小区</el-button>
<div v-if="showImportBtn"
class="u-btn-upload">
<el-popover v-if="showImportBtn"
popper-class="btn-popper"
placement="bottom"
width="20"
trigger="click">
<div class="table-more-btn"> <div class="table-more-btn">
<el-upload :headers="$getElUploadHeaders()" <el-upload :headers="$getElUploadHeaders()" ref="upload_community" style="text-align: center"
ref="upload_community" :multiple="false" :show-file-list="false" :before-upload="(file) => {
style="text-align: center" beforeUpload(file, 'community');
:multiple="false" }
:show-file-list="false" " action="" accept=".xls,.xlsx" :http-request="() => {
:before-upload=" uploadFile('community');
(file) => { }
beforeUpload(file, 'community'); ">
} <el-button size="small" type="text" class="diy-button--other">导入小区数据</el-button>
"
action=""
accept=".xls,.xlsx"
:http-request="
() => {
uploadFile('community');
}
">
<el-button size="small"
type="text"
class="diy-button--other">导入小区数据</el-button>
</el-upload> </el-upload>
</div> </div>
<div class="table-more-btn"> <div class="table-more-btn">
<el-upload :headers="$getElUploadHeaders()" <el-upload :headers="$getElUploadHeaders()" style="text-align: center" ref="upload_building"
style="text-align: center" :multiple="false" :show-file-list="false" :before-upload="(file) => {
ref="upload_building" beforeUpload(file, 'building');
:multiple="false" }
:show-file-list="false" " action="" accept=".xls,.xlsx" :http-request="() => {
:before-upload=" uploadFile('building');
(file) => { }
beforeUpload(file, 'building'); ">
} <el-button size="small" type="text" class="diy-button--other">导入楼栋数据</el-button>
"
action=""
accept=".xls,.xlsx"
:http-request="
() => {
uploadFile('building');
}
">
<el-button size="small"
type="text"
class="diy-button--other">导入楼栋数据</el-button>
</el-upload> </el-upload>
</div> </div>
<div class="table-more-btn"> <div class="table-more-btn">
<el-upload :headers="$getElUploadHeaders()" <el-upload :headers="$getElUploadHeaders()" style="text-align: center" ref="upload_room" :multiple="false"
style="text-align: center" :show-file-list="false" :before-upload="(file) => {
ref="upload_room" beforeUpload(file, 'room');
:multiple="false" }
:show-file-list="false" " action="" accept=".xls,.xlsx" :http-request="() => {
:before-upload=" uploadFile('room');
(file) => { }
beforeUpload(file, 'room'); ">
} <el-button size="small" type="text" class="diy-button--other">导入房屋数据</el-button>
"
action=""
accept=".xls,.xlsx"
:http-request="
() => {
uploadFile('room');
}
">
<el-button size="small"
type="text"
class="diy-button--other">导入房屋数据</el-button>
</el-upload> </el-upload>
</div> </div>
<el-button size="small" <el-button size="small" style="float: right" class="diy-button--white" slot="reference">导入<i
style="float: right" class="el-icon-arrow-down el-icon--right"></i></el-button>
class="diy-button--white"
slot="reference">导入<i class="el-icon-arrow-down el-icon--right"></i></el-button>
</el-popover> </el-popover>
</div> </div>
<el-button style="margin-left: 10px" <el-button style="margin-left: 10px" class="diy-button--white" size="small"
class="diy-button--white" @click="handleExportOpen">导出</el-button>
size="small"
@click="handleExportOpen">导出</el-button>
<el-button style="margin-left: 10px" <el-button style="margin-left: 10px" class="diy-button--white" size="small" @click="deleteBatch">批量删除</el-button>
class="diy-button--white"
size="small"
@click="deleteBatch">批量删除</el-button>
<!-- <el-button style=";margin-left:10px" <!-- <el-button style=";margin-left:10px"
class="diy-button--export" class="diy-button--export"
@ -109,34 +60,19 @@
@click="handleExportYihuyidang()">导出一户一档</el-button> --> @click="handleExportYihuyidang()">导出一户一档</el-button> -->
</div> </div>
<div> <div>
<el-popover popper-class="btn-popper" <el-popover popper-class="btn-popper" placement="bottom" style="margin-left: 10px" width="20" trigger="click">
placement="bottom" <div v-if="showImportBtn" class="table-more-btn">
style="margin-left: 10px" <el-button class="diy-button--other" size="small" type="text"
width="20" @click="handleExportModule('community')">下载小区模板</el-button>
trigger="click">
<div v-if="showImportBtn"
class="table-more-btn">
<el-button class="diy-button--other"
size="small"
type="text"
@click="handleExportModule('community')">下载小区模板</el-button>
</div> </div>
<div v-if="showImportBtn" <div v-if="showImportBtn" class="table-more-btn">
class="table-more-btn"> <el-button :headers="$getElUploadHeaders()" class="diy-button--other" size="small" type="text"
<el-button :headers="$getElUploadHeaders()" @click="handleExportModule('building')">下载楼栋模板</el-button>
class="diy-button--other"
size="small"
type="text"
@click="handleExportModule('building')">下载楼栋模板</el-button>
</div> </div>
<div v-if="showImportBtn" <div v-if="showImportBtn" class="table-more-btn">
class="table-more-btn"> <el-button :headers="$getElUploadHeaders()" class="diy-button--other" size="small" type="text"
<el-button :headers="$getElUploadHeaders()" @click="handleExportModule('room')">下载房屋模板</el-button>
class="diy-button--other"
size="small"
type="text"
@click="handleExportModule('room')">下载房屋模板</el-button>
</div> </div>
<!-- <div <!-- <div
v-if=" v-if="
@ -169,12 +105,8 @@
>补全小程序小区码</el-button >补全小程序小区码</el-button
> >
</div> --> </div> -->
<div v-if="displayedBaobiaoBtn" <div v-if="displayedBaobiaoBtn" class="table-more-btn">
class="table-more-btn"> <el-button size="small" type="text" class="diy-button--other" @click="reportForm">智能填报</el-button>
<el-button size="small"
type="text"
class="diy-button--other"
@click="reportForm">智能填报</el-button>
</div> </div>
<!-- <div <!-- <div
v-if="agencyObj.level == 'community'" v-if="agencyObj.level == 'community'"
@ -188,51 +120,27 @@
>社区二维码</el-button >社区二维码</el-button
> >
</div> --> </div> -->
<el-button size="small" <el-button size="small" style="float: right" class="diy-button--white" slot="reference">更多<i
style="float: right" class="el-icon-arrow-down el-icon--right"></i></el-button>
class="diy-button--white"
slot="reference">更多<i class="el-icon-arrow-down el-icon--right"></i></el-button>
</el-popover> </el-popover>
</div> </div>
</div> </div>
<div class="m-table-item"> <div class="m-table-item">
<el-table ref="ref_table" <el-table ref="ref_table" :data="tableData" border :height="tableHeight" v-loading="tableLoading"
:data="tableData" style="width: 100%" :show-overflow-tooltip="true" @select-all="selectAll" @selection-change="selectionChange">
border <el-table-column type="selection" :selectable="checkSelect" width="55">
:height="tableHeight"
v-loading="tableLoading"
style="width: 100%"
:show-overflow-tooltip="true"
@select-all="selectAll"
@selection-change="selectionChange">
<el-table-column type="selection"
:selectable="checkSelect"
width="55">
</el-table-column> </el-table-column>
<el-table-column prop="neighborHoodName" <el-table-column prop="neighborHoodName" label="小区名称" header-align="left" align="left" min-width="100">
label="小区名称"
header-align="left"
align="left"
min-width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<a class="name-a" <a class="name-a" @click="handleToNextLevel(scope.row)">
@click="handleToNextLevel(scope.row)">
{{ scope.row.neighborHoodName }} {{ scope.row.neighborHoodName }}
</a> </a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="agencyName" <el-table-column prop="agencyName" label="所属组织" header-align="left" align="left" min-width="100">
label="所属组织"
header-align="left"
align="left"
min-width="100">
</el-table-column> </el-table-column>
<el-table-column prop="gridName" <el-table-column prop="gridName" label="所属网格" header-align="left" align="left" min-width="120">
label="所属网格"
header-align="left"
align="left"
min-width="120">
</el-table-column> </el-table-column>
<!-- <el-table-column prop="总单元数" <!-- <el-table-column prop="总单元数"
label="所属网格" label="所属网格"
@ -242,75 +150,37 @@
label="所属网格" label="所属网格"
min-width="80"> min-width="80">
</el-table-column> --> </el-table-column> -->
<el-table-column prop="address" <el-table-column prop="address" label="详细地址" header-align="left" align="left" min-width="180">
label="详细地址"
header-align="left"
align="left"
min-width="180">
</el-table-column> </el-table-column>
<el-table-column label="操作" <el-table-column label="操作" fixed="right" width="220" header-align="center" align="center" class="operate">
fixed="right"
width="220"
header-align="center"
align="center"
class="operate">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" <el-button type="text" class="div-table-button--blue" size="small"
class="div-table-button--blue" @click="handleDetail(scope.row)">查看</el-button>
size="small" <el-button v-if="scope.row.showBtn" type="text" class="div-table-button--blue" size="small"
@click="handleDetail(scope.row)">查看</el-button> @click="handleEdit(scope.row)">编辑</el-button>
<el-button v-if="scope.row.showBtn"
type="text" <el-button v-if="scope.row.showBtn" type="text" class="div-table-button--blue" size="small"
class="div-table-button--blue" @click="handleDelete(scope.row)">删除</el-button>
size="small"
@click="handleEdit(scope.row)">编辑</el-button>
<el-button v-if="scope.row.showBtn"
type="text"
class="div-table-button--blue"
size="small"
@click="handleDelete(scope.row)">删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div> <div>
<el-pagination @size-change="handleSizeChange" <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page.sync="pageNo"
@current-change="handleCurrentChange" :page-sizes="[20, 50, 100, 200]" :page-size="pageSize" layout="sizes, prev, pager, next, total" :total="total">
:current-page.sync="pageNo"
:page-sizes="[20, 50, 100, 200]"
:page-size="pageSize"
layout="sizes, prev, pager, next, total"
:total="total">
</el-pagination> </el-pagination>
</div> </div>
</div> </div>
<!-- 详情弹出框 --> <!-- 详情弹出框 -->
<el-dialog :visible.sync="detailShow" <el-dialog :visible.sync="detailShow" :close-on-click-modal="false" :close-on-press-escape="false" :title="'小区详情'"
:close-on-click-modal="false" width="920px" top="5vh" class="dialog-h" @closed="detailFormCancle">
:close-on-press-escape="false" <community-detail ref="ref_form_detail" @diaDetailClose="detailFormCancle"></community-detail>
:title="'小区详情'"
width="920px"
top="5vh"
class="dialog-h"
@closed="detailFormCancle">
<community-detail ref="ref_form_detail"
@diaDetailClose="detailFormCancle"></community-detail>
</el-dialog> </el-dialog>
<!-- 修改弹出框 --> <!-- 修改弹出框 -->
<el-dialog :visible.sync="formShow" <el-dialog :visible.sync="formShow" v-if="formShow" :close-on-click-modal="false" :close-on-press-escape="false"
v-if="formShow" :title="formTitle" width="670px" top="5vh" class="dialog-h" @closed="diaClose">
:close-on-click-modal="false" <community-form ref="ref_form" @dialogCancle="addFormCancle" @dialogOk="addFormOk"></community-form>
:close-on-press-escape="false"
:title="formTitle"
width="670px"
top="5vh"
class="dialog-h"
@closed="diaClose">
<community-form ref="ref_form"
@dialogCancle="addFormCancle"
@dialogOk="addFormOk"></community-form>
</el-dialog> </el-dialog>
<!-- <el-dialog title="导出" <!-- <el-dialog title="导出"
@ -334,23 +204,14 @@
</el-dialog> --> </el-dialog> -->
<el-dialog :visible.sync="diyDialog" <el-dialog :visible.sync="diyDialog" :close-on-click-modal="false" :close-on-press-escape="false" width="1150px"
:close-on-click-modal="false" title="导出模板" top="5vh" class="dialog-h">
:close-on-press-escape="false" <community-export-info v-if="diyDialog" ref="ref_diy" :list="exportList" :search="{
width="1150px" formCode: 'community_info',
title="导出模板" pageNo: pageNo,
top="5vh" pageSize: pageSize,
class="dialog-h">
<community-export-info v-if="diyDialog" }" @close="handleDiyClose"></community-export-info>
ref="ref_diy"
:list="exportList"
:search="{
formCode: 'community_info',
pageNo: pageNo,
pageSize: pageSize,
}"
@close="handleDiyClose"></community-export-info>
</el-dialog> </el-dialog>
<baobiao ref="baobiao" /> <baobiao ref="baobiao" />
@ -407,7 +268,7 @@ export default {
}, },
}, },
data () { data() {
return { return {
searchHeight: 190, // searchHeight: 190, //
// tableHeight: 0, // tableHeight: 0,
@ -459,7 +320,7 @@ export default {
}, },
computed: { computed: {
tableHeight () { tableHeight() {
console.log(this.searchHeight); console.log(this.searchHeight);
let height = this.searchHeight + 270; let height = this.searchHeight + 270;
return this.$store.state.inIframe return this.$store.state.inIframe
@ -470,7 +331,7 @@ export default {
...mapGetters(["clientHeight", "iframeHeight"]), ...mapGetters(["clientHeight", "iframeHeight"]),
}, },
watch: { watch: {
selection (val) { selection(val) {
if (val.length > 0) { if (val.length > 0) {
this.showDeletBtn = true; this.showDeletBtn = true;
} else { } else {
@ -478,7 +339,7 @@ export default {
} }
}, },
"$store.state.sidebarFold": { "$store.state.sidebarFold": {
handler (newVal, oldVal) { handler(newVal, oldVal) {
if (newVal) { if (newVal) {
// //
this.searchHeight = 155; this.searchHeight = 155;
@ -497,9 +358,9 @@ export default {
communityExportInfo, communityExportInfo,
}, },
activated () { }, activated() { },
async mounted () { async mounted() {
this.customerId = localStorage.getItem("customerId"); this.customerId = localStorage.getItem("customerId");
// this.displayedBaobiaoBtn = await this.$refs.baobiao.existsTemplate({ // this.displayedBaobiaoBtn = await this.$refs.baobiao.existsTemplate({
// elseParams: { // elseParams: {
@ -534,7 +395,7 @@ export default {
// } // }
// }, // },
reportForm () { reportForm() {
let paramMap = { let paramMap = {
pageSize: this.pageSize, pageSize: this.pageSize,
pageNo: this.pageNo, pageNo: this.pageNo,
@ -557,7 +418,7 @@ export default {
}, },
}); });
}, },
async loadTable (fromTree, treeObj) { async loadTable(fromTree, treeObj) {
this.treeObj = { ...treeObj } this.treeObj = { ...treeObj }
@ -627,7 +488,7 @@ export default {
this.tableLoading = false; this.tableLoading = false;
}, },
checkSelect (row, index) { checkSelect(row, index) {
let isChecked = false; let isChecked = false;
if (row.showBtn) { if (row.showBtn) {
// //
@ -638,12 +499,12 @@ export default {
return isChecked; return isChecked;
}, },
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 _data = await this.detail(row) // const _data = await this.detail(row)
@ -659,14 +520,14 @@ export default {
}); });
}, },
handleAdd () { handleAdd() {
this.formTitle = "新增小区"; this.formTitle = "新增小区";
this.formShow = true; this.formShow = true;
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.ref_form.initForm("add", null, this.agencyObj); this.$refs.ref_form.initForm("add", null, this.agencyObj);
}); });
}, },
async detail (row) { async detail(row) {
const url = const url =
"/actual/base/communityQuarters/getQuartersDetail/" + "/actual/base/communityQuarters/getQuartersDetail/" +
row.neighborHoodId; row.neighborHoodId;
@ -680,7 +541,7 @@ export default {
} }
}, },
// //
async handleYhymInfo () { async handleYhymInfo() {
this.yhymLoading = true; this.yhymLoading = true;
const url = "/gov/org/house/createBatchHouseCodeAndUrl"; const url = "/gov/org/house/createBatchHouseCodeAndUrl";
@ -707,7 +568,7 @@ export default {
} }
}, },
// //
async createBatchNeiQrUrl () { async createBatchNeiQrUrl() {
this.xcxmLoading = true; this.xcxmLoading = true;
const url = "/gov/org/neighborhood/createBatchNeiQrUrl"; const url = "/gov/org/neighborhood/createBatchNeiQrUrl";
@ -733,7 +594,7 @@ export default {
this.$message.error(msg); this.$message.error(msg);
} }
}, },
async handleEdit (row) { async handleEdit(row) {
this.formTitle = "修改小区"; this.formTitle = "修改小区";
this.formShow = true; this.formShow = true;
const _data = await this.detail(row); const _data = await this.detail(row);
@ -742,24 +603,24 @@ export default {
}); });
}, },
handleToNextLevel (row) { handleToNextLevel(row) {
this.$emit("toNextLevel", row, "community"); this.$emit("toNextLevel", row, "community");
}, },
addFormCancle () { addFormCancle() {
this.formShow = false; this.formShow = false;
}, },
detailFormCancle () { detailFormCancle() {
this.$refs.ref_form_detail.diaDestroy(); this.$refs.ref_form_detail.diaDestroy();
this.detailShow = false; this.detailShow = false;
}, },
addFormOk () { addFormOk() {
this.formShow = false; this.formShow = false;
this.loadTable(); this.loadTable();
this.$emit("refreshTree"); this.$emit("refreshTree");
}, },
deleteBatch () { deleteBatch() {
if (this.selection.length > 0) { if (this.selection.length > 0) {
this.$confirm("确认删除选择的小区?", "提示", { this.$confirm("确认删除选择的小区?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
@ -781,14 +642,14 @@ export default {
this.$message.warning("请先选择要删除的小区"); this.$message.warning("请先选择要删除的小区");
} }
}, },
selectAll (selection) { selectAll(selection) {
this.selection = selection; this.selection = selection;
}, },
selectionChange (selection) { selectionChange(selection) {
this.selection = selection; this.selection = selection;
}, },
async handleDelete (row) { async handleDelete(row) {
this.$confirm("确认删除?", "提示", { this.$confirm("确认删除?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
@ -807,7 +668,7 @@ export default {
}); });
}, },
async deleteCommunityBatch () { async deleteCommunityBatch() {
let ids = []; let ids = [];
console.log(this.selection); console.log(this.selection);
this.selection.forEach((element) => { this.selection.forEach((element) => {
@ -842,7 +703,7 @@ export default {
this.$message.error(msg); this.$message.error(msg);
} }
}, },
async deleteCommunity (row) { async deleteCommunity(row) {
const url = "/actual/base/communityQuarters/deleteQuarters"; const url = "/actual/base/communityQuarters/deleteQuarters";
let params = { let params = {
@ -862,7 +723,7 @@ export default {
// this.$message.error(msg); // this.$message.error(msg);
} }
}, },
async handleDownQr (row, type) { async handleDownQr(row, type) {
let title = row.label + "二维码.png"; let title = row.label + "二维码.png";
// const url = window.SITE_CONFIG['apiURL'] + `/gov/org/icneighborhood/createQrCode/${row.neighborHoodId}` // const url = window.SITE_CONFIG['apiURL'] + `/gov/org/icneighborhood/createQrCode/${row.neighborHoodId}`
const url = "/gov/org/agency/create-qrcode"; const url = "/gov/org/agency/create-qrcode";
@ -887,10 +748,10 @@ export default {
}); });
}, },
// //
async handleExportOpen () { async handleExportOpen() {
await this.getExportList(); await this.getExportList();
}, },
async getExportList (type) { async getExportList(type) {
const url = "/oper/customize/icformitemgroup/list"; const url = "/oper/customize/icformitemgroup/list";
let params = { let params = {
formCode: "community_info", formCode: "community_info",
@ -976,7 +837,7 @@ export default {
// } // }
}, },
// //
async handleExport () { async handleExport() {
let title = this.agencyObj.label; let title = this.agencyObj.label;
title = title + "—小区列表"; title = title + "—小区列表";
@ -997,15 +858,15 @@ export default {
} }
); );
}, },
handleDiyClose () { handleDiyClose() {
this.diyDialog = false; this.diyDialog = false;
}, },
handleClose (done) { handleClose(done) {
this.diyDialog = false; this.diyDialog = false;
}, },
// //
download (data, downFileName) { download(data, downFileName) {
if (!data) { if (!data) {
return; return;
} }
@ -1029,7 +890,7 @@ export default {
} }
}, },
handleExportModule (type) { handleExportModule(type) {
let title = ""; let title = "";
let url = ""; let url = "";
if (type === "community") { if (type === "community") {
@ -1039,7 +900,7 @@ export default {
title = "楼栋导入模板"; title = "楼栋导入模板";
url = "/gov/org/building/exporttemplate"; url = "/gov/org/building/exporttemplate";
} else if (type === "room") { } else if (type === "room") {
title = "房导入模板"; title = "房导入模板";
url = "/gov/org/house/exporttemplate"; url = "/gov/org/house/exporttemplate";
} }
@ -1058,7 +919,7 @@ export default {
}, },
// //
handleExportYihuyidang () { handleExportYihuyidang() {
this.yihuyidangDisabled = true; this.yihuyidangDisabled = true;
let title = this.agencyObj.label; let title = this.agencyObj.label;
title = title + "-一户一档"; title = title + "-一户一档";
@ -1100,7 +961,7 @@ export default {
// //
handleExportYihuyima () { handleExportYihuyima() {
this.exportBtn = true; this.exportBtn = true;
this.yihuyimaDisabled = true; this.yihuyimaDisabled = true;
let title = this.agencyObj.label; let title = this.agencyObj.label;
@ -1129,7 +990,7 @@ export default {
}, },
// //
beforeUpload (file, type) { beforeUpload(file, type) {
this.files = file; this.files = file;
const isText = file.type === "application/vnd.ms-excel"; const isText = file.type === "application/vnd.ms-excel";
@ -1148,11 +1009,11 @@ export default {
} }
}, },
// //
handleExceed (files, fileList) { handleExceed(files, fileList) {
this.$message.warning(`当前限制选择 1 个文件,请删除后继续上传`); this.$message.warning(`当前限制选择 1 个文件,请删除后继续上传`);
}, },
async uploadFile (type) { async uploadFile(type) {
if (this.fileName == "") { if (this.fileName == "") {
this.$message.warning("请选择要上传的文件!"); this.$message.warning("请选择要上传的文件!");
return false; return false;
@ -1233,7 +1094,7 @@ export default {
); );
}, },
showMessage (msg) { showMessage(msg) {
this.$alert(msg, "操作结果", { this.$alert(msg, "操作结果", {
confirmButtonText: "关闭", confirmButtonText: "关闭",
callback: (action) => { callback: (action) => {
@ -1242,18 +1103,18 @@ export default {
}, },
}); });
}, },
handleSizeChange (val) { handleSizeChange(val) {
this.pageSize = val; this.pageSize = val;
this.pageNo = 1; this.pageNo = 1;
this.loadTable(this.treeObj); this.loadTable(this.treeObj);
}, },
handleCurrentChange (val) { handleCurrentChange(val) {
this.pageNo = val; this.pageNo = val;
this.loadTable(this.treeObj); this.loadTable(this.treeObj);
}, },
// //
startLoading () { startLoading() {
loading = Loading.service({ loading = Loading.service({
lock: true, // lock: true, //
text: "正在加载……", // text: "正在加载……", //
@ -1261,7 +1122,7 @@ export default {
}); });
}, },
// //
endLoading () { endLoading() {
// clearTimeout(timer); // clearTimeout(timer);
if (loading) { if (loading) {
loading.close(); loading.close();

Loading…
Cancel
Save