付延余
2022-07-26 7c3218e12105b87cab21e9ced57c99c339ffac10
pages/new-application/new-application.vue
@@ -2,24 +2,25 @@
   <!-- 新增申请 -->
   <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="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>版本:v{{item.version}}</text>
                  <text>所属分类:{{item.categoryTitle}}</text>
@@ -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: '',
@@ -56,15 +59,15 @@
            status:1,
            pageNumber:1,
            pageSize:10,
            sort:"createTime",
            order:"desc"
            sort: 'createTime',
            order: 'desc'
         },
         newApplicationData:[]
      };
   },
   onShow(){
      if(this.menuShow == true){
         this.$refs.menuRef.menuClick()
         this.$refs.menuRef.menuClick();
      }
      this.init();
   },
@@ -74,10 +77,11 @@
   // 点击导航栏菜单后
   onNavigationBarButtonTap(e) {
      // console.log(e);
      this.$refs.menuRef.menuClick()
      this.$refs.menuRef.menuClick();
   },
   components:{
      popupMenu
      popupMenu,
      combinedTitle
   },
   methods: {
      init(){
@@ -85,17 +89,17 @@
         this.$reqGet('getNewProcessDataList',this.updateData).then(res=>{
            if(res.code === 0){
               res.data.records.forEach(item=>{
                  if(item.id=="WAY_BILL:4:87504"){
                  if (item.id == 'WAY_BILL:4:87504') {
                     this.newApplicationData.push(item);
                  }
               })
               });
               
               console.log("新增",res);
               console.log('新增', res);
            }
         })
         });
      },
      menushow(e){
         this.menuShow = e
         this.menuShow = e;
      },
      // 搜索
      searchIconClick() {