Browse Source

迁移合并

maotao 7 months ago
parent
commit
8c7c42fea0
1 changed files with 6 additions and 2 deletions
  1. 6 2
      components/IncidentListFilter.vue

+ 6 - 2
components/IncidentListFilter.vue

@@ -18,7 +18,7 @@
18 18
       <view class="category">
19 19
         <text class="name">故障现象</text>
20 20
         <text class="value flex-1">
21
-					<uni-data-picker @change="categoryChange" v-model="searchData.category" :localdata="pageData.categoryList" popup-title="请选择故障信息" :map="{text:'category',value:'id'}">
21
+					<uni-data-picker @change="categoryChange" v-model="searchData.categoryValue" :localdata="pageData.categoryList" popup-title="请选择故障信息" :map="{text:'category',value:'id'}">
22 22
 						
23 23
 					</uni-data-picker>
24 24
 				</text>
@@ -131,6 +131,7 @@
131 131
     selected: 'todoingAll',
132 132
     area: {id: 0, area: '全部'},
133 133
     category: {},
134
+		categoryValue:{},
134 135
     acceptDate: [],
135 136
   })
136 137
   
@@ -167,8 +168,9 @@
167 168
     setHospital();
168 169
     searchData.selected = 'todoingAll';
169 170
     searchData.area = {id: 0, area: '全部'};
170
-    searchData.category = {id: 0, category: '全部'};
171
+    searchData.category = {};
171 172
     searchData.acceptDate = [];
173
+		searchData.categoryValue = {};
172 174
     console.log(searchData.acceptDate)
173 175
   }
174 176
   
@@ -199,6 +201,7 @@
199 201
     }
200 202
   }
201 203
   
204
+	// 选择故障现象
202 205
 	function categoryChange(val){
203 206
 		searchData.category = val.detail.value[val.detail.value.length-1]
204 207
 	}
@@ -320,6 +323,7 @@
320 323
     searchData.selected = evt.selected;
321 324
     searchData.area = evt.area;
322 325
     searchData.category = evt.category;
326
+		searchData.categoryValue = evt.categoryValue;
323 327
     searchData.acceptDate = evt.acceptDate;
324 328
   })
325 329
 </script>