dingxin 6 лет назад
Родитель
Сommit
2bfeb21e72

+ 1
- 1
VUECODE/smart-property-manage/src/views/account/user/addUser.vue Просмотреть файл

@@ -54,7 +54,7 @@ export default {
54 54
         children: 'children'
55 55
       },
56 56
       rules: {
57
-        roleName: [
57
+        userName: [
58 58
           { required: true, message: '名称', trigger: 'blur' }
59 59
         ],
60 60
         loginName: [

+ 8
- 6
VUECODE/smart-property-manage/src/views/account/user/index.vue Просмотреть файл

@@ -34,8 +34,8 @@
34 34
       <el-table-column prop="createNmae" label="创建人" align="center"/>
35 35
       <el-table-column prop="createDate" label="创建时间" align="center"><template slot-scope="scope">{{ formatDate(scope.row.createDate) }}</template></el-table-column>
36 36
       <el-table-column prop="id" label="操作" align="center">
37
-          <template slot-scope="scope"><a><span style="color: #63B8FF" @click="upDateStatus(scope.row.id,scope.row.status)">{{ scope.row.status =='1' ? '停用账号':'启用账号' }}</span></a></template>
38
-          </el-table-column>
37
+        <template slot-scope="scope"><a><span style="color: #63B8FF" @click="upDateStatus(scope.row.id,scope.row.status)">{{ scope.row.status =='1' ? '停用账号':'启用账号' }}</span></a></template>
38
+      </el-table-column>
39 39
     </el-table>
40 40
     <div class="block">
41 41
       <el-pagination
@@ -64,7 +64,7 @@ export default {
64 64
         createUser: '',
65 65
         updateUser: '',
66 66
         updateDate: '',
67
-        status : '',
67
+        status: '',
68 68
         pageNum: 1,
69 69
         pageSize: 10
70 70
       },
@@ -77,6 +77,10 @@ export default {
77 77
   mounted() {
78 78
     // 获取数据
79 79
     this.dataQuery()
80
+    // 截取角色
81
+    if(this.listQuery.roleName.length>1){
82
+      this.listQuery.roleName = this.listQuery.roleName.slice(0,10)+'...';
83
+    }
80 84
   },
81 85
   methods: {
82 86
     ...mapActions('listAnnouncement', [
@@ -109,11 +113,9 @@ export default {
109 113
         this.listLoading = false
110 114
         console.log('error EmployeesList')
111 115
       })
112
-      
113 116
     },
114 117
     handleSelectionChange(data) {
115
-      // 设置为 空
116
-      this.deleteIds = []
118
+      this.deleteIds = [] // 设置为 空
117 119
       for (let i = 0; i < data.length; i++) {
118 120
         this.deleteIds.push(data[i].id)
119 121
       }