index.vue 16.2 KB
Newer Older
邓春圆's avatar
邓春圆 committed
1 2 3 4 5
<template>
  <div class="app-container">

    <!-- 搜索工作栏 -->
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
邓春圆's avatar
邓春圆 committed
6
      <el-form-item :label="$t('币种1')" prop="sourceCurrencyId">
邓春圆's avatar
邓春圆 committed
7
        <el-select v-model="query.sourceCurrencyId" :placeholder="$t('请选择币种')" clearable size="small">
邓春圆's avatar
邓春圆 committed
8
          <el-option   v-for="dict in currencyList"
邓春圆's avatar
邓春圆 committed
9
                     :key="dict.id" :label="$l(dict,'title') + dict.fuhao" :value="dict.id" />
邓春圆's avatar
邓春圆 committed
10 11
        </el-select>
      </el-form-item>
邓春圆's avatar
邓春圆 committed
12
      <el-form-item :label="$t('币种2')" prop="targetCurrencyId">
邓春圆's avatar
邓春圆 committed
13
        <el-select v-model="query.targetCurrencyId" :placeholder="$t('请选择币种')" clearable size="small">
邓春圆's avatar
邓春圆 committed
14
          <el-option   v-for="dict in currencyList"
邓春圆's avatar
邓春圆 committed
15
                     :key="dict.id" :label="$l(dict,'title') + dict.fuhao" :value="dict.id" />
邓春圆's avatar
邓春圆 committed
16 17 18
        </el-select>
      </el-form-item>
      <el-form-item>
邓春圆's avatar
邓春圆 committed
19 20
        <el-button type="primary" icon="el-icon-search" @click="handleQuery">{{$t('搜索')}}</el-button>
        <el-button icon="el-icon-refresh" @click="resetQuery">{{$t('重置')}}</el-button>
邓春圆's avatar
邓春圆 committed
21 22 23 24 25 26
      </el-form-item>
    </el-form>

    <!-- 操作工具栏 -->
    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
邓春圆's avatar
邓春圆 committed
27
        <el-button type="primary"  v-hasPermi="['ecw:exchange-rate:create']" plain icon="el-icon-plus" size="mini" @click="handleAdd">{{$t('新增')}}</el-button>
邓春圆's avatar
邓春圆 committed
28
      </el-col>
邓春圆's avatar
邓春圆 committed
29 30 31 32
<!--      <el-col :span="1.5">-->
<!--        <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"-->
<!--                   v-hasPermi="['ecw:exchange-rate:export']">导出</el-button>-->
<!--      </el-col>-->
邓春圆's avatar
邓春圆 committed
33 34 35 36 37
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>

    <!-- 列表 -->
    <el-table v-loading="loading" :data="list">
邓春圆's avatar
邓春圆 committed
38
      <el-table-column  :label="$t('序号')" align="center" >
39
        <template v-slot="{row, $index}">
邓春圆's avatar
邓春圆 committed
40
           {{(queryParams.page - 1) * queryParams.rows + ($index + 1)}}
41 42
        </template>
      </el-table-column>
邓春圆's avatar
邓春圆 committed
43
      <el-table-column :label="$t('币种1')" align="center" prop="sourceCurrencyId">
邓春圆's avatar
邓春圆 committed
44
        <template slot-scope="scope">
邓春圆's avatar
邓春圆 committed
45
           {{getCurrency(scope.row.sourceCurrencyId)}}
邓春圆's avatar
邓春圆 committed
46 47
        </template>
      </el-table-column>
邓春圆's avatar
邓春圆 committed
48
       <el-table-column :label="$t('币种2')">
邓春圆's avatar
邓春圆 committed
49 50 51 52
         <template v-slot="{row}">
           {{getCurrency(row.targetCurrencyId)}}
         </template>
       </el-table-column>
邓春圆's avatar
邓春圆 committed
53
       <el-table-column :label="$t('币种1 金额')">
邓春圆's avatar
邓春圆 committed
54 55 56 57
         <template v-slot="{row}">
           1 {{getCurrency(row.sourceCurrencyId, true)}}
         </template>
       </el-table-column>
邓春圆's avatar
邓春圆 committed
58 59
       <el-table-column :label="$t('币种1金额兑换币种2汇率')" prop="currencyRate"></el-table-column>
       <el-table-column :label="$t('币种2金额')">
邓春圆's avatar
邓春圆 committed
60 61 62 63
         <template v-slot="{row}">
            {{1 * row.currencyRate}}{{getCurrency(row.targetCurrencyId, true)}}
         </template>
       </el-table-column>
邓春圆's avatar
邓春圆 committed
64
       <el-table-column :label="$t('最后修改时间')">
邓春圆's avatar
邓春圆 committed
65 66 67 68
         <template v-slot="{row}">
           {{parseTime(row.updateTime)}}
         </template>
       </el-table-column>
邓春圆's avatar
邓春圆 committed
69
       <el-table-column :label="$t('最后修改人')">
邓春圆's avatar
邓春圆 committed
70 71 72 73
         <template v-slot="{row}">
        {{getOperator(row.updater)}}
         </template>
       </el-table-column>
74 75 76 77
      <el-table-column label="有效期" v-slot="{row}" >
        {{parseTime(row.expireDate)}}
      </el-table-column>
      <el-table-column label="状态" v-slot="{row}" >
邓春圆's avatar
邓春圆 committed
78 79
        <span v-if="new Date(row.expireDate).getTime() >= new Date().getTime()">正常</span>
        <span v-else style="color: red" >已过期</span>
80
      </el-table-column>
邓春圆's avatar
邓春圆 committed
81 82
       <el-table-column :label="$t('备注')" prop="note"></el-table-column>
      <el-table-column :label="$t('操作')" align="center" class-name="small-padding fixed-width">
邓春圆's avatar
邓春圆 committed
83
        <template slot-scope="scope">
邓春圆's avatar
邓春圆 committed
84 85
          <el-button v-hasPermi="['ecw:exchange-rate:update']" size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)">{{$t('修改')}}</el-button>
          <el-button v-hasPermi="['ecw:exchange-rate:delete']" size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)">{{$t('删除')}}</el-button>
邓春圆's avatar
邓春圆 committed
86
          <el-button v-hasPermi="['ecw:exchange-rate:log']" size="mini" type="text"  @click="formLog.rows = 10;formLog.page=1; handleLog(scope.row)">{{$t('日志')}}</el-button>
邓春圆's avatar
邓春圆 committed
87

邓春圆's avatar
邓春圆 committed
88 89 90 91
        </template>
      </el-table-column>
    </el-table>
    <!-- 分页组件 -->
邓春圆's avatar
邓春圆 committed
92
    <pagination v-show="total > 0" :total="total" :page.sync="queryParams.page" :limit.sync="queryParams.rows"
邓春圆's avatar
邓春圆 committed
93 94 95 96
                @pagination="getList"/>

    <!-- 对话框(添加 / 修改) -->
    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
邓春圆's avatar
邓春圆 committed
97
      <el-form ref="form" :model="form" :rules="rules" label-width="100px">
邓春圆's avatar
邓春圆 committed
98 99
        <el-form-item :label="$t('币种1')" prop="sourceCurrencyId">
          <el-select  v-model="form.sourceCurrencyId"  :placeholder="$t('请选择币种')">
100
            <el-option  :disabled="dict.status === 1 || form.targetCurrencyId === dict.id" @click.native="() => form.sourceCurrencyCode = dict.fuhao"   v-for="dict in currencyList"
邓春圆's avatar
邓春圆 committed
101
                       :key="dict.id" :label="$l(dict,'title') + dict.fuhao" :value="dict.id" />
邓春圆's avatar
邓春圆 committed
102 103
          </el-select>
        </el-form-item>
邓春圆's avatar
邓春圆 committed
104
        <el-form-item :label="$t('币种2')" prop="targetCurrencyId">
邓春圆's avatar
邓春圆 committed
105
          <el-select v-model="form.targetCurrencyId" :placeholder="$t('请选择币种')">
106
            <el-option  :disabled="dict.status === 1 || form.sourceCurrencyId === dict.id"  @click.native="() => form.targetCurrencyCode = dict.fuhao" v-for="dict in currencyList"
邓春圆's avatar
邓春圆 committed
107
                       :key="dict.id" :label="$l(dict,'title') + dict.fuhao" :value="dict.id" />
邓春圆's avatar
邓春圆 committed
108 109
          </el-select>
        </el-form-item>
邓春圆's avatar
邓春圆 committed
110 111
        <el-form-item :label="$t('汇率')" prop="currencyRate">
          <el-input-number  class="el-input-number" :controls="false" v-model="form.currencyRate" :placeholder="$t('请输入汇率')" />
邓春圆's avatar
邓春圆 committed
112
          <p v-if="form.sourceCurrencyId &&  form.currencyRate && form.targetCurrencyCode"  style="margin: 0;">
邓春圆's avatar
邓春圆 committed
113
            {{$t('例子:')}}1{{getCurrency(form.sourceCurrencyId, true)}} = {{ 1 * form.currencyRate}}  {{getCurrency(form.targetCurrencyId, true)}}
邓春圆's avatar
邓春圆 committed
114
          </p>
邓春圆's avatar
邓春圆 committed
115
          <p v-else style="margin: 0;">
邓春圆's avatar
邓春圆 committed
116
            {{$t('例子:1RMB = 0.138611USD')}}
邓春圆's avatar
邓春圆 committed
117
          </p>
邓春圆's avatar
邓春圆 committed
118
        </el-form-item>
邓春圆's avatar
邓春圆 committed
119
        <el-form-item :label="$t('有效期')" prop="expireDate">
邓春圆's avatar
邓春圆 committed
120 121 122 123
          <el-date-picker v-model="form.expireDate" type="datetime" format="yyyy-MM-dd HH:mm:ss"  value-format="yyyy-MM-dd HH:mm:ss"  ></el-date-picker>
        </el-form-item>
        <el-form-item v-if="form.id" :label="$t('状态')">
          <div> {{status ? '已过期' : '正常'}}</div>
邓春圆's avatar
邓春圆 committed
124
        </el-form-item>
邓春圆's avatar
邓春圆 committed
125
        <el-form-item :label="$t('备注')">
邓春圆's avatar
邓春圆 committed
126
        <el-input type="textarea" v-model="form.note"></el-input>
邓春圆's avatar
邓春圆 committed
127
        </el-form-item>
邓春圆's avatar
邓春圆 committed
128
         <template v-if="form.id">
129
           <el-form-item :label="$t('创建人')">{{form.creatorName}}</el-form-item>
邓春圆's avatar
邓春圆 committed
130
           <el-form-item :label="$t('创建时间')">{{parseTime(form.createTime)}}</el-form-item>
邓春圆's avatar
邓春圆 committed
131
           <el-form-item :label="$t('最后更新时间')">{{parseTime(form.updateTime)}}</el-form-item>
邓春圆's avatar
邓春圆 committed
132
           <el-form-item :label="$t('最后更新人')">{{getOperator(form.updater)}}</el-form-item>
邓春圆's avatar
邓春圆 committed
133
         </template>
邓春圆's avatar
邓春圆 committed
134 135
      </el-form>
      <div slot="footer" class="dialog-footer">
邓春圆's avatar
邓春圆 committed
136 137
        <el-button type="primary" @click="submitForm">{{$t('确 定')}}</el-button>
        <el-button @click="cancel">{{$t('取 消')}}</el-button>
邓春圆's avatar
邓春圆 committed
138 139
      </div>
    </el-dialog>
邓春圆's avatar
邓春圆 committed
140 141
     <el-dialog :visible.sync="openLog" >
         <el-table :data="listLog">
邓春圆's avatar
邓春圆 committed
142 143
           <el-table-column :label="$t('修改人')" prop="changeName"></el-table-column>
           <el-table-column :label="$t('修改时间')">
邓春圆's avatar
邓春圆 committed
144 145 146 147
             <template v-slot="{row}">
                {{parseTime(row.createTime)}}
             </template>
           </el-table-column>
邓春圆's avatar
邓春圆 committed
148
           <el-table-column :label="$t('修改前内容')">
邓春圆's avatar
邓春圆 committed
149
             <template v-slot="{row}">
邓春圆's avatar
邓春圆 committed
150 151 152
                {{$t('币种1:')}}{{ getCurrencyLog(row.beforeChangeSourceValue, 'fuhao')}}<br/>
                {{$t('币种2:')}}{{getCurrencyLog(row.beforeChangeTargetValue, 'fuhao')}}<br/>
                {{$t('汇率:')}}{{row.beforeChangeValue}}<br/>
邓春圆's avatar
邓春圆 committed
153 154 155
             </template>
           </el-table-column>
         </el-table>
邓春圆's avatar
邓春圆 committed
156 157
       <pagination v-show="totalLog > 0" :total="totalLog" :page.sync="formLog.page" :limit.sync="formLog.rows"
                   @pagination="getListLog"/>
邓春圆's avatar
邓春圆 committed
158
     </el-dialog>
邓春圆's avatar
邓春圆 committed
159 160 161 162
  </div>
</template>

<script>
邓春圆's avatar
邓春圆 committed
163 164 165 166 167 168 169 170 171 172 173 174
import {
  createExchangeRate,
  updateExchangeRate,
  deleteExchangeRate,
  getExchangeRate,
  getExchangeRatePage,
  exportExchangeRateExcel,
  getExchangeRateLogList
} from "@/api/ecw/exchangeRate";
import {getCurrencyPage} from "@/api/ecw/currency";
import {listAllSimpl} from "@/api/system/user";
import Template from "@/views/cms/template/index.vue";
邓春圆's avatar
邓春圆 committed
175 176 177 178

export default {
  name: "ExchangeRate",
  components: {
邓春圆's avatar
邓春圆 committed
179
    Template
邓春圆's avatar
邓春圆 committed
180
  },
邓春圆's avatar
邓春圆 committed
181 182 183 184 185 186 187 188 189 190 191 192 193
  watch:{
    'query.targetCurrencyId'(val){
      if(!val){
        this.queryParams.targetCurrencyId = undefined
      }

    },
     'query.sourceCurrencyId'(val){
      if(!val){
        this.queryParams.sourceCurrencyId = undefined
      }
     }
  },
邓春圆's avatar
邓春圆 committed
194 195
  data() {
    return {
邓春圆's avatar
邓春圆 committed
196
      status:0,
邓春圆's avatar
邓春圆 committed
197 198 199 200
      currencyList:[],
      allSimplList:[],
      listLog:[],
      openLog:false,
邓春圆's avatar
邓春圆 committed
201
      // 遮罩层
邓春圆's avatar
邓春圆 committed
202
      loading:false,
邓春圆's avatar
邓春圆 committed
203 204 205 206 207 208 209 210 211 212 213 214 215 216 217
      // 导出遮罩层
      exportLoading: false,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 汇率管理列表
      list: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      dateRangeCreateTime: [],
      // 查询参数
      queryParams: {
邓春圆's avatar
邓春圆 committed
218 219
        page: 1,
        rows: 10,
邓春圆's avatar
邓春圆 committed
220 221 222
        sourceCurrencyId: null,
        targetCurrencyId: null,
      },
邓春圆's avatar
邓春圆 committed
223 224 225 226
      query:{
        sourceCurrencyId:null,
        targetCurrencyId:null,
      },
邓春圆's avatar
邓春圆 committed
227 228 229 230
      // 表单参数
      form: {},
      // 表单校验
      rules: {
邓春圆's avatar
邓春圆 committed
231 232 233 234 235
        sourceCurrencyId: [{ required: true, message: this.$t('币种1不能为空'), trigger: "change" }],
        sourceCurrencyCode: [{ required: true, message: this.$t('原币种代码不能为空'), trigger: "blur" }],
        targetCurrencyId: [{ required: true, message: this.$t('币种2不能为空'), trigger: "change" }],
        targetCurrencyCode: [{ required: true, message: this.$t('目标种代码不能为空'), trigger: "blur" }],
        currencyRate: [{ required: true, message: this.$t('汇率不能为空'), trigger: "blur" }],
邓春圆's avatar
邓春圆 committed
236
        expireDate: [{ required: true, message: this.$t('有效期不能为空'), trigger: "blur" }],
邓春圆's avatar
邓春圆 committed
237 238 239 240 241 242
      },
      formLog:{
        rows:10,
        page:1
      },
      totalLog: 0,
邓春圆's avatar
邓春圆 committed
243 244 245
    };
  },
  created() {
邓春圆's avatar
邓春圆 committed
246 247 248 249
    listAllSimpl().then(r => {
      this.allSimplList = r.data
    })
    getCurrencyPage({ pageNo: 1, pageSize: 1000,}).then(res => this.currencyList = res.data.list)
邓春圆's avatar
邓春圆 committed
250 251 252
    this.getList();
  },
  methods: {
邓春圆's avatar
邓春圆 committed
253 254 255
    change(val){
      console.log(val,'val')
    },
邓春圆's avatar
邓春圆 committed
256 257
    handleLog(row){
      this.openLog = true;
邓春圆's avatar
邓春圆 committed
258 259 260 261 262
      this.formLog.rateId = row.id
      this.getListLog()
    },
    getListLog(){
      getExchangeRateLogList(this.formLog).then(r => {
邓春圆's avatar
邓春圆 committed
263 264
        this.listLog = r.data.list;
        this.totalLog = r.data.total;
邓春圆's avatar
邓春圆 committed
265 266
      })
    },
邓春圆's avatar
邓春圆 committed
267

邓春圆's avatar
邓春圆 committed
268 269 270 271 272 273 274
    getOperator(val){
      if (val){
       let n = this.allSimplList.find(i => i.id == val)
        return n?.nickname
      }
      return ''
    },
275
    getCurrency(val, isEn = false , value = 'id'){
邓春圆's avatar
邓春圆 committed
276
      if (val){
277
       let r =  this.currencyList.find(i => i[value] === val)
邓春圆's avatar
邓春圆 committed
278 279 280 281 282 283 284 285 286
        if(isEn){
          return r?.titleEn
        }else {
          return  r?.titleZh +   `(${r?.titleEn})`
        }

      }
      return ''
    },
邓春圆's avatar
邓春圆 committed
287 288 289 290 291 292 293 294
    getCurrencyLog(val, value = 'fuhao'){
      if (val){
       let r =  this.currencyList.find(i => i[value] === val)

        return this.$l(r,'title')
      }
      return ''
    },
邓春圆's avatar
邓春圆 committed
295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314
    /** 查询列表 */
    getList() {
      this.loading = true;
      // 处理查询参数
      let params = {...this.queryParams};
      // 执行查询
      getExchangeRatePage(params).then(response => {
        this.list = response.data.list;
        this.total = response.data.total;
        this.loading = false;
      });
    },
    /** 取消按钮 */
    cancel() {
      this.open = false;
      this.reset();
    },
    /** 表单重置 */
    reset() {
      this.form = {
邓春圆's avatar
邓春圆 committed
315 316 317 318 319 320 321
        "currencyRate": "",
        "note": "",
        "sourceCurrencyCode": "",
        "sourceCurrencyId":'' ,
        "targetCurrencyCode": "",
        "targetCurrencyId": '',
        id: null,
邓春圆's avatar
邓春圆 committed
322
        expireDate:""
邓春圆's avatar
邓春圆 committed
323 324 325
      };
      this.resetForm("form");
    },
邓春圆's avatar
邓春圆 committed
326 327 328 329
    secondarySelection(){
      this.queryParams.targetCurrencyId = this.query.targetCurrencyId
      this.queryParams.sourceCurrencyId = this.query.sourceCurrencyId
    },
邓春圆's avatar
邓春圆 committed
330 331
    /** 搜索按钮操作 */
    handleQuery() {
332
      this.queryParams.page = 1;
邓春圆's avatar
邓春圆 committed
333
     this.secondarySelection()
邓春圆's avatar
邓春圆 committed
334 335 336 337
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
邓春圆's avatar
邓春圆 committed
338 339 340 341 342 343 344
      // this.dateRangeCreateTime = [];
      // this.resetForm("queryForm");
      // this.handleQuery();
      this.query.targetCurrencyId = undefined
      this.query.sourceCurrencyId = undefined
      this.secondarySelection() //清空选中目标
      this.getList();
邓春圆's avatar
邓春圆 committed
345 346 347 348 349
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.open = true;
邓春圆's avatar
邓春圆 committed
350
      this.title = this.$t('新增');
邓春圆's avatar
邓春圆 committed
351 352 353 354 355 356
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.reset();
      const id = row.id;
      getExchangeRate(id).then(response => {
邓春圆's avatar
邓春圆 committed
357
        this.form = {...this.form,...response.data};
邓春圆's avatar
邓春圆 committed
358
        this.form.expireDate = this.parseTime(this.form.expireDate);
邓春圆's avatar
邓春圆 committed
359 360 361 362 363 364 365 366 367 368

        if(this.form.expireDate){
          if(new Date(this.form.expireDate).getTime() >= new Date().getTime()){
            this.status = 0
          }else {
            this.status = 1
          }
        }else {
          this.status = 1
        }
邓春圆's avatar
邓春圆 committed
369
        this.open = true;
邓春圆's avatar
邓春圆 committed
370
        this.title = this.$t('修改');
邓春圆's avatar
邓春圆 committed
371 372 373 374 375 376 377 378 379 380
      });
    },
    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate(valid => {
        if (!valid) {
          return;
        }
        // 修改的提交
        if (this.form.id != null) {
邓春圆's avatar
邓春圆 committed
381 382 383
          let p = {
            currencyRate: Number(this.form.currencyRate),
            id: this.form.id,
邓春圆's avatar
邓春圆 committed
384
            note: this.form.note,
邓春圆's avatar
邓春圆 committed
385 386 387
            sourceCurrencyCode: this.form.sourceCurrencyCode,
            sourceCurrencyId: this.form.sourceCurrencyId ,
            targetCurrencyCode:  this.form.targetCurrencyCode,
邓春圆's avatar
邓春圆 committed
388
            targetCurrencyId:  this.form.targetCurrencyId,
邓春圆's avatar
邓春圆 committed
389
            expireDate:this.form.expireDate
邓春圆's avatar
邓春圆 committed
390

邓春圆's avatar
邓春圆 committed
391 392
          }
          updateExchangeRate(p).then(response => {
邓春圆's avatar
邓春圆 committed
393
            this.$modal.msgSuccess(this.$t('修改成功'));
邓春圆's avatar
邓春圆 committed
394 395 396 397 398 399 400
            this.open = false;
            this.getList();
          });
          return;
        }
        // 添加的提交
        createExchangeRate(this.form).then(response => {
邓春圆's avatar
邓春圆 committed
401
          this.$modal.msgSuccess(this.$t('新增成功'));
邓春圆's avatar
邓春圆 committed
402 403 404 405 406 407 408 409
          this.open = false;
          this.getList();
        });
      });
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      const id = row.id;
邓春圆's avatar
邓春圆 committed
410
      this.$modal.confirm(this.$t('是否确认删除汇率管理编号为"') + id + this.$t('"的数据项?')).then(function() {
邓春圆's avatar
邓春圆 committed
411 412 413
          return deleteExchangeRate(id);
        }).then(() => {
          this.getList();
邓春圆's avatar
邓春圆 committed
414
          this.$modal.msgSuccess(this.$t('删除成功'));
邓春圆's avatar
邓春圆 committed
415 416 417 418 419 420
        }).catch(() => {});
    },
    /** 导出按钮操作 */
    handleExport() {
      // 处理查询参数
      let params = {...this.queryParams};
421 422
      params.page = undefined;
      params.rows = undefined;
邓春圆's avatar
邓春圆 committed
423 424
      this.addBeginAndEndTime(params, this.dateRangeCreateTime, 'createTime');
      // 执行导出
邓春圆's avatar
邓春圆 committed
425
      this.$modal.confirm(this.$t('是否确认导出所有汇率管理数据项?')).then(() => {
邓春圆's avatar
邓春圆 committed
426 427 428
          this.exportLoading = true;
          return exportExchangeRateExcel(params);
        }).then(response => {
邓春圆's avatar
邓春圆 committed
429
          // this.$download.excel(response, '${table.classComment}.xls');
邓春圆's avatar
邓春圆 committed
430 431 432 433 434 435
          this.exportLoading = false;
        }).catch(() => {});
    }
  }
};
</script>
邓春圆's avatar
邓春圆 committed
436 437 438 439 440 441 442
<style lang="scss" scoped>
 ::v-deep.el-input-number{
    .el-input__inner{
      text-align: left;
    }
 }
</style>