| | |
| | | <el-form-item > |
| | | <el-button v-if="isAdmin" type="primary" @click="getList">查询</el-button> |
| | | <el-button v-if="isAdmin" type="primary" plain @click="reset">重置</el-button> |
| | | <el-button type="primary" @click="initDistribute">生成智能分配表</el-button> |
| | | <el-button type="primary" @click="initDistribute">生成职能分配表</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | |
| | | tableData.tableData = sortResponsibilities(res.data.sysDeptResponsibilitys.map(i=>{ |
| | | return { |
| | | ...i, |
| | | leader: i.leader || '', |
| | | evidenceMaterials: i.evidenceMaterials || '', |
| | | managementDocuments: i.managementDocuments || '', |
| | | technicalDocuments: i.technicalDocuments || '', |
| | |
| | | } |
| | | })) |
| | | }else{ |
| | | tableData.tableData = [...data.firstFive,...res.data.sysDeptResponsibilitys.map(i=>{ |
| | | tableData.tableData = [...data.firstFive,...res.data.sysDeptResponsibilitys,...data.lastTwo].map(i=>{ |
| | | return { |
| | | ...i, |
| | | leader: i.leader || '', |
| | | evidenceMaterials: i.evidenceMaterials || '', |
| | | managementDocuments: i.managementDocuments || '', |
| | | technicalDocuments: i.technicalDocuments || '', |
| | | existingRecords: i.existingRecords || '', |
| | | } |
| | | }),...data.lastTwo] |
| | | }) |
| | | } |
| | | return tableData |
| | | }else{ |