See999 4 年之前
父節點
當前提交
8a96fd4040

文件差異過大導致無法顯示
+ 350 - 351
src/api/manage.js


+ 137 - 139
src/xt_pages/data/components/tableson.vue 查看文件

@@ -77,8 +77,8 @@
77 77
           <el-col :span="12">
78 78
             <el-form-item label="排序" prop="order">
79 79
               <el-input
80
-                type="age"
81
-                v-model="temp.order"
80
+                type="number" 
81
+                v-model.number="temp.order"
82 82
                 placeholder="请输入排序值,数值越大,排序越靠前"
83 83
               ></el-input>
84 84
             </el-form-item>
@@ -136,40 +136,40 @@ import {
136 136
   fetchPv,
137 137
   createArticle,
138 138
   updateArticle
139
-} from "@/api/article";
140
-import waves from "@/directive/waves"; // 水波纹指令
141
-import { parseTime } from "@/utils";
142
-import store from "@/store";
143
-import bus from "@/assets/eventBus";
139
+} from '@/api/article'
140
+import waves from '@/directive/waves' // 水波纹指令
141
+import { parseTime } from '@/utils'
142
+import store from '@/store'
143
+import bus from '@/assets/eventBus'
144 144
 import {
145 145
   createConfig,
146 146
   createChildConfig,
147 147
   updateChildConfig,
148 148
   deleteChildConfig
149
-} from "@/api/data";
149
+} from '@/api/data'
150 150
 
151 151
 const calendarTypeOptions = [
152
-  { key: "CN", display_name: "China" },
153
-  { key: "US", display_name: "USA" },
154
-  { key: "JP", display_name: "Japan" },
155
-  { key: "EU", display_name: "Eurozone" }
156
-];
152
+  { key: 'CN', display_name: 'China' },
153
+  { key: 'US', display_name: 'USA' },
154
+  { key: 'JP', display_name: 'Japan' },
155
+  { key: 'EU', display_name: 'Eurozone' }
156
+]
157 157
 
158 158
 // arr to obj ,such as { CN : "China", US : "USA" }
159 159
 const calendarTypeKeyValue = calendarTypeOptions.reduce((acc, cur) => {
160
-  acc[cur.key] = cur.display_name;
161
-  return acc;
162
-}, {});
160
+  acc[cur.key] = cur.display_name
161
+  return acc
162
+}, {})
163 163
 
164 164
 export default {
165
-  name: "tableson",
165
+  name: 'tableson',
166 166
   directives: {
167 167
     waves
168 168
   },
169 169
   props: {
170 170
     type: {
171 171
       type: String,
172
-      default: "patient"
172
+      default: 'patient'
173 173
     }
174 174
   },
175 175
   data() {
@@ -184,56 +184,54 @@ export default {
184 184
         importance: undefined,
185 185
         title: undefined,
186 186
         type: this.type,
187
-        sort: "+id"
187
+        sort: '+id'
188 188
       },
189 189
       importanceOptions: [1, 2, 3],
190 190
       calendarTypeOptions,
191 191
       sortOptions: [
192
-        { label: "ID Ascending", key: "+id" },
193
-        { label: "ID Descending", key: "-id" }
192
+        { label: 'ID Ascending', key: '+id' },
193
+        { label: 'ID Descending', key: '-id' }
194 194
       ],
195
-      statusOptions: ["published", "draft", "deleted"],
195
+      statusOptions: ['published', 'draft', 'deleted'],
196 196
       showReviewer: false,
197 197
       temp: {
198 198
         id: undefined,
199 199
         parent_id: 0,
200 200
         module: this.type,
201 201
         org_id: 0,
202
-        name: "",
202
+        name: '',
203 203
         field_name: undefined,
204
-        value: "",
205
-        remark: ""
204
+        value: '',
205
+        remark: ''
206 206
       },
207 207
       dialogFormVisible: false,
208
-      dialogStatus: "",
208
+      dialogStatus: '',
209 209
       textMap: {
210
-        update: "编辑",
211
-        create: "新增"
210
+        update: '编辑',
211
+        create: '新增'
212 212
       },
213 213
       dialogPvVisible: false,
214 214
       pvData: [],
215 215
       rules: {
216
-        name: [{ required: true, message: "请输入名称", trigger: "blur" }],
217
-        order: [
218
-          { type: "number", message: "排序必须为数字值", trigger: "blur" }
219
-        ]
216
+        name: [{ required: true, message: '请输入名称', trigger: 'blur' }],
217
+        order: [{ type: 'number', message: '排序必须为数字11', trigger: 'blur' }]
220 218
         // timestamp: [{ type: 'date', required: true, message: 'timestamp is required', trigger: 'change' }],
221 219
         // title: [{ required: true, message: 'title is required', trigger: 'blur' }]
222 220
       },
223 221
       downloadLoading: false,
224 222
       parentConfig: undefined,
225 223
       addState: true
226
-    };
224
+    }
227 225
   },
228 226
   computed: {
229 227
     list: function() {
230 228
       if (this.parentConfig != undefined) {
231
-        this.addState = false;
232
-        const list = store.getters.configlist[this.parentConfig.module];
229
+        this.addState = false
230
+        const list = store.getters.configlist[this.parentConfig.module]
233 231
         for (var i = 0; i < list.length; i++) {
234 232
           if (list[i].id === this.parentConfig.id) {
235
-            return list[i]["childs"];
236
-            break;
233
+            return list[i]['childs']
234
+            break
237 235
           }
238 236
         }
239 237
         // return store.getters.configlist[this.parentConfig.module][this.parentConfig.index ]["childs"];
@@ -243,90 +241,90 @@ export default {
243 241
   filters: {
244 242
     statusFilter(status) {
245 243
       const statusMap = {
246
-        published: "success",
247
-        draft: "info",
248
-        deleted: "danger"
249
-      };
250
-      return statusMap[status];
244
+        published: 'success',
245
+        draft: 'info',
246
+        deleted: 'danger'
247
+      }
248
+      return statusMap[status]
251 249
     },
252 250
     typeFilter(type) {
253
-      return calendarTypeKeyValue[type];
251
+      return calendarTypeKeyValue[type]
254 252
     }
255 253
   },
256 254
   created() {
257 255
     // this.getList()
258 256
   },
259 257
   mounted() {
260
-    var _this = this;
261
-    bus.$on("parentChangeId", function(parentData) {
262
-      _this.parentConfig = parentData;
258
+    var _this = this
259
+    bus.$on('parentChangeId', function(parentData) {
260
+      _this.parentConfig = parentData
263 261
       // _this.list = parentData.childs
264 262
       _this.temp = {
265 263
         id: undefined,
266 264
         parent_id: parentData.id,
267 265
         module: parentData.module,
268 266
         org_id: parentData.org_id,
269
-        name: "",
267
+        name: '',
270 268
         field_name: undefined,
271
-        value: "",
272
-        remark: ""
273
-      };
274
-    });
269
+        value: '',
270
+        remark: ''
271
+      }
272
+    })
275 273
   },
276 274
   methods: {
277 275
     handleRowChange(currentRow, oldCurrentRow) {
278
-      this.currentId = currentRow.id;
276
+      this.currentId = currentRow.id
279 277
     },
280 278
 
281 279
     handleFilter() {
282
-      this.listQuery.page = 1;
283
-      this.getList();
280
+      this.listQuery.page = 1
281
+      this.getList()
284 282
     },
285 283
     handleSizeChange(val) {
286
-      this.listQuery.limit = val;
287
-      this.getList();
284
+      this.listQuery.limit = val
285
+      this.getList()
288 286
     },
289 287
     handleCurrentChange(val) {
290
-      this.listQuery.page = val;
291
-      this.getList();
288
+      this.listQuery.page = val
289
+      this.getList()
292 290
     },
293 291
     handleModifyStatus(row, status) {
294
-      this.temp = Object.assign({}, row); // copy obj
295
-      this.$confirm("此操作将永久删除该配置项, 是否继续?", "提示", {
296
-        confirmButtonText: "确 定",
297
-        cancelButtonText: "取 消",
298
-        type: "warning"
292
+      this.temp = Object.assign({}, row) // copy obj
293
+      this.$confirm('此操作将永久删除该配置项, 是否继续?', '提示', {
294
+        confirmButtonText: '确 定',
295
+        cancelButtonText: '取 消',
296
+        type: 'warning'
299 297
       })
300 298
         .then(() => {
301
-          const tempData = Object.assign({}, this.temp);
299
+          const tempData = Object.assign({}, this.temp)
302 300
           deleteChildConfig(tempData).then(response => {
303 301
             if (!response.data) {
304 302
               // 由于mockjs 不支持自定义状态码只能这样hack
305
-              reject("error");
303
+              reject('error')
306 304
             }
307 305
             if (response.data.state === 0) {
308
-              this.$message.error(response.data.msg);
306
+              this.$message.error(response.data.msg)
309 307
             }
310 308
 
311
-            const result = response.data.data.dataconfig;
309
+            const result = response.data.data.dataconfig
312 310
             store
313
-              .dispatch("updateChildConfigList", [tempData, "delete"])
311
+              .dispatch('updateChildConfigList', [tempData, 'delete'])
314 312
               .then(() => {
315
-                next();
316
-              });
317
-          });
313
+                next()
314
+              })
315
+          })
318 316
 
319 317
           this.$message({
320
-            type: "success",
321
-            message: "删除成功!"
322
-          });
318
+            type: 'success',
319
+            message: '删除成功!'
320
+          })
323 321
         })
324 322
         .catch(() => {
325 323
           this.$message({
326
-            type: "info",
327
-            message: "已取消删除"
328
-          });
329
-        });
324
+            type: 'info',
325
+            message: '已取消删除'
326
+          })
327
+        })
330 328
     },
331 329
     resetTemp() {
332 330
       this.temp = {
@@ -334,123 +332,123 @@ export default {
334 332
         parent_id: this.parentConfig.id,
335 333
         module: this.parentConfig.module,
336 334
         org_id: this.parentConfig.org_id,
337
-        name: "",
335
+        name: '',
338 336
         field_name: undefined,
339
-        value: "",
340
-        remark: ""
341
-      };
337
+        value: '',
338
+        remark: ''
339
+      }
342 340
     },
343 341
     handleCreate() {
344
-      this.resetTemp();
345
-      this.dialogStatus = "create";
346
-      this.dialogFormVisible = true;
342
+      this.resetTemp()
343
+      this.dialogStatus = 'create'
344
+      this.dialogFormVisible = true
347 345
       this.$nextTick(() => {
348
-        this.$refs["dataForm"].clearValidate();
349
-      });
346
+        this.$refs['dataForm'].clearValidate()
347
+      })
350 348
     },
351 349
     createData() {
352
-      this.$refs["dataForm"].validate(valid => {
350
+      this.$refs['dataForm'].validate(valid => {
353 351
         if (valid) {
354 352
           createChildConfig(this.temp).then(response => {
355 353
             if (!response.data) {
356 354
               // 由于mockjs 不支持自定义状态码只能这样hack
357
-              reject("error");
355
+              reject('error')
358 356
             }
359 357
             if (response.data.state === 0) {
360
-              this.$message.error(response.data.msg);
358
+              this.$message.error(response.data.msg)
361 359
             }
362
-            const result = response.data.data.dataconfig;
360
+            const result = response.data.data.dataconfig
363 361
 
364 362
             // this.list.unshift(tempval)
365 363
             // 更新store
366 364
             store
367
-              .dispatch("updateChildConfigList", [result, "create"])
368
-              .then(() => {});
365
+              .dispatch('updateChildConfigList', [result, 'create'])
366
+              .then(() => {})
369 367
 
370
-            this.dialogFormVisible = false;
371
-            this.$message.success("创建成功");
372
-          });
368
+            this.dialogFormVisible = false
369
+            this.$message.success('创建成功')
370
+          })
373 371
         }
374
-      });
372
+      })
375 373
     },
376 374
     handleUpdate(row) {
377
-      this.temp = Object.assign({}, row); // copy obj
378
-      this.dialogStatus = "update";
379
-      this.dialogFormVisible = true;
375
+      this.temp = Object.assign({}, row) // copy obj
376
+      this.dialogStatus = 'update'
377
+      this.dialogFormVisible = true
380 378
       this.$nextTick(() => {
381
-        this.$refs["dataForm"].clearValidate();
382
-      });
379
+        this.$refs['dataForm'].clearValidate()
380
+      })
383 381
     },
384 382
     updateData() {
385
-      this.$refs["dataForm"].validate(valid => {
383
+      this.$refs['dataForm'].validate(valid => {
386 384
         if (valid) {
387
-          const tempData = Object.assign({}, this.temp);
388
-          console.log("tempData", tempData);
385
+          const tempData = Object.assign({}, this.temp)
386
+          console.log('tempData', tempData)
389 387
           updateChildConfig(tempData).then(response => {
390 388
             if (!response.data) {
391 389
               // 由于mockjs 不支持自定义状态码只能这样hack
392
-              reject("error");
390
+              reject('error')
393 391
             }
394 392
             if (response.data.state === 0) {
395
-              this.$message.error(response.data.msg);
393
+              this.$message.error(response.data.msg)
396 394
             }
397 395
 
398
-            const result = response.data.data.dataconfig;
396
+            const result = response.data.data.dataconfig
399 397
             store
400
-              .dispatch("updateChildConfigList", [result, "update"])
401
-              .then(() => {});
398
+              .dispatch('updateChildConfigList', [result, 'update'])
399
+              .then(() => {})
402 400
 
403
-            this.dialogFormVisible = false;
401
+            this.dialogFormVisible = false
404 402
 
405
-            this.$message.success("更新成功");
406
-          });
403
+            this.$message.success('更新成功')
404
+          })
407 405
         }
408
-      });
406
+      })
409 407
     },
410 408
     handleDelete(row) {
411
-      this.$message.success("删除成功");
412
-      const index = this.list.indexOf(row);
413
-      this.list.splice(index, 1);
409
+      this.$message.success('删除成功')
410
+      const index = this.list.indexOf(row)
411
+      this.list.splice(index, 1)
414 412
     },
415 413
     handleFetchPv(pv) {
416 414
       fetchPv(pv).then(response => {
417
-        this.pvData = response.data.pvData;
418
-        this.dialogPvVisible = true;
419
-      });
415
+        this.pvData = response.data.pvData
416
+        this.dialogPvVisible = true
417
+      })
420 418
     },
421 419
     handleDownload() {
422
-      this.downloadLoading = true;
423
-      import("@/vendor/Export2Excel").then(excel => {
424
-        const tHeader = ["timestamp", "title", "type", "importance", "status"];
420
+      this.downloadLoading = true
421
+      import('@/vendor/Export2Excel').then(excel => {
422
+        const tHeader = ['timestamp', 'title', 'type', 'importance', 'status']
425 423
         const filterVal = [
426
-          "timestamp",
427
-          "title",
428
-          "type",
429
-          "importance",
430
-          "status"
431
-        ];
432
-        const data = this.formatJson(filterVal, this.list);
424
+          'timestamp',
425
+          'title',
426
+          'type',
427
+          'importance',
428
+          'status'
429
+        ]
430
+        const data = this.formatJson(filterVal, this.list)
433 431
         excel.export_json_to_excel({
434 432
           header: tHeader,
435 433
           data,
436
-          filename: "table-list"
437
-        });
438
-        this.downloadLoading = false;
439
-      });
434
+          filename: 'table-list'
435
+        })
436
+        this.downloadLoading = false
437
+      })
440 438
     },
441 439
     formatJson(filterVal, jsonData) {
442 440
       return jsonData.map(v =>
443 441
         filterVal.map(j => {
444
-          if (j === "timestamp") {
445
-            return parseTime(v[j]);
442
+          if (j === 'timestamp') {
443
+            return parseTime(v[j])
446 444
           } else {
447
-            return v[j];
445
+            return v[j]
448 446
           }
449 447
         })
450
-      );
448
+      )
451 449
     }
452 450
   }
453
-};
451
+}
454 452
 </script>
455 453
 
456 454
 <style rel="stylesheet/css" lang="scss" scoped></style>

+ 12 - 18
src/xt_pages/management/components/UserForm.vue 查看文件

@@ -1002,6 +1002,7 @@ export default {
1002 1002
       limit: 10,
1003 1003
       page: 1,
1004 1004
       total: 0,
1005
+      value: "",
1005 1006
       classType: [
1006 1007
         { id: 1, name: "上午" },
1007 1008
         { id: 2, name: "下午" },
@@ -1066,14 +1067,8 @@ export default {
1066 1067
         { id: 8, name: "50%冰醋酸" },
1067 1068
         { id: 9, name: "5%次氯酸钠" }
1068 1069
       ],
1069
-      runOption: [
1070
-        { id: 1, name: "正常" },
1071
-        { id: 2, name: "故障" }
1072
-      ],
1073
-      runOptions: [
1074
-        { id: 1, name: "达标" },
1075
-        { id: 2, name: "未达标" }
1076
-      ],
1070
+      runOption: [{ id: 1, name: "正常" }, { id: 2, name: "故障" }],
1071
+      runOptions: [{ id: 1, name: "达标" }, { id: 2, name: "未达标" }],
1077 1072
       faultPhase: [
1078 1073
         { id: 1, name: "开机启动" },
1079 1074
         { id: 2, name: "自检" },
@@ -1081,14 +1076,8 @@ export default {
1081 1076
         { id: 4, name: "治疗" },
1082 1077
         { id: 5, name: "消毒" }
1083 1078
       ],
1084
-      Disinfectant: [
1085
-        { id: 1, name: "有" },
1086
-        { id: 2, name: "无" }
1087
-      ],
1088
-      potency: [
1089
-        { id: 1, name: "达标" },
1090
-        { id: 2, name: "未达标" }
1091
-      ],
1079
+      Disinfectant: [{ id: 1, name: "有" }, { id: 2, name: "无" }],
1080
+      potency: [{ id: 1, name: "达标" }, { id: 2, name: "未达标" }],
1092 1081
       disinfection: [
1093 1082
         { id: 1, name: "已消毒" },
1094 1083
         { id: 2, name: "未消毒" },
@@ -1439,11 +1428,13 @@ export default {
1439 1428
     },
1440 1429
     handleSizeChange(limit) {
1441 1430
       this.limit = limit;
1442
-      this.queryInfo();
1431
+      //this.queryInfo();
1432
+      this.getUserForm(this.value);
1443 1433
     },
1444 1434
     handleCurrentChange(page) {
1445 1435
       this.page = page;
1446
-      this.queryInfo();
1436
+      // this.queryInfo();
1437
+      this.getUserForm(this.value);
1447 1438
     },
1448 1439
     getTime(time) {
1449 1440
       return uParseTime(time, "{y}-{m}-{d}");
@@ -1703,6 +1694,7 @@ export default {
1703 1694
       ).then(response => {
1704 1695
         if (response.data.state === 1) {
1705 1696
           var information = response.data.data.infor;
1697
+          console.log("information",information)
1706 1698
           for (let index = 0; index < information.length; index++) {
1707 1699
             if (information[index].class === 0) {
1708 1700
               information[index].class = "";
@@ -2233,6 +2225,7 @@ export default {
2233 2225
             // this.form.bed = information[index].bed_number
2234 2226
           }
2235 2227
           var total = response.data.data.total;
2228
+          console.log("total", total);
2236 2229
           this.tableData = information;
2237 2230
           this.total = total;
2238 2231
         }
@@ -2363,6 +2356,7 @@ export default {
2363 2356
       console.log("newvalue是什么", newvalue);
2364 2357
       this.getUserForm(newvalue);
2365 2358
       this.getBedForm(newvalue);
2359
+      this.value = newvalue;
2366 2360
     }
2367 2361
   }
2368 2362
 };

+ 64 - 64
src/xt_pages/role/components/EditRole.vue 查看文件

@@ -1,75 +1,75 @@
1 1
 <template>
2 2
   <el-dialog title="新增用户" width="660px" :visible.sync="visible" :before-close="_close">
3
-    <!-- <el-form :model="form" :rules="rules" ref="form" label-width="90px">
3
+     <el-form :model="form" :rules="rules" ref="form" label-width="90px">
4 4
             <el-form-item label="角色名称 : " prop="name">
5 5
                 <el-input v-model="form.name" placeholder="" maxlength="30" ></el-input>
6 6
             </el-form-item>
7 7
             <el-form-item label="角色描述 : " prop="intro">
8 8
                 <el-input type="textarea" v-model="form.intro" placeholder="" resize="none" rows="4" ></el-input>
9 9
             </el-form-item>
10
-    </el-form>-->
11
-    <div class="chooseuser">
12
-      <span style="color:#303133">选择用户:</span>
13
-      <el-radio v-model="checked" label="1">从已有员工中选择</el-radio>
14
-      <el-radio v-model="checked" label="2">新增员工</el-radio>
15
-    </div>
16
-    <div v-if="checked == '1'" class="roleContent">
17
-      <div class="roleContentLeft">
18
-        <p style="color:#303133">选择:</p>
19
-        <div class="chooseBox">
20
-          <div>
21
-            <el-checkbox
22
-              :indeterminate="isIndeterminate"
23
-              v-model="checkAll"
24
-              @change="handleCheckAllChange"
25
-            >全选</el-checkbox>
26
-          </div>
27
-          <el-checkbox-group v-model="checkedCities" @change="handleCheckedCitiesChange">
28
-            <!-- <el-checkbox v-for="city in cities" :label="city" :key="city">{{city}}</el-checkbox> -->
29
-            <div class="checkone" v-for="city in cities" :key="city">
30
-              <el-checkbox :label="city">
31
-                <img src="https://kuyi.shengws.com/S1.png" alt />
32
-                <span>名字</span>
33
-              </el-checkbox>
34
-            </div>
35
-          </el-checkbox-group>
36
-        </div>
37
-      </div>
38
-      <div class="roleContentRight">
39
-        <p style="color:#303133">已选:</p>
40
-        <div class="chooseBox">
41
-          <div class="hasChoosedOne">
42
-            <img src="https://kuyi.shengws.com/S1.png" alt />
43
-            <span>名字</span>
44
-          </div>
45
-        </div>
46
-      </div>
47
-    </div>
48
-    <div v-if="checked == '2'" class="newStaff">
49
-      <el-form
50
-        :model="ruleForm"
51
-        :rules="newrules"
52
-        label-position="right"
53
-        label-width="80px"
54
-        style="width:40%"
55
-      >
56
-        <el-form-item label="姓名" prop="name">
57
-          <el-input v-model="ruleForm.name"></el-input>
58
-        </el-form-item>
59
-        <el-form-item label="手机号" prop="phone">
60
-          <el-input v-model="ruleForm.phone"></el-input>
61
-        </el-form-item>
62
-        <el-form-item label="职位">
63
-          <el-input></el-input>
64
-        </el-form-item>
65
-      </el-form>
66
-      <div class="newItem">
67
-        <p style="width:80px;text-align:right;padding-right:8px">
68
-          <i class="el-icon-circle-plus" style="font-size:20px;color:#338AFB"></i>
69
-        </p>
70
-        <p style="color:#409FFF">继续新增员工</p>
71
-      </div>
72
-    </div>
10
+    </el-form>
11
+<!--    <div class="chooseuser">-->
12
+<!--      <span style="color:#303133">选择用户:</span>-->
13
+<!--      <el-radio v-model="checked" label="1">从已有员工中选择</el-radio>-->
14
+<!--      <el-radio v-model="checked" label="2">新增员工</el-radio>-->
15
+<!--    </div>-->
16
+<!--    <div v-if="checked == '1'" class="roleContent">-->
17
+<!--      <div class="roleContentLeft">-->
18
+<!--        <p style="color:#303133">选择:</p>-->
19
+<!--        <div class="chooseBox">-->
20
+<!--          <div>-->
21
+<!--            <el-checkbox-->
22
+<!--              :indeterminate="isIndeterminate"-->
23
+<!--              v-model="checkAll"-->
24
+<!--              @change="handleCheckAllChange"-->
25
+<!--            >全选</el-checkbox>-->
26
+<!--          </div>-->
27
+<!--          <el-checkbox-group v-model="checkedCities" @change="handleCheckedCitiesChange">-->
28
+<!--            &lt;!&ndash; <el-checkbox v-for="city in cities" :label="city" :key="city">{{city}}</el-checkbox> &ndash;&gt;-->
29
+<!--            <div class="checkone" v-for="city in cities" :key="city">-->
30
+<!--              <el-checkbox :label="city">-->
31
+<!--                <img src="https://kuyi.shengws.com/S1.png" alt />-->
32
+<!--                <span>名字</span>-->
33
+<!--              </el-checkbox>-->
34
+<!--            </div>-->
35
+<!--          </el-checkbox-group>-->
36
+<!--        </div>-->
37
+<!--      </div>-->
38
+<!--      <div class="roleContentRight">-->
39
+<!--        <p style="color:#303133">已选:</p>-->
40
+<!--        <div class="chooseBox">-->
41
+<!--          <div class="hasChoosedOne">-->
42
+<!--            <img src="https://kuyi.shengws.com/S1.png" alt />-->
43
+<!--            <span>名字</span>-->
44
+<!--          </div>-->
45
+<!--        </div>-->
46
+<!--      </div>-->
47
+<!--    </div>-->
48
+<!--    <div v-if="checked == '2'" class="newStaff">-->
49
+<!--      <el-form-->
50
+<!--        :model="ruleForm"-->
51
+<!--        :rules="newrules"-->
52
+<!--        label-position="right"-->
53
+<!--        label-width="80px"-->
54
+<!--        style="width:40%"-->
55
+<!--      >-->
56
+<!--        <el-form-item label="姓名" prop="name">-->
57
+<!--          <el-input v-model="ruleForm.name"></el-input>-->
58
+<!--        </el-form-item>-->
59
+<!--        <el-form-item label="手机号" prop="phone">-->
60
+<!--          <el-input v-model="ruleForm.phone"></el-input>-->
61
+<!--        </el-form-item>-->
62
+<!--        <el-form-item label="职位">-->
63
+<!--          <el-input></el-input>-->
64
+<!--        </el-form-item>-->
65
+<!--      </el-form>-->
66
+<!--      <div class="newItem">-->
67
+<!--        <p style="width:80px;text-align:right;padding-right:8px">-->
68
+<!--          <i class="el-icon-circle-plus" style="font-size:20px;color:#338AFB"></i>-->
69
+<!--        </p>-->
70
+<!--        <p style="color:#409FFF">继续新增员工</p>-->
71
+<!--      </div>-->
72
+<!--    </div>-->
73 73
     <div slot="footer" class="dialog-footer">
74 74
       <el-button @click="hide">取 消</el-button>
75 75
       <el-button type="primary" @click="submitAction()">保 存</el-button>

+ 137 - 137
src/xt_pages/role/role.vue 查看文件

@@ -11,7 +11,7 @@
11 11
       >新增</el-button>
12 12
     </div>
13 13
     <div class="app-container">
14
-      <!-- <el-table
14
+     <el-table
15 15
         :data="roles"
16 16
         v-loading="loading_roles"
17 17
         border
@@ -82,145 +82,145 @@
82 82
             layout="total, prev, pager, next, jumper"
83 83
           ></el-pagination>
84 84
         </el-col>
85
-      </el-row>-->
85
+      </el-row>
86 86
 
87 87
       <edit-role ref="edit_role" @did-add-role="didAddRole" @did-edit-role="didModifyRole"></edit-role>
88 88
       <permission-settings ref="permission_settings"></permission-settings>
89
-      <div class="roleBox">
90
-        <div class="roleOne">
91
-          <div class="setting">
92
-            <i class="el-icon-setting"></i>
93
-            <span style="margin-right:20px" @click="onClick">权限配置</span>
94
-          </div>
95
-          <div class="avatar">
96
-            <img src="../../assets/img/pc1.png" alt />
97
-            <p class="avatarname">子管理员</p>
98
-          </div>
99
-          <div class="roleTip">子管理员角色具备平台全部功能的使用权限,请谨慎配置...</div>
100
-          <div class="roleTxt">
101
-            该角色目前已配置
102
-            <span style="color:#4A8AF3">0</span> 个员工
103
-          </div>
104
-          <div class="btnBox">
105
-            <el-button>新增用户</el-button>
106
-            <el-button>用户管理</el-button>
107
-          </div>
108
-        </div>
109
-        <div class="roleOne">
110
-          <div class="setting">
111
-            <i class="el-icon-setting"></i>
112
-            <span style="margin-right:20px">权限配置</span>
113
-          </div>
114
-          <div class="avatar">
115
-            <img src="../../assets/img/pc2.png" alt />
116
-            <p class="avatarname">医生</p>
117
-          </div>
118
-          <div class="roleTip">医生角色能够进行建立患者档案,制定和调整患者透析治疗方案,定期评价病人的透析质量等...</div>
119
-          <div class="roleTxt">
120
-            该角色目前已配置
121
-            <span style="color:#4A8AF3">0</span> 个员工
122
-          </div>
123
-          <div class="btnBox">
124
-            <el-button>新增用户</el-button>
125
-            <el-button>用户管理</el-button>
126
-          </div>
127
-        </div>
128
-        <div class="roleOne">
129
-          <div class="setting">
130
-            <i class="el-icon-setting"></i>
131
-            <span style="margin-right:20px">权限配置</span>
132
-          </div>
133
-          <div class="avatar">
134
-            <img src="../../assets/img/pc3.png" alt />
135
-            <p class="avatarname">护士</p>
136
-          </div>
137
-          <div class="roleTip">护士角色能够进行病人透析管理,以及医院的感染控制与消毒记录等...</div>
138
-          <div class="roleTxt">
139
-            该角色目前已配置
140
-            <span style="color:#4A8AF3">0</span> 个员工
141
-          </div>
142
-          <div class="btnBox">
143
-            <el-button>新增用户</el-button>
144
-            <el-button>用户管理</el-button>
145
-          </div>
146
-        </div>
147
-        <div class="roleOne">
148
-          <div class="setting">
149
-            <i class="el-icon-setting"></i>
150
-            <span style="margin-right:20px">权限配置</span>
151
-          </div>
152
-          <div class="avatar">
153
-            <img src="../../assets/img/pc2.png" alt />
154
-            <p class="avatarname">技师</p>
155
-          </div>
156
-          <div class="roleTip">技师角色能够进行设备的管理,日常维护维修记录等...</div>
157
-          <div class="roleTxt">
158
-            该角色目前已配置
159
-            <span style="color:#4A8AF3">0</span> 个员工
160
-          </div>
161
-          <div class="btnBox">
162
-            <el-button>新增用户</el-button>
163
-            <el-button>用户管理</el-button>
164
-          </div>
165
-        </div>
166
-        <div class="roleOne">
167
-          <div class="setting">
168
-            <i class="el-icon-setting"></i>
169
-            <span style="margin-right:20px">权限配置</span>
170
-          </div>
171
-          <div class="avatar">
172
-            <img src="../../assets/img/pc2.png" alt />
173
-            <p class="avatarname">运营</p>
174
-          </div>
175
-          <div class="roleTip">运营角色能够在SCRM中管理微网站、使用营销工具、做会员管理和分销商品经营的操作...</div>
176
-          <div class="roleTxt">
177
-            该角色目前已配置
178
-            <span style="color:#4A8AF3">0</span> 个员工
179
-          </div>
180
-          <div class="btnBox">
181
-            <el-button>新增用户</el-button>
182
-            <el-button>用户管理</el-button>
183
-          </div>
184
-        </div>
185
-        <div class="roleOne">
186
-          <div class="setting">
187
-            <i class="el-icon-setting"></i>
188
-            <span style="margin-right:20px">权限配置</span>
189
-          </div>
190
-          <div class="avatar">
191
-            <img src="../../assets/img/pc4.png" alt />
192
-            <p class="avatarname">库存</p>
193
-          </div>
194
-          <div class="roleTip">库存角色负责透析耗材的日常管理,对耗材的入库、出库、退库的登记操作...</div>
195
-          <div class="roleTxt">
196
-            该角色目前已配置
197
-            <span style="color:#4A8AF3">0</span> 个员工
198
-          </div>
199
-          <div class="btnBox">
200
-            <el-button>新增用户</el-button>
201
-            <el-button>用户管理</el-button>
202
-          </div>
203
-        </div>
204
-        <div class="roleOne">
205
-          <div class="setting">
206
-            <i class="el-icon-setting"></i>
207
-            <span style="margin-right:20px">权限配置</span>
208
-          </div>
209
-          <div class="avatar">
210
-            <img src="../../assets/img/pc5.png" alt />
211
-            <p class="avatarname">院长</p>
212
-          </div>
213
-          <div class="roleTip">院长角色了解血透患者血液透析质量和相关的大数据,以及掌握透析中心整体运营情况</div>
214
-          <div class="roleTxt">
215
-            该角色目前已配置
216
-            <span style="color:#4A8AF3">0</span> 个员工
217
-          </div>
218
-          <div class="btnBox">
219
-            <el-button>新增用户</el-button>
220
-            <el-button>用户管理</el-button>
221
-          </div>
222
-        </div>
223
-      </div>
89
+<!--      <div class="roleBox">-->
90
+<!--        <div class="roleOne">-->
91
+<!--          <div class="setting">-->
92
+<!--            <i class="el-icon-setting"></i>-->
93
+<!--            <span style="margin-right:20px" @click="onClick">权限配置</span>-->
94
+<!--          </div>-->
95
+<!--          <div class="avatar">-->
96
+<!--            <img src="../../assets/img/pc1.png" alt />-->
97
+<!--            <p class="avatarname">子管理员</p>-->
98
+<!--          </div>-->
99
+<!--          <div class="roleTip">子管理员角色具备平台全部功能的使用权限,请谨慎配置...</div>-->
100
+<!--          <div class="roleTxt">-->
101
+<!--            该角色目前已配置-->
102
+<!--            <span style="color:#4A8AF3">0</span> 个员工-->
103
+<!--          </div>-->
104
+<!--          <div class="btnBox">-->
105
+<!--            <el-button>新增用户</el-button>-->
106
+<!--            <el-button>用户管理</el-button>-->
107
+<!--          </div>-->
108
+<!--        </div>-->
109
+<!--        <div class="roleOne">-->
110
+<!--          <div class="setting">-->
111
+<!--            <i class="el-icon-setting"></i>-->
112
+<!--            <span style="margin-right:20px">权限配置</span>-->
113
+<!--          </div>-->
114
+<!--          <div class="avatar">-->
115
+<!--            <img src="../../assets/img/pc2.png" alt />-->
116
+<!--            <p class="avatarname">医生</p>-->
117
+<!--          </div>-->
118
+<!--          <div class="roleTip">医生角色能够进行建立患者档案,制定和调整患者透析治疗方案,定期评价病人的透析质量等...</div>-->
119
+<!--          <div class="roleTxt">-->
120
+<!--            该角色目前已配置-->
121
+<!--            <span style="color:#4A8AF3">0</span> 个员工-->
122
+<!--          </div>-->
123
+<!--          <div class="btnBox">-->
124
+<!--            <el-button>新增用户</el-button>-->
125
+<!--            <el-button>用户管理</el-button>-->
126
+<!--          </div>-->
127
+<!--        </div>-->
128
+<!--        <div class="roleOne">-->
129
+<!--          <div class="setting">-->
130
+<!--            <i class="el-icon-setting"></i>-->
131
+<!--            <span style="margin-right:20px">权限配置</span>-->
132
+<!--          </div>-->
133
+<!--          <div class="avatar">-->
134
+<!--            <img src="../../assets/img/pc3.png" alt />-->
135
+<!--            <p class="avatarname">护士</p>-->
136
+<!--          </div>-->
137
+<!--          <div class="roleTip">护士角色能够进行病人透析管理,以及医院的感染控制与消毒记录等...</div>-->
138
+<!--          <div class="roleTxt">-->
139
+<!--            该角色目前已配置-->
140
+<!--            <span style="color:#4A8AF3">0</span> 个员工-->
141
+<!--          </div>-->
142
+<!--          <div class="btnBox">-->
143
+<!--            <el-button>新增用户</el-button>-->
144
+<!--            <el-button>用户管理</el-button>-->
145
+<!--          </div>-->
146
+<!--        </div>-->
147
+<!--        <div class="roleOne">-->
148
+<!--          <div class="setting">-->
149
+<!--            <i class="el-icon-setting"></i>-->
150
+<!--            <span style="margin-right:20px">权限配置</span>-->
151
+<!--          </div>-->
152
+<!--          <div class="avatar">-->
153
+<!--            <img src="../../assets/img/pc2.png" alt />-->
154
+<!--            <p class="avatarname">技师</p>-->
155
+<!--          </div>-->
156
+<!--          <div class="roleTip">技师角色能够进行设备的管理,日常维护维修记录等...</div>-->
157
+<!--          <div class="roleTxt">-->
158
+<!--            该角色目前已配置-->
159
+<!--            <span style="color:#4A8AF3">0</span> 个员工-->
160
+<!--          </div>-->
161
+<!--          <div class="btnBox">-->
162
+<!--            <el-button>新增用户</el-button>-->
163
+<!--            <el-button>用户管理</el-button>-->
164
+<!--          </div>-->
165
+<!--        </div>-->
166
+<!--        <div class="roleOne">-->
167
+<!--          <div class="setting">-->
168
+<!--            <i class="el-icon-setting"></i>-->
169
+<!--            <span style="margin-right:20px">权限配置</span>-->
170
+<!--          </div>-->
171
+<!--          <div class="avatar">-->
172
+<!--            <img src="../../assets/img/pc2.png" alt />-->
173
+<!--            <p class="avatarname">运营</p>-->
174
+<!--          </div>-->
175
+<!--          <div class="roleTip">运营角色能够在SCRM中管理微网站、使用营销工具、做会员管理和分销商品经营的操作...</div>-->
176
+<!--          <div class="roleTxt">-->
177
+<!--            该角色目前已配置-->
178
+<!--            <span style="color:#4A8AF3">0</span> 个员工-->
179
+<!--          </div>-->
180
+<!--          <div class="btnBox">-->
181
+<!--            <el-button>新增用户</el-button>-->
182
+<!--            <el-button>用户管理</el-button>-->
183
+<!--          </div>-->
184
+<!--        </div>-->
185
+<!--        <div class="roleOne">-->
186
+<!--          <div class="setting">-->
187
+<!--            <i class="el-icon-setting"></i>-->
188
+<!--            <span style="margin-right:20px">权限配置</span>-->
189
+<!--          </div>-->
190
+<!--          <div class="avatar">-->
191
+<!--            <img src="../../assets/img/pc4.png" alt />-->
192
+<!--            <p class="avatarname">库存</p>-->
193
+<!--          </div>-->
194
+<!--          <div class="roleTip">库存角色负责透析耗材的日常管理,对耗材的入库、出库、退库的登记操作...</div>-->
195
+<!--          <div class="roleTxt">-->
196
+<!--            该角色目前已配置-->
197
+<!--            <span style="color:#4A8AF3">0</span> 个员工-->
198
+<!--          </div>-->
199
+<!--          <div class="btnBox">-->
200
+<!--            <el-button>新增用户</el-button>-->
201
+<!--            <el-button>用户管理</el-button>-->
202
+<!--          </div>-->
203
+<!--        </div>-->
204
+<!--        <div class="roleOne">-->
205
+<!--          <div class="setting">-->
206
+<!--            <i class="el-icon-setting"></i>-->
207
+<!--            <span style="margin-right:20px">权限配置</span>-->
208
+<!--          </div>-->
209
+<!--          <div class="avatar">-->
210
+<!--            <img src="../../assets/img/pc5.png" alt />-->
211
+<!--            <p class="avatarname">院长</p>-->
212
+<!--          </div>-->
213
+<!--          <div class="roleTip">院长角色了解血透患者血液透析质量和相关的大数据,以及掌握透析中心整体运营情况</div>-->
214
+<!--          <div class="roleTxt">-->
215
+<!--            该角色目前已配置-->
216
+<!--            <span style="color:#4A8AF3">0</span> 个员工-->
217
+<!--          </div>-->
218
+<!--          <div class="btnBox">-->
219
+<!--            <el-button>新增用户</el-button>-->
220
+<!--            <el-button>用户管理</el-button>-->
221
+<!--          </div>-->
222
+<!--        </div>-->
223
+<!--      </div>-->
224 224
     </div>
225 225
   </div>
226 226
 </template>