|  | @@ -6,27 +6,31 @@
 | 
	
		
			
				|  |  |        下载列表
 | 
	
		
			
				|  |  |      </h2>
 | 
	
		
			
				|  |  |      <div class="m-core">
 | 
	
		
			
				|  |  | -      <!-- <save-form :inline="true" :model="searchForm" @submit="search" @reset='onReSet'>
 | 
	
		
			
				|  |  | -        <el-form-item prop="order">
 | 
	
		
			
				|  |  | -          <el-input
 | 
	
		
			
				|  |  | -            v-model.trim="searchForm.order"
 | 
	
		
			
				|  |  | +      <save-form :inline="true" :model="searchForm" @submit="search" @reset='onReSet'>
 | 
	
		
			
				|  |  | +        <el-form-item prop="type">
 | 
	
		
			
				|  |  | +          <!-- downTypeList -->
 | 
	
		
			
				|  |  | +           <el-form-item>
 | 
	
		
			
				|  |  | +          <el-select
 | 
	
		
			
				|  |  | +            v-model.trim="searchForm.type"
 | 
	
		
			
				|  |  |              clearable
 | 
	
		
			
				|  |  | -            @keyup.enter.native="search"
 | 
	
		
			
				|  |  | -            placeholder='请输入订单编号'
 | 
	
		
			
				|  |  | -          ></el-input>
 | 
	
		
			
				|  |  | +            filterable
 | 
	
		
			
				|  |  | +            placeholder="文件搜索类型"
 | 
	
		
			
				|  |  | +          >
 | 
	
		
			
				|  |  | +            <el-option
 | 
	
		
			
				|  |  | +              v-for="(item, index) in downTypeList"
 | 
	
		
			
				|  |  | +              :key="index"
 | 
	
		
			
				|  |  | +              :value="item.value"
 | 
	
		
			
				|  |  | +              :label="item.label"
 | 
	
		
			
				|  |  | +            ></el-option>
 | 
	
		
			
				|  |  | +          </el-select>
 | 
	
		
			
				|  |  |          </el-form-item>
 | 
	
		
			
				|  |  | -          <el-form-item prop="userId">
 | 
	
		
			
				|  |  | -          <el-input
 | 
	
		
			
				|  |  | -            v-model.trim="searchForm.userId"
 | 
	
		
			
				|  |  | -            @keyup.enter.native="search"
 | 
	
		
			
				|  |  | -            placeholder='请输入用户编号'
 | 
	
		
			
				|  |  | -          ></el-input>
 | 
	
		
			
				|  |  |          </el-form-item>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          <el-form-item>
 | 
	
		
			
				|  |  |            <el-button native-type="submit" type="primary">搜索</el-button>
 | 
	
		
			
				|  |  |            <el-button native-type="reset" type="danger">重置</el-button>
 | 
	
		
			
				|  |  |          </el-form-item>
 | 
	
		
			
				|  |  | -      </save-form> -->
 | 
	
		
			
				|  |  | +      </save-form>
 | 
	
		
			
				|  |  |        <div class="tableWrap">
 | 
	
		
			
				|  |  |          <el-table
 | 
	
		
			
				|  |  |            style="width: 100%"
 | 
	
	
		
			
				|  | @@ -40,40 +44,42 @@
 | 
	
		
			
				|  |  |              label="下载编号"
 | 
	
		
			
				|  |  |            ></el-table-column>
 | 
	
		
			
				|  |  |            <el-table-column
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |              align="center"
 | 
	
		
			
				|  |  |              prop="name"
 | 
	
		
			
				|  |  |              label="文件名"
 | 
	
		
			
				|  |  |            ></el-table-column>
 | 
	
		
			
				|  |  | +          <el-table-column align="center" prop="type" label="文件类型">
 | 
	
		
			
				|  |  | +            <template slot-scope="scope">
 | 
	
		
			
				|  |  | +              <div>
 | 
	
		
			
				|  |  | +                {{ scope.row.type |downListType }}
 | 
	
		
			
				|  |  | +              </div>
 | 
	
		
			
				|  |  | +            </template>
 | 
	
		
			
				|  |  | +          </el-table-column>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -          <el-table-column
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -            align="center"
 | 
	
		
			
				|  |  | -            prop="status"
 | 
	
		
			
				|  |  | -            label="文件状态"
 | 
	
		
			
				|  |  | -          >
 | 
	
		
			
				|  |  | +          <el-table-column align="center" prop="status" label="文件状态">
 | 
	
		
			
				|  |  |              <template slot-scope="scope">
 | 
	
		
			
				|  |  |                <div>
 | 
	
		
			
				|  |  |                  {{ scope.row.status == 0 ? "生成中" : "已生成" }}
 | 
	
		
			
				|  |  |                </div>
 | 
	
		
			
				|  |  |              </template>
 | 
	
		
			
				|  |  |            </el-table-column>
 | 
	
		
			
				|  |  | -          <el-table-column
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -            align="center"
 | 
	
		
			
				|  |  | -            prop=" createTime"
 | 
	
		
			
				|  |  | -            label="生成时间"
 | 
	
		
			
				|  |  | -          >
 | 
	
		
			
				|  |  | +          <el-table-column align="center" prop=" createTime" label="生成时间">
 | 
	
		
			
				|  |  |              <template slot-scope="scope">
 | 
	
		
			
				|  |  |                <div>
 | 
	
		
			
				|  |  | -                {{scope.row.createTime | dateForMinFormat}}
 | 
	
		
			
				|  |  | +                {{ scope.row.createTime | dateForMinFormat }}
 | 
	
		
			
				|  |  |                </div>
 | 
	
		
			
				|  |  |              </template>
 | 
	
		
			
				|  |  |            </el-table-column>
 | 
	
		
			
				|  |  |            <el-table-column prop="fileUrl" label="下载地址" align="center">
 | 
	
		
			
				|  |  | -            <template  slot-scope="scope">
 | 
	
		
			
				|  |  | +            <template slot-scope="scope">
 | 
	
		
			
				|  |  |                <div>
 | 
	
		
			
				|  |  | -                <a :href="scope.row.fileUrl" target="view_window" style="color:#14928A">点击下载</a>
 | 
	
		
			
				|  |  | +                <a
 | 
	
		
			
				|  |  | +                  :href="scope.row.fileUrl"
 | 
	
		
			
				|  |  | +                  target="view_window"
 | 
	
		
			
				|  |  | +                  style="color: #14928a"
 | 
	
		
			
				|  |  | +                  >点击下载</a
 | 
	
		
			
				|  |  | +                >
 | 
	
		
			
				|  |  |                </div>
 | 
	
		
			
				|  |  |              </template>
 | 
	
		
			
				|  |  |            </el-table-column>
 | 
	
	
		
			
				|  | @@ -96,6 +102,7 @@ import axios from "axios";
 | 
	
		
			
				|  |  |  import { getToken } from "@/utils/auth";
 | 
	
		
			
				|  |  |  import pagination from "@/components/Pagination/index";
 | 
	
		
			
				|  |  |  import load from "@/utils/loading";
 | 
	
		
			
				|  |  | +import {downTypeList} from "@/utils/searchArray"
 | 
	
		
			
				|  |  |  import { managerDownloadList } from "./api";
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    components: { pagination },
 | 
	
	
		
			
				|  | @@ -105,9 +112,8 @@ export default {
 | 
	
		
			
				|  |  |          order: null,
 | 
	
		
			
				|  |  |          userId: null,
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +      downTypeList,
 | 
	
		
			
				|  |  |        tableList: [],
 | 
	
		
			
				|  |  | -      organList: [],
 | 
	
		
			
				|  |  |        rules: {
 | 
	
		
			
				|  |  |          // 分页规则
 | 
	
		
			
				|  |  |          limit: 10, // 限制显示条数
 | 
	
	
		
			
				|  | @@ -146,7 +152,10 @@ export default {
 | 
	
		
			
				|  |  |        this.rules.page = 1;
 | 
	
		
			
				|  |  |        this.getList();
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    onReSet() {},
 | 
	
		
			
				|  |  | +    onReSet() {
 | 
	
		
			
				|  |  | +      this.searchForm.type = null;
 | 
	
		
			
				|  |  | +      this.search()
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |  };
 | 
	
		
			
				|  |  |  </script>
 |