فهرست منبع

2024.08.22
- 用户管理页修改用户名为账号显示;

zweiqin 7 ماه پیش
والد
کامیت
3ce9ede25a
2فایلهای تغییر یافته به همراه5 افزوده شده و 4 حذف شده
  1. 1 1
      src/views/mealManagement/mealProcessing/index.vue
  2. 4 3
      src/views/setup/user/index.vue

+ 1 - 1
src/views/mealManagement/mealProcessing/index.vue

@@ -121,7 +121,7 @@ export default {
       try {
         const res1 = await getAllShopAuthPost({ name: '', isStop: '' })
         this.allRangeList = [{ id: '0', name: '全部', code: '' }, ...res1.data]
-        this.activeRange = this.allRangeList[0].name
+        this.activeRange = this.allRangeList[0].id
         const res2 = await getAllShopAuthDept({ name: '', isStop: '' })
         this.mealTableList = res2.data
         this.currentTableList = this.mealTableList.filter((i) => !Number(this.activeRange) || (Number(this.activeRange) === i.areaId))

+ 4 - 3
src/views/setup/user/index.vue

@@ -65,8 +65,8 @@
       <!-- 新增用户 -->
       <div>
         <el-form ref="ruleForm" :model="addForm" label-width="80px" :rules="userRules">
-          <el-form-item label="用户名" prop="username">
-            <el-input v-model="addForm.username" maxlength="20" placeholder="请输入用户名" />
+          <el-form-item label="账号" prop="username">
+            <el-input v-model="addForm.username" maxlength="20" placeholder="请输入账号" />
           </el-form-item>
           <el-form-item label="姓名" prop="name">
             <el-input v-model="addForm.name" maxlength="20" placeholder="请输入姓名" />
@@ -138,6 +138,7 @@ export default {
       currentPage: 1,
       userState: 1,
       addForm: {
+        username: '', // 账号
         name: '', // 昵称
         password: '', // 密码
         email: '', // 邮箱
@@ -149,7 +150,7 @@ export default {
       addFormDialog: false,
       userRules: {
         username: [
-          { required: true, message: '请输入用户名', trigger: 'blur' }
+          { required: true, message: '请输入账号', trigger: 'blur' }
         ],
         name: [ { required: true, message: '请输入姓名', trigger: 'blur' } ],
         phone: [