| | |
| | | >新增</el-button> |
| | | </el-form-item> |
| | | <el-form-item label="企业名称:" v-if="data.isAdmin" style="margin-left: 20px"> |
| | | <el-select v-model="data.queryParams.companyId" placeholder="请选择" clearable> |
| | | <el-select v-model="data.queryParams.companyId" placeholder="请选择" filterable clearable> |
| | | <el-option |
| | | v-for="item in data.companyList" |
| | | :key="item.id" |
| | |
| | | let name = '' |
| | | data.forEach(item => { |
| | | name = '' |
| | | console.log('item',item) |
| | | if(item.type == 1){ |
| | | templatePath.value = '/tableCompanyExample.docx' |
| | | name = item.companyName |
| | |
| | | const month = (now.getMonth() +1).toString().padStart(2, '0'); |
| | | item.nowDate = year + '-' + month |
| | | item.tableData = item.qualityTargets.map((i,index) => { |
| | | return { |
| | | return{ |
| | | ...i, |
| | | nuum: index+1 |
| | | qualityTargetMesses: i.qualityTargetMesses.map((q,qindex) => { |
| | | return{ |
| | | ...q, |
| | | first: qindex == 0, |
| | | nuum: index+1 |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | try { |