See999 5 vuotta sitten
vanhempi
commit
2b48874a3f
2 muutettua tiedostoa jossa 954 lisäystä ja 764 poistoa
  1. 596 448
      src/scrm_pages/members/members.vue
  2. 358 316
      src/scrm_pages/systemsetting/staffmanagement.vue

File diff suppressed because it is too large
+ 596 - 448
src/scrm_pages/members/members.vue


+ 358 - 316
src/scrm_pages/systemsetting/staffmanagement.vue Näytä tiedosto

@@ -1,339 +1,381 @@
1 1
 <template>
2 2
   <div class="main-contain">
3 3
     <div class="position">
4
-      <bread-crumb :crumbs='crumbs'></bread-crumb>
5
-       <el-button  style="float:right;" type="primary" size="small" icon="el-icon-circle-plus-outline" @click="openCreate()" >添加员工</el-button>
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+      <el-button
6
+        style="float:right;"
7
+        type="primary"
8
+        size="small"
9
+        icon="el-icon-circle-plus-outline"
10
+        @click="openCreate()"
11
+      >添加员工</el-button>
6 12
     </div>
7 13
     <div class="app-container">
8
-         <div>
9
-             <el-row :gutter="24">
10
-                <el-col :span="8">
11
-                  <el-input style="width: 300px" v-model="keyword"  placeholder="请输入您需要搜索的内容"></el-input>
12
-                  <el-button type="primary"  icon="el-icon-search" @click="changeKey()">搜索</el-button>
13
-                </el-col>
14
-             </el-row>
15
-         </div>
16
-         <div class="filter-container" style="margin-top: 10px;margin-left: 5px">
17
-            <el-checkbox style="width: 30px"  @change="changeCheck" v-model="checkAllStatus">全选</el-checkbox>
18
-            <el-button size="small" icon="el-icon-delete" @click="openDeleteStaffs">批量删除</el-button>
19
-          </div>
20
-              <el-table ref="multipleTable"
21
-              :header-cell-style="{ backgroundColor:
14
+      <div>
15
+        <el-row :gutter="24">
16
+          <el-col :span="8">
17
+            <el-input style="width: 300px" v-model="keyword" placeholder="请输入您需要搜索的内容"></el-input>
18
+            <el-button type="primary" icon="el-icon-search" @click="changeKey()">搜索</el-button>
19
+          </el-col>
20
+        </el-row>
21
+      </div>
22
+      <div class="filter-container" style="margin-top: 10px;margin-left: 5px">
23
+        <el-checkbox style="width: 30px" @change="changeCheck" v-model="checkAllStatus">全选</el-checkbox>
24
+        <el-button size="small" icon="el-icon-delete" @click="openDeleteStaffs">批量删除</el-button>
25
+      </div>
26
+      <el-table
27
+        :row-style="{height:'40px'}"
28
+        class="elTable"
29
+        ref="multipleTable"
30
+        :header-cell-style="{ backgroundColor:
22 31
               'rgb(245, 247, 250)'}"
23
-              :data="staffsData" border fit highlight-current-row  style="width: 100%;margin-top: 10px;"
24
-               @selection-change="handleSelectionChange"
25
-              >
26
-              <el-table-column
27
-                type="selection"
28
-                width="55">
29
-              </el-table-column>
30
-              <el-table-column label="员工" align="center">
31
-               <template slot-scope="scope">
32
-                  <div style="display:flex;align-items: center;">
33
-                   <img :src="scope.row.dochead" alt="" srcset="" style="width:50px;height:50px; border-radius:50%;margin-right:5px;" >
34
-                    <div>
35
-                     <span>{{scope.row.name}}</span>
36
-                    </div>
37
-                 </div>
38
-                  <!-- {{scope.row.name}} -->
39
-               </template>
40
-             </el-table-column>
41
-            <el-table-column label="职称" align="center" >
42
-              <template slot-scope="scope">
43
-                   {{staffTitle(scope.row.user_title)}}
44
-              </template>
45
-            </el-table-column>
46
-            <el-table-column label="介绍" align="center">
47
-              <template slot-scope="scope">
48
-                 <li v-html="scope.row.content"></li>
49
-              </template>
50
-            </el-table-column>
51
-            <el-table-column label="手机号" align="center">
52
-              <template slot-scope="scope">
53
-                 {{scope.row.phone}}
54
-              </template>
55
-            </el-table-column>
56
-            <el-table-column label="创建时间" align="center">
57
-              <template slot-scope="scope">
58
-                {{staffCreateTime(scope.row.ctime)}}
59
-              </template>
60
-            </el-table-column>
61
-            <el-table-column label="操作" align="center">
62
-              <template slot-scope="scope">
63
-                <el-tooltip class="item" effect="dark" content="编辑" placement="top" >
64
-                  <el-button
65
-                    size="mini"
66
-                    type="primary"
67
-                    icon="el-icon-edit-outline"
68
-                    @click="openEdit(scope.row,scope.$index)">
69
-                  </el-button>
70
-                </el-tooltip>
71
-                  <el-tooltip class="item" effect="dark" content="删除" placement="top">
72
-                  <el-button 
73
-                  size="mini"
74
-                   type="danger" 
75
-                   icon="el-icon-delete"
76
-                    @click="openDelete(scope.row,scope.$index)">
77
-                   </el-button>
78
-                </el-tooltip>
79
-              </template>
80
-            </el-table-column>
81
-          </el-table>
82
-          <el-pagination
83
-            @size-change="handleSizeChange"
84
-            @current-change="handleCurrentChange"
85
-            :page-sizes="[10,20,50,100]"
86
-            :page-size="10"
87
-            background
88
-            style="margin-top:20px;float: right"
89
-            layout="total, sizes, prev, pager, next, jumper"
90
-            :total="total">
91
-          </el-pagination>
92
-            <!-- 添加员工 -->
93
-          <create-staff-form ref="createStaffForm" :staffsData="staffsData"></create-staff-form>
94
-          <!--编辑员工-->
95
-          <edit-staff-form ref="editStaffForm" :staffsData="staffsData" :form="staffData" :staffIndex = "staffIndex"></edit-staff-form>
32
+        :data="staffsData"
33
+        border
34
+        fit
35
+        highlight-current-row
36
+        style="width: 100%;margin-top: 10px;"
37
+        @selection-change="handleSelectionChange"
38
+      >
39
+        <el-table-column type="selection" width="55"></el-table-column>
40
+        <el-table-column label="员工" align="center">
41
+          <template slot-scope="scope">
42
+            <div style="display:flex;align-items: center;">
43
+              <img
44
+                :src="scope.row.dochead"
45
+                alt
46
+                srcset
47
+                style="width:50px;height:50px; border-radius:50%;margin-right:5px;"
48
+              />
49
+              <div>
50
+                <span>{{scope.row.name}}</span>
51
+              </div>
52
+            </div>
53
+            <!-- {{scope.row.name}} -->
54
+          </template>
55
+        </el-table-column>
56
+        <el-table-column label="职称" align="center">
57
+          <template slot-scope="scope">{{staffTitle(scope.row.user_title)}}</template>
58
+        </el-table-column>
59
+        <el-table-column label="介绍" align="center" row-style="{}">
60
+          <template slot-scope="scope">
61
+            <li v-html="scope.row.content"></li>
62
+          </template>
63
+        </el-table-column>
64
+        <el-table-column label="手机号" align="center">
65
+          <template slot-scope="scope">{{scope.row.phone}}</template>
66
+        </el-table-column>
67
+        <el-table-column label="创建时间" align="center">
68
+          <template slot-scope="scope">{{staffCreateTime(scope.row.ctime)}}</template>
69
+        </el-table-column>
70
+        <el-table-column label="操作" align="center">
71
+          <template slot-scope="scope">
72
+            <el-tooltip class="item" effect="dark" content="编辑" placement="top">
73
+              <el-button
74
+                size="mini"
75
+                type="primary"
76
+                icon="el-icon-edit-outline"
77
+                @click="openEdit(scope.row,scope.$index)"
78
+              ></el-button>
79
+            </el-tooltip>
80
+            <el-tooltip class="item" effect="dark" content="删除" placement="top">
81
+              <el-button
82
+                size="mini"
83
+                type="danger"
84
+                icon="el-icon-delete"
85
+                @click="openDelete(scope.row,scope.$index)"
86
+              ></el-button>
87
+            </el-tooltip>
88
+          </template>
89
+        </el-table-column>
90
+      </el-table>
91
+      <el-pagination
92
+        @size-change="handleSizeChange"
93
+        @current-change="handleCurrentChange"
94
+        :page-sizes="[10,20,50,100]"
95
+        :page-size="10"
96
+        background
97
+        style="margin-top:20px;float: right"
98
+        layout="total, sizes, prev, pager, next, jumper"
99
+        :total="total"
100
+      ></el-pagination>
101
+      <!-- 添加员工 -->
102
+      <create-staff-form ref="createStaffForm" :staffsData="staffsData"></create-staff-form>
103
+      <!--编辑员工-->
104
+      <edit-staff-form
105
+        ref="editStaffForm"
106
+        :staffsData="staffsData"
107
+        :form="staffData"
108
+        :staffIndex="staffIndex"
109
+      ></edit-staff-form>
96 110
     </div>
97 111
   </div>
98 112
 </template>
99 113
 
100 114
 <script>
101
-  import BreadCrumb from '../components/bread-crumb'
102
-  import {getAllStaffInfo,DeleteStaffs} from '@/api/act/staffmanager'
103
-  import {getToken} from '@/api/qiniu'
104
-  import {getFileExtension,uParseTime} from '@/utils/tools'
105
-  import CreateStaffForm from "./components/CreateStaffForm";
106
-  import EditStaffForm from "./components/EditStaffForm";
107
-  export default {
108
-    name: 'articleComment',
109
-    components:{
110
-      EditStaffForm,
111
-      BreadCrumb,
112
-      CreateStaffForm,
113
-      EditStaffForm,
115
+import BreadCrumb from "../components/bread-crumb";
116
+import { getAllStaffInfo, DeleteStaffs } from "@/api/act/staffmanager";
117
+import { getToken } from "@/api/qiniu";
118
+import { getFileExtension, uParseTime } from "@/utils/tools";
119
+import CreateStaffForm from "./components/CreateStaffForm";
120
+import EditStaffForm from "./components/EditStaffForm";
121
+export default {
122
+  name: "articleComment",
123
+  components: {
124
+    EditStaffForm,
125
+    BreadCrumb,
126
+    CreateStaffForm,
127
+    EditStaffForm
128
+  },
129
+  data() {
130
+    return {
131
+      crumbs: [
132
+        { path: false, name: "系统设置" },
133
+        { path: "/Systemsetting/staffmanagement", name: "员工管理" }
134
+      ],
135
+      centerDialogVisible: false,
136
+      radio: "1",
137
+      value: "",
138
+      qiniuDomain: "https://images.shengws.com/",
139
+      uploadData: { token: "", key: "" },
140
+      user_types: [
141
+        { index: 2, name: "医生" },
142
+        { index: 3, name: "护士" },
143
+        { index: 4, name: "运营" }
144
+      ],
145
+      user_titles: [
146
+        { index: 1, name: "医士" },
147
+        { index: 2, name: "医师" },
148
+        { index: 3, name: "住院医师" },
149
+        { index: 4, name: "主治医师" },
150
+        { index: 5, name: "副主任医师" },
151
+        { index: 6, name: "主任医师" },
152
+        { index: 7, name: "护士" },
153
+        { index: 8, name: "护师" },
154
+        { index: 9, name: "主管护师" },
155
+        { index: 10, name: "副主任护师" },
156
+        { index: 11, name: "主任护师" },
157
+        { index: 12, name: "运营专员" },
158
+        { index: 13, name: "运营主管" }
159
+      ],
160
+      imageUrl: "",
161
+      staffsData: [],
162
+      form: {
163
+        name: "",
164
+        phone: "",
165
+        birthday: "",
166
+        gender: "",
167
+        user_type: "",
168
+        user_title: "",
169
+        dochead: "",
170
+        page: 1,
171
+        limit: 10,
172
+        content: ""
173
+      },
174
+      staffData: {
175
+        id: 0,
176
+        name: "",
177
+        phone: "",
178
+        birthday: "",
179
+        gender: "",
180
+        user_type: "",
181
+        user_title: "",
182
+        dochead: "",
183
+        page: 1,
184
+        limit: 10,
185
+        content: ""
186
+      },
187
+      total: 0,
188
+      keyword: "",
189
+      staffform: [],
190
+      staffIndex: -1,
191
+      checkAllStatus: false
192
+    };
193
+  },
194
+  methods: {
195
+    openCreate() {
196
+      this.$refs.createStaffForm.open();
197
+    },
198
+    staffAvatar(row) {
199
+      if (
200
+        typeof row.avatar == "undefined" ||
201
+        !row.avatar ||
202
+        row.avatar.length == 0
203
+      ) {
204
+        if (row.gender == 2) {
205
+          return "https://images.shengws.com/201809182128222.png";
206
+        } else {
207
+          return "https://images.shengws.com/201809182128111.png";
208
+        }
209
+      } else {
210
+        return row.avatar;
211
+      }
212
+    },
213
+    handleSelectionChange(val) {
214
+      this.selectedArticles = val;
215
+    },
216
+    handleSizeChange(limit) {
217
+      this.form.limit = limit;
218
+      this.getAllStaffInfo();
219
+    },
220
+    handleCurrentChange(page) {
221
+      this.form.page = page;
222
+      this.getAllStaffInfo();
223
+    },
224
+    getAllStaffInfo() {
225
+      getAllStaffInfo(this.form, this.keyword).then(response => {
226
+        if (response.data.state == 1) {
227
+          this.staffsData = response.data.data.userStaffInfo;
228
+
229
+          console.log("员工管理数据", this.staffsData);
230
+          this.total = response.data.data.total;
231
+          console.log("总页数", this.total);
232
+        }
233
+      });
234
+    },
235
+    staffCreateTime(time) {
236
+      return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
237
+    },
238
+    staffTitle(title) {
239
+      if (title == 1) {
240
+        return "医士";
241
+      } else if (title == 2) {
242
+        return "医师";
243
+      } else if (title == 3) {
244
+        return "住院医师";
245
+      } else if (title == 4) {
246
+        return "主治医师";
247
+      } else if (title == 5) {
248
+        return "副主任医师";
249
+      } else if (title == 6) {
250
+        return "主任医师";
251
+      } else if (title == 7) {
252
+        return "护士";
253
+      } else if (title == 8) {
254
+        return "护师";
255
+      } else if (title == 9) {
256
+        return "主管护师";
257
+      } else if (title == 10) {
258
+        return "副主任护师";
259
+      } else if (title == 11) {
260
+        return "主任护师";
261
+      } else if (title == 12) {
262
+        return "运营专员";
263
+      } else if (title == 13) {
264
+        return "运营主管";
265
+      }
266
+    },
267
+    changeKey() {
268
+      this.getAllStaffInfo();
114 269
     },
115
-    data(){
116
-      return{
117
-        crumbs: [
118
-          { path: false, name: '系统设置' },
119
-          { path: '/Systemsetting/staffmanagement', name: '员工管理' }
120
-        ],
121
-         centerDialogVisible: false,
122
-          radio: '1',
123
-          value: '',
124
-          qiniuDomain: 'https://images.shengws.com/',
125
-          uploadData: { token: '', key: '' },
126
-         user_types: [
127
-            { index: 2, name: '医生' },
128
-            { index: 3, name: '护士' },
129
-            { index: 4, name: '运营' },
130
-            ],
131
-        user_titles: [
132
-            { index: 1, name: '医士' },
133
-            { index: 2, name: '医师' },
134
-            { index: 3, name: '住院医师' },
135
-            { index: 4, name: '主治医师' },
136
-            { index: 5, name: '副主任医师' },
137
-            { index: 6, name: '主任医师' },
138
-            { index: 7, name: '护士' },
139
-            { index: 8, name: '护师' },
140
-            { index: 9, name: '主管护师' },
141
-            { index: 10, name: '副主任护师' },
142
-            { index: 11, name: '主任护师' },
143
-            { index: 12, name: '运营专员' },
144
-            { index: 13, name: '运营主管' },
145
-            ],
146
-        imageUrl: '',
147
-        staffsData:[],
148
-        form:{
149
-          name:'',
150
-          phone:'',
151
-          birthday:'',
152
-          gender:'',
153
-          user_type:'',
154
-          user_title:'',
155
-          dochead:'',
156
-          page:1,
157
-          limit:10,
158
-          content:'',
159
-        },
160
-        staffData:{
161
-          id:0,
162
-          name:'',
163
-          phone:'',
164
-          birthday:'',
165
-          gender:'',
166
-          user_type:'',
167
-          user_title:'',
168
-          dochead:'',
169
-          page:1,
170
-          limit:10,
171
-          content:'',
172
-        },
173
-         total:0,
174
-         keyword:'',
175
-        staffform:[],
176
-        staffIndex:-1,
177
-        checkAllStatus:false,
270
+    openEdit(row, index) {
271
+      for (const key in this.staffData) {
272
+        if (key === "birthday" && row.birthday != 0) {
273
+          this.staffData.birthday = uParseTime(row.birthday, "{y}-{m}-{d}");
274
+        } else if (key in row) {
275
+          this.staffData[key] = row[key];
276
+        }
277
+        console.log("数据是多少", this.staffsData);
278
+        this.staffIndex = index;
279
+        this.$refs.editStaffForm.open();
178 280
       }
179 281
     },
180
-    methods: {
181
-      openCreate(){
182
-           this.$refs.createStaffForm.open();
183
-        },
184
-        staffAvatar(row) {
185
-          if(typeof(row.avatar) == "undefined" || !row.avatar || row.avatar.length==0) {
186
-              if(row.gender == 2) {
187
-             return 'https://images.shengws.com/201809182128222.png';
188
-              }else {
189
-                return 'https://images.shengws.com/201809182128111.png';
282
+    openDelete(row, index) {
283
+      this.$confirm(
284
+        "确认要删除该会员吗?<br>删除后,该会员信息将无法恢复",
285
+        "删除提示",
286
+        {
287
+          dangerouslyUseHTMLString: true,
288
+          confirmButtonText: "确定",
289
+          cancelButtonText: "取消",
290
+          type: "warning"
291
+        }
292
+      )
293
+        .then(() => {
294
+          var ids = [];
295
+          ids.push(row.id);
296
+          DeleteStaffs({ ids: ids })
297
+            .then(response => {
298
+              if (response.data.state == 1) {
299
+                this.staffsData.splice(index, 1);
300
+                this.$message.success("删除会员成功");
301
+              } else {
302
+                this.$message.error(res.msg);
190 303
               }
191
-           }else {
192
-             return row.avatar
304
+            })
305
+            .catch(e => {});
306
+        })
307
+        .catch(() => {
308
+          return false;
309
+        });
310
+    },
311
+    changeCheck() {
312
+      this.$refs.multipleTable.clearSelection();
313
+      if (this.checkAllStatus) {
314
+        this.$refs.multipleTable.toggleAllSelection();
315
+      }
316
+    },
317
+    handleSelectionChange(val) {
318
+      this.selectedStaffs = val;
319
+    },
320
+    openDeleteStaffs() {
321
+      if (this.selectedStaffs.length == 0) {
322
+        this.$message.error("请选择要删除的会员");
323
+        return false;
324
+      }
325
+      this.$confirm(
326
+        "确认要删除所选的人员吗? <br>删除后,人员信息将无法恢复",
327
+        "删除提示",
328
+        {
329
+          dangerouslyUseHTMLString: true,
330
+          confirmButtonText: "确定",
331
+          cancelButtonText: "取消",
332
+          type: "warning"
333
+        }
334
+      )
335
+        .then(() => {
336
+          var ids = [];
337
+          var idMap = {};
338
+          for (const index in this.selectedStaffs) {
339
+            ids.push(this.selectedStaffs[index].id);
340
+            idMap[this.selectedStaffs[index].id] = this.selectedStaffs[
341
+              index
342
+            ].id;
193 343
           }
194
-        },
195
-        handleSelectionChange(val){
196
-           this.selectedArticles = val;
197
-        },
198
-        handleSizeChange(limit) {
199
-            this.form.limit = limit;
200
-            this.getAllStaffInfo();
201
-          },
202
-        handleCurrentChange(page) {
203
-         this.form.page = page;
204
-          this.getAllStaffInfo();
205
-        },
206
-        getAllStaffInfo(){
207
-          getAllStaffInfo(this.form,this.keyword).then(response=>{
208
-            if(response.data.state ==1){
209
-              this.staffsData = response.data.data.userStaffInfo;
210
-              
211
-              console.log("员工管理数据",this.staffsData)
212
-              this.total = response.data.data.total;
213
-              console.log("总页数",this.total)
214
-           }
215
-         })
216
-      },
217
-        staffCreateTime(time) {
218
-          return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
219
-        },
220
-        staffTitle(title){
221
-            if(title == 1){
222
-              return "医士";
223
-            }else if(title == 2){
224
-                return "医师";
225
-            }else if(title == 3){
226
-                return "住院医师";
227
-            }else if(title == 4){
228
-                return "主治医师";
229
-            }else if(title == 5){
230
-                return "副主任医师";
231
-            }else if(title == 6){
232
-                return "主任医师";
233
-            }else if (title == 7){
234
-                return "护士";
235
-            }else if (title == 8){
236
-                return "护师";
237
-            }else if (title == 9){
238
-                return "主管护师";
239
-            }else if (title ==10){
240
-                return "副主任护师";
241
-            }else if (title == 11){
242
-                return "主任护师";
243
-            }else if (title == 12) {
244
-                return "运营专员";
245
-            }else if (title == 13) {
246
-                 return "运营主管";
247
-            }
248 344
 
249
-        },
250
-        changeKey(){
251
-          this.getAllStaffInfo();
252
-         },
253
-        openEdit(row,index){
254
-           for(const key in this.staffData){
255
-             if(key === "birthday" && row.birthday!=0){    
256
-                this.staffData.birthday = uParseTime(row.birthday, "{y}-{m}-{d}");
257
-             }else if(key in row){
258
-                this.staffData[key] = row [key];
259
-                }
260
-                console.log("数据是多少",this.staffsData)
261
-                this.staffIndex = index;
262
-                this.$refs.editStaffForm.open();
263
-           }
264
-        },
265
-        openDelete(row,index){
266
-           this.$confirm('确认要删除该会员吗?<br>删除后,该会员信息将无法恢复','删除提示',{
267
-            dangerouslyUseHTMLString:true,
268
-            confirmButtonText: '确定',
269
-            cancelButtonText: '取消',
270
-            type: 'warning'
271
-           }).then(()=>{
272
-               var ids = [];
273
-              ids.push(row.id);
274
-              DeleteStaffs({ids:ids}).then(response=>{
275
-                    if(response.data.state == 1){
276
-                        this.staffsData.splice(index, 1);
277
-                        this.$message.success("删除会员成功");
278
-                    }else{
279
-                      this.$message.error(res.msg);
280
-                    }
281
-              }).catch(e=>{});
282
-           }).catch(() => {
283
-            return false        
284
-          }); 
285
-        },
286
-         changeCheck(){
287
-          this.$refs.multipleTable.clearSelection();
288
-          if (this.checkAllStatus) {
289
-            this.$refs.multipleTable.toggleAllSelection();
290
-          }
291
-        },
292
-          handleSelectionChange(val){
293
-          this.selectedStaffs = val;
294
-        },
295
-        openDeleteStaffs(){
296
-          if (this.selectedStaffs.length==0) {
297
-            this.$message.error("请选择要删除的会员");
298
-            return false;
299
-          }
300
-          this.$confirm('确认要删除所选的人员吗? <br>删除后,人员信息将无法恢复','删除提示',{
301
-             dangerouslyUseHTMLString:true,
302
-             confirmButtonText: '确定',
303
-             cancelButtonText: '取消',
304
-             type: 'warning'  
305
-          }).then(()=>{
306
-             var ids = [];
307
-             var idMap = {};
308
-            for (const index in this.selectedStaffs) {
309
-              ids.push(this.selectedStaffs[index].id);
310
-              idMap[this.selectedStaffs[index].id] = this.selectedStaffs[index].id;
311
-            }
312
-             
313
-             DeleteStaffs({ids:ids}).then(response=>{
314
-                if(response.data.state==1){
315
-                     var membersDataLength = this.staffsData.length;
316
-                for (let index = membersDataLength-1; index >= 0; index--) {
317
-                  if(this.staffsData[index].id in idMap) {
345
+          DeleteStaffs({ ids: ids })
346
+            .then(response => {
347
+              if (response.data.state == 1) {
348
+                var membersDataLength = this.staffsData.length;
349
+                for (let index = membersDataLength - 1; index >= 0; index--) {
350
+                  if (this.staffsData[index].id in idMap) {
318 351
                     this.staffsData.splice(index, 1);
319
-                  }                  
352
+                  }
320 353
                 }
321
-                  this.$message.success("删除会员成功");
322
-                }else{
323
-                   this.$message.error(res.msg);
324
-                }
325
-             }).catch(e=>{});
326
-          }).catch(() => {
327
-            return false        
328
-          });
329
-        }
330
-    },
331
-    created(){
332
-      this.getAllStaffInfo();
333
-     }
354
+                this.$message.success("删除会员成功");
355
+              } else {
356
+                this.$message.error(res.msg);
357
+              }
358
+            })
359
+            .catch(e => {});
360
+        })
361
+        .catch(() => {
362
+          return false;
363
+        });
364
+    }
365
+  },
366
+  created() {
367
+    this.getAllStaffInfo();
334 368
   }
369
+};
335 370
 </script>
336 371
 
337
-<style scoped>
338
-
372
+<style>
373
+.cell {
374
+  max-height: 90px !important;
375
+  overflow: hidden;
376
+  text-overflow: ellipsis;
377
+  display: -webkit-box;
378
+  -webkit-line-clamp: 3;
379
+  -webkit-box-orient: vertical;
380
+}
339 381
 </style>