style(接口测试): 接口调试样式更改
--bug=1037308 --user=宋天阳 【接口测试】定义-新建接口-后置-提取参数-表达式没有提示信息 https://www.tapd.cn/55049933/s/1479761
This commit is contained in:
parent
d3ebbd9f8b
commit
d608df0e93
|
@ -378,10 +378,34 @@
|
|||
};
|
||||
const paramForm = ref<Record<string, any>>({ ...defaultParamForm });
|
||||
const paramFormRef = ref<FormInstance>();
|
||||
const paramTypeOptions: CascaderOption[] = cloneDeep(mockAllGroup);
|
||||
const paramFuncOptions: MockParamItem[] = cloneDeep(mockFunctions);
|
||||
const currentParamsInputGroup = ref<MockParamInputGroupItem[]>([]);
|
||||
|
||||
function genMockParamTypeOptions() {
|
||||
// 国际化处理
|
||||
const mockParamTypeOptions: { label: string; value: string; children: any }[] = [];
|
||||
mockAllGroup.forEach((item) => {
|
||||
const optionChildren: { label: string; value: string }[] = [];
|
||||
if (item.children) {
|
||||
item.children.forEach((child) => {
|
||||
const childOpt = {
|
||||
label: t(child.label),
|
||||
value: child.value,
|
||||
};
|
||||
optionChildren.push(childOpt);
|
||||
});
|
||||
}
|
||||
const option = {
|
||||
label: t(item.label),
|
||||
value: item.value,
|
||||
children: optionChildren,
|
||||
};
|
||||
mockParamTypeOptions.push(option);
|
||||
});
|
||||
return mockParamTypeOptions;
|
||||
}
|
||||
const paramTypeOptions = genMockParamTypeOptions();
|
||||
|
||||
/**
|
||||
* 切换变量类型,设置变量输入框的输入组
|
||||
* @param val 变量类型
|
||||
|
|
|
@ -373,6 +373,7 @@
|
|||
v-model:model-value="record.expression"
|
||||
class="ms-params-input"
|
||||
:max-length="255"
|
||||
:placeholder="t('ms.paramsInput.commonPlaceholder')"
|
||||
size="mini"
|
||||
@input="() => handleExpressionChange(rowIndex)"
|
||||
@change="() => handleExpressionChange(rowIndex)"
|
||||
|
|
|
@ -106,7 +106,7 @@
|
|||
CommonScriptItem,
|
||||
ParamsRequestType,
|
||||
} from '@/models/projectManagement/commonScript';
|
||||
import { TableKeyEnum } from '@/enums/tableEnum';
|
||||
import { ColumnEditTypeEnum, TableKeyEnum } from '@/enums/tableEnum';
|
||||
|
||||
const appStore = useAppStore();
|
||||
const currentProjectId = computed(() => appStore.currentProjectId);
|
||||
|
@ -137,6 +137,7 @@
|
|||
dataIndex: 'description',
|
||||
width: 200,
|
||||
showDrag: true,
|
||||
showTooltip: true,
|
||||
},
|
||||
{
|
||||
title: 'project.commonScript.enable',
|
||||
|
|
Loading…
Reference in New Issue