吴羡
7 小时以前 9862248787934f4242ac9636e0c4d5b8ee0870b8
src/views/CNAS/systemManagement/documentRecords/outDocumenRecordt.vue
@@ -5,10 +5,7 @@
      <el-tab-pane label="填写" name="填写" style="height: 100%;">
        <div style="display: flex;align-items: center;justify-content: flex-end;margin-bottom: 10px">
          <el-button size="small" type="primary" @click="openAdd('新增')" style="margin-left: 20px;">新增</el-button>
          <el-upload :action="action" :multiple="false" :show-file-list="false" accept='.doc,.docx'
            :headers="uploadHeader" :on-change="beforeUpload" :on-error="onError" ref='upload'
            :on-success="handleSuccessUp" style="display:inline-block;margin-left: 20px;">
            <el-button size="small" type="primary" :loading="upLoading">导入</el-button></el-upload>
          <el-button size="small" type="primary" style="margin-left: 20px" @click="$refs.importDialog.open()">导入</el-button>
        </div>
        <lims-table :tableData="tableData0" :column="column0" :page="page0" :tableLoading="tableLoading0"
                    :height="'calc(100vh - 290px)'" @pagination="pagination0"></lims-table>
@@ -79,12 +76,23 @@
        <el-button :loading="uploading" type="primary" @click="submitProduct('addForm')">确 认</el-button>
      </span></template>
    </el-dialog>
    <import-dialog
      ref="importDialog"
      title="导入外来文件确认"
      :action="action"
      accept=".doc,.docx"
      template-url="/import-templates/外来文件确认导入模板.docx"
      template-name="外来文件确认导入模板.docx"
      :tips="['请勿删除表头或增删列,数据从第 2 行开始填写', '生效日期、作废日期格式:YYYY-MM-DD']"
      @success="getList0"
    />
  </div>
</template>
<script>
import limsTable from "@/components/Table/lims-table.vue";
import filePreview from '@/components/Preview/filePreview.vue'
import ImportDialog from '@/components/ImportDialog/index.vue'
import {
  addManageRecordVerify,
  pageManageRecordVerify,
@@ -99,6 +107,7 @@
  components: {
    filePreview,
    limsTable,
    ImportDialog,
  },
  data() {
    return {