|
|
@@ -123,7 +123,7 @@
|
|
|
<a-tag v-else>{{ record.output_type }}</a-tag>
|
|
|
</div>
|
|
|
<a-typography-paragraph :ellipsis="{ rows: 2 }">
|
|
|
- <a-typography-text disabled>
|
|
|
+ <a-typography-text>
|
|
|
{{ record.output_text }}
|
|
|
</a-typography-text>
|
|
|
</a-typography-paragraph>
|
|
|
@@ -143,19 +143,11 @@
|
|
|
</a-tag>
|
|
|
</template>
|
|
|
<template #limits="{ record }">
|
|
|
- <div style="font-size: 12px;">
|
|
|
- <div v-if="record.daily_calls_limit > 0">
|
|
|
- <a-tag color="blue" size="small">日限: {{ record.current_daily_calls || 0 }}/{{ record.daily_calls_limit }}</a-tag>
|
|
|
- </div>
|
|
|
- <div v-if="record.hourly_calls_limit > 0">
|
|
|
- <a-tag color="cyan" size="small">时限: {{ record.current_hourly_calls || 0 }}/{{ record.hourly_calls_limit }}</a-tag>
|
|
|
- </div>
|
|
|
- <div v-if="record.use_special_text === 1">
|
|
|
- <a-tag color="orange" size="small">验证入参 special_text</a-tag>
|
|
|
- </div>
|
|
|
- <div v-if="record.use_risk_control === 1">
|
|
|
- <a-tag color="red" size="small">启用风控</a-tag>
|
|
|
- </div>
|
|
|
+ <div style="font-size: 12px; color: #666;">
|
|
|
+ <div>日限: {{ record.current_daily_calls || 0 }}/{{ record.daily_calls_limit }}</div>
|
|
|
+ <div>时限: {{ record.current_hourly_calls || 0 }}/{{ record.hourly_calls_limit }}</div>
|
|
|
+ <div v-if="record.use_special_text === 1">验证入参: special_text</div>
|
|
|
+ <div v-if="record.use_risk_control === 1">启用风控</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
<template #description="{ record }">
|
|
|
@@ -200,38 +192,51 @@
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="24">
|
|
|
- <a-form-item label="原始文本" required>
|
|
|
- <a-textarea v-model="editForm.original_text" placeholder="请输入原始文本或正则表达式" :auto-size="{ minRows: 2, maxRows: 4 }" />
|
|
|
+ <a-form-item label="原始文本/参考关键词" required>
|
|
|
+ <template #extra>
|
|
|
+ <div>如请求传入 query_text 参数,将替代此文本进行匹配</div>
|
|
|
+ </template>
|
|
|
+ <a-textarea v-model="editForm.original_text" placeholder="请输入原始文本或正则表达式"
|
|
|
+ :auto-size="{ minRows: 2, maxRows: 4 }" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="输出类型" required>
|
|
|
- <a-select v-model="editForm.output_type" :options="outputTypeOptions" placeholder="请选择输出类型" />
|
|
|
+ <a-select v-model="editForm.output_type" :options="outputTypeOptions"
|
|
|
+ placeholder="请选择输出类型" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="权重(优先级)">
|
|
|
- <a-input-number v-model="editForm.sort" placeholder="数值越大越优先" :min="0" style="width: 100%;" />
|
|
|
+ <a-input-number v-model="editForm.sort" placeholder="数值越大越优先" :min="0"
|
|
|
+ style="width: 100%;" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="24">
|
|
|
<a-form-item label="输出文本" required>
|
|
|
- <a-textarea v-model="editForm.output_text" placeholder="请输入替换后的文本" :auto-size="{ minRows: 2, maxRows: 4 }" />
|
|
|
+ <template #extra>
|
|
|
+ <div>支持占位符:{query_text} 和 {url:query_text}</div>
|
|
|
+ </template>
|
|
|
+ <a-textarea v-model="editForm.output_text" placeholder="请输入替换后的文本"
|
|
|
+ :auto-size="{ minRows: 2, maxRows: 4 }" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="24">
|
|
|
<a-form-item label="备注">
|
|
|
- <a-textarea v-model="editForm.description" placeholder="请输入备注说明" :auto-size="{ minRows: 2, maxRows: 3 }" />
|
|
|
+ <a-textarea v-model="editForm.description" placeholder="请输入备注说明"
|
|
|
+ :auto-size="{ minRows: 2, maxRows: 3 }" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="每日调用限制">
|
|
|
- <a-input-number v-model="editForm.daily_calls_limit" placeholder="0表示不限制" :min="0" style="width: 100%;" />
|
|
|
+ <a-input-number v-model="editForm.daily_calls_limit" placeholder="0表示不限制" :min="0"
|
|
|
+ style="width: 100%;" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="每小时调用限制">
|
|
|
- <a-input-number v-model="editForm.hourly_calls_limit" placeholder="0表示不限制" :min="0" style="width: 100%;" />
|
|
|
+ <a-input-number v-model="editForm.hourly_calls_limit" placeholder="0表示不限制" :min="0"
|
|
|
+ style="width: 100%;" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
@@ -248,7 +253,7 @@
|
|
|
<a-switch v-model="editForm.use_risk_control" :checked-value="1" :unchecked-value="0"
|
|
|
checked-text="是" unchecked-text="否" />
|
|
|
<div style="font-size: 12px; color: #999; margin-top: 4px;">
|
|
|
- OAID/地区/IP控制
|
|
|
+ OAID/地区/IP控制(验证 special_text 时无效)
|
|
|
</div>
|
|
|
</a-form-item>
|
|
|
</a-col>
|