| | |
| | | } |
| | | choosedData.value = [] |
| | | data.companyList = []; |
| | | getCompanyList() |
| | | }else { |
| | | data.queryParams = { |
| | | companyId: data.queryParams.companyId, |
| | |
| | | } |
| | | } |
| | | getList(); |
| | | getCompanyList() |
| | | |
| | | } |
| | | const exportData = () => { |
| | | if(choosedData.value && choosedData.value.length === 0){ |
| | |
| | | const year = now.getFullYear() |
| | | const month = (now.getMonth() +1).toString().padStart(2, '0'); |
| | | item.nowDate = year + '-' + month |
| | | item.year = year |
| | | item.tableData = item.qualityTargets |
| | | item.tableData = item.qualityTargets.map((i,index) => { |
| | | return { |
| | | ...i, |
| | | nuum: index+1 |
| | | } |
| | | }) |
| | | try { |
| | | generateWordDocument(templatePath.value, item, name+'_质量目标分解表.docx'); |
| | | } catch (error){ |