loulijun2021
2023-06-03 f1ee5a9bc88eff3a75245569e091fe352a452922
src/components/ImportPicker/index.vue
@@ -1,5 +1,6 @@
<template>
  <el-dialog
    v-el-drag-dialog
    :visible.sync="visible"
    :title="title"
    :code="code"
@@ -45,10 +46,10 @@
          :before-upload="beforeUpload"
          :data="{FileCode:code}"
        >
          <el-button class="but_style" icon="el-icon-upload2" size="small" :style="{color:$store.state.settings.theme}">{{ button_name }}</el-button>
          <el-button v-waves class="but_style" icon="el-icon-upload2" size="small" :style="{color:$store.state.settings.theme}">{{ button_name }}</el-button>
        </el-upload>
        请点击
        <el-button type="text" style="font-size: 14px;cursor: pointer" icon="el-icon-download" @click="clickDown(code)">下载数据模版</el-button>
        <el-button v-waves type="text" style="font-size: 14px;cursor: pointer" icon="el-icon-download" @click="clickDown(code)">下载数据模版</el-button>
        , 并按照模版编辑导入数据
      </div>
      <p v-if="div1" style="margin:0 85px 5px">{{ file_name }}</p>
@@ -116,8 +117,9 @@
      </div>
    </div>
    <span slot="footer" class="dialog-footer" style="display: flex;">
      <el-button v-if="button_text !=&quot;完成&quot;" @click="colos()">取 消</el-button>
      <el-button v-if="button_text !=&quot;完成&quot;" v-waves @click="colos()">取 消</el-button>
      <el-button
        v-waves
        type="primary"
        class="button_style"
        :disabled="disState"
@@ -129,8 +131,11 @@
<script>
import { DownLoadExcel, ExcelCheckData, ExcelImportSubmit, ExcelModelCheck } from '@/api/Excel'
import elDragDialog from '@/directive/el-drag-dialog'
import waves from '@/directive/waves'
export default {
  directives: { elDragDialog, waves },
  props: {
    code: {
      type: String,