lcl před 7 měsíci
rodič
revize
a555e00596
1 změnil soubory, kde provedl 15 přidání a 10 odebrání
  1. 15 10
      src/views/pri/priProject/hook.tsx

+ 15 - 10
src/views/pri/priProject/hook.tsx

@@ -8,11 +8,11 @@ export function usePriProject() {
   onMounted(async () => {
     UrlList = await getGroupUrl(["prizeSet"]);
     onSearch(ruleFormRef.value);
-
+  
   });
   let form = reactive({
-    projectName: "", //项目名称
-    requestMode: "", //调用方式
+  projectName:"", //项目名称
+  requestMode:"", //调用方式
 
   });
   const dataList = ref([]);
@@ -37,6 +37,11 @@ export function usePriProject() {
       width: 70,
       hide: ({ checkList }) => !checkList.includes("序号列")
     },
+    {
+      label: "ID",
+      prop: "id",
+      minWidth: 200
+    },
     {
       label: "项目名称",
       prop: "projectName",
@@ -127,7 +132,7 @@ export function usePriProject() {
 
 
 
-  // 删除
+    // 删除
   function handleDelete(row) {
     ElMessageBox.confirm(
       `是否删除该奖励项目? `,
@@ -138,7 +143,7 @@ export function usePriProject() {
         type: "warning"
       }
     ).then(async () => {
-      const { status, msg }: any = await http.Request({ method: UrlList.prizeSet.priProjectdeletePriProject.method, url: UrlList.prizeSet.priProjectdeletePriProject.url, params: String(row.id) });
+      const { status, msg }: any = await http.Request({ method: UrlList.prizeSet.prideletePriProject.method, url: UrlList.prizeSet.prideletePriProject.url, params: String(row.id) });
       if (status === 1) {
         ElMessage({
           message: "删除成功",
@@ -147,20 +152,20 @@ export function usePriProject() {
         onSearch(ruleFormRef.value);
       } else {
         ElMessageBox.alert(msg, "提示", {
-          confirmButtonText: "关闭",
-          type: "warning"
-        });
+        confirmButtonText: "关闭",
+        type: "warning"
+      });
       };
     })
   }
 
-  // 新增
+    // 新增
   const addVisible = ref(false);
   function handleAdd() {
     addVisible.value = true;
   };
 
-  // 修改
+    // 修改
   const editUpdatePriProjectVisible = ref(false);
   const editUpdatePriProjectFormData = ref({});
   function handleUpdatePriProject(row) {