fix(接口测试): 修复接口测试首页跳转的问题
--bug=1019766 --user=宋天阳 【接口测试】首页-接口用例数量统计,本周新增用例数量跳转,显示了非本周新增的用例 https://www.tapd.cn/55049933/s/1300082
This commit is contained in:
parent
589760a832
commit
bbde7fd034
|
@ -331,6 +331,9 @@ export default {
|
||||||
this.$warning(this.$t('commons.check_project_tip'));
|
this.$warning(this.$t('commons.check_project_tip'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (!this.currentModule) {
|
||||||
|
this.$error(this.$t('test_track.case.input_module'));
|
||||||
|
}
|
||||||
this.$refs.basisScenario.open(this.currentModule);
|
this.$refs.basisScenario.open(this.currentModule);
|
||||||
},
|
},
|
||||||
enableTrash() {
|
enableTrash() {
|
||||||
|
|
|
@ -842,7 +842,7 @@ export default {
|
||||||
this.condition.selectThisWeedData = false;
|
this.condition.selectThisWeedData = false;
|
||||||
this.condition.id = null;
|
this.condition.id = null;
|
||||||
this.condition.redirectFilter = null;
|
this.condition.redirectFilter = null;
|
||||||
if (this.selectDataRange == 'thisWeekCount') {
|
if (this.selectDataRange == 'createdInWeek') {
|
||||||
this.condition.selectThisWeedData = true;
|
this.condition.selectThisWeedData = true;
|
||||||
} else if (
|
} else if (
|
||||||
this.selectDataRange === 'executionPassCount' ||
|
this.selectDataRange === 'executionPassCount' ||
|
||||||
|
|
|
@ -5,15 +5,15 @@
|
||||||
{{ title }}
|
{{ title }}
|
||||||
</span>
|
</span>
|
||||||
<div style="margin-top: 4px; height: 40px">
|
<div style="margin-top: 4px; height: 40px">
|
||||||
<span v-if="isExecuteInfo" class="addition-num">{{ countData.executedTimesInWeek }}</span>
|
<span v-if="isExecuteInfo" class="addition-num">{{ formatAmount(countData.executedTimesInWeek) }}</span>
|
||||||
<span v-else class="main-num">{{ countData.total }}</span>
|
<span v-else class="main-num">{{ formatAmount(countData.total) }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top: 32px">
|
<div style="margin-top: 32px">
|
||||||
<div v-if="isExecuteInfo">
|
<div v-if="isExecuteInfo">
|
||||||
<span class="main-info-card-title">{{ $t('home.dashboard.public.executed_times') }}</span>
|
<span class="main-info-card-title">{{ $t('home.dashboard.public.executed_times') }}</span>
|
||||||
<div class="common-amount">
|
<div class="common-amount">
|
||||||
<span class="addition-num">
|
<span class="addition-num">
|
||||||
{{ countData.executedTimes }}
|
{{ formatAmount(countData.executedTimes) }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
class="common-amount-button"
|
class="common-amount-button"
|
||||||
v-permission-disable="linkPermission"
|
v-permission-disable="linkPermission"
|
||||||
@click="redirect('createdInWeek')">
|
@click="redirect('createdInWeek')">
|
||||||
+{{ countData.createdInWeek }}
|
+{{ formatAmount(countData.createdInWeek) }}
|
||||||
<img class="main-info-card-right" src="/assets/figma/icon_right_outlined.svg" alt="" />
|
<img class="main-info-card-right" src="/assets/figma/icon_right_outlined.svg" alt="" />
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
class="common-amount-button"
|
class="common-amount-button"
|
||||||
v-permission-disable="linkPermission"
|
v-permission-disable="linkPermission"
|
||||||
@click="redirect('fakeError')">
|
@click="redirect('fakeError')">
|
||||||
{{ countData.fakeErrorCount }}
|
{{ formatAmount(countData.fakeErrorCount) }}
|
||||||
<img class="main-info-card-right" src="/assets/figma/icon_right_outlined.svg" alt="" />
|
<img class="main-info-card-right" src="/assets/figma/icon_right_outlined.svg" alt="" />
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -51,6 +51,8 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { formatNumber } from '@/api/home';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'MainInfoCard',
|
name: 'MainInfoCard',
|
||||||
props: {
|
props: {
|
||||||
|
@ -65,6 +67,9 @@ export default {
|
||||||
redirect(seletDataType) {
|
redirect(seletDataType) {
|
||||||
this.$emit('redirectPage', this.redirectPageName, this.redirectDataType, seletDataType, null);
|
this.$emit('redirectPage', this.redirectPageName, this.redirectDataType, seletDataType, null);
|
||||||
},
|
},
|
||||||
|
formatAmount(param) {
|
||||||
|
return formatNumber(param);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -95,10 +95,10 @@ export default {
|
||||||
borderWidth = 3;
|
borderWidth = 3;
|
||||||
dataIsNotEmpty = true;
|
dataIsNotEmpty = true;
|
||||||
protocolData = [
|
protocolData = [
|
||||||
{ value: this.apiData.httpCount, name: 'HTTP' },
|
{ value: this.formatAmount(this.apiData.httpCount), name: 'HTTP' },
|
||||||
{ value: this.apiData.rpcCount, name: 'RPC' },
|
{ value: this.formatAmount(this.apiData.rpcCount), name: 'RPC' },
|
||||||
{ value: this.apiData.tcpCount, name: 'TCP' },
|
{ value: this.formatAmount(this.apiData.tcpCount), name: 'TCP' },
|
||||||
{ value: this.apiData.sqlCount, name: 'SQL' },
|
{ value: this.formatAmount(this.apiData.sqlCount), name: 'SQL' },
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
let optionData = {
|
let optionData = {
|
||||||
|
|
Loading…
Reference in New Issue