| | |
| | | <el-col :span="7" v-if="!isLook"> |
| | | <div style="display: flex;align-items: center;justify-content: flex-end;" class="btns"> |
| | | <el-button type="primary" size="small" @click="addList(allBandList,'频段')" :disabled="state>1" style="margin: 4px;">添加频段</el-button> |
| | | <el-button size="small" @click="deleteList(allBandList.length-1,allBandList,'删除频段')" :disabled="state>1" style="margin: 4px;">删除频段</el-button> |
| | | <el-button type="primary" size="small" @click="addList(angleList)" v-if="!(state>1)&&intermodulationNum>0" style="margin: 4px;">添加角度</el-button> |
| | | <el-button size="small" @click="deleteList(angleList.length-1,angleList)" v-if="!(state>1)&&intermodulationNum>0" style="margin: 4px;">删除角度</el-button> |
| | | <el-button type="success" size="small" @click="addList(angleList)" v-if="!(state>1)&&intermodulationNum>0" style="margin: 4px;">添加角度</el-button> |
| | | <el-button size="small" @click="deleteList(angleList.length-1,angleList)" v-if="!(state>1)&&intermodulationNum>0" style="margin: 4px;" type="danger">删除角度</el-button> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | <el-button size="small" @click="deleteList(y,allBandList,'删除频段')" :disabled="state>1" style="margin-left: 16px;" type="danger">删除频段</el-button> |
| | | <el-button type="primary" size="small" @click="addList(h.projectList,'互调')" style="margin-left: 16px;" v-if="intermodulationNum>0&&!(state>1)">添加互调</el-button> |
| | | <el-button size="small" @click="deleteList(0,h.projectList,'互调')" v-if="intermodulationNum>0&&!(state>1)">删除互调</el-button> |
| | | <!-- <el-button size="small" @click="deleteList(0,h.projectList,'互调')" v-if="intermodulationNum>0&&!(state>1)">删除互调</el-button> --> |
| | | <el-button type="primary" size="small" @click="save(h,y)" :disabled="state>1" :loading="loading[y]" style="margin-left: 16px;" v-show="!isLook">保 存</el-button> |
| | | </div> |
| | | <el-divider></el-divider> |
| | |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | <el-button type="danger" icon="el-icon-delete" circle size="small" @click="deleteList(j,h.projectList,'互调')" :disabled="state>1" v-show="!isLook&&intermodulationNum>0" style="margin-left: 20px;"></el-button> |
| | | </div> |
| | | </td> |
| | | </tr> |
| | |
| | | this.upTemplateState = false |
| | | if(list.length>1){ |
| | | if(type=='互调'){ |
| | | let index = null; |
| | | // let index = null; |
| | | let num = 0; |
| | | list.forEach((m,i)=>{ |
| | | if(m.inspectionItemSubclass.includes('互调')){ |
| | | index = i; |
| | | // index = i; |
| | | num++ |
| | | } |
| | | }) |