Skip to content

Commit fc118cc

Browse files
committed
Merge branch 'develop'
2 parents 53b4220 + ad867a7 commit fc118cc

23 files changed

+2902
-775
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "logboard-frontend",
3-
"version": "0.1.0",
3+
"version": "0.1.9",
44
"private": true,
55
"scripts": {
66
"serve": "vue-cli-service serve",
@@ -21,6 +21,7 @@
2121
"vue-axios": "^2.1.5",
2222
"vue-chartjs": "^3.5.0",
2323
"vue-cli-plugin-s3-deploy": "^4.0.0-rc4",
24+
"vue-content-loader": "^0.2.3",
2425
"vue-date-fns": "^2.0.1",
2526
"vue-loading-overlay": "^3.3.2",
2627
"vue-router": "^3.3.4",

src/App.vue

Lines changed: 55 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
<loading :active.sync="storageisLoading"></loading>
55

66
<div id="App">
7-
<div v-if="true" id="NavBar">
7+
<!-- <div v-if="true" id="NavBar">
88
<div id="Logo">
9-
<img alt="LogBoard logo" src="./assets/LogBoardLOGO.svg" width="130" />
9+
<img alt="LogBoard logo" src="./assets/logologboard.svg" width="130" />
1010
</div>
1111
<div slot="reference" id="NavItems">
1212
<router-link :to="{ name: 'dashboard' }" class="Nav">
@@ -17,67 +17,58 @@
1717
<img id="Icon" alt="LogBoard Icon" src="./assets/icon/PHOTODIARY.svg" width="32" />
1818
<h4>PHOTODIARY</h4>
1919
</router-link>
20-
<!-- <router-link :to="{ name: 'camps' }" class="Nav">
20+
<router-link :to="{ name: 'camps' }" class="Nav">
2121
<img id="Icon" alt="LogBoard Icon" src="./assets/icon/camps.svg" width="32" />
22-
<h4>實習營健康表</h4>
23-
</router-link>-->
22+
<h4>健康聲明表</h4>
23+
</router-link>
2424
</div>
25-
</div>
25+
</div>-->
26+
<NavBar id="NavBar" />
2627
<div id="Content" style="overflow: hidden;">
2728
<DateSelectBar id="DateSelectBar" v-if="true" />
29+
2830
<div id="NavBarMobile">
29-
<div id="LogoMobile">
30-
<img alt="LogBoard logo" src="./assets/LogBoardLOGO.svg" height="30" class="LogoMobile" />
31-
<button @click="toggle" class="menu">
32-
<img alt="menu logo" src="./assets/icon/menu.svg" height="25" />
33-
</button>
34-
</div>
35-
<div id="NavItems" v-if="isShow">
36-
<router-link :to="{ name: 'camps' }" class="Nav">
37-
<img id="Icon" alt="LogBoard Icon" src="./assets/icon/camps.svg" width="32" />
38-
<h4>實習營健康表</h4>
39-
</router-link>
40-
<router-link :to="{ name: 'dashboard' }" class="Nav">
41-
<img id="Icon" alt="LogBoard Icon" src="./assets/icon/DASHBOARD.svg" width="32" />
42-
<h4>DASHBOARD</h4>
43-
</router-link>
44-
<router-link :to="{ name: 'photodiary' }" class="Nav">
45-
<img id="Icon" alt="LogBoard Icon" src="./assets/icon/PHOTODIARY.svg" width="32" />
46-
<h4>PHOTODIARY</h4>
47-
</router-link>
48-
<DateSelectBar id="DateSelectBarMobile" v-if="true" />
49-
</div>
31+
<DateSelectBarMobile />
5032
</div>
5133
<router-view></router-view>
5234
</div>
5335
</div>
5436
<div id="Footer">
5537
<img alt="LogBoard logo" src="./assets/LogBoardLOGO.svg" height="60%" />
56-
© 2020 copyright. all rights reserved v0.1.5
38+
<template id="version">version v{{version}}</template>
39+
© 2020 copyright. all rights reserved
5740
{{storageUserId}}
5841
</div>
5942
</div>
6043
</template>
6144

6245
<script>
6346
import DateSelectBar from "./components/DateSelectBar.vue";
47+
import DateSelectBarMobile from "./components/DateSelectBarMobile.vue";
48+
import NavBar from "./components/NavBar.vue";
6449
import "reset-css";
65-
50+
import config from "../package.json";
6651
export default {
6752
name: "App",
6853
components: {
69-
DateSelectBar
54+
DateSelectBar,
55+
DateSelectBarMobile,
56+
NavBar,
7057
},
7158
props: {
72-
source: String
59+
source: String,
7360
},
7461
watch: {
75-
storageUserId: function() {
62+
storageUserId: function () {
7663
console.log("storageUserId change", this.storageUserId);
7764
},
78-
storageisLoading: function() {
65+
storageisLoading: function () {
7966
console.log("storageisLoading change", this.storageisLoading);
80-
}
67+
},
68+
storageSymptomsTemplates: function () {
69+
// this.$store.dispatch("ChangDisplayTemplate", "heartFailure");
70+
console.log("ChangDisplayTemplate change", this.storageisLoading);
71+
},
8172
},
8273
computed: {
8374
storageUserId() {
@@ -86,36 +77,45 @@ export default {
8677
},
8778
storageisLoading() {
8879
return this.$store.state.isLoading;
89-
}
80+
},
81+
storageSymptomsTemplates() {
82+
return this.$store.state.SymptomsTemplates;
83+
},
9084
},
9185
data() {
9286
return {
87+
version: config.version,
9388
uid: this.computed,
9489
isShow: false,
9590
drawer: true,
9691
visible: false,
97-
DataTable: [{}, {}, {}]
92+
DataTable: [{}, {}, {}],
9893
// isLoading: false
9994
};
10095
},
101-
96+
created() {
97+
this.$store.dispatch("fetchTemplates");
98+
// this.GetAPI("this-week");
99+
console.log("version", config.version);
100+
},
102101
methods: {
103-
toggle: function() {
102+
toggle: function () {
104103
this.isShow = !this.isShow;
105104
},
105+
106106
open() {
107107
console.log("open was clicked, will auto hide");
108108
let loader = this.$loading.show({
109-
loader: "dots"
109+
loader: "dots",
110110
});
111111
setTimeout(() => loader.hide(), 3 * 1000);
112112
},
113113
show() {
114114
console.log("show was clicked, click to hide");
115115
// do AJAX here
116116
this.visible = true;
117-
}
118-
}
117+
},
118+
},
119119
};
120120
</script>
121121

@@ -131,20 +131,18 @@ export default {
131131
}*/
132132
133133
.el-table th.gutter {
134-
display: table-cell!important;
134+
display: table-cell !important;
135135
}
136136
.el-table--border th.gutter:last-of-type {
137-
display: block!important;
138-
width: 17px!important;
137+
display: block !important;
138+
width: 17px !important;
139139
}
140140
.el-table th {
141-
display: table-cell!important;
141+
display: table-cell !important;
142142
}
143143
144-
145-
146-
body .el-table th.gutter{
147-
display: table-cell!important;
144+
body .el-table th.gutter {
145+
display: table-cell !important;
148146
}
149147
150148
#main .el-date-editor--daterange.el-input__inner {
@@ -186,6 +184,9 @@ body .el-table th.gutter{
186184
height: 97vh;
187185
}
188186
187+
#DateSelectBarMobile {
188+
}
189+
189190
@media screen and (max-width: 800px) {
190191
#DateSelectBar {
191192
display: none;
@@ -204,18 +205,21 @@ body .el-table th.gutter{
204205
@media screen and (min-width: 567px) {
205206
#NavBar {
206207
/* background: #f0afff; */
207-
display: flex;
208+
/* display: flex;
208209
flex: 1;
209210
width: 15%;
210211
flex-direction: column;
211212
-webkit-justify-content: center;
212-
justify-content: center;
213+
justify-content: center; */
213214
/* height: 100vh; */
214215
}
215216
#NavBarMobile {
216217
display: none;
217218
}
218219
}
220+
#NavBarMobile {
221+
width: 100%;
222+
}
219223
#Footer {
220224
width: "100%";
221225
/* height: "20x"; */

src/Layout/T1B2.vue

Lines changed: 44 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<template >
2+
3+
4+
25
<div id="T1B2" style="width: 100%;">
36
<div id="Top10">
47
<LogChart msg="LogChart Plugins" />
@@ -118,23 +121,30 @@
118121
</div>
119122
</div>
120123
</div>
124+
121125
</template>
122126

123127
<script>
124128
import LogChart from "../components/LogChart.vue";
125129
import SymptomTable from "../components/SymptomTable.vue";
126130
import CalendarSweet from "../components/CalendarSweet.vue";
131+
// import { ContentLoader } from "vue-content-loader";
127132
128133
export default {
129134
name: "T1B2",
130135
components: {
131136
LogChart,
132137
SymptomTable,
133-
CalendarSweet
138+
CalendarSweet,
139+
// ContentLoader,
140+
},
141+
created() {
134142
},
135-
created() {},
136143
watch: {
137-
storageRaw_Data: function() {
144+
skeleton: function () {
145+
console.log("skeleton change", this.skeleton);
146+
},
147+
storageRaw_Data: function () {
138148
console.log("storageRaw_Data change", this.storageRaw_Data);
139149
this.$store.commit("ChangisLoading", false);
140150
@@ -149,13 +159,16 @@ export default {
149159
// console.log("storageRaw_photo change", this.storageRaw_photo);
150160
// // this.fillData();
151161
// }
152-
storagePopUp_id: function() {
162+
storagePopUp_id: function () {
153163
console.log("storagePopUp_id change", this.storagePopUp_id);
154164
this.$store.dispatch("fetchRawDataApi");
155165
// this.fillData();
156-
}
166+
},
157167
},
158168
computed: {
169+
skeleton() {
170+
return this.$store.state.isLoading;
171+
},
159172
storageRaw_Data() {
160173
console.log("storageRaw_Data change", this.$store.state.storeRAWData);
161174
return this.$store.state.storeRAWData;
@@ -168,13 +181,13 @@ export default {
168181
// },
169182
storagePopUp_id() {
170183
return this.$store.state.PopUpidList;
171-
}
184+
},
172185
},
173186
methods: {
174187
off() {
175188
// this.$store.commit("ChangDisplayPopUp", false);
176189
this.$store.commit("ChangDisplayPopUp", { display: false, index: -1 });
177-
}
190+
},
178191
},
179192
data() {
180193
return {
@@ -188,11 +201,11 @@ export default {
188201
label: "二级 1-1",
189202
children: [
190203
{
191-
label: "三级 1-1-1"
192-
}
193-
]
194-
}
195-
]
204+
label: "三级 1-1-1",
205+
},
206+
],
207+
},
208+
],
196209
},
197210
{
198211
label: "一级 2",
@@ -201,19 +214,19 @@ export default {
201214
label: "二级 2-1",
202215
children: [
203216
{
204-
label: "三级 2-1-1"
205-
}
206-
]
217+
label: "三级 2-1-1",
218+
},
219+
],
207220
},
208221
{
209222
label: "二级 2-2",
210223
children: [
211224
{
212-
label: "三级 2-2-1"
213-
}
214-
]
215-
}
216-
]
225+
label: "三级 2-2-1",
226+
},
227+
],
228+
},
229+
],
217230
},
218231
{
219232
label: "一级 3",
@@ -222,23 +235,23 @@ export default {
222235
label: "二级 3-1",
223236
children: [
224237
{
225-
label: "三级 3-1-1"
226-
}
227-
]
238+
label: "三级 3-1-1",
239+
},
240+
],
228241
},
229242
{
230243
label: "二级 3-2",
231244
children: [
232245
{
233-
label: "三级 3-2-1"
234-
}
235-
]
236-
}
237-
]
238-
}
239-
]
246+
label: "三级 3-2-1",
247+
},
248+
],
249+
},
250+
],
251+
},
252+
],
240253
};
241-
}
254+
},
242255
};
243256
</script>
244257

src/assets/GroupLicon.svg

Lines changed: 6 additions & 0 deletions
Loading

src/assets/close.png

598 Bytes
Loading

0 commit comments

Comments
 (0)