fix: 修复部分变量问题

--bug=1008990 --user=刘瑞斌 【消息通知】变量显示问题汇总 https://www.tapd.cn/55049933/s/1089497
This commit is contained in:
CaptainB 2022-01-04 16:37:16 +08:00 committed by shiziyuan9527
parent b5cc0dd4a7
commit 9dfded3197
1 changed files with 32 additions and 76 deletions

View File

@ -62,7 +62,7 @@
</el-table-column> </el-table-column>
<el-table-column label="webhook" min-width="20%" prop="webhook"> <el-table-column label="webhook" min-width="20%" prop="webhook">
<template v-slot:default="scope"> <template v-slot:default="scope">
<el-input v-model="scope.row.webhook" size="mini" <el-input v-model="scope.row.webhook" size="mini"
:disabled="!scope.row.isSet||!scope.row.isReadOnly"></el-input> :disabled="!scope.row.isSet||!scope.row.isReadOnly"></el-input>
</template> </template>
</el-table-column> </el-table-column>
@ -175,109 +175,65 @@ export default {
], ],
variables: [ variables: [
{ {
label:this.$t('group.operator'), label: this.$t('group.operator'),
value:'operator', value: 'operator',
}, },
{ {
label:'id', label: 'id',
value:'id', value: 'id',
}, },
{ {
label:this.$t('project.id'), label: this.$t('project.id'),
value:'projectId', value: 'projectId',
}, },
{ {
label:this.$t('commons.name'), label: this.$t('commons.name'),
value:'name', value: 'name',
}, },
{ {
label:this.$t('api_test.request.method'), label: this.$t('commons.create_time'),
value:'method', value: 'createTime',
}, },
{ {
label:this.$t('api_test.request.dubbo.protocol'), label: this.$t('commons.update_time'),
value:'protocol', value: 'updateTime',
}, },
{ {
label:this.$t('api_test.request.path'), label: this.$t('commons.status'),
value:'path', value: 'status',
}, },
{ {
label:this.$t('module.path'), label: this.$t('user.id'),
value:'modulePath', value: 'userId',
}, },
{ {
label:this.$t('api_test.environment.id'), label: this.$t('commons.create_user'),
value:'environmentId', value: 'createUser',
}, },
{ {
label:this.$t('api_test.automation.schedule'), label: this.$t('commons.trigger_mode.name'),
value:'schedule', value: 'triggerMode',
}, },
{ {
label:this.$t('commons.status'), label: this.$t('api_test.automation.scenario_name'),
value:'status', value: 'scenarioName',
}, },
{ {
label:this.$t('test_track.module.id'), label: this.$t('api_test.scenario.id'),
value:'moduleId', value: 'scenarioId',
}, },
{ {
label:this.$t('user.id'), label: this.$t('commons.actuator'),
value:'userId', value: 'actuator',
}, },
{ {
label:this.$t('commons.create_time'), label: this.$t('commons.description'),
value:'createTime', value: 'description',
}, },
{ {
label:this.$t('commons.update_time'), label: this.$t('report.test_end_time'),
value:'updateTime', value: 'endTime',
}, }
{
label:this.$t('test_track.case.number'),
value:'num',
},
{
label:this.$t('commons.tag'),
value:'tags',
},
{
label:this.$t('commons.original_state'),
value:'originalState',
},
{
label:this.$t('commons.create_user'),
value:'createUser',
},
{
label:this.$t('test_track.case.total'),
value:'caseTotal',
},
{
label:this.$t('test_track.case.status'),
value:'caseStatus',
},
{
label:this.$t('test_track.case.passing_rate'),
value:'casePassingRate',
},
{
label:this.$t('commons.delete_time'),
value:'deleteTime',
},
{
label:this.$t('commons.delete_user_id'),
value:'deleteUserId',
},
{
label:this.$t('api_test.definition.document.order'),
value:'order',
},
{
label:this.$t('report.plan_share_url'),
value:'planShareUrl',
},
] ]
}; };
}, },