| | |
| | | </div> |
| | | <div> |
| | | <el-button size="small" type="primary" @click="openAdd" v-if="addPower">新增</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' v-if="upPower" |
| | | :on-success="handleSuccessUp" style="display:inline-block;margin-left: 20px;"> |
| | | <el-button type="primary" size="small">导入</el-button></el-upload> |
| | | <el-button v-if="upPower" type="primary" size="small" style="margin-left: 20px" @click="$refs.importDialog.open()">导入</el-button> |
| | | </div> |
| | | </div> |
| | | <div class="table"> |
| | |
| | | <el-button type="primary" @click="submitCheck('通过')" :loading="checkLoading">通 过</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 行开始填写', '适宜性填写“适宜 / 不适宜”或“√ / ×”']" |
| | | @success="refreshTable" |
| | | /> |
| | | </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 { |
| | | exportOutManageRecordIntervals, |
| | | addManageRecordIntervals, |
| | |
| | | name: 'RegularReviewsRecord', |
| | | components: { |
| | | limsTable, |
| | | filePreview |
| | | filePreview, |
| | | ImportDialog |
| | | }, |
| | | data() { |
| | | return { |