代码优化
Showing
2 changed files
with
9 additions
and
17 deletions
... | @@ -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 qlrlxList" | 64 | v-for="item in $store.state.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 zlzlList" | 78 | v-for="item in $store.state.zjzlList" |
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 gjList" | 106 | v-for="item in $store.state.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 ssList" | 118 | v-for="item in $store.state.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 xbList" | 132 | v-for="item in $store.state.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 sshyList" | 150 | v-for="item in $store.state.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 zjzlList" | 179 | v-for="item in $store.state.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 zjzlList" | 225 | v-for="item in $store.state.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 qlrlxList" | 254 | v-for="item in $store.state.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,12 +356,6 @@ export default { | ... | @@ -356,12 +356,6 @@ export default { |
356 | zjh: "", | 356 | zjh: "", |
357 | zjzlbsm: "", | 357 | zjzlbsm: "", |
358 | }, | 358 | }, |
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, | ||
365 | }; | 359 | }; |
366 | }, | 360 | }, |
367 | methods: { | 361 | methods: { | ... | ... |
... | @@ -211,14 +211,12 @@ export default { | ... | @@ -211,14 +211,12 @@ export default { |
211 | getDicData(){ | 211 | getDicData(){ |
212 | getDdicByMC("土地用途") | 212 | getDdicByMC("土地用途") |
213 | .then((res) => { | 213 | .then((res) => { |
214 | console.log(res.result); | ||
215 | this.pzytList = res.result; | 214 | this.pzytList = res.result; |
216 | this.sjytList = res.result; | 215 | this.sjytList = res.result; |
217 | }) | 216 | }) |
218 | .catch((error) => {}); | 217 | .catch((error) => {}); |
219 | getDdicByMC("土地等级") | 218 | getDdicByMC("土地等级") |
220 | .then((res) => { | 219 | .then((res) => { |
221 | console.log(res.result); | ||
222 | this.djList = res.result; | 220 | this.djList = res.result; |
223 | }) | 221 | }) |
224 | .catch((error) => {}); | 222 | .catch((error) => {}); | ... | ... |
-
Please register or sign in to post a comment