Преглед изворни кода

客户下拉框去除userid传参

cz пре 1 година
родитељ
комит
fa4eb440d1
1 измењених фајлова са 12 додато и 14 уклоњено
  1. 12 14
      src/components/process/EHSD/Contract.vue

+ 12 - 14
src/components/process/EHSD/Contract.vue

@@ -1164,7 +1164,7 @@ const getDict = () => {
     .post("/customer/selPage", {
       pageNum: 1,
       pageSize: 50,
-      userId: userInfo.user.userId,
+      // userId: userInfo.user.userId,
     })
     .then((res) => {
       customerList.value = res.rows.map((x) => ({
@@ -1791,16 +1791,14 @@ const loadingSearch = ref(false);
 const remoteMethod = (keyword) => {
   if (keyword && typeof keyword === "string") {
     loadingSearch.value = true;
-    proxy
-      .post("/customer/selPage", { keyword, userId: userInfo.user.userId })
-      .then((res) => {
-        customerList.value = res.rows.map((x) => ({
-          ...x,
-          label: x.name,
-          value: x.id,
-        }));
-        loadingSearch.value = false;
-      });
+    proxy.post("/customer/selPage", { keyword }).then((res) => {
+      customerList.value = res.rows.map((x) => ({
+        ...x,
+        label: x.name,
+        value: x.id,
+      }));
+      loadingSearch.value = false;
+    });
   }
   return;
 };
@@ -2003,7 +2001,7 @@ watch(
           proxy
             .post("/customer/selPage", {
               keyword: res.buyCorporationName,
-              userId: userInfo.user.userId,
+              // userId: userInfo.user.userId,
             })
             .then((res) => {
               customerList.value = res.rows.map((x) => ({
@@ -2093,7 +2091,7 @@ const selectContract = (businessId) => {
           proxy
             .post("/customer/selPage", {
               keyword: res.buyCorporationName,
-              userId: userInfo.user.userId,
+              // userId: userInfo.user.userId,
             })
             .then((res) => {
               customerList.value = res.rows.map((x) => ({
@@ -2217,7 +2215,7 @@ const selectContract = (businessId) => {
           proxy
             .post("/customer/selPage", {
               keyword: res.buyCorporationName,
-              userId: userInfo.user.userId,
+              // userId: userInfo.user.userId,
             })
             .then((res) => {
               customerList.value = res.rows.map((x) => ({