权利人组件字典绑定
Showing
2 changed files
with
16 additions
and
12 deletions
... | @@ -8,8 +8,8 @@ | ... | @@ -8,8 +8,8 @@ |
8 | import { getDdicByMC } from "../src/api/common"; | 8 | import { getDdicByMC } from "../src/api/common"; |
9 | export default { | 9 | export default { |
10 | mounted() { | 10 | mounted() { |
11 | window.addEventListener("unload", this.saveState); | ||
12 | this.getDic(); | 11 | this.getDic(); |
12 | window.addEventListener("unload", this.saveState); | ||
13 | }, | 13 | }, |
14 | methods: { | 14 | methods: { |
15 | saveState() { | 15 | saveState() { |
... | @@ -17,7 +17,6 @@ export default { | ... | @@ -17,7 +17,6 @@ export default { |
17 | }, | 17 | }, |
18 | //请求字典数据 | 18 | //请求字典数据 |
19 | getDic() { | 19 | getDic() { |
20 | debugger | ||
21 | let s = this.$store.state; | 20 | let s = this.$store.state; |
22 | s.zjzlList = s.zjzlList.length == 0 ? this.getDicData("证件种类") : s.zjzlList; | 21 | s.zjzlList = s.zjzlList.length == 0 ? this.getDicData("证件种类") : s.zjzlList; |
23 | s.gjList = s.gjList.length == 0 ? this.getDicData("国家和地区") : s.gjList; | 22 | s.gjList = s.gjList.length == 0 ? this.getDicData("国家和地区") : s.gjList; | ... | ... |
... | @@ -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: { | ... | ... |
-
Please register or sign in to post a comment