| | |
| | | <el-button type="primary" size="small" @click="addFun">新 增</el-button> |
| | | <el-button type="primary" size="small" @click="approvalFun">审 批</el-button> |
| | | <el-button type="primary" size="small" @click="approveFun">批 准</el-button> |
| | | <el-upload style="display: inline-block; padding: 0 6px" :headers="headers" :action="action" :on-error="onError" |
| | | :show-file-list="false" :on-success="onSuccess"> |
| | | <el-upload style="display: inline-block; padding: 0 6px" :headers="uploadHeader" :action="action" |
| | | :on-error="onError" :show-file-list="false" :on-success="onSuccess"> |
| | | <el-button size="small" type="primary">导 入</el-button> |
| | | </el-upload> |
| | | <el-button size="small" @click="openDownloadDia">导出</el-button> |
| | | </div> |
| | | </div> |
| | | <el-table :data="tableData" style="width: 100%" height="calc(100vh - 18em)"> |
| | | <el-table :data="tableData" style="width: 100%" height="calc(100vh - 18em)" key="table1"> |
| | | <el-table-column type="index" label="序号" width="120"> |
| | | <template v-slot="scope"> |
| | | <span>{{ (page.current - 1) * page.size + scope.$index + 1 }}</span> |
| | |
| | | page: { |
| | | total: 0, |
| | | size: 10, |
| | | current: 0, |
| | | current: 1, |
| | | }, |
| | | tableData: [], |
| | | loading: false |
| | | } |
| | | }, |
| | | computed: { |
| | | headers() { |
| | | return { |
| | | 'Authorization': "Bearer " + getToken() |
| | | } |
| | | }, |
| | | action() { |
| | | return this.javaApi + '/manageRiskAssessmentResults/riskAssessmentImport' |
| | | }, |