Bläddra i källkod

fix(bugs): 修改5-30下午问题

tangning 3 år sedan
förälder
incheckning
ba503a39ab

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

@@ -59,7 +59,7 @@ export const padsSchemas: FormSchema[] = [
   },
   {
     field: 'orderNum',
-    component: 'Input',
+    component: 'InputNumber',
     label: '排序',
     defaultValue: 0,
     componentProps: {
@@ -67,6 +67,7 @@ export const padsSchemas: FormSchema[] = [
       placeholder: '推荐排序',
       type: 'number',
       min: 0,
+      max: 99999,
     },
     required: true,
     rules: [
@@ -134,12 +135,13 @@ export const schemas: FormSchema[] = [
 
   {
     field: 'orderNum',
-    component: 'Input',
+    component: 'InputNumber',
     label: '轮播排序',
     defaultValue: 0,
     componentProps: {
       maxLength: 5,
       placeholder: '轮播排序',
+      max: 99999,
       type: 'number',
       min: 0,
     },

+ 1 - 1
src/views/product/list.data.ts

@@ -152,7 +152,7 @@ function showAction(): boolean {
   if (getCheckRole(['company_admin']) && getEquity([1])) {
     return true;
   }
-  if (getCheckRole(['super', 'plat_admin', 'company_admin'])) {
+  if (getCheckRole(['super', 'plat_admin'])) {
     return true;
   }
   return false;

+ 1 - 1
src/views/rightsEnterprises/addCameraModal.vue

@@ -6,7 +6,7 @@
     @ok="handleOk"
     width="600px"
   >
-    <div class="pt-3px pr-3px">
+    <div style="padding-bottom: 90px" class="pt-3px pr-3px">
       <BasicForm @register="registerForm">
         <template #text="{ model, field }">
           {{ model[field] }}

+ 2 - 1
src/views/rightsEnterprises/rightsList.vue

@@ -149,6 +149,7 @@
             field: 'fieldTime',
             component: 'RangePicker',
             label: t('routes.rightsEnterprises.timeField'),
+            ifShow: !getCheckRole('plat_admin'),
             colProps: {
               span: 8,
             },
@@ -171,7 +172,7 @@
         formConfig: searchForm,
         showTableSetting: true,
         tableSetting: { fullScreen: true },
-        showIndexColumn: false,
+        showIndexColumn: true,
         pagination: { pageSize: 20 },
         rowKey: 'companyId',
         fetchSetting: {

+ 10 - 0
src/views/scenes/live.vue

@@ -142,6 +142,16 @@
         },
 
         {
+          title: t('routes.scenes.status'),
+          dataIndex: 'payStatus',
+          width: 180,
+          customRender: ({ record }) => {
+            const enable = record.payStatus == 1;
+            const text = enable ? t('routes.scenes.statusText.1') : t('routes.scenes.statusText.0');
+            return text;
+          },
+        },
+        {
           title: t('routes.scenes.livestreamStatus'),
           dataIndex: 'livestreamStatus',
           width: 180,

+ 1 - 0
src/views/scenes/liveDrawer.vue

@@ -167,6 +167,7 @@
           componentProps: {
             accept: ['jpg', 'jpeg', 'gif', 'png'],
             maxSize: 5,
+            maxNumber: 1,
             api: uploadLiveApi,
             onChange: async () => {
               await validateFields(['appListPicUrl']);

+ 2 - 2
src/views/staff/detailsModal.vue

@@ -187,7 +187,7 @@
               });
             },
             labelField: 'permName',
-            valueField: 'permTypeId',
+            valueField: 'id',
             immediate: true,
             mode: 'multiple',
             params: {
@@ -260,7 +260,7 @@
           {
             field: 'phone',
             componentProps: {
-              disabled: data.id ? true : false,
+              disabled: getCheckRole('plat_admin') ? false : data.id ? true : false,
             },
           },
           {