See999 4 years ago
parent
commit
6a8db1f48f

+ 51 - 0
src/kpa_pages/configureCenter/components/Bed.vue View File

@@ -0,0 +1,51 @@
1
+<template>
2
+  <div class="Bed">
3
+    <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
4
+      <div class="BedOne">
5
+        <div class="BedLeft">
6
+          <p>分区名称:A区</p>
7
+          <p>分区类型:普通区</p>
8
+          <p>所属分组:护理1组</p>
9
+        </div>
10
+        <van-icon class="ellipsis" name="ellipsis" @click="newShow = true" />
11
+      </div>
12
+    </van-list>
13
+    <van-action-sheet v-model="newShow" :actions="actions" cancel-text="取消" @cancel="onCancel" />
14
+  </div>
15
+</template>
16
+
17
+<script>
18
+export default {
19
+  data() {
20
+    return {
21
+      loading: false,
22
+      finished: false,
23
+      newShow: false,
24
+      actions: [{ name: "编辑" }, { name: "删除" }]
25
+    };
26
+  },
27
+  methods: {
28
+    onLoad() {},
29
+    onCancel() {}
30
+  }
31
+};
32
+</script>
33
+
34
+<style lang="scss" scoped>
35
+.Bed {
36
+  .BedOne {
37
+    padding: 1.375rem 1.125rem 0 1.5rem;
38
+    display: flex;
39
+    justify-content: space-between;
40
+    box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.1);
41
+    p {
42
+      font-size: 0.9375rem;
43
+      margin-bottom: 1.125rem;
44
+    }
45
+    .ellipsis {
46
+      font-size: 1.5rem;
47
+      color: #cccccc;
48
+    }
49
+  }
50
+}
51
+</style>

+ 49 - 0
src/kpa_pages/configureCenter/components/Grouping.vue View File

@@ -0,0 +1,49 @@
1
+<template>
2
+  <div class="Grouping">
3
+    <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
4
+      <div class="GroupingOne">
5
+        <div class="GroupingLeft">
6
+          <p>分组名称:护理1组</p>
7
+        </div>
8
+        <van-icon class="ellipsis" name="ellipsis" @click="newShow = true" />
9
+      </div>
10
+    </van-list>
11
+    <van-action-sheet v-model="newShow" :actions="actions" cancel-text="取消" @cancel="onCancel" />
12
+  </div>
13
+</template>
14
+
15
+<script>
16
+export default {
17
+  data() {
18
+    return {
19
+      loading: false,
20
+      finished: false,
21
+      newShow: false,
22
+      actions: [{ name: "编辑" }, { name: "删除" }]
23
+    };
24
+  },
25
+  methods: {
26
+    onLoad() {},
27
+    onCancel() {}
28
+  }
29
+};
30
+</script>
31
+
32
+<style lang="scss" scoped>
33
+.Grouping {
34
+  .GroupingOne {
35
+    padding: 1.375rem 1.125rem 1.125rem 1.5rem;
36
+    display: flex;
37
+    justify-content: space-between;
38
+    align-items: center;
39
+    box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.1);
40
+    p {
41
+      font-size: 0.9375rem;
42
+    }
43
+    .ellipsis {
44
+      font-size: 1.5rem;
45
+      color: #cccccc;
46
+    }
47
+  }
48
+}
49
+</style>

+ 50 - 0
src/kpa_pages/configureCenter/components/Partition.vue View File

@@ -0,0 +1,50 @@
1
+<template>
2
+  <div class="partition">
3
+    <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
4
+      <div class="partitionOne">
5
+        <div class="partitionLeft">
6
+          <p>分区名称:A区</p>
7
+          <p>分区类型:普通区</p>
8
+        </div>
9
+        <van-icon class="ellipsis" name="ellipsis" @click="newShow = true" />
10
+      </div>
11
+    </van-list>
12
+    <van-action-sheet v-model="newShow" :actions="actions" cancel-text="取消" @cancel="onCancel" />
13
+  </div>
14
+</template>
15
+
16
+<script>
17
+export default {
18
+  data() {
19
+    return {
20
+      loading: false,
21
+      finished: false,
22
+      newShow: false,
23
+      actions: [{ name: "编辑" }, { name: "删除" }]
24
+    };
25
+  },
26
+  methods: {
27
+    onLoad() {},
28
+    onCancel() {}
29
+  }
30
+};
31
+</script>
32
+
33
+<style lang="scss" scoped>
34
+.partition {
35
+  .partitionOne {
36
+    padding: 1.375rem 1.125rem 0 1.5rem;
37
+    display: flex;
38
+    justify-content: space-between;
39
+    box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.1);
40
+    p {
41
+      font-size: 0.9375rem;
42
+      margin-bottom: 1.125rem;
43
+    }
44
+    .ellipsis {
45
+      font-size: 1.5rem;
46
+      color: #cccccc;
47
+    }
48
+  }
49
+}
50
+</style>

+ 73 - 0
src/kpa_pages/configureCenter/index.vue View File

@@ -0,0 +1,73 @@
1
+<template>
2
+  <div class="page_configureCenter">
3
+    <div class="configureCenterTitle">
4
+      <i class="iconfont icon-zuojiantou jiantou"></i>
5
+      <span class="titleName">配置中心</span>
6
+    </div>
7
+    <div class="configureCenterMain">
8
+      <van-tabs v-model="active">
9
+        <van-tab title="分区">
10
+          <partition></partition>
11
+        </van-tab>
12
+        <van-tab title="分组">
13
+          <grouping></grouping>
14
+        </van-tab>
15
+        <van-tab title="床位">
16
+          <bed></bed>
17
+        </van-tab>
18
+      </van-tabs>
19
+    </div>
20
+  </div>
21
+</template>
22
+
23
+<script>
24
+import Partition from "@/kpa_pages/configureCenter/components/Partition";
25
+import Grouping from "@/kpa_pages/configureCenter/components/Grouping";
26
+import Bed from "@/kpa_pages/configureCenter/components/Bed";
27
+export default {
28
+  components: {
29
+    Partition,
30
+    Grouping,
31
+    Bed
32
+  },
33
+  data() {
34
+    return {
35
+      active: 0
36
+    };
37
+  }
38
+};
39
+</script>
40
+
41
+
42
+
43
+
44
+<style lang="scss" scoped>
45
+.page_configureCenter {
46
+  height: 100%;
47
+  overflow: hidden;
48
+  overflow-y: auto;
49
+  .configureCenterTitle {
50
+    background: #fff;
51
+    padding: 0 1.125rem;
52
+    height: 3.125rem;
53
+    display: flex;
54
+    align-items: center;
55
+  }
56
+  .jiantou {
57
+    font-size: 1.5rem;
58
+    font-weight: 600;
59
+    margin-right: 7rem;
60
+  }
61
+  .titleName {
62
+    font-size: 1.125rem;
63
+    font-weight: 600;
64
+  }
65
+}
66
+</style>
67
+<style lang="scss">
68
+.page_configureCenter {
69
+  .van-tabs__line {
70
+    background: #5b98ff;
71
+  }
72
+}
73
+</style>

+ 101 - 0
src/kpa_pages/configureCenter/newBed.vue View File

@@ -0,0 +1,101 @@
1
+<template>
2
+  <div class="page_newBed">
3
+    <div class="newBedTitle">
4
+      <i class="iconfont icon-zuojiantou jiantou"></i>
5
+      <span class="titleName">新增床位</span>
6
+    </div>
7
+    <div class="infoBox">
8
+      <van-field v-model="name" required label="床位号" placeholder="请输入" />
9
+      <van-field
10
+        label="所属分区"
11
+        v-model="sex"
12
+        right-icon="arrow"
13
+        placeholder="请选择"
14
+        required
15
+        readonly
16
+        @click="show = true"
17
+      />
18
+      <van-popup v-model="show" position="bottom" :style="{ height: '40%' }">
19
+        <van-picker :columns="columns" show-toolbar @change="onChange" />
20
+      </van-popup>
21
+      <van-field
22
+        label="所属分组"
23
+        v-model="sex"
24
+        right-icon="arrow"
25
+        placeholder="请选择"
26
+        required
27
+        readonly
28
+        @click="show = true"
29
+      />
30
+      <van-popup v-model="show1" position="bottom" :style="{ height: '40%' }">
31
+        <van-picker :columns="columns" show-toolbar @change="onChange" />
32
+      </van-popup>
33
+    </div>
34
+    <div class="save">保存</div>
35
+  </div>
36
+</template>
37
+
38
+
39
+<script>
40
+export default {
41
+  data() {
42
+    return {
43
+      show: false,
44
+      show1: false,
45
+      columns: ["男", "女"]
46
+    };
47
+  }
48
+};
49
+</script>
50
+
51
+
52
+<style lang="scss" scoped>
53
+.page_newBed {
54
+  height: 100%;
55
+  overflow: hidden;
56
+  overflow-y: auto;
57
+  background: #fafafa;
58
+  .newBedTitle {
59
+    background: #fff;
60
+    padding: 0 1.125rem;
61
+    height: 3.125rem;
62
+    display: flex;
63
+    align-items: center;
64
+  }
65
+  .jiantou {
66
+    font-size: 1.5rem;
67
+    font-weight: 600;
68
+    margin-right: 7rem;
69
+  }
70
+  .titleName {
71
+    font-size: 1.125rem;
72
+    font-weight: 600;
73
+  }
74
+  .infoBox {
75
+    margin-top: 1rem;
76
+  }
77
+  .save {
78
+    width: 19.25rem;
79
+    height: 2.875rem;
80
+    margin: 0 auto;
81
+    background: rgba(51, 138, 251, 1);
82
+    box-shadow: 0px 1px 12px 0px rgba(51, 138, 251, 1);
83
+    border-radius: 1.4375rem;
84
+    text-align: center;
85
+    line-height: 2.875rem;
86
+    color: #fff;
87
+    margin-top: 2.875rem;
88
+  }
89
+}
90
+</style>
91
+<style lang="scss">
92
+.infoBox {
93
+  .van-field__body {
94
+    width: 100%;
95
+  }
96
+  .van-cell__value {
97
+    display: flex;
98
+    align-items: center;
99
+  }
100
+}
101
+</style>

+ 78 - 0
src/kpa_pages/configureCenter/newGrouping.vue View File

@@ -0,0 +1,78 @@
1
+<template>
2
+  <div class="page_newGrouping">
3
+    <div class="newGroupingTitle">
4
+      <i class="iconfont icon-zuojiantou jiantou"></i>
5
+      <span class="titleName">新增分组</span>
6
+    </div>
7
+    <div class="infoBox">
8
+      <van-field v-model="name" required label="分区名称" placeholder="请输入" />
9
+    </div>
10
+    <div class="save">保存</div>
11
+  </div>
12
+</template>
13
+
14
+
15
+<script>
16
+export default {
17
+  data() {
18
+    return {
19
+      show: false,
20
+      columns: ["男", "女"]
21
+    };
22
+  }
23
+};
24
+</script>
25
+
26
+
27
+<style lang="scss" scoped>
28
+.page_newGrouping {
29
+  height: 100%;
30
+  overflow: hidden;
31
+  overflow-y: auto;
32
+  background: #fafafa;
33
+  .newGroupingTitle {
34
+    background: #fff;
35
+    padding: 0 1.125rem;
36
+    height: 3.125rem;
37
+    display: flex;
38
+    align-items: center;
39
+  }
40
+  .jiantou {
41
+    font-size: 1.5rem;
42
+    font-weight: 600;
43
+    margin-right: 7rem;
44
+  }
45
+  .titleName {
46
+    font-size: 1.125rem;
47
+    font-weight: 600;
48
+  }
49
+  .infoBox {
50
+    margin-top: 1rem;
51
+
52
+    .van-cell__value {
53
+      display: flex;
54
+      align-items: center;
55
+    }
56
+  }
57
+  .save {
58
+    width: 19.25rem;
59
+    height: 2.875rem;
60
+    margin: 0 auto;
61
+    background: rgba(51, 138, 251, 1);
62
+    box-shadow: 0px 1px 12px 0px rgba(51, 138, 251, 1);
63
+    border-radius: 1.4375rem;
64
+    text-align: center;
65
+    line-height: 2.875rem;
66
+    color: #fff;
67
+    margin-top: 2.875rem;
68
+  }
69
+}
70
+</style>
71
+<style lang="scss">
72
+.infoBox {
73
+  .van-cell__value {
74
+    display: flex;
75
+    align-items: center;
76
+  }
77
+}
78
+</style>

+ 88 - 0
src/kpa_pages/configureCenter/newPartition.vue View File

@@ -0,0 +1,88 @@
1
+<template>
2
+  <div class="page_newPartition">
3
+    <div class="newPartitionTitle">
4
+      <i class="iconfont icon-zuojiantou jiantou"></i>
5
+      <span class="titleName">新增分区</span>
6
+    </div>
7
+    <div class="infoBox">
8
+      <van-field v-model="name" required label="分区名称" placeholder="请输入" />
9
+      <van-field
10
+        label="分区类型"
11
+        v-model="sex"
12
+        right-icon="arrow"
13
+        placeholder="请选择"
14
+        required
15
+        readonly
16
+        @click="show = true"
17
+      />
18
+      <van-popup v-model="show" position="bottom" :style="{ height: '40%' }">
19
+        <van-picker :columns="columns" show-toolbar @change="onChange" />
20
+      </van-popup>
21
+    </div>
22
+    <div class="save">保存</div>
23
+  </div>
24
+</template>
25
+
26
+
27
+<script>
28
+export default {
29
+  data() {
30
+    return {
31
+      show: false,
32
+      columns: ["男", "女"]
33
+    };
34
+  }
35
+};
36
+</script>
37
+
38
+
39
+<style lang="scss" scoped>
40
+.page_newPartition {
41
+  height: 100%;
42
+  overflow: hidden;
43
+  overflow-y: auto;
44
+  background: #fafafa;
45
+  .newPartitionTitle {
46
+    background: #fff;
47
+    padding: 0 1.125rem;
48
+    height: 3.125rem;
49
+    display: flex;
50
+    align-items: center;
51
+  }
52
+  .jiantou {
53
+    font-size: 1.5rem;
54
+    font-weight: 600;
55
+    margin-right: 7rem;
56
+  }
57
+  .titleName {
58
+    font-size: 1.125rem;
59
+    font-weight: 600;
60
+  }
61
+  .infoBox {
62
+    margin-top: 1rem;
63
+  }
64
+  .save {
65
+    width: 19.25rem;
66
+    height: 2.875rem;
67
+    margin: 0 auto;
68
+    background: rgba(51, 138, 251, 1);
69
+    box-shadow: 0px 1px 12px 0px rgba(51, 138, 251, 1);
70
+    border-radius: 1.4375rem;
71
+    text-align: center;
72
+    line-height: 2.875rem;
73
+    color: #fff;
74
+    margin-top: 2.875rem;
75
+  }
76
+}
77
+</style>
78
+<style lang="scss">
79
+.infoBox {
80
+  .van-field__body {
81
+    width: 100%;
82
+  }
83
+  .van-cell__value {
84
+    display: flex;
85
+    align-items: center;
86
+  }
87
+}
88
+</style>

+ 5 - 0
src/kpa_pages/modifyingHead/index.vue View File

@@ -0,0 +1,5 @@
1
+<template>
2
+  <div class="page_modifyingHead">
3
+    <img src alt />
4
+  </div>
5
+</template>

+ 41 - 0
src/kpa_pages/modifyingName/index.vue View File

@@ -0,0 +1,41 @@
1
+<template>
2
+  <div class="page_modifyingName">
3
+    <div class="modifyingNameTitle">
4
+      <i class="iconfont icon-zuojiantou jiantou"></i>
5
+      <span class="titleName">修改姓名</span>
6
+      <span>保存</span>
7
+    </div>
8
+    <div class="nameBox">
9
+      <van-field v-model="value" placeholder="请填写姓名" />
10
+    </div>
11
+  </div>
12
+</template>
13
+
14
+
15
+<style lang="scss" scoped>
16
+.page_modifyingName {
17
+  height: 100%;
18
+  overflow: hidden;
19
+  background: #fafafa;
20
+  .modifyingNameTitle {
21
+    background: #fff;
22
+    padding: 0 1.125rem;
23
+    height: 3.125rem;
24
+    display: flex;
25
+    align-items: center;
26
+    justify-content: space-between;
27
+  }
28
+  .jiantou {
29
+    font-size: 1.5rem;
30
+    font-weight: 600;
31
+    margin-right: 1rem;
32
+  }
33
+  .titleName {
34
+    font-size: 1.125rem;
35
+    font-weight: 600;
36
+  }
37
+  .nameBox {
38
+    margin-top: 1rem;
39
+  }
40
+}
41
+</style>

+ 48 - 0
src/kpa_pages/personalSign/index.vue View File

@@ -0,0 +1,48 @@
1
+<template>
2
+  <div class="page_personalSign">
3
+    <div class="personalSignTitle">
4
+      <i class="iconfont icon-zuojiantou jiantou"></i>
5
+      <span class="titleName">修改姓名</span>
6
+      <span>保存</span>
7
+    </div>
8
+    <div class="nameBox">
9
+      <van-field
10
+        v-model="message"
11
+        rows="1"
12
+        autosize
13
+        type="textarea"
14
+        placeholder="请填写个性签名"
15
+        maxlength="20"
16
+      />
17
+    </div>
18
+  </div>
19
+</template>
20
+
21
+
22
+<style lang="scss" scoped>
23
+.page_personalSign {
24
+  height: 100%;
25
+  overflow: hidden;
26
+  background: #fafafa;
27
+  .personalSignTitle {
28
+    background: #fff;
29
+    padding: 0 1.125rem;
30
+    height: 3.125rem;
31
+    display: flex;
32
+    align-items: center;
33
+    justify-content: space-between;
34
+  }
35
+  .jiantou {
36
+    font-size: 1.5rem;
37
+    font-weight: 600;
38
+    margin-right: 1rem;
39
+  }
40
+  .titleName {
41
+    font-size: 1.125rem;
42
+    font-weight: 600;
43
+  }
44
+  .nameBox {
45
+    margin-top: 1rem;
46
+  }
47
+}
48
+</style>

+ 35 - 0
src/router/index.js View File

@@ -346,6 +346,41 @@ var _constant_router_map = [
346 346
     path: "/qualityControlReport",
347 347
     component: () => import("@/kpa_pages/qualityControlReport/index")
348 348
   },
349
+  // 配置中心
350
+  {
351
+    path: "/configureCenter",
352
+    component: () => import("@/kpa_pages/configureCenter/index")
353
+  },
354
+  // 新增分区
355
+  {
356
+    path: "/newPartition",
357
+    component: () => import("@/kpa_pages/configureCenter/newPartition")
358
+  },
359
+  // 新增分组
360
+  {
361
+    path: "/newGrouping",
362
+    component: () => import("@/kpa_pages/configureCenter/newGrouping")
363
+  },
364
+  // 新增床位
365
+  {
366
+    path: "/newBed",
367
+    component: () => import("@/kpa_pages/configureCenter/newBed")
368
+  },
369
+  // 修改头像
370
+  {
371
+    path: "/modifyingHead",
372
+    component: () => import("@/kpa_pages/modifyingHead/index")
373
+  },
374
+  // 修改姓名
375
+  {
376
+    path: "/modifyingName",
377
+    component: () => import("@/kpa_pages/modifyingName/index")
378
+  },
379
+  // 个性签名
380
+  {
381
+    path: "/personalSign",
382
+    component: () => import("@/kpa_pages/personalSign/index")
383
+  },
349 384
   // 注册页面
350 385
   {
351 386
     path: "/register",