From 7c3218e12105b87cab21e9ced57c99c339ffac10 Mon Sep 17 00:00:00 2001 From: 付延余 <f-yanyu@outlook.com> Date: 星期二, 26 七月 2022 08:51:58 +0800 Subject: [PATCH] tatolpage --- pages/new-application/new-application.vue | 82 +++++++++++++++++++++------------------- 1 files changed, 43 insertions(+), 39 deletions(-) diff --git a/pages/new-application/new-application.vue b/pages/new-application/new-application.vue index f4d7ca8..553b18b 100644 --- a/pages/new-application/new-application.vue +++ b/pages/new-application/new-application.vue @@ -2,27 +2,28 @@ <!-- 鏂板鐢宠 --> <view class="new-application"> <!-- 鎼滅储鍖哄煙 --> - <view class="searchBox"> + <!-- <view class="searchBox"> <view class="search"> <u-search @clickIcon="searchIconClick" :clearabled="false" :showAction="false" placeholder="璇疯緭鍏ユ爣棰�" v-model="searchData" shape="square"></u-search> </view> - <!-- 鐘舵�侀�夋嫨鍣� --> <view class="data-selet" @click="statusSeletShow = true"> <view class="content"> <text>{{ dataSeletText }}</text> </view> <view class="uni-select__icon"><image src="@/static/icon/select.png" mode="鍔犺浇澶辫触"></image></view> </view> - </view> - + </view> --> + <combined-title title="鐢宠妯℃澘"></combined-title> <!-- 鍗$墖鍖哄煙 --> - <view class="newApplicationCard" @click="toNewApplicationDetails" v-for="(item,index) in newApplicationData" :key="index"> - <view class="card" > + <view class="newApplicationCard" @click="toNewApplicationDetails" v-for="(item, index) in newApplicationData" :key="index"> + <view class="card"> <view class="card-left"> - <view class="card-left_top"><text>{{item.description}}</text></view> + <view class="card-left_top"> + <text>{{ item.description }}</text> + </view> <view class="card-left_bottom"> - <text>鐗堟湰锛歷{{item.version}}</text> - <text>鎵�灞炲垎绫伙細{{item.categoryTitle}}</text> + <text>鐗堟湰锛歷{{ item.version }}</text> + <text>鎵�灞炲垎绫伙細{{ item.categoryTitle }}</text> </view> </view> <view class="card-right"> @@ -30,10 +31,10 @@ </view> </view> </view> - + <!-- 閫夋嫨鍣� --> <u-picker @cancel="statusSeletShow = false" @confirm="statusConfirm" :show="statusSeletShow" :columns="statusList"></u-picker> - + <!-- 鑿滃崟鏍� --> <popup-menu @menuShow="menushow" ref="menuRef"></popup-menu> </view> @@ -41,7 +42,9 @@ <script> import popupMenu from '@/components/common/popup-menu/popup-menu.vue'; +import combinedTitle from '@/components/common/combined-title/combined-title.vue'; export default { + name: 'new-application', data() { return { searchData: '', @@ -49,53 +52,54 @@ // 閫夋嫨鍣� statusSeletShow: false, statusList: [['涓浗', '缇庡浗', '鏃ユ湰']], - menuShow:false, - updateData:{ - showLatest:true, - filter:true, - status:1, - pageNumber:1, - pageSize:10, - sort:"createTime", - order:"desc" + menuShow: false, + updateData: { + showLatest: true, + filter: true, + status: 1, + pageNumber: 1, + pageSize: 10, + sort: 'createTime', + order: 'desc' }, - newApplicationData:[] + newApplicationData: [] }; }, - onShow(){ - if(this.menuShow == true){ - this.$refs.menuRef.menuClick() + onShow() { + if (this.menuShow == true) { + this.$refs.menuRef.menuClick(); } this.init(); }, - getCurrentPages(e){ + getCurrentPages(e) { console.log(e); }, // 鐐瑰嚮瀵艰埅鏍忚彍鍗曞悗 onNavigationBarButtonTap(e) { // console.log(e); - this.$refs.menuRef.menuClick() + this.$refs.menuRef.menuClick(); }, - components:{ - popupMenu + components: { + popupMenu, + combinedTitle }, methods: { - init(){ + init() { this.newApplicationData = []; - this.$reqGet('getNewProcessDataList',this.updateData).then(res=>{ - if(res.code === 0){ - res.data.records.forEach(item=>{ - if(item.id=="WAY_BILL:4:87504"){ + this.$reqGet('getNewProcessDataList', this.updateData).then(res => { + if (res.code === 0) { + res.data.records.forEach(item => { + if (item.id == 'WAY_BILL:4:87504') { this.newApplicationData.push(item); } - }) - - console.log("鏂板",res); + }); + + console.log('鏂板', res); } - }) + }); }, - menushow(e){ - this.menuShow = e + menushow(e) { + this.menuShow = e; }, // 鎼滅储 searchIconClick() { -- Gitblit v1.9.1