|
@@ -228,6 +228,9 @@
|
|
|
<template slot="searchBtn2">
|
|
|
<el-button type="primary" @click="benchmarkEditShow=true">筛选编辑</el-button>
|
|
|
</template>
|
|
|
+ <template slot="searchBtn2">
|
|
|
+ <el-button type="primary" @click="coverFindHandle">查询覆盖率-前置</el-button>
|
|
|
+ </template>
|
|
|
</search-layout>
|
|
|
<tableList
|
|
|
ref="table"
|
|
@@ -393,6 +396,29 @@
|
|
|
<el-button type="primary" @click="editUpdate">更新</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+ <!-- 覆盖率查询 -->
|
|
|
+ <el-dialog
|
|
|
+ title="覆盖率前置查询"
|
|
|
+ :visible.sync="coveRateShow"
|
|
|
+ width="820px"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ :close-on-press-escape="false"
|
|
|
+ >
|
|
|
+ <div style="margin-bottom: 20px;">前置覆盖率查询结果:{{ coverMap[coverRunStatus]}}</div>
|
|
|
+ <el-form
|
|
|
+s ref="coverInfo"
|
|
|
+ label-width="130px"
|
|
|
+ style="display: flex; flex-wrap: wrap; justify-content: space-between;"
|
|
|
+ >
|
|
|
+ <el-form-item v-for="(item,idx) in coverInfo" :label="item.sceneBaseName || ''" :key="idx">
|
|
|
+ <el-input :value="item.sceneNums || ''" :disabled="true"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <div style="width: 100%; display: flex; justify-content: center">
|
|
|
+ <el-button :disabled="coverRunStatus=='20'" type="primary" @click="executeAgainHandle">重新执行</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
<benchmark-edit v-if="benchmarkEditShow" @closeHandle="editCloseHandle"></benchmark-edit>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -407,6 +433,14 @@ export default {
|
|
|
components: { searchLayout, tableList,benchmarkEdit },
|
|
|
data() {
|
|
|
return {
|
|
|
+ coverMap :{
|
|
|
+ '20':'执行中',
|
|
|
+ "30":'执行完成',
|
|
|
+ '10':'待执行'
|
|
|
+ },
|
|
|
+ coveRateShow:false, // 查询覆盖率显示
|
|
|
+ coverInfo:[], // 覆盖率查询数据
|
|
|
+ coverRunStatus:0, // 执行状态
|
|
|
benchmarkEditShow:false,
|
|
|
//搜索参数
|
|
|
searchParams: {
|
|
@@ -576,6 +610,28 @@ export default {
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
+ coverFindHandle(){
|
|
|
+ this.coverInfo = []
|
|
|
+ this.coveRateShow = true
|
|
|
+ this.$axios({
|
|
|
+ method: 'get',
|
|
|
+ url: this.$api.sceneLibrary.queryCoverInfo,
|
|
|
+ }).then(res=>{
|
|
|
+ this.coverRunStatus = res.info.statusCode
|
|
|
+ this.coverInfo = res.info.baseSceneKeysNumsVos || []
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 重新执行
|
|
|
+ executeAgainHandle(){
|
|
|
+ this.$axios({
|
|
|
+ method: 'post',
|
|
|
+ url: this.$api.sceneLibrary.executeCoverStatus,
|
|
|
+ }).then(res=>{
|
|
|
+ (res.message || '').indexOf('失败') ==-1? this.$message.success(res.message || '操作成功') :
|
|
|
+ this.$message.error(res.message || '查询失败')
|
|
|
+ this.coveRateShow = false
|
|
|
+ })
|
|
|
+ },
|
|
|
// 编辑弹窗更新
|
|
|
editUpdate() {
|
|
|
this.$axios({
|