fix(任务中心): 修复测试计划跳转问题
--bug=1042843 --user=王孝刚 【项目任务中心】定时任务-全部/计划列表-计划资源ID和资源名称不可点击跳转 https://www.tapd.cn/55049933/s/1533829
This commit is contained in:
parent
15df505fa7
commit
e4b1c29dc8
|
@ -200,11 +200,20 @@
|
||||||
</if>
|
</if>
|
||||||
<if test="request.scheduleTagType == 'TEST_PLAN'">
|
<if test="request.scheduleTagType == 'TEST_PLAN'">
|
||||||
SELECT
|
SELECT
|
||||||
schedule.*,
|
schedule.id,
|
||||||
|
schedule.name,
|
||||||
|
schedule.project_id,
|
||||||
|
schedule.resource_id,
|
||||||
|
schedule.value,
|
||||||
|
schedule.enable,
|
||||||
|
schedule.key,
|
||||||
|
schedule.job,
|
||||||
|
schedule.resource_type,
|
||||||
|
schedule.config,
|
||||||
test_plan.type,
|
test_plan.type,
|
||||||
test_plan.num as resource_num,
|
test_plan.num as resource_num,
|
||||||
test_plan.name as resource_name
|
test_plan.name as resource_name
|
||||||
FROM
|
from
|
||||||
schedule
|
schedule
|
||||||
inner join test_plan on schedule.resource_id = test_plan.id
|
inner join test_plan on schedule.resource_id = test_plan.id
|
||||||
</if>
|
</if>
|
||||||
|
|
|
@ -43,7 +43,10 @@
|
||||||
>
|
>
|
||||||
<template #resourceNum="{ record }">
|
<template #resourceNum="{ record }">
|
||||||
<div
|
<div
|
||||||
v-if="props.moduleType === TaskCenterEnum.API_SCENARIO"
|
v-if="
|
||||||
|
props.moduleType === TaskCenterEnum.API_SCENARIO ||
|
||||||
|
(props.moduleType === TaskCenterEnum.TEST_PLAN && record.type === TaskCenterEnum.TEST_PLAN)
|
||||||
|
"
|
||||||
type="text"
|
type="text"
|
||||||
class="one-line-text w-full"
|
class="one-line-text w-full"
|
||||||
:class="[hasJumpPermission ? 'text-[rgb(var(--primary-5))]' : '']"
|
:class="[hasJumpPermission ? 'text-[rgb(var(--primary-5))]' : '']"
|
||||||
|
@ -53,7 +56,10 @@
|
||||||
</template>
|
</template>
|
||||||
<template #resourceName="{ record }">
|
<template #resourceName="{ record }">
|
||||||
<div
|
<div
|
||||||
v-if="props.moduleType === TaskCenterEnum.API_SCENARIO"
|
v-if="
|
||||||
|
props.moduleType === TaskCenterEnum.API_SCENARIO ||
|
||||||
|
(props.moduleType === TaskCenterEnum.TEST_PLAN && record.type === TaskCenterEnum.TEST_PLAN)
|
||||||
|
"
|
||||||
class="one-line-text max-w-[300px]"
|
class="one-line-text max-w-[300px]"
|
||||||
:class="[hasJumpPermission ? 'text-[rgb(var(--primary-5))]' : '']"
|
:class="[hasJumpPermission ? 'text-[rgb(var(--primary-5))]' : '']"
|
||||||
@click="showDetail(record.resourceId)"
|
@click="showDetail(record.resourceId)"
|
||||||
|
@ -548,11 +554,16 @@
|
||||||
if (!hasJumpPermission.value) {
|
if (!hasJumpPermission.value) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (props.moduleType === 'API_SCENARIO') {
|
if (props.moduleType === TaskCenterEnum.API_SCENARIO) {
|
||||||
openNewPage(RouteEnum.API_TEST_SCENARIO, {
|
openNewPage(RouteEnum.API_TEST_SCENARIO, {
|
||||||
id,
|
id,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (props.moduleType === TaskCenterEnum.TEST_PLAN) {
|
||||||
|
openNewPage(RouteEnum.TEST_PLAN_INDEX_DETAIL, {
|
||||||
|
id,
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const moreActions: ActionsItem[] = [
|
const moreActions: ActionsItem[] = [
|
||||||
|
|
Loading…
Reference in New Issue