ソースを参照

删除测试用默认值

congxuesong 1 ヶ月 前
コミット
4e12f32025

+ 3 - 3
src/views/groupPackageManagement/index.vue

@@ -357,8 +357,8 @@ watch(
 );
 // 如果表格需要初始化请求参数,直接定义传给 ProTable (之后每次请求都会自动带上该参数,此参数更改之后也会一直带上,改变此参数会自动刷新表格数据)
 const initParam = reactive({
-  storeId: localGet("createdId") || "",
-  groupType: localGet("businessSection") || "1",
+  storeId: localGet("createdId"),
+  groupType: localGet("businessSection"),
   status: activeName
 });
 const type = ref(false);
@@ -407,7 +407,7 @@ const deleteRow = row => {
   }).then(() => {
     const params = {
       id: row.id,
-      groupType: localGet("businessSection") || "1"
+      groupType: localGet("businessSection")
     };
     delThaliById(params).then(() => {
       ElMessage.success("删除成功");

+ 3 - 3
src/views/groupPackageManagement/newGroup.vue

@@ -991,7 +991,7 @@ onMounted(async () => {
   if (type.value != "add") {
     const params = {
       id: id.value,
-      userId: localGet("userId") || "104"
+      userId: localGet("userId")
     };
     let res: any = await getThaliById(params);
     storeInfoModel.value = { ...storeInfoModel.value, ...res.data.lifeGroupBuyMain };
@@ -1679,7 +1679,7 @@ const openDishDialog = async (groupIndex: number, dishIndex: number) => {
   currentDishIndex.value = dishIndex;
   dishSearchKeyword.value = "";
   const params = {
-    storeId: localGet("createdId") || "104",
+    storeId: localGet("createdId"),
     phoneId: 18641153170,
     dishType: 0
   };
@@ -1876,7 +1876,7 @@ const handleSubmit = async (type?) => {
     lifeGroupBuyThalis: lifeGroupBuyThalis.value
   };
   paramsObj.lifeGroupBuyMain.status = type ? "0" : "1";
-  paramsObj.lifeGroupBuyMain.groupType = localGet("businessSection") || "1";
+  paramsObj.lifeGroupBuyMain.groupType = localGet("businessSection");
   paramsObj.lifeGroupBuyMain.storeId = localGet("createdId");
   if (id.value) {
     paramsObj.lifeGroupBuyMain.id = id.value;

+ 3 - 3
src/views/voucherManagement/index.vue

@@ -306,8 +306,8 @@ const dataType = computed(() => {
 
 // 如果表格需要初始化请求参数,直接定义传给 ProTable (之后每次请求都会自动带上该参数,此参数更改之后也会一直带上,改变此参数会自动刷新表格数据)
 const initParam = reactive({
-  storeId: localGet("createdId") || "",
-  groupType: localGet("businessSection") || "1",
+  storeId: localGet("createdId"),
+  groupType: localGet("businessSection"),
   status: activeName,
   dataType: dataType
 });
@@ -356,7 +356,7 @@ const deleteRow = row => {
   }).then(() => {
     const params = {
       id: row.id,
-      groupType: localGet("businessSection") || "1"
+      groupType: localGet("businessSection")
     };
     delThaliById(params).then(() => {
       ElMessage.success("删除成功");