From 0cefd6eff8241222e0dbeaea6a983fad5bfb20ae Mon Sep 17 00:00:00 2001 From: Neeraj Sharma Date: Fri, 18 Jan 2019 17:12:38 +0530 Subject: [PATCH] add country input in ana dashboard --- src/pages/Dashboard.vue | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/src/pages/Dashboard.vue b/src/pages/Dashboard.vue index 630fb2a..e41bb21 100644 --- a/src/pages/Dashboard.vue +++ b/src/pages/Dashboard.vue @@ -43,7 +43,7 @@ - + @@ -330,6 +330,20 @@ + + + + + + + + @@ -404,7 +418,7 @@ export default { "three-month": threemonth, "six-month": sixmonth, "nine-month": ninemonth, - "report-generate": generatereport + "report-generate": generatereport, }, data: () => ({ component: "report-generate", @@ -453,6 +467,7 @@ export default { v => /.+@.+/.test(v) || "E-mail must be valid" ], lastnameRules: [v => !!v || " Last Name is required"], + countryRules: [v => !!v || " Country Name is required"], headers: [ { text: "No", @@ -472,7 +487,7 @@ export default { lastName: "", email: "", dob: new Date().toISOString().substr(0, 10), - country: "India" + country: "" }, defaultItem: { No: "", @@ -598,6 +613,7 @@ export default { email: this.editedItem.email, country: this.editedItem.country }; + console.log(addUsers) http() .post("/patient", addUsers) .then(response => { -- 2.0.0