|
@@ -38,15 +38,17 @@ const UpdateForm: any = ref({
|
|
|
fieldQueryModel: "", //匹配方式
|
|
|
fieldQueryValue: "", //匹配值
|
|
|
fieldQueryValueType: "", //匹配值类型
|
|
|
+ prizePercent: "", //奖励比例
|
|
|
+ prizeAmount: "", //奖励固定金额
|
|
|
|
|
|
});
|
|
|
// 配置ID选项数据
|
|
|
const listIdOptionList = ref([]);
|
|
|
// 匹配条件选项数据
|
|
|
const fieldQueryKindOptionList = [
|
|
|
- { id: 1, label: '模糊匹配' },
|
|
|
- { id: 2, label: '精确匹配' },
|
|
|
- { id: 3, label: '范围匹配' },
|
|
|
+ { id: '1', label: '模糊匹配' },
|
|
|
+ { id: '2', label: '精确匹配' },
|
|
|
+ { id: '3', label: '范围匹配' },
|
|
|
]
|
|
|
// 匹配方式选项数据
|
|
|
const fieldQueryModelOptionList = [
|
|
@@ -87,13 +89,15 @@ const submit = async (formEl) => {
|
|
|
type: "success"
|
|
|
});
|
|
|
UpdateForm.value = {
|
|
|
- id: null, //ID
|
|
|
- listId: null, //配置ID
|
|
|
- returnFieldId: null, //条件返回字段
|
|
|
- fieldQueryKind: "", //匹配条件
|
|
|
- fieldQueryModel: "", //匹配方式
|
|
|
- fieldQueryValue: "", //匹配值
|
|
|
- fieldQueryValueType: "", //匹配值类型
|
|
|
+ id: null, //ID
|
|
|
+ listId: null, //配置ID
|
|
|
+ returnFieldId: null, //条件返回字段
|
|
|
+ fieldQueryKind: "", //匹配条件
|
|
|
+ fieldQueryModel: "", //匹配方式
|
|
|
+ fieldQueryValue: "", //匹配值
|
|
|
+ fieldQueryValueType: "", //匹配值类型
|
|
|
+ prizePercent: "", //奖励比例
|
|
|
+ prizeAmount: "", //奖励固定金额
|
|
|
|
|
|
};
|
|
|
// 关闭修改弹窗;
|
|
@@ -117,7 +121,7 @@ const submit = async (formEl) => {
|
|
|
|
|
|
//获取配置ID数据
|
|
|
const listIdQuery = async () => {
|
|
|
- const { status, data }: any = await http.Request({ method: UrlList.prizeSet.prigetPriListDic.method, url: UrlList.prizeSet.prigetPriListDic.url, params: { } });
|
|
|
+ const { status, data }: any = await http.Request({ method: UrlList.prizeSet.prigetPriListDic.method, url: UrlList.prizeSet.prigetPriListDic.url, params: {} });
|
|
|
if (status === 1) {
|
|
|
listIdOptionList.value = data.records;
|
|
|
}
|
|
@@ -133,7 +137,7 @@ const rules = reactive({
|
|
|
const closeFn: any = inject('closeEditUpdatePriConditionVisible');
|
|
|
const openVisible = async () => {
|
|
|
//通过ID获取表格数据
|
|
|
- const { status, data }: any = await http.Request({ method: UrlList.prizeSet.prigetPriConditionQuery.method, url: UrlList.prizeSet.prigetPriConditionQuery.url, params: { id: props.formData.id }});
|
|
|
+ const { status, data }: any = await http.Request({ method: UrlList.prizeSet.prigetPriConditionQuery.method, url: UrlList.prizeSet.prigetPriConditionQuery.url, params: { id: props.formData.id } });
|
|
|
if (status === 1) {
|
|
|
UpdateForm.value = data;
|
|
|
|
|
@@ -149,6 +153,8 @@ const closeUpdatePriConditionVisible = () => {
|
|
|
fieldQueryModel: "", //匹配方式
|
|
|
fieldQueryValue: "", //匹配值
|
|
|
fieldQueryValueType: "", //匹配值类型
|
|
|
+ prizePercent: "", //奖励比例
|
|
|
+ prizeAmount: "", //奖励固定金额
|
|
|
|
|
|
};
|
|
|
closeFn();
|
|
@@ -171,7 +177,7 @@ const isFullscreen = ref(false)
|
|
|
placeholder="请选择配置ID",
|
|
|
clearable,
|
|
|
)
|
|
|
- el-option(:label="item.id", :value="item.prizeName" v-for="(item,index) in listIdOptionList")
|
|
|
+ el-option(:label="item.prizeName", :value="item.id" v-for="(item,index) in listIdOptionList")
|
|
|
el-form-item(label='条件返回字段' prop="returnFieldId")
|
|
|
el-input-number(v-model='UpdateForm.returnFieldId' :min="1" :max="1000"
|
|
|
placeholder="请输入条件返回字段")
|
|
@@ -199,6 +205,12 @@ const isFullscreen = ref(false)
|
|
|
clearable,
|
|
|
)
|
|
|
el-option(:label="item.label", :value="item.id" v-for="(item,index) in fieldQueryValueTypeOptionList")
|
|
|
+ el-form-item(label='奖励比例' prop="prizePercent")
|
|
|
+ el-input-number(v-model='UpdateForm.prizePercent' :min="0" :max="1000"
|
|
|
+ placeholder="请输入奖励比例")
|
|
|
+ el-form-item(label='奖励固定金额' prop="prizeAmount")
|
|
|
+ el-input-number(v-model='UpdateForm.prizeAmount' :min="0" :max="1000"
|
|
|
+ placeholder="请输入奖励固定金额")
|
|
|
|
|
|
.flex.justify-end
|
|
|
el-button(
|