tangning 3 лет назад
Родитель
Сommit
f5ecbf3add

+ 1 - 1
src/api/sys/user.ts

@@ -15,7 +15,7 @@ enum Api {
   // Login = '/basic-api/sys/login',
   Login = '/zfb-api/zfb/loginBackground',
   Logout = '/logout',
-  updatePassword = '/kankan-api/api/manager/user/updatePassword',
+  updatePassword = '/zfb-api/zfb/user/updatePassword',
   GetUserInfo = '/zfb-api/zfb/shop/sys/user/infoAnon',
   GetPermCode = '/getPermCode',
 }

+ 2 - 0
src/locales/lang/zh-CN/routes/staff.ts

@@ -6,6 +6,8 @@ export default {
   mobile: '手机',
   createTime: '创建时间',
   staffList: '员工列表',
+  updateBtn: '修改密码',
+  password: '修改密码',
   roleType: {
     0: '公司管理员',
     1: '公司员工',

+ 8 - 5
src/views/staff/list.vue

@@ -18,10 +18,7 @@
       <template #createTime="{ record }">
         <Time :value="record.createTime" mode="datetime" />
       </template>
-      <!-- {
-        label: t('routes.staff.setpaswd'),
-        onClick: handleOpenModal.bind(null, record),
-      }, -->
+      <!-- , -->
       <template #action="{ record }">
         <TableAction
           :actions="[
@@ -31,6 +28,12 @@
               onClick: handleEdit.bind(null, record),
             },
             {
+              icon: 'typcn:lock-closed',
+              color: 'warning',
+              label: t('routes.staff.setpaswd'),
+              onClick: handleOpenModal.bind(null, record),
+            },
+            {
               label: '删除',
               color: 'error',
               icon: 'ant-design:delete-outlined',
@@ -128,7 +131,7 @@
           dataIndex: '',
           slots: { customRender: 'action' },
           fixed: 'right',
-          width: 140,
+          width: 180,
         },
       ];
 

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

@@ -3,7 +3,7 @@
     v-bind="$attrs"
     @register="register"
     @ok="handSubmit"
-    :title="t('routes.personalSetting.updateBtn')"
+    :title="t('routes.staff.updateBtn')"
     @visible-change="handleVisibleChange"
     @cancel="resetFields"
   >
@@ -40,7 +40,7 @@
         {
           field: 'password',
           component: 'StrengthMeter',
-          label: t('routes.personalSetting.password'),
+          label: t('routes.staff.password'),
           labelWidth: 120,
           required: true,
           colProps: { span: 18 },