吴羡
6 小时以前 9862248787934f4242ac9636e0c4d5b8ee0870b8
src/views/CNAS/systemManagement/documentRecords/cancellationRecord.vue
@@ -20,10 +20,7 @@
      </div>
      <div>
        <el-button size="small" type="primary" @click="openAdd">新增</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: 0 8px;">
          <el-button type="primary" size="small">导入</el-button></el-upload>
        <el-button type="primary" size="small" style="margin: 0 8px" @click="$refs.importDialog.open()">导入</el-button>
        <el-button size="small" type="primary" @click="handleDown" :loading="outLoading">导出</el-button>
      </div>
    </div>
@@ -80,11 +77,22 @@
        <el-button type="primary" @click="handleAdd" :loading="addLoading">确 定</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="refreshTable"
    />
  </div>
</template>
<script>
import limsTable from "@/components/Table/lims-table.vue";
import ImportDialog from '@/components/ImportDialog/index.vue'
import {
  selectUserCondition,
} from "@/api/business/inspectionTask.js";
@@ -102,7 +110,8 @@
export default {
  name: 'CancellationRecord',
  components: {
    limsTable
    limsTable,
    ImportDialog
  },
  data() {
    return {