feat: 在商户部署记录中添加执行策略字段,并在相关组件中更新表单和展示逻辑
This commit is contained in:
@@ -40,11 +40,13 @@ export type merchantDeployRecord = {
|
||||
isRestrictInternalIp: boolean;
|
||||
isRestrictIp: boolean;
|
||||
isRestrictDevice: boolean;
|
||||
submitStrategy: string;
|
||||
};
|
||||
|
||||
export type merchantDeployAddRecord = {
|
||||
merchantUid: string;
|
||||
singleRoadUid: string;
|
||||
submitStrategy: string;
|
||||
singleRoadPlatformRate: merchantDeployRate[];
|
||||
singleRoadAgentRate: number;
|
||||
autoSettle: string;
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
>
|
||||
<a-form :model="formData" layout="vertical">
|
||||
<a-row :gutter="10">
|
||||
<a-col :span="20">
|
||||
<a-col :span="18">
|
||||
<a-form-item label="通道" field="singleRoadUid" required>
|
||||
<a-select v-model="formData.singleRoadUid">
|
||||
<a-option
|
||||
@@ -49,6 +49,20 @@
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="2">
|
||||
<a-form-item
|
||||
label="执行策略"
|
||||
field="submitStrategy"
|
||||
:label-col-props="{ span: 10, offset: 0 }"
|
||||
:wrapper-col-props="{ span: 12, offset: 0 }"
|
||||
required
|
||||
>
|
||||
<a-select v-model="formData.submitStrategy">
|
||||
<a-option value="DIRECT">直连</a-option>
|
||||
<a-option value="POOL">轮询</a-option>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-divider />
|
||||
<a-form-item
|
||||
@@ -233,6 +247,7 @@ const emits = defineEmits(['update:visible', 'close']);
|
||||
|
||||
const generateFormData = (): merchantDeployAddRecord => {
|
||||
return {
|
||||
submitStrategy: 'DIRECT',
|
||||
merchantUid: props.uid,
|
||||
singleRoadUid: '',
|
||||
singleRoadPlatformRate: [],
|
||||
|
||||
@@ -112,6 +112,9 @@
|
||||
{{ data.status === 'active' ? '激活' : '冻结' }}
|
||||
</a-tag>
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="轮询策略">
|
||||
{{ data.submitStrategy === 'DIRECT' ? '直连' : '轮询' }}
|
||||
</a-descriptions-item>
|
||||
</a-descriptions>
|
||||
</div>
|
||||
</a-space>
|
||||
|
||||
Reference in New Issue
Block a user