|
@@ -40,6 +40,7 @@ const UpdateForm: any = ref({
|
|
|
prizeContent: "", //奖励内容
|
|
|
requestParamField: "", //入参字段
|
|
|
prizeSourceField: "", //奖励金额来源数据
|
|
|
+ prizeSourceFieldType: "", //奖励金额来源数据类型
|
|
|
|
|
|
});
|
|
|
// 条件模式选项数据
|
|
@@ -62,6 +63,11 @@ const kindOptionList = [
|
|
|
{ id: 'order', label: '订单奖励' },
|
|
|
{ id: 'reserve', label: '额度返还' },
|
|
|
]
|
|
|
+// 奖励金额来源数据类型
|
|
|
+const prizeSourceFieldTypeOptionList = [
|
|
|
+ { id: 'condi', label: '条件返回字段' },
|
|
|
+ { id: 'loop', label: '循环递归返回字段' },
|
|
|
+]
|
|
|
|
|
|
// 表单实例
|
|
|
const ruleFormRef = ref()
|
|
@@ -100,6 +106,7 @@ const submit = async (formEl) => {
|
|
|
prizeContent: "", //奖励内容
|
|
|
requestParamField: "", //入参字段
|
|
|
prizeSourceField: "", //奖励金额来源数据
|
|
|
+ prizeSourceFieldType: "", //奖励金额来源数据类型
|
|
|
|
|
|
};
|
|
|
// 关闭修改弹窗;
|
|
@@ -163,6 +170,7 @@ const closeUpdatePriListVisible = () => {
|
|
|
prizeContent: "", //奖励内容
|
|
|
requestParamField: "", //入参字段
|
|
|
prizeSourceField: "", //奖励金额来源数据
|
|
|
+ prizeSourceFieldType: "", //奖励金额来源数据类型
|
|
|
|
|
|
};
|
|
|
closeFn();
|
|
@@ -193,7 +201,7 @@ const isFullscreen = ref(false)
|
|
|
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"
|
|
|
+ el-input-number(v-model='UpdateForm.prizeAmount' :min="0" :max="100000"
|
|
|
placeholder="请输入奖励固定金额")
|
|
|
el-form-item(label="条件模式", prop="conditionMode")
|
|
|
el-select(
|
|
@@ -217,6 +225,13 @@ const isFullscreen = ref(false)
|
|
|
el-form-item(label='奖励金额来源数据' prop="prizeSourceField")
|
|
|
el-input(v-model='UpdateForm.prizeSourceField' autocomplete='off'
|
|
|
placeholder="请输入奖励金额来源数据")
|
|
|
+ el-form-item(label="奖励金额来源数据类型", prop="prizeSourceFieldType")
|
|
|
+ el-select(
|
|
|
+ v-model="UpdateForm.prizeSourceFieldType",
|
|
|
+ placeholder="请选择奖励金额来源数据类型",
|
|
|
+ clearable,
|
|
|
+ )
|
|
|
+ el-option(:label="item.label", :value="item.id" v-for="(item,index) in prizeSourceFieldTypeOptionList")
|
|
|
|
|
|
.flex.justify-end
|
|
|
el-button(
|