|
|
|
@ -175,10 +175,11 @@ |
|
|
|
</el-dialog> |
|
|
|
</el-dialog> |
|
|
|
<!-- 导入 --> |
|
|
|
<!-- 导入 --> |
|
|
|
<basic-import v-if="isShowImport" title="导入" :isShow="isShowImport" |
|
|
|
<basic-import v-if="isShowImport" title="导入" :isShow="isShowImport" |
|
|
|
|
|
|
|
showTips="请上传 .xls,.xlsx 标准格式文件,请导入数据后维护试验周期!" |
|
|
|
templateUrl="/blade-desk/QA/CycleTest/download-excel-template" |
|
|
|
templateUrl="/blade-desk/QA/CycleTest/download-excel-template" |
|
|
|
templateName="试验项目周期模板.xlsx" |
|
|
|
templateName="试验项目周期模板.xlsx" |
|
|
|
importUrl="/blade-desk/QA/CycleTest/import-excel" |
|
|
|
importUrl="/blade-desk/QA/CycleTest/import-excel" |
|
|
|
@closeDialog="closeDialog"></basic-import> |
|
|
|
@closeDialog="closeDialog"></basic-import> |
|
|
|
</basic-container> |
|
|
|
</basic-container> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
@ -409,6 +410,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
closeDialog(){ |
|
|
|
closeDialog(){ |
|
|
|
this.showDialog = false; |
|
|
|
this.showDialog = false; |
|
|
|
|
|
|
|
this.isShowImport = false |
|
|
|
this.onLoad(this.page) |
|
|
|
this.onLoad(this.page) |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 点击详情按钮 |
|
|
|
// 点击详情按钮 |
|
|
|
@ -475,6 +477,9 @@ export default { |
|
|
|
if (this.selectionList.length == 0) { |
|
|
|
if (this.selectionList.length == 0) { |
|
|
|
this.$message.error('请至少选择一条数据!'); |
|
|
|
this.$message.error('请至少选择一条数据!'); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
this.cycleForm = {} |
|
|
|
|
|
|
|
this.cycleMonthTags = [] |
|
|
|
|
|
|
|
this.cycleYearTags = [] |
|
|
|
this.cycleDialog = true |
|
|
|
this.cycleDialog = true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
@ -625,6 +630,13 @@ export default { |
|
|
|
isPutOff:this.cycleForm.isPutOff ? 1 : 0, |
|
|
|
isPutOff:this.cycleForm.isPutOff ? 1 : 0, |
|
|
|
} |
|
|
|
} |
|
|
|
console.log('params===============',params) |
|
|
|
console.log('params===============',params) |
|
|
|
|
|
|
|
setCycleBat(params).then(res =>{ |
|
|
|
|
|
|
|
if(res.data.code == 200){ |
|
|
|
|
|
|
|
this.$message.success('设置成功') |
|
|
|
|
|
|
|
this.cycleDialog = false |
|
|
|
|
|
|
|
this.onLoad(this.page) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|