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">
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 >
6346import DateSelectBar from " ./components/DateSelectBar.vue" ;
47+ import DateSelectBarMobile from " ./components/DateSelectBarMobile.vue" ;
48+ import NavBar from " ./components/NavBar.vue" ;
6449import " reset-css" ;
65-
50+ import config from " ../package.json " ;
6651export 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"; */
0 commit comments