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'));
|
||||
return;
|
||||
}
|
||||
if (!this.currentModule) {
|
||||
this.$error(this.$t('test_track.case.input_module'));
|
||||
}
|
||||
this.$refs.basisScenario.open(this.currentModule);
|
||||
},
|
||||
enableTrash() {
|
||||
|
|
|
@ -842,7 +842,7 @@ export default {
|
|||
this.condition.selectThisWeedData = false;
|
||||
this.condition.id = null;
|
||||
this.condition.redirectFilter = null;
|
||||
if (this.selectDataRange == 'thisWeekCount') {
|
||||
if (this.selectDataRange == 'createdInWeek') {
|
||||
this.condition.selectThisWeedData = true;
|
||||
} else if (
|
||||
this.selectDataRange === 'executionPassCount' ||
|
||||
|
|
|
@ -5,15 +5,15 @@
|
|||
{{ title }}
|
||||
</span>
|
||||
<div style="margin-top: 4px; height: 40px">
|
||||
<span v-if="isExecuteInfo" class="addition-num">{{ countData.executedTimesInWeek }}</span>
|
||||
<span v-else class="main-num">{{ countData.total }}</span>
|
||||
<span v-if="isExecuteInfo" class="addition-num">{{ formatAmount(countData.executedTimesInWeek) }}</span>
|
||||
<span v-else class="main-num">{{ formatAmount(countData.total) }}</span>
|
||||
</div>
|
||||
<div style="margin-top: 32px">
|
||||
<div v-if="isExecuteInfo">
|
||||
<span class="main-info-card-title">{{ $t('home.dashboard.public.executed_times') }}</span>
|
||||
<div class="common-amount">
|
||||
<span class="addition-num">
|
||||
{{ countData.executedTimes }}
|
||||
{{ formatAmount(countData.executedTimes) }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -26,7 +26,7 @@
|
|||
class="common-amount-button"
|
||||
v-permission-disable="linkPermission"
|
||||
@click="redirect('createdInWeek')">
|
||||
+{{ countData.createdInWeek }}
|
||||
+{{ formatAmount(countData.createdInWeek) }}
|
||||
<img class="main-info-card-right" src="/assets/figma/icon_right_outlined.svg" alt="" />
|
||||
</el-button>
|
||||
</div>
|
||||
|
@ -38,7 +38,7 @@
|
|||
class="common-amount-button"
|
||||
v-permission-disable="linkPermission"
|
||||
@click="redirect('fakeError')">
|
||||
{{ countData.fakeErrorCount }}
|
||||
{{ formatAmount(countData.fakeErrorCount) }}
|
||||
<img class="main-info-card-right" src="/assets/figma/icon_right_outlined.svg" alt="" />
|
||||
</el-button>
|
||||
</div>
|
||||
|
@ -51,6 +51,8 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { formatNumber } from '@/api/home';
|
||||
|
||||
export default {
|
||||
name: 'MainInfoCard',
|
||||
props: {
|
||||
|
@ -65,6 +67,9 @@ export default {
|
|||
redirect(seletDataType) {
|
||||
this.$emit('redirectPage', this.redirectPageName, this.redirectDataType, seletDataType, null);
|
||||
},
|
||||
formatAmount(param) {
|
||||
return formatNumber(param);
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
@ -95,10 +95,10 @@ export default {
|
|||
borderWidth = 3;
|
||||
dataIsNotEmpty = true;
|
||||
protocolData = [
|
||||
{ value: this.apiData.httpCount, name: 'HTTP' },
|
||||
{ value: this.apiData.rpcCount, name: 'RPC' },
|
||||
{ value: this.apiData.tcpCount, name: 'TCP' },
|
||||
{ value: this.apiData.sqlCount, name: 'SQL' },
|
||||
{ value: this.formatAmount(this.apiData.httpCount), name: 'HTTP' },
|
||||
{ value: this.formatAmount(this.apiData.rpcCount), name: 'RPC' },
|
||||
{ value: this.formatAmount(this.apiData.tcpCount), name: 'TCP' },
|
||||
{ value: this.formatAmount(this.apiData.sqlCount), name: 'SQL' },
|
||||
];
|
||||
}
|
||||
let optionData = {
|
||||
|
|
Loading…
Reference in New Issue