Browse Source

重新找回居民的智能导出

dlt_export_0617
duanliangtao 1 year ago
parent
commit
dd8d16c2cf
  1. 48
      src/views/modules/base/resi.vue

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

@ -75,7 +75,7 @@
style="margin-left: 10px" style="margin-left: 10px"
size="small" size="small"
class="diy-button--white" class="diy-button--white"
@click="handleExport" @click="diyExport"
:loading="exportLoading" :loading="exportLoading"
plain plain
>{{exportBtnTitle}}</el-button >{{exportBtnTitle}}</el-button
@ -254,6 +254,13 @@
<el-button type="primary" @click="handelClickCheckPassword"> </el-button> <el-button type="primary" @click="handelClickCheckPassword"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog :visible.sync="diyDialog" :close-on-click-modal="false" :close-on-press-escape="false" width="1150px"
top="5vh" class="dialog-h">
<diy-info v-if="diyDialog" ref="ref_diy" :list="exportList" :search="searchForm"
@close="handleDiyClose"></diy-info>
</el-dialog>
</div> </div>
</template> </template>
@ -273,6 +280,7 @@ import { Loading } from "element-ui"; // 引入Loading服务
import resiChangeTransfer from "../../components/resiChangeTransfer.vue"; import resiChangeTransfer from "../../components/resiChangeTransfer.vue";
import resideathAdd from "../plugins/change/resideathAdd.vue"; import resideathAdd from "../plugins/change/resideathAdd.vue";
import diyInfo from "./diyInfo.vue";
let loading; let loading;
export default { export default {
components: { components: {
@ -284,6 +292,7 @@ export default {
resiChangeRecord, resiChangeRecord,
resiChangeTransfer, resiChangeTransfer,
resideathAdd, resideathAdd,
diyInfo,
}, },
data() { data() {
return { return {
@ -330,6 +339,9 @@ export default {
tableDataTow: [], tableDataTow: [],
valueb: '', valueb: '',
searchList: [], searchList: [],
exportList: [],
diyDialog: false,
treeData: [], treeData: [],
autoOpenArr: [], autoOpenArr: [],
@ -654,6 +666,40 @@ export default {
this.$refs.ref_changerecord.initForm(row); this.$refs.ref_changerecord.initForm(row);
}, },
async diyExport() {
await this.getExportList();
console.log(this.$refs['']);
},
handleDiyClose() {
this.diyDialog = false;
},
async getExportList(type) {
const url = "/oper/customize/icformitemgroup/list";
let params = {
formCode: "resident_base_info",
};
const { data, code, msg } = await requestPost(url, params);
if (code === 0) {
data.forEach((item) => {
(async (id) => {
// item.queryItemList = await this.getExportChildList(id)
item.queryItemList = [];
})(item.id);
});
this.exportList = [...data];
this.$nextTick(() => {
this.diyDialog = true;
});
console.log("获取详情成功getExportList----", this.exportList);
} else {
this.$message.error(msg);
}
},
diaClose() { diaClose() {
this.tranferShow = false; this.tranferShow = false;
this.deathShow = false; this.deathShow = false;

Loading…
Cancel
Save