02de9b89 by 杨威

容密高部分逻辑修改

1 parent 05841f69
...@@ -192,17 +192,15 @@ ...@@ -192,17 +192,15 @@
192 <td colspan="2"> 192 <td colspan="2">
193 <input 193 <input
194 type="text" 194 type="text"
195 v-model="formData.rjl" 195 v-model="rjl"
196 :class=" 196 v-show="isInterval(formData.jyrjl)"
197 formData.jyrjl == '-' ? 'formInput percent47' : 'formInput' 197 class="formInput percent47"
198 "
199 /> 198 />
200 <span class="percent4" v-show="formData.jyrjl == '-'">-</span> 199 <span class="percent4" v-show="isInterval(formData.jyrjl)">-</span>
201 <input 200 <input
202 type="text" 201 type="text"
203 v-show="formData.jyrjl == '-'"
204 v-model="formData.rjl" 202 v-model="formData.rjl"
205 class="formInput percent47" 203 :class="isInterval(formData.jyrjl) ? 'formInput percent47' : 'formInput'"
206 /> 204 />
207 </td> 205 </td>
208 <td colspan="2">容积说明</td> 206 <td colspan="2">容积说明</td>
...@@ -226,17 +224,15 @@ ...@@ -226,17 +224,15 @@
226 <td colspan="2"> 224 <td colspan="2">
227 <input 225 <input
228 type="text" 226 type="text"
229 v-model="formData.jzmd" 227 v-model="jzmd"
230 :class=" 228 v-show="isInterval(formData.jyjzmd)"
231 formData.jyjzmd == '-' ? 'formInput percent47' : 'formInput' 229 class="formInput percent47"
232 "
233 /> 230 />
234 <span class="percent4" v-show="formData.jyjzmd == '-'">-</span> 231 <span class="percent4" v-show="isInterval(formData.jyjzmd)">-</span>
235 <input 232 <input
236 type="text" 233 type="text"
237 v-show="formData.jyjzmd == '-'"
238 v-model="formData.jzmd" 234 v-model="formData.jzmd"
239 class="formInput percent47" 235 :class="isInterval(formData.jyjzmd) ? 'formInput percent47' : 'formInput'"
240 /> 236 />
241 </td> 237 </td>
242 <td colspan="2">建筑密度说明</td> 238 <td colspan="2">建筑密度说明</td>
...@@ -260,17 +256,15 @@ ...@@ -260,17 +256,15 @@
260 <td colspan="2"> 256 <td colspan="2">
261 <input 257 <input
262 type="text" 258 type="text"
263 v-model="formData.jzxg" 259 v-model="jzxg"
264 :class=" 260 v-show="isInterval(formData.jyjzxg)"
265 formData.jyjzxg == '-' ? 'formInput percent47' : 'formInput' 261 class="formInput percent47"
266 "
267 /> 262 />
268 <span class="percent4" v-show="formData.jyjzxg == '-'">-</span> 263 <span class="percent4" v-show="isInterval(formData.jyjzxg)">-</span>
269 <input 264 <input
270 type="text" 265 type="text"
271 v-show="formData.jyjzxg == '-'"
272 v-model="formData.jzxg" 266 v-model="formData.jzxg"
273 class="formInput percent47" 267 :class="isInterval(formData.jyjzxg) ? 'formInput percent47' : 'formInput'"
274 /> 268 />
275 </td> 269 </td>
276 <td colspan="2">建筑限高说明</td> 270 <td colspan="2">建筑限高说明</td>
...@@ -372,6 +366,9 @@ export default { ...@@ -372,6 +366,9 @@ export default {
372 props: {}, 366 props: {},
373 data() { 367 data() {
374 return { 368 return {
369 rjl:'',
370 jzmd:'',
371 jzxg:'',
375 compareList: [ 372 compareList: [
376 { label: "<", value: "<" }, 373 { label: "<", value: "<" },
377 { label: ">", value: ">" }, 374 { label: ">", value: ">" },
...@@ -445,6 +442,13 @@ export default { ...@@ -445,6 +442,13 @@ export default {
445 .then((res) => { 442 .then((res) => {
446 if (res.result) { 443 if (res.result) {
447 this.formData = res.result; 444 this.formData = res.result;
445 //判断容密高是否为区间值,如果是区间值,则将校验值置为'-'并给rjl,jzmd,jzxg赋值
446 this.rjl = this.isInterval(this.formData.jyrjl) ? this.formData.jyrjl : '';
447 this.formData.jyrjl = this.isInterval(this.formData.jyrjl) ? '-' : this.formData.jyrjl;
448 this.jzmd = this.isInterval(this.formData.jyjzmd) ? this.formData.jyjzmd : '';
449 this.formData.jyjzmd = this.isInterval(this.formData.jyjzmd) ? '-' : this.formData.jyjzmd;
450 this.jzxg = this.isInterval(this.formData.jyjzxg) ? this.formData.jyjzxg : '';
451 this.formData.jyjzxg = this.isInterval(this.formData.jyjzxg) ? '-' : this.formData.jyjzxg;
448 if(res.result.qjQlxzListVOS[0].qjTdytListVOS.length>0){ 452 if(res.result.qjQlxzListVOS[0].qjTdytListVOS.length>0){
449 //权利性质数据传给子组件 453 //权利性质数据传给子组件
450 this.$refs.qlxzModule.countList = res.result.qjQlxzListVOS 454 this.$refs.qlxzModule.countList = res.result.qjQlxzListVOS
...@@ -468,6 +472,10 @@ export default { ...@@ -468,6 +472,10 @@ export default {
468 updateZDxx() { 472 updateZDxx() {
469 //获取权利性质数据 473 //获取权利性质数据
470 this.formData.list = this.$refs.qlxzModule.getQlxzDataList(); 474 this.formData.list = this.$refs.qlxzModule.getQlxzDataList();
475 //判断容密高是否为区间值,如果是区间值,则将输入框的值赋予
476 this.formData.jyrjl = this.isInterval(this.formData.jyrjl) ? this.rjl : this.formData.jyrjl;
477 this.formData.jyjzmd = this.isInterval(this.formData.jyjzmd) ? this.jzmd : this.formData.jyjzmd;
478 this.formData.jyjzxg = this.isInterval(this.formData.jyjzxg) ? this.jzxg : this.formData.jyjzxg;
471 updateQjZdjbxx(this.formData) 479 updateQjZdjbxx(this.formData)
472 .then((res) => { 480 .then((res) => {
473 if (res.code == 200) { 481 if (res.code == 200) {
...@@ -512,6 +520,15 @@ export default { ...@@ -512,6 +520,15 @@ export default {
512 }) 520 })
513 .catch((error) => {}); 521 .catch((error) => {});
514 }, 522 },
523 //判断容密高是否为区间
524 isInterval(val){
525 if(val == '>' || val == '<' || val == '=' || val == '>=' || val == '<='){
526 return false
527 }else{
528 return true;
529 }
530 },
531
515 }, 532 },
516 computed: { 533 computed: {
517 zl() { 534 zl() {
......