0494c23c by weimo934

Merge remote-tracking branch 'origin/master'

2 parents 11d1466c 92b7581b
...@@ -5,14 +5,31 @@ ...@@ -5,14 +5,31 @@
5 </template> 5 </template>
6 6
7 <script> 7 <script>
8 import { getDdicByMC } from "../src/api/common";
8 export default { 9 export default {
9 mounted() { 10 mounted() {
11 this.getDic();
10 window.addEventListener("unload", this.saveState); 12 window.addEventListener("unload", this.saveState);
11 }, 13 },
12 methods: { 14 methods: {
13 saveState() { 15 saveState() {
14 sessionStorage.setItem("state", JSON.stringify(this.$store.state)); 16 sessionStorage.setItem("state", JSON.stringify(this.$store.state));
15 }, 17 },
18 //请求字典数据
19 getDic() {
20 let s = this.$store.state;
21 s.zjzlList = s.zjzlList.length == 0 ? this.getDicData("证件种类") : s.zjzlList;
22 s.gjList = s.gjList.length == 0 ? this.getDicData("国家和地区") : s.gjList;
23 s.ssList = s.ssList.length == 0 ? this.getDicData("省市") : s.ssList;
24 s.qlrlxList = s.qlrlxList.length == 0 ? this.getDicData("权利人类型") : s.qlrlxList;
25 s.xbList = s.xbList.length == 0 ? this.getDicData("性别") : s.xbList;
26 s.sshyList = s.sshyList.length == 0 ? this.getDicData("国民经济行业分类代码") : s.sshyList;
27 },
28 getDicData(name) {
29 getDdicByMC(name).then((res) => {
30 return res.result;
31 });
32 },
16 }, 33 },
17 }; 34 };
18 </script> 35 </script>
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
61 <td colspan="3"> 61 <td colspan="3">
62 <el-select class="formSelect" v-model="formData.qlrlxbsm"> 62 <el-select class="formSelect" v-model="formData.qlrlxbsm">
63 <el-option 63 <el-option
64 v-for="item in qllxList" 64 v-for="item in qlrlxList"
65 :key="item.bsm" 65 :key="item.bsm"
66 :label="item.mc" 66 :label="item.mc"
67 :value="item.bsm" 67 :value="item.bsm"
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
75 <td colspan="3"> 75 <td colspan="3">
76 <el-select class="formSelect" v-model="formData.zjzlbsm"> 76 <el-select class="formSelect" v-model="formData.zjzlbsm">
77 <el-option 77 <el-option
78 v-for="item in qllxList" 78 v-for="item in zlzlList"
79 :key="item.bsm" 79 :key="item.bsm"
80 :label="item.mc" 80 :label="item.mc"
81 :value="item.bsm" 81 :value="item.bsm"
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
103 <td colspan="3"> 103 <td colspan="3">
104 <el-select class="formSelect" v-model="formData.gjbsm"> 104 <el-select class="formSelect" v-model="formData.gjbsm">
105 <el-option 105 <el-option
106 v-for="item in qllxList" 106 v-for="item in gjList"
107 :key="item.bsm" 107 :key="item.bsm"
108 :label="item.mc" 108 :label="item.mc"
109 :value="item.bsm" 109 :value="item.bsm"
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
115 <td colspan="3"> 115 <td colspan="3">
116 <el-select class="formSelect" v-model="formData.hjszssbsm"> 116 <el-select class="formSelect" v-model="formData.hjszssbsm">
117 <el-option 117 <el-option
118 v-for="item in qllxList" 118 v-for="item in ssList"
119 :key="item.bsm" 119 :key="item.bsm"
120 :label="item.mc" 120 :label="item.mc"
121 :value="item.bsm" 121 :value="item.bsm"
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
129 <td colspan="3"> 129 <td colspan="3">
130 <el-select class="formSelect" v-model="formData.xbbsm"> 130 <el-select class="formSelect" v-model="formData.xbbsm">
131 <el-option 131 <el-option
132 v-for="item in qllxList" 132 v-for="item in xbList"
133 :key="item.bsm" 133 :key="item.bsm"
134 :label="item.mc" 134 :label="item.mc"
135 :value="item.bsm" 135 :value="item.bsm"
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
147 <td colspan="3"> 147 <td colspan="3">
148 <el-select class="formSelect" v-model="formData.sshy"> 148 <el-select class="formSelect" v-model="formData.sshy">
149 <el-option 149 <el-option
150 v-for="item in qllxList" 150 v-for="item in sshyList"
151 :key="item.bsm" 151 :key="item.bsm"
152 :label="item.mc" 152 :label="item.mc"
153 :value="item.bsm" 153 :value="item.bsm"
...@@ -176,7 +176,7 @@ ...@@ -176,7 +176,7 @@
176 <td colspan="3"> 176 <td colspan="3">
177 <el-select class="formSelect" v-model="formData.fr.zjzlbsm"> 177 <el-select class="formSelect" v-model="formData.fr.zjzlbsm">
178 <el-option 178 <el-option
179 v-for="item in qllxList" 179 v-for="item in zjzlList"
180 :key="item.bsm" 180 :key="item.bsm"
181 :label="item.mc" 181 :label="item.mc"
182 :value="item.bsm" 182 :value="item.bsm"
...@@ -222,7 +222,7 @@ ...@@ -222,7 +222,7 @@
222 <td colspan="3"> 222 <td colspan="3">
223 <el-select class="formSelect" v-model="item.zjzlbsm"> 223 <el-select class="formSelect" v-model="item.zjzlbsm">
224 <el-option 224 <el-option
225 v-for="item in qllxList" 225 v-for="item in zjzlList"
226 :key="item.bsm" 226 :key="item.bsm"
227 :label="item.mc" 227 :label="item.mc"
228 :value="item.bsm" 228 :value="item.bsm"
...@@ -251,7 +251,7 @@ ...@@ -251,7 +251,7 @@
251 <td colspan="3"> 251 <td colspan="3">
252 <el-select class="formSelect" v-model="formData.gyfsbsm"> 252 <el-select class="formSelect" v-model="formData.gyfsbsm">
253 <el-option 253 <el-option
254 v-for="item in qllxList" 254 v-for="item in qlrlxList"
255 :key="item.bsm" 255 :key="item.bsm"
256 :label="item.mc" 256 :label="item.mc"
257 :value="item.bsm" 257 :value="item.bsm"
...@@ -356,7 +356,12 @@ export default { ...@@ -356,7 +356,12 @@ export default {
356 zjh: "", 356 zjh: "",
357 zjzlbsm: "", 357 zjzlbsm: "",
358 }, 358 },
359 qllxList: [], 359 qlrlxList: this.$store.state.qlrlxList,
360 zjzlList: this.$store.state.zjzlList,
361 xbList: this.$store.state.xbList,
362 gjList: this.$store.state.gjList,
363 ssList: this.$store.state.ssList,
364 sshyList: this.$store.state.sshyList,
360 }; 365 };
361 }, 366 },
362 methods: { 367 methods: {
......
...@@ -13,6 +13,12 @@ const store = new Vuex.Store({ ...@@ -13,6 +13,12 @@ const store = new Vuex.Store({
13 xzqList: [], 13 xzqList: [],
14 djqList: [], 14 djqList: [],
15 djzqList: [], 15 djzqList: [],
16 zjzlList:[],
17 gjList:[],
18 ssList:[],
19 qlrlxList:[],
20 xbList:[],
21 sshyList:[],
16 //创建自然幢时需要用到的临时存储信息 22 //创建自然幢时需要用到的临时存储信息
17 zrzbsm: '', 23 zrzbsm: '',
18 xmmc: '', 24 xmmc: '',
......