|
|
@ -75,7 +75,7 @@ |
|
|
|
style="margin-left: 10px" |
|
|
|
size="small" |
|
|
|
class="diy-button--white" |
|
|
|
@click="handleExport" |
|
|
|
@click="diyExport" |
|
|
|
:loading="exportLoading" |
|
|
|
plain |
|
|
|
>{{exportBtnTitle}}</el-button |
|
|
@ -254,6 +254,13 @@ |
|
|
|
<el-button type="primary" @click="handelClickCheckPassword">确 定</el-button> |
|
|
|
</div> |
|
|
|
</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> |
|
|
|
</template> |
|
|
|
|
|
|
@ -273,6 +280,7 @@ import { Loading } from "element-ui"; // 引入Loading服务 |
|
|
|
|
|
|
|
import resiChangeTransfer from "../../components/resiChangeTransfer.vue"; |
|
|
|
import resideathAdd from "../plugins/change/resideathAdd.vue"; |
|
|
|
import diyInfo from "./diyInfo.vue"; |
|
|
|
let loading; |
|
|
|
export default { |
|
|
|
components: { |
|
|
@ -284,6 +292,7 @@ export default { |
|
|
|
resiChangeRecord, |
|
|
|
resiChangeTransfer, |
|
|
|
resideathAdd, |
|
|
|
diyInfo, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
@ -330,6 +339,9 @@ export default { |
|
|
|
tableDataTow: [], |
|
|
|
valueb: '', |
|
|
|
searchList: [], |
|
|
|
exportList: [], |
|
|
|
diyDialog: false, |
|
|
|
|
|
|
|
|
|
|
|
treeData: [], |
|
|
|
autoOpenArr: [], |
|
|
@ -654,6 +666,40 @@ export default { |
|
|
|
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,community_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() { |
|
|
|
this.tranferShow = false; |
|
|
|
this.deathShow = false; |
|
|
|