Browse Source

奖励记录添加入参字段

lcl 7 months ago
parent
commit
a4725c201a
1 changed files with 18 additions and 13 deletions
  1. 18 13
      src/views/pri/priRecord/hook.tsx

+ 18 - 13
src/views/pri/priRecord/hook.tsx

@@ -13,12 +13,12 @@ export function usePriRecord() {
 
     UrlList = await getGroupUrl(["prizeSet"]);
     onSearch(ruleFormRef.value);
-  listIdQuery();
+    listIdQuery();
 
   });
   let form = reactive({
-  listId:null, //配置ID
-  batchNo:"", //批次号
+    listId: null, //配置ID
+    batchNo: "", //批次号
 
 
   });
@@ -72,6 +72,11 @@ export function usePriRecord() {
       prop: "batchNo",
       minWidth: 200
     },
+    {
+      label: "入参字段",
+      prop: "requestParamField",
+      minWidth: 200
+    },
 
     {
       label: "操作",
@@ -134,11 +139,11 @@ export function usePriRecord() {
       }
     })
   }
-    // 配置ID选项数据
-    const listIdOptionList = ref([]);
+  // 配置ID选项数据
+  const listIdOptionList = ref([]);
   //获取配置ID数据
   async function listIdQuery() {
-    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;
     }
@@ -146,8 +151,8 @@ export function usePriRecord() {
 
 
 
-  
-    // 删除
+
+  // 删除
   function handleDelete(row) {
     ElMessageBox.confirm(
       `是否删除该奖励记录? `,
@@ -167,20 +172,20 @@ export function usePriRecord() {
         onSearch(ruleFormRef.value);
       } else {
         ElMessageBox.alert(msg, "提示", {
-        confirmButtonText: "关闭",
-        type: "warning"
-      });
+          confirmButtonText: "关闭",
+          type: "warning"
+        });
       };
     })
   }
 
-    // 新增
+  // 新增
   const addVisible = ref(false);
   function handleAdd() {
     addVisible.value = true;
   };
 
-    // 修改
+  // 修改
   const editUpdatePriRecordVisible = ref(false);
   const editUpdatePriRecordFormData = ref({});
   function handleUpdatePriRecord(row) {