tangning před 3 týdny
rodič
revize
572cda3ce6

+ 2 - 2
src/locales/lang/en/routes/empower.ts

@@ -11,11 +11,11 @@ export default {
   cameraSn: 'Camera Sn',
   authorize: 'License Code',
   authorizeTime: 'License Duration',
-  remark: 'remark',
+  remark: 'License Description',
   agentName: 'Sub-Distributor Email Address',
   authorizeStartTime: 'Start Date',
   authorizeEndTime: 'End Date',
-  agentId: 'Sub-Distributor',
+  agentId: 'Sub-Distributor Email Address',
   addName: 'Local Algorithm License',
   list: 'Algorithm License List',
   deltTips: 'Are you sure you want to delete this license?',

+ 1 - 1
src/views/empower/AddModal.vue

@@ -224,7 +224,7 @@
       ];
 
       const [registerForm, { validate, resetFields, setFieldsValue, updateSchema }] = useForm({
-        labelWidth: 160,
+        labelWidth: 200,
         schemas: [...schemas, ...remarkschemas],
         showActionButtonGroup: false,
         actionColOptions: {

+ 1 - 1
src/views/empower/data.ts

@@ -7,7 +7,7 @@ export const remarkschemas: FormSchema[] = [
   {
     field: 'remark',
     component: 'InputTextArea',
-    label: t('routes.empower.remarks'),
+    label: t('routes.empower.remark'),
     componentProps: {
       placeholder: t('routes.empower.placeholder'),
       rows: 4,

+ 7 - 3
src/views/empower/index.vue

@@ -33,7 +33,7 @@
   </div>
 </template>
 <script lang="ts">
-  import { defineComponent, h } from 'vue';
+  import { defineComponent, h, computed } from 'vue';
   import {
     BasicTable,
     useTable,
@@ -48,6 +48,7 @@
   import { Time } from '/@/components/Time';
   import AddModal from './AddModal.vue';
   import batchModal from './batchModal.vue';
+  import { useLocaleStore } from '/@/store/modules/locale';
   import { useMessage } from '/@/hooks/web/useMessage';
   // import { usePermissionStore } from '/@/store/modules/permission';
   import { useI18n } from '/@/hooks/web/useI18n';
@@ -66,7 +67,9 @@
       // const { getCheckPerm } = permissionStore;
       const { t } = useI18n();
       const [register, { openModal }] = useModal();
+      const localeStore = useLocaleStore();
       const [registerBatch, { openModal: openBatchModal }] = useModal();
+      const isEn = computed(() => localeStore.getLocale === 'en');
       const columns: BasicColumn[] = [
         {
           title: t('routes.empower.customerName'),
@@ -130,7 +133,7 @@
           title: t('routes.empower.agentName'),
           ellipsis: true,
           dataIndex: 'agentName',
-          width: 200,
+          width: 220,
         },
         {
           title: t('routes.retailer.createName'),
@@ -157,7 +160,7 @@
           title: t('routes.empower.remark'),
           ellipsis: true,
           dataIndex: 'remark',
-          width: 120,
+          width: 200,
         },
       ];
       const searchForm: Partial<FormProps> = {
@@ -167,6 +170,7 @@
           {
             field: 'customerName',
             label: t('routes.empower.customerName'),
+            labelWidth: isEn.value ? 160 : 80,
             component: 'Input',
             colProps: {
               xl: 8,