1020f21b by zhaoqian

单户编辑保存以及数据得回显

1 parent 11f3c79f
1 import request from '@/plugin/axios'
2
3 /**
4 * 获取户的基本信息
5 */
6 export function getQjHDetailByBsm(data) {
7 return request({
8 url: '/system/qjH/getQjHDetailById',
9 method: 'get',
10 params: {
11 id: data
12 }
13 })
14 }
15
16 /**
17 * 修改户的基本信息
18 */
19 export function updateQjH(data) {
20 return request({
21 url: '/system/qjH/updateQjH',
22 method: 'put',
23 data:data
24 })
25 }
...\ No newline at end of file ...\ No newline at end of file
...@@ -29,6 +29,10 @@ const store = new Vuex.Store({ ...@@ -29,6 +29,10 @@ const store = new Vuex.Store({
29 xzqList: [], 29 xzqList: [],
30 djqList: [], 30 djqList: [],
31 djzqList: [], 31 djzqList: [],
32 fwlxList:[],
33 hxList:[],
34 hxjgList:[],
35 fwjgList:[],
32 fwxzOptions:[], 36 fwxzOptions:[],
33 cbOptions:[], 37 cbOptions:[],
34 cqlyOptions:[], 38 cqlyOptions:[],
......
...@@ -212,6 +212,10 @@ export default { ...@@ -212,6 +212,10 @@ export default {
212 s.tdytList = s.tdytList.length == 0 ?await this.getDicData("土地用途") : s.tdytList; 212 s.tdytList = s.tdytList.length == 0 ?await this.getDicData("土地用途") : s.tdytList;
213 s.fwytList = s.fwytList.length == 0 ?await this.getDicData("房屋用途") : s.fwytList; 213 s.fwytList = s.fwytList.length == 0 ?await this.getDicData("房屋用途") : s.fwytList;
214 s.tddjList = s.tddjList.length == 0 ?await this.getDicData("土地等级") : s.tddjList; 214 s.tddjList = s.tddjList.length == 0 ?await this.getDicData("土地等级") : s.tddjList;
215 s.fwlxList = s.fwlxList.length == 0 ?await this.getDicData("房屋类型") : s.fwlxList;
216 s.hxList = s.hxList.length == 0 ?await this.getDicData("户型") : s.hxList;
217 s.hxjgList = s.hxjgList.length == 0 ?await this.getDicData("户型结构") : s.hxjgList;
218 s.fwjgList = s.fwjgList.length == 0 ?await this.getDicData("户型结构") : s.fwjgList;
215 219
216 s.fwxzOptions = s.fwxzOptions.length == 0 ?await this.getDicData("房屋性质") : s.fwxzOptions; 220 s.fwxzOptions = s.fwxzOptions.length == 0 ?await this.getDicData("房屋性质") : s.fwxzOptions;
217 s.cbOptions = s.cbOptions.length == 0 ?await this.getDicData("房屋产别") : s.cbOptions; 221 s.cbOptions = s.cbOptions.length == 0 ?await this.getDicData("房屋产别") : s.cbOptions;
......