34bc06c4 by 杨威

批准用途和实际用途必填

1 parent fb5911e2
...@@ -53,8 +53,8 @@ ...@@ -53,8 +53,8 @@
53 :class="childIndex > 0 ? 'childYT' : ''" 53 :class="childIndex > 0 ? 'childYT' : ''"
54 > 54 >
55 <ul> 55 <ul>
56 <li>批准用途</li> 56 <li><i class="requisite">*</i>批准用途</li>
57 <li>实际用途</li> 57 <li><i class="requisite">*</i>实际用途</li>
58 <li><i class="requisite">*</i>土地使用起始时间</li> 58 <li><i class="requisite">*</i>土地使用起始时间</li>
59 </ul> 59 </ul>
60 </el-col> 60 </el-col>
...@@ -69,6 +69,7 @@ ...@@ -69,6 +69,7 @@
69 class="formSelect percent30" 69 class="formSelect percent30"
70 v-if="show" 70 v-if="show"
71 :default-expand-all="defaultExpandAll" 71 :default-expand-all="defaultExpandAll"
72 ref="pzytdm"
72 :multiple="multiple" 73 :multiple="multiple"
73 :placeholder="placeholder" 74 :placeholder="placeholder"
74 :disabled="formData.qszt!='0'" 75 :disabled="formData.qszt!='0'"
...@@ -84,6 +85,7 @@ ...@@ -84,6 +85,7 @@
84 class="formSelect percent30" 85 class="formSelect percent30"
85 v-if="show" 86 v-if="show"
86 :default-expand-all="defaultExpandAll" 87 :default-expand-all="defaultExpandAll"
88 ref="sjytdm"
87 :multiple="multiple" 89 :multiple="multiple"
88 :placeholder="placeholder" 90 :placeholder="placeholder"
89 :disabled="formData.qszt!='0'" 91 :disabled="formData.qszt!='0'"
...@@ -234,8 +236,8 @@ ...@@ -234,8 +236,8 @@
234 :class="childIndex > 0 ? 'childYT' : ''" 236 :class="childIndex > 0 ? 'childYT' : ''"
235 > 237 >
236 <ul> 238 <ul>
237 <li>批准用途</li> 239 <li><i class="requisite">*</i>批准用途</li>
238 <li>实际用途</li> 240 <li><i class="requisite">*</i>实际用途</li>
239 <li><i class="requisite">*</i>土地使用起始时间</li> 241 <li><i class="requisite">*</i>土地使用起始时间</li>
240 </ul> 242 </ul>
241 </el-col> 243 </el-col>
...@@ -249,6 +251,7 @@ ...@@ -249,6 +251,7 @@
249 <el-select-tree 251 <el-select-tree
250 v-if="show" 252 v-if="show"
251 :default-expand-all="defaultExpandAll" 253 :default-expand-all="defaultExpandAll"
254 ref="pzytdm"
252 :multiple="multiple" 255 :multiple="multiple"
253 :placeholder="placeholder" 256 :placeholder="placeholder"
254 :disabled="disabled" 257 :disabled="disabled"
...@@ -263,6 +266,7 @@ ...@@ -263,6 +266,7 @@
263 <el-select-tree 266 <el-select-tree
264 v-if="show" 267 v-if="show"
265 :default-expand-all="defaultExpandAll" 268 :default-expand-all="defaultExpandAll"
269 ref="sjytdm"
266 :multiple="multiple" 270 :multiple="multiple"
267 :placeholder="placeholder" 271 :placeholder="placeholder"
268 :disabled="disabled" 272 :disabled="disabled"
...@@ -627,6 +631,20 @@ export default { ...@@ -627,6 +631,20 @@ export default {
627 // val:this.$refs.tdsyjssj[temp+ind].value, 631 // val:this.$refs.tdsyjssj[temp+ind].value,
628 rule: /^\s*$/g, //非空 632 rule: /^\s*$/g, //非空
629 }, 633 },
634 {
635 data:item.list[ind].pzytdm,
636 name:'批准用途',
637 dom:this.$refs.pzytdm[temp+ind],
638 // val:this.$refs.tdsyjssj[temp+ind].value,
639 rule: /^\s*$/g, //非空
640 },
641 {
642 data:item.list[ind].sjytdm,
643 name:'实际用途',
644 dom:this.$refs.sjytdm[temp+ind],
645 // val:this.$refs.tdsyjssj[temp+ind].value,
646 rule: /^\s*$/g, //非空
647 },
630 ) 648 )
631 if(this.hasSyqx){ 649 if(this.hasSyqx){
632 rules.push( 650 rules.push(
...@@ -696,10 +714,19 @@ export default { ...@@ -696,10 +714,19 @@ export default {
696 watch:{ 714 watch:{
697 countList: { 715 countList: {
698 handler : function (newVal, oldVal) { 716 handler : function (newVal, oldVal) {
699 newVal.forEach((item,ind)=>{ 717 newVal.forEach((i,ind)=>{
700 if(item.qlxzdm != ''){ 718 i.list.forEach((item,index)=>{
701 this.$refs.qlxzdm[ind].$el.style.border="" 719 if(item.qlxzdm != '' &&item.qlxzdm != null){
702 } 720 this.$refs.qlxzdm[ind].$el.style.border=""
721 }
722 debugger
723 if(item.sjytdm != '' &&item.sjytdm != null){
724 this.$refs.sjytdm[ind].$el.style.border=""
725 }
726 if(item.pzytdm != '' &&item.pzytdm != null){
727 this.$refs.pzytdm[ind].$el.style.border=""
728 }
729 })
703 }) 730 })
704 }, 731 },
705 deep:true 732 deep:true
......