| | |
| | | <template> |
| | | <div class="mod-config"> |
| | | <basic-container> |
| | | <ttable |
| | | :table="table" |
| | | @handleSelectionChange="handleSelectionChange" |
| | | @tableRowClassName="tableRowClassName" |
| | | :prelang="prelang" |
| | | :options="options" |
| | | :ajaxFun="ajaxFun" |
| | | ref="documentTable" |
| | | > |
| | | <ttable :table="table" @handleSelectionChange="handleSelectionChange" @tableRowClassName="tableRowClassName" |
| | | :prelang="prelang" :options="options" :ajaxFun="ajaxFun" ref="documentTable"> |
| | | <template #toolbar> |
| | | <!-- <el-button |
| | | type="primary" |
| | |
| | | > --> |
| | | </template> |
| | | </ttable> |
| | | <el-dialog |
| | | title="导入" |
| | | :visible.sync="importTestStandardVisible" |
| | | width="50%" |
| | | > |
| | | <el-dialog title="导入" :visible.sync="importTestStandardVisible" width="50%"> |
| | | <div> |
| | | <el-upload |
| | | style="margin-left:8px;display: inline;" |
| | | class="upload-demo" |
| | | drag |
| | | :headers="headers" |
| | | :action="testStandardUploadInfo.url" |
| | | :beforeUpload="beforeAvatarUpload" |
| | | :limit="1" |
| | | :show-file-list="false" |
| | | :file-list="testStandardFileList" |
| | | :on-success="testStandardFileSuccessUploadScan" |
| | | :on-error="handleError" |
| | | <el-upload style="margin-left:8px;display: inline;" class="upload-demo" drag :headers="headers" |
| | | :action="testStandardUploadInfo.url" :beforeUpload="beforeAvatarUpload" :limit="1" :show-file-list="false" |
| | | :file-list="testStandardFileList" :on-success="testStandardFileSuccessUploadScan" :on-error="handleError" |
| | | accept=".xlsx,.xls,.csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" |
| | | :auto-upload="true" |
| | | ref="testStandardUploadScan" |
| | | multiple |
| | | > |
| | | :auto-upload="true" ref="testStandardUploadScan" multiple> |
| | | <i class="el-icon-upload"></i> |
| | | <div class="el-upload__text"><em>导入数据</em></div> |
| | | <div class="el-upload__tip" slot="tip"> |
| | | 只能上传xlsx/xls文件,且不超过10M<el-button |
| | | type="text" |
| | | style="font-size:12px;" |
| | | @click="downTestStandardDataTemplate" |
| | | >下载模板</el-button |
| | | > |
| | | 只能上传xlsx/xls文件,且不超过10M<el-button type="text" style="font-size:12px;" |
| | | @click="downTestStandardDataTemplate">下载模板</el-button> |
| | | </div> |
| | | </el-upload> |
| | | </div> |
| | |
| | | return |
| | | } |
| | | this.$router.push({ |
| | | name: 'documentForm', |
| | | path: '/technology/document/document-form', |
| | | query: { id: row == null ? null : row.id } |
| | | }) |
| | | }, |