Browse Source

添加匹配方式选项数据值

lcl 7 months ago
parent
commit
9254029788

+ 2 - 0
src/views/pri/priCondition/components/add/index.vue

@@ -62,7 +62,9 @@ const fieldQueryKindOptionList = [
 // 匹配方式选项数据
 const fieldQueryModelOptionList = [
   { id: 'request_param', label: '入参' },
+  { id: 'loop_field', label: '循环递归字段' },
   { id: 'fixed_value', label: '固定值' },
+  { id: 'db_field', label: '库内字段' },
 ]
 // 匹配值类型选项数据
 const fieldQueryValueTypeOptionList = [

+ 2 - 0
src/views/pri/priCondition/components/updatePriCondition/index.vue

@@ -56,7 +56,9 @@ const fieldQueryKindOptionList = [
 // 匹配方式选项数据
 const fieldQueryModelOptionList = [
   { id: 'request_param', label: '入参' },
+  { id: 'loop_field', label: '循环递归字段' },
   { id: 'fixed_value', label: '固定值' },
+  { id: 'db_field', label: '库内字段' },
 ]
 // 匹配值类型选项数据
 const fieldQueryValueTypeOptionList = [

+ 1 - 0
src/views/pri/priList/components/add/index.vue

@@ -62,6 +62,7 @@ const prizeContentOptionList = [
   { id: 'cash', label: '现金' },
   { id: 'recyc', label: '循环资格' },
   { id: 'coupon', label: '机具券' },
+  { id: 'reserve', label: '额度' },
 ]
 // 奖励分类
 const kindOptionList = [

+ 1 - 0
src/views/pri/priList/components/updatePriList/index.vue

@@ -52,6 +52,7 @@ const prizeContentOptionList = [
   { id: 'cash', label: '现金' },
   { id: 'recyc', label: '循环资格' },
   { id: 'coupon', label: '机具券' },
+  { id: 'reserve', label: '额度' },
 ]
 // 奖励分类
 const kindOptionList = [

+ 4 - 2
src/views/pri/priList/hook.tsx

@@ -27,7 +27,7 @@ export function usePriList() {
   const dialogAddVisible = ref(false);
   const pagination = reactive<PaginationProps>({
     total: 0,
-    pageSize: 10,
+    pageSize: 20,
     currentPage: 1,
     background: true
   });
@@ -54,7 +54,8 @@ export function usePriList() {
       prop: "kind",
       minWidth: 200,
       formatter: ({ kind }) => {
-        return kindOptionList.find(item => item.id == kind).label
+        var obj = kindOptionList.find(item => item.id == kind);
+        return obj ? obj.label : ''
       },
     },
     {
@@ -173,6 +174,7 @@ export function usePriList() {
     { id: 'cash', label: '现金' },
     { id: 'recyc', label: '循环资格' },
     { id: 'coupon', label: '机具券' },
+    { id: 'reserve', label: '额度' },
   ]
   // 奖励分类
   const kindOptionList = [

+ 1 - 0
src/views/pri/priPrizeInField/components/add/index.vue

@@ -50,6 +50,7 @@ const fieldQueryModelOptionList = [
   { id: 'request_param', label: '入参' },
   { id: 'loop_field', label: '循环递归字段' },
   { id: 'fixed_value', label: '固定值' },
+  { id: 'db_field', label: '库内字段' },
 ]
 // 匹配值类型选项数据
 const fieldQueryValueTypeOptionList = [

+ 1 - 0
src/views/pri/priPrizeInField/components/updatePriPrizeInField/index.vue

@@ -44,6 +44,7 @@ const fieldQueryModelOptionList = [
   { id: 'request_param', label: '入参' },
   { id: 'loop_field', label: '循环递归字段' },
   { id: 'fixed_value', label: '固定值' },
+  { id: 'db_field', label: '库内字段' },
 ]
 // 匹配值类型选项数据
 const fieldQueryValueTypeOptionList = [

+ 1 - 0
src/views/pri/priPrizeInQueryField/components/add/index.vue

@@ -60,6 +60,7 @@ const fieldQueryModelOptionList = [
   { id: 'request_param', label: '入参' },
   { id: 'loop_field', label: '循环递归字段' },
   { id: 'fixed_value', label: '固定值' },
+  { id: 'db_field', label: '库内字段' },
 ]
 // 匹配值类型选项数据
 const fieldQueryValueTypeOptionList = [

+ 1 - 0
src/views/pri/priPrizeInQueryField/components/updatePriPrizeInQueryField/index.vue

@@ -54,6 +54,7 @@ const fieldQueryModelOptionList = [
   { id: 'request_param', label: '入参' },
   { id: 'loop_field', label: '循环递归字段' },
   { id: 'fixed_value', label: '固定值' },
+  { id: 'db_field', label: '库内字段' },
 ]
 // 匹配值类型选项数据
 const fieldQueryValueTypeOptionList = [

+ 1 - 0
src/views/pri/priPrizeObjectField/components/add/index.vue

@@ -61,6 +61,7 @@ const fieldQueryModelOptionList = [
   { id: 'request_param', label: '入参' },
   { id: 'loop_field', label: '循环递归字段' },
   { id: 'fixed_value', label: '固定值' },
+  { id: 'db_field', label: '库内字段' },
 ]
 // 匹配值类型选项数据
 const fieldQueryValueTypeOptionList = [

+ 1 - 0
src/views/pri/priPrizeObjectField/components/updatePriPrizeObjectField/index.vue

@@ -55,6 +55,7 @@ const fieldQueryModelOptionList = [
   { id: 'request_param', label: '入参' },
   { id: 'loop_field', label: '循环递归字段' },
   { id: 'fixed_value', label: '固定值' },
+  { id: 'db_field', label: '库内字段' },
 ]
 // 匹配值类型选项数据
 const fieldQueryValueTypeOptionList = [

+ 1 - 0
src/views/pri/priQueryField/components/add/index.vue

@@ -61,6 +61,7 @@ const fieldQueryModelOptionList = [
   { id: 'request_param', label: '入参' },
   { id: 'loop_field', label: '循环递归字段' },
   { id: 'fixed_value', label: '固定值' },
+  { id: 'db_field', label: '库内字段' },
 ]
 // 匹配值类型选项数据
 const fieldQueryValueTypeOptionList = [

+ 1 - 0
src/views/pri/priQueryField/components/updatePriQueryField/index.vue

@@ -53,6 +53,7 @@ const fieldQueryModelOptionList = [
   { id: 'request_param', label: '入参' },
   { id: 'loop_field', label: '循环递归字段' },
   { id: 'fixed_value', label: '固定值' },
+  { id: 'db_field', label: '库内字段' },
 ]
 // 匹配值类型选项数据
 const fieldQueryValueTypeOptionList = [

+ 1 - 0
src/views/pri/priRecursionEndField/components/add/index.vue

@@ -60,6 +60,7 @@ const fieldQueryModelOptionList = [
   { id: 'request_param', label: '入参' },
   { id: 'loop_field', label: '循环递归字段' },
   { id: 'fixed_value', label: '固定值' },
+  { id: 'db_field', label: '库内字段' },
 ]
 // 匹配值类型选项数据
 const fieldQueryValueTypeOptionList = [

+ 1 - 0
src/views/pri/priRecursionEndField/components/updatePriRecursionEndField/index.vue

@@ -54,6 +54,7 @@ const fieldQueryModelOptionList = [
   { id: 'request_param', label: '入参' },
   { id: 'loop_field', label: '循环递归字段' },
   { id: 'fixed_value', label: '固定值' },
+  { id: 'db_field', label: '库内字段' },
 ]
 // 匹配值类型选项数据
 const fieldQueryValueTypeOptionList = [

+ 1 - 0
src/views/pri/priRecursionStartField/components/add/index.vue

@@ -61,6 +61,7 @@ const fieldQueryModelOptionList = [
   { id: 'request_param', label: '入参' },
   { id: 'loop_field', label: '循环递归字段' },
   { id: 'fixed_value', label: '固定值' },
+  { id: 'db_field', label: '库内字段' },
 ]
 // 匹配值类型选项数据
 const fieldQueryValueTypeOptionList = [

+ 1 - 0
src/views/pri/priRecursionStartField/components/updatePriRecursionStartField/index.vue

@@ -55,6 +55,7 @@ const fieldQueryModelOptionList = [
   { id: 'request_param', label: '入参' },
   { id: 'loop_field', label: '循环递归字段' },
   { id: 'fixed_value', label: '固定值' },
+  { id: 'db_field', label: '库内字段' },
 ]
 // 匹配值类型选项数据
 const fieldQueryValueTypeOptionList = [