Browse Source

居民信息核对按钮隐藏,智能导入下拉列表字典,bug#499房屋导出表格为空

V1.0
mk 2 years ago
parent
commit
1ece902ddf
  1. 2
      src/js/dai/request.js
  2. 2
      src/router/index.js
  3. 62
      src/views/modules/base/community/communityTable.vue
  4. 12
      src/views/modules/base/resi.vue
  5. 4
      src/views/modules/base/smartImport.vue

2
src/js/dai/request.js

@ -64,7 +64,7 @@ const request = curry(
}; };
const failFn = (err) => { const failFn = (err) => {
// console.log(`[request失败] ${url}`, data, err) // console.log(`[request失败] ${url}`, data, err)
console.log(err); // console.log(err);
reslove( reslove(
Object.assign({}, returnIniData, { Object.assign({}, returnIniData, {
httpCode: "9999", //访问出现意外 httpCode: "9999", //访问出现意外

2
src/router/index.js

@ -399,6 +399,8 @@ export function addDynamicRoute(routeParams, router) {
title: `${routeParams.title}`, title: `${routeParams.title}`,
}, },
}; };
router.matcher = new Router().matcher
router.addRoutes([{ router.addRoutes([{
...moduleRoutes, ...moduleRoutes,
name: `main-dynamic__${dynamicRoute.name}`, name: `main-dynamic__${dynamicRoute.name}`,

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

@ -210,7 +210,7 @@
formCode: 'community_info', formCode: 'community_info',
pageNo: pageNo, pageNo: pageNo,
pageSize: pageSize, pageSize: pageSize,
conditions:queryConditions
}" @close="handleDiyClose"></community-export-info> }" @close="handleDiyClose"></community-export-info>
</el-dialog> </el-dialog>
@ -315,7 +315,7 @@ export default {
diyDialog: false, diyDialog: false,
// queryConditions: [], queryConditions: [],
}; };
}, },
@ -362,38 +362,38 @@ export default {
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: {
// categoryKeys: ['house_info'], categoryKey: 'house_info', categoryKeys: ['house_info'], categoryKey: 'house_info',
// } }
// }); });
// this.getQueryConditions(); this.getQueryConditions();
}, },
methods: { methods: {
// async getQueryConditions() { async getQueryConditions() {
// let params = { let params = {
// formCode: "community_info", formCode: "community_info",
// customerId: this.$store.state.user.customerId, customerId: this.$store.state.user.customerId,
// }; };
//
// const { data } = await this.$http.post( const { data } = await this.$http.post(
// "/oper/customize/icform/queryItems", "/oper/customize/icform/queryItems",
// params params
// ); );
//
// if (data.code === 0) { if (data.code === 0) {
// this.queryConditions = data.data.map((item) => { this.queryConditions = data.data.map((item) => {
// return { return {
// ...item, ...item,
// humpName: util.capitalToHump(item.columnName), humpName: util.capitalToHump(item.columnName),
// }; };
// }); });
// console.log(this.queryConditions); console.log(this.queryConditions);
// } else { } else {
// this.$message.error(data.msg); this.$message.error(data.msg);
// } }
// }, },
reportForm() { reportForm() {
let paramMap = { let paramMap = {

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

@ -51,27 +51,27 @@
class="diy-button--white" class="diy-button--white"
@click="diyExport" @click="diyExport"
plain>导出</el-button> plain>导出</el-button>
<el-button v-if="btnAuths.ic_resi_export" <!-- <el-button v-if="btnAuths.ic_resi_export"
style="margin-left: 10px" style="margin-left: 10px"
size="small" size="small"
class="diy-button--add" class="diy-button--add"
@click="" @click=""
type="parimary" type="parimary"
plain>核对</el-button> plain>核对</el-button> -->
<el-button v-if=" <!-- <el-button v-if="
btnAuths.ic_resi_smart_import && displayedBaobiaoBtn btnAuths.ic_resi_smart_import && displayedBaobiaoBtn
" "
style="margin-left: 10px" style="margin-left: 10px"
size="small" size="small"
@click="reportForm" @click="reportForm"
class="diy-button--white">核对</el-button> class="diy-button--white">核对</el-button> -->
<el-button style="margin-left: 10px" <el-button style="margin-left: 10px"
v-if="btnAuths.ic_resi_batch_del" v-if="btnAuths.ic_resi_batch_del"
size="small" size="small"
class="diy-button--white" class="diy-button--add"
plain type="parimary"
@click="deleteBatch">批量删除</el-button> @click="deleteBatch">批量删除</el-button>
<!-- <el-button type="primary" size="small">下载人口模板</el-button> --> <!-- <el-button type="primary" size="small">下载人口模板</el-button> -->
</div> </div>

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

@ -296,11 +296,9 @@ export default {
async getResident() { async getResident() {
try { try {
const { data } = await this.$http.post("sys/dict/data/dictlist", { const { data } = await this.$http.post("sys/dict/data/dictlist", {
dictType: "resident_category", dictType: "resident_category_import",
}); });
let myObject = { label: "基础信息", value: "BASEINFO" };
this.resiClass = data.data; this.resiClass = data.data;
this.resiClass.unshift(myObject);
} catch (error) { } catch (error) {
console.log(error, "获取居民类别字典"); console.log(error, "获取居民类别字典");
} }

Loading…
Cancel
Save