zhangjie 1 rok pred
rodič
commit
d179687fda

+ 10 - 2
src/api/interceptor.ts

@@ -121,12 +121,20 @@ axios.interceptors.response.use(
     const unauthStatus = [401, 403];
 
     if (!unauthStatus.includes(response.status)) {
-      Notification.error({ title: '错误提示', content: message });
+      Notification.error({
+        title: '错误提示',
+        content: message,
+        closable: true,
+      });
       return Promise.reject(error);
     }
 
     if (errorData.code === 401001 && message === '没有权限') {
-      Notification.error({ title: '错误提示', content: message });
+      Notification.error({
+        title: '错误提示',
+        content: message,
+        closable: true,
+      });
       return Promise.reject(error);
     }
 

+ 4 - 0
src/utils/arco.ts

@@ -21,3 +21,7 @@ export async function modalConfirm(
     });
   });
 }
+
+export const intFormatter = (value: string) => {
+  return value.replace('.', '');
+};

+ 1 - 1
src/views/login/login/index.vue

@@ -83,7 +83,7 @@
     account: [
       {
         required: true,
-        message: '请输入用户名',
+        message: '请输入账号',
       },
     ],
     password: [

+ 4 - 1
src/views/order/task-manage/ruleForm.vue

@@ -18,6 +18,7 @@
           :min="1"
           :max="999"
           :step="1"
+          :formatter="intFormatter"
         />
         <span>天,禁止考生自主预约</span>
       </a-form-item>
@@ -31,8 +32,9 @@
           :min="1"
           :max="999"
           :step="1"
+          :formatter="intFormatter"
         />
-        <span>天,禁止考生自主预约</span>
+        <span>天,禁止考生自主取消预约</span>
       </a-form-item>
       <a-form-item field="selfApplyStartTime" label="第一阶段开启时间">
         <select-range-datetime
@@ -73,6 +75,7 @@
   import type { FormInstance, FieldRule } from '@arco-design/web-vue/es/form';
   import { objAssign, objModifyAssign } from '@/utils/utils';
   import { TaskItemDetail, TaskRuleUpdateParams } from '@/api/types/order';
+  import { intFormatter } from '@/utils/arco';
 
   defineOptions({
     name: 'RuleForm',