Commit 0cefd6eff8241222e0dbeaea6a983fad5bfb20ae

Authored by Neeraj Sharma
1 parent a0fe546182

add country input in ana dashboard

Showing 1 changed file with 19 additions and 3 deletions   Show diff stats
src/pages/Dashboard.vue
... ... @@ -43,7 +43,7 @@
43 43 <v-flex xs12 sm9>
44 44 <v-form ref="form" v-model="valid" lazy-validation>
45 45 <v-layout style="position:relative; top:15px;">
46   - <v-flex xs4 date: new Date().toISOString().substr(0, 10), class="pt-4 subheading">
  46 + <v-flex xs4 class="pt-4 subheading">
47 47 <label>First Name:</label>
48 48 </v-flex>
49 49 <v-flex xs8>
... ... @@ -330,6 +330,20 @@
330 330 </v-layout>
331 331 <v-layout>
332 332 <v-flex xs4 class="pt-4 subheading">
  333 + <label class="right">Country:</label>
  334 + </v-flex>
  335 + <v-flex xs6 class="ml-3">
  336 + <v-text-field
  337 + placeholder="fill your country Name" :rules="countryRules"
  338 + v-model="editedItem.country"
  339 + type="text"
  340 + name="country"
  341 + required
  342 + ></v-text-field>
  343 + </v-flex>
  344 + </v-layout>
  345 + <v-layout>
  346 + <v-flex xs4 class="pt-4 subheading">
333 347 <label class="right">Email ID:</label>
334 348 </v-flex>
335 349 <v-flex xs6 class="ml-3">
... ... @@ -404,7 +418,7 @@ export default {
404 418 "three-month": threemonth,
405 419 "six-month": sixmonth,
406 420 "nine-month": ninemonth,
407   - "report-generate": generatereport
  421 + "report-generate": generatereport,
408 422 },
409 423 data: () => ({
410 424 component: "report-generate",
... ... @@ -453,6 +467,7 @@ export default {
453 467 v => /.+@.+/.test(v) || "E-mail must be valid"
454 468 ],
455 469 lastnameRules: [v => !!v || " Last Name is required"],
  470 + countryRules: [v => !!v || " Country Name is required"],
456 471 headers: [
457 472 {
458 473 text: "No",
... ... @@ -472,7 +487,7 @@ export default {
472 487 lastName: "",
473 488 email: "",
474 489 dob: new Date().toISOString().substr(0, 10),
475   - country: "India"
  490 + country: ""
476 491 },
477 492 defaultItem: {
478 493 No: "",
... ... @@ -598,6 +613,7 @@ export default {
598 613 email: this.editedItem.email,
599 614 country: this.editedItem.country
600 615 };
  616 + console.log(addUsers)
601 617 http()
602 618 .post("/patient", addUsers)
603 619 .then(response => {
... ...