Selaa lähdekoodia

修正页面功能问题

oyq28 2 vuotta sitten
vanhempi
commit
e46483a570
1 muutettua tiedostoa jossa 15 lisäystä ja 2 poistoa
  1. 15 2
      imcs-bt-fe/imcs-bt-fe/uni-mall/pages/door/door.vue

+ 15 - 2
imcs-bt-fe/imcs-bt-fe/uni-mall/pages/door/door.vue

@@ -6,7 +6,7 @@
 				<view class="fb-type">
 					<view class="type-label">{{array[index]}}</view>
 					<image class="type-icon"
-						src="http://yanxuan.nosdn.127.net/hxm/yanxuan-wap/p/20161201/style/img/icon-normal/pickerArrow-a8b918f05f.png">
+						src="../../static/images/icon_select.png">
 					</image>
 				</view>
 			</view>
@@ -19,7 +19,7 @@
 			</view>			
 		</view>
 		<mx-date-picker :show="showPicker" :type="type" :value="value" :show-tips="true" :begin-text="'开始'"           
-			 :end-text="'结束'" :show-seconds="true" @confirm="onSelected" @cancel="onSelected" />
+			 :end-text="'结束'" :show-seconds="true" @confirm="onSelected" @cancel="onCancel" />
         
 		<view class="fb-body">
 			<view class="content">
@@ -105,6 +105,19 @@
 				equId = equId? equId: ""
 				this.fetch(equId)
 			},
+			onCancel(e) {
+				this.range = []
+				this.showPicker = false;
+				if (e) {
+					this[this.type] = '';
+				}
+				this.records = []
+				this.queryParams.current = 1
+				let pages = getCurrentPages();
+				let page = pages[pages.length - 1].$page.fullPath;
+				let equId = page.split('equId=')[1]
+				this.fetch(equId)
+			},
 			fetch: function(equId) {
 				let that = this;
 				that.queryParams.model.equId = equId