Administrator
2022-04-11 79d9fc857559982b00b68b2d709807bdc4cd286f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<template>
  <div class="drive">
    <avue-crud
      :option="option1"
      :table-loading="loading"
      :data="data"
      :page.sync="page"
      v-model="form"
      ref="crud"
      @row-update="rowUpdate"
      @row-del="rowDel"
      @search-change="searchChange"
      @search-reset="searchReset"
      @selection-change="selectionChange"
      @current-change="currentChange"
      @size-change="sizeChange"
      @refresh-change="refreshChange"
      :row-style="rowStyle"
      @on-load="onLoad"
    >
      <template slot-scope="{ type, row }" slot="menu">
        <el-button
          :type="type"
          size="small"
          icon="el-icon-bottom"
          @click="handleCancel(row)"
          >下载
        </el-button>
      </template>
    </avue-crud>
  </div>
</template>
 
<script>
import { mapGetters } from "vuex";
import { getList } from "@/api/drive/drive";
export default {
  data() {
    return {
      ourdata: [
        // {
        //   calls: "身份证驱动(内含两个安装包)",
        //   links:
        //     "http://61.131.136.25:2081/zhba/upload/20211201/64d8b76f3aecae93e18d015bbca89aba.rar",
        // },
        {
          calls: "JLCertReaderV1.0.1.5.exe",
          zhcalls: "身份证设备识别驱动",
          links:
            "http://61.131.136.25:2081/minio/download/zhba/upload/20211207/JLCertReaderV1.0.1.5.exe?token=",
        },
        {
          calls: "USBDrv3.0-x64.msi",
          zhcalls: "身份证设备USB连接驱动",
          links:
            "http://61.131.136.25:2081/minio/download/zhba/upload/20211207/USBDrv3.0-x64.msi?token=",
        },
        {
          calls: "亚略特CID5000居民身份证指纹采集器安装程序.exe",
          zhcalls: "指纹采集器(安装)程序",
          links:
            "http://61.131.136.25:2081/minio/download/zhba/upload/20211207/%E4%BA%9A%E7%95%A5%E7%89%B9CID5000%E5%B1%85%E6%B0%91%E8%BA%AB%E4%BB%BD%E8%AF%81%E6%8C%87%E7%BA%B9%E9%87%87%E9%9B%86%E5%99%A8%E5%AE%89%E8%A3%85%E7%A8%8B%E5%BA%8F.exe?token=",
        },
        {
          calls: "AratekDMA_Installer_X86_V1.0.8.67(CID).exe",
          zhcalls: "指纹采集器(驱动)程序",
          links:
            "http://61.131.136.25:2081/minio/download/zhba/upload/20211207/AratekDMA_Installer_X86_V1.0.8.67(CID).exe?token=",
        },
      ],
      data: [],
      query: {},
      loading: false,
      page: {
        pageSize: 10,
        currentPage: 1,
        total: 0,
      },
      option1: {
        delBtn: false,
        editBtn: false,
        addBtn: false,
        calcHeight: 260,
        tip: false,
        height: "auto",
        searchShow: true,
        searchMenuSpan: 8,
        labelWidth: 130,
        headerAlign: "center",
        align: "center",
        border: true,
        index: true,
        viewBtn: false,
        selection: true,
        dialogClickModal: false,
        column: [
          {
            label: "驱动名称",
            prop: "zhcalls",
          },
          {
            label: "文件名称",
            prop: "calls",
          },
          {
            label: "驱动链接",
            prop: "links",
          },
        ],
      },
    };
  },
  methods: {
    handleCancel(row) {
      let url = row.links;
      window.open(url, "_self");
    },
    searchChange(params, done) {
      done();
    },
    searchReset() {
      this.query = {};
      this.onLoad(this.page);
    },
    rowDel(row) {},
    rowUpdate(row, index, done, loading) {
      done();
    },
    refreshChange() {
      this.onLoad(this.page, this.query);
    },
    currentChange(currentPage) {
      //分页页码
      this.page.currentPage = currentPage;
      this.refreshChange();
    },
    sizeChange(pageSize) {
      //分页尺寸
      this.page.pageSize = pageSize;
      this.refreshChange();
    },
    onLoad(page, params = {}) {
      this.loading = true;
      // console.log("获取数据");
      this.data = this.ourdata;
 
      this.loading = false;
    },
  },
};
</script>
 
<style lang="scss" scoped>
</style>