Forráskód Böngészése

fix(bugs): 修改4-6问题

tangning 3 éve
szülő
commit
ce300dc2b7

+ 1 - 1
src/api/staff/list.ts

@@ -41,7 +41,7 @@ export const getNumByStaff = (params: any) =>
 export const delApi = (params: DelParams) =>
   defHttp.post<Result>({
     url: Api.deleteStaff,
-    params: { userId: params },
+    params,
     headers: {
       // @ts-ignore
       ignoreCancelToken: true,

+ 2 - 0
src/views/advertisement/schemas.ts

@@ -32,6 +32,7 @@ export const padsSchemas: FormSchema[] = [
     label: '标题',
     componentProps: {
       placeholder: '标题',
+      maxLength: 15,
     },
     required: true,
   },
@@ -106,6 +107,7 @@ export const schemas: FormSchema[] = [
     label: '正文标题',
     componentProps: {
       placeholder: '轮播图正文标题',
+      maxLength: 15,
     },
     required: true,
   },

+ 1 - 1
src/views/corporation/setTime.vue

@@ -3,7 +3,7 @@
     v-bind="$attrs"
     @register="register"
     :title="t('routes.corporation.expirationTime')"
-    :height="600"
+    :minHeight="350"
     @visible-change="handleVisibleChange"
     @ok="handleSubmit"
     @cancel="resetFields"

+ 1 - 3
src/views/member/list.vue

@@ -174,11 +174,9 @@ weixinOpenid: "oeADe5U9uLeMYsNigq98zdu8J96A"
       function renderGenderLabel(gender: number): string {
         switch (gender) {
           case 0:
-            return '未知';
+            return '';
           case 1:
             return '男';
-          case 2:
-            return '女';
           default:
             return '未知';
         }

+ 6 - 1
src/views/product/goodsSpecs.vue

@@ -27,7 +27,12 @@
       </template>
       <template #formFooter>
         <div>
-          <a-button style="margin-right: 30px" @click="addBut">添加规格项目</a-button>
+          <a-button
+            :disabled="Object.keys(ggList.list)?.length > 2"
+            style="margin-right: 30px"
+            @click="addBut"
+            >添加规格项目</a-button
+          >
           <a-button @click="handleSubmit">生成规格明细</a-button>
         </div>
       </template>

+ 1 - 0
src/views/product/productDrawer.vue

@@ -237,6 +237,7 @@
           let apiData = {
             ...editData.value,
             ...values,
+            retailPrice: editData.value.productList[0]?.retailPrice,
             isOnSale: values.isOnSale ? 1 : 0,
           };
           let requresApi = isUpdate.value ? UpdateSaleApi : SaveSaleApi;

+ 2 - 2
src/views/product/ref.vue

@@ -51,7 +51,7 @@
             if (!text) {
               return '请输入商品属性';
             }
-            if (text && text.length > 25) {
+            if (text && text.length > 15) {
               return t('routes.corporation.maxlength');
             }
             return '';
@@ -103,7 +103,7 @@
                 xxl: 6,
               },
               componentProps: {
-                maxLength: 100,
+                maxLength: 15,
               },
             },
           ],

+ 1 - 1
src/views/scenes/list.vue

@@ -113,7 +113,7 @@
           width: 120,
         },
         {
-          title: t('routes.scenes.webSite'),
+          title: '直播间链接',
           dataIndex: 'webSite',
           slots: { customRender: 'link' },
           width: 180,

+ 1 - 1
src/views/staff/list.vue

@@ -243,7 +243,7 @@
           title: '警告',
           content: `此操作将对${record.userName}进行删除, 是否继续?`,
           onOk: async () => {
-            await delApi(record.id);
+            await delApi({ userId: record.id });
             reload();
           },
         });