Browse Source

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

feature
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) => {
// console.log(`[request失败] ${url}`, data, err)
console.log(err);
// console.log(err);
reslove(
Object.assign({}, returnIniData, {
httpCode: "9999", //访问出现意外

2
src/router/index.js

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

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

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

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

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

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

@ -296,11 +296,9 @@ export default {
async getResident() {
try {
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.unshift(myObject);
} catch (error) {
console.log(error, "获取居民类别字典");
}

Loading…
Cancel
Save