Blame view

src/pages/Mark/promotion.vue 7.67 KB
006544386   Neeraj Sharma   implement task
1
2
3
  <template>
    <v-app id="login">
      <v-container fluid>
495e4037c   Neeraj Sharma   update
4
5
6
7
8
9
10
11
        <v-layout>
          <v-card-actions>
            <v-layout>
              <h3 class="right">Promotion</h3>
            </v-layout>
            <v-spacer></v-spacer>
          </v-card-actions>
        </v-layout>
006544386   Neeraj Sharma   implement task
12
13
14
15
        <v-card class="px-3 grey lighten-2" flat>
          <v-flex xs12>
            <v-layout wrap>
              <v-flex xs12 sm12 md3>
006544386   Neeraj Sharma   implement task
16
17
18
19
                <v-flex md12 class="mt-4 body-1">
                  <label>Academic Year :</label>
                </v-flex>
                <v-flex md10>
79583580d   Neeraj Sharma   implement task ma...
20
21
22
23
24
25
26
                  <v-select
                    :items="acedemicYear"
                    v-model="promotion.year"
                    item-value="year"
                    item-text="year"
                    label="promotion.year"
                  ></v-select>
006544386   Neeraj Sharma   implement task
27
                </v-flex>
006544386   Neeraj Sharma   implement task
28
29
              </v-flex>
              <v-flex xs12 sm12 md3>
006544386   Neeraj Sharma   implement task
30
31
32
33
                <v-flex md12 class="mt-4 body-1">
                  <label class>Class :</label>
                </v-flex>
                <v-flex md10 class="ml-2">
495e4037c   Neeraj Sharma   update
34
                  <v-select
79583580d   Neeraj Sharma   implement task ma...
35
                    v-model="promotion.classId"
495e4037c   Neeraj Sharma   update
36
37
                    label="Select your class"
                    type="text"
495e4037c   Neeraj Sharma   update
38
39
40
41
42
                    :items="classList"
                    item-text="classNum"
                    item-value="_id"
                    required
                  ></v-select>
006544386   Neeraj Sharma   implement task
43
                </v-flex>
006544386   Neeraj Sharma   implement task
44
45
46
47
48
49
              </v-flex>
              <v-flex xs12 sm12 md3>
                <v-flex md12 class="mt-4 body-1">
                  <label>Promotion Academic Year :</label>
                </v-flex>
                <v-flex md10>
79583580d   Neeraj Sharma   implement task ma...
50
51
52
53
54
55
                  <v-select
                    :items="acedemicYear"
                    v-model="promotion.year"
                    item-text="year"
                    label="Select Promotion Academic Year"
                  ></v-select>
006544386   Neeraj Sharma   implement task
56
57
58
59
60
61
62
63
64
65
66
67
68
                </v-flex>
              </v-flex>
              <v-flex xs12 sm12 md3>
                <v-flex md12 class="mt-4 body-1">
                  <label class>Promotion Class :</label>
                </v-flex>
                <v-flex md10 class="ml-2">
                  <v-select :items="acedemicYear" label="Select Promotion Class"></v-select>
                </v-flex>
              </v-flex>
            </v-layout>
          </v-flex>
        </v-card>
79583580d   Neeraj Sharma   implement task ma...
69
        <!-- <v-container class="pb-0">
006544386   Neeraj Sharma   implement task
70
71
72
73
74
          <v-card class="px-3 grey lighten-2" flat>
            <v-flex xs12>
              <v-layout>
                <v-flex xs12 sm12 md12>
                  <v-layout>
006544386   Neeraj Sharma   implement task
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
                    <v-radio-group v-model="radios" :mandatory="false">
                      <v-layout>
                        <v-flex xs12 sm12 md6>
                          <v-layout>
                            <v-radio label="Normal" value="radio-1" class="mx-auto"></v-radio>
                          </v-layout>
                        </v-flex>
                        <v-flex xs12 sm12 md6>
                          <v-layout>
                            <v-radio label="Advance" value="radio-2" class="mx-auto"></v-radio>
                          </v-layout>
                        </v-flex>
                      </v-layout>
                    </v-radio-group>
                  </v-layout>
                </v-flex>
              </v-layout>
            </v-flex>
          </v-card>
        </v-container>
        <v-container fluid>
006544386   Neeraj Sharma   implement task
96
97
98
99
100
101
102
103
104
105
          <v-layout wrap>
            <v-flex xs12 sm12 md6>
              <v-layout>
                <v-flex xs12 sm12 md11>
                  <v-card class="px-3 grey lighten-2" flat>
                    <v-layout wrap>
                      <v-flex xs12 sm12 md5 class="mt-4 body-1">
                        <label>Exam</label>
                      </v-flex>
                      <v-flex sm12 xs12 md7>
006544386   Neeraj Sharma   implement task
106
107
108
109
110
111
112
                        <v-checkbox v-model="selected" label="FIRST TERMINAL" value="John"></v-checkbox>
                        <v-checkbox
                          v-model="selected"
                          label="SECOND TERMINAL"
                          value="Jacob"
                          class="mt-0"
                        ></v-checkbox>
495e4037c   Neeraj Sharma   update
113
                        <v-checkbox v-model="selected" label="Test07" value="Jacobs" class="mt-0"></v-checkbox>
006544386   Neeraj Sharma   implement task
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
                      </v-flex>
                    </v-layout>
                  </v-card>
                </v-flex>
              </v-layout>
            </v-flex>
            <v-flex xs12 sm12 md6>
              <v-layout wrap>
                <v-flex xs12 sm12 md12>
                  <v-card class="px-3 grey lighten-2" flat height="160">
                    <v-layout wrap>
                      <v-flex xs12 sm12 md5 class="mt-4 body-1">
                        <label>Mark Percentage</label>
                      </v-flex>
                      <v-flex xs12 sm12 md7>
006544386   Neeraj Sharma   implement task
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
                        <v-checkbox v-model="selected" label="Exam " value="John"></v-checkbox>
                        <v-checkbox v-model="selected" label="ASSIGNMENT" value="Jacob" class="mt-0"></v-checkbox>
                      </v-flex>
                    </v-layout>
                  </v-card>
                </v-flex>
              </v-layout>
            </v-flex>
          </v-layout>
        </v-container>
        <v-card class="px-3 grey lighten-2" flat>
          <v-flex xs12>
            <v-layout wrap>
              <v-flex xs12 sm12 md3>
                <v-flex md12 class="mt-4 body-1">
                  <label>HINDI Pass Mark :</label>
                </v-flex>
                <v-flex md10>
                  <v-text-field v-model="passmark.hindi" placeholder="fill Hindi Pass Mark"></v-text-field>
                </v-flex>
              </v-flex>
              <v-flex xs12 sm12 md3>
                <v-flex md12 class="mt-4 body-1">
                  <label class>ENGLISH Pass Mark :</label>
                </v-flex>
                <v-flex md10 class="ml-2">
                  <v-text-field v-model="passmark.english" placeholder="fill English Pass Mark"></v-text-field>
                </v-flex>
              </v-flex>
              <v-flex xs12 sm12 md3>
                <v-flex md12 class="mt-4 body-1">
                  <label>MATHEMATICS Pass Mark :</label>
                </v-flex>
                <v-flex md10>
495e4037c   Neeraj Sharma   update
163
164
165
166
                  <v-text-field
                    v-model="passmark.mathematics"
                    placeholder="fill Mathematics Pass Mark"
                  ></v-text-field>
006544386   Neeraj Sharma   implement task
167
168
                </v-flex>
              </v-flex>
006544386   Neeraj Sharma   implement task
169
170
            </v-layout>
          </v-flex>
79583580d   Neeraj Sharma   implement task ma...
171
        </v-card>-->
006544386   Neeraj Sharma   implement task
172
173
174
175
176
177
178
179
180
181
        <v-layout>
          <v-flex xs10 sm10 md4 class="mx-auto mt-4">
            <v-btn class="black" dark block round>Promotion Mark Setting</v-btn>
          </v-flex>
        </v-layout>
      </v-container>
    </v-app>
  </template>
  
  <script>
495e4037c   Neeraj Sharma   update
182
  import http from "@/Services/http.js";
006544386   Neeraj Sharma   implement task
183
184
185
186
187
  export default {
    data() {
      return {
        radios: "radio-1",
        acedemicYear: [],
495e4037c   Neeraj Sharma   update
188
        classList: [],
79583580d   Neeraj Sharma   implement task ma...
189
190
191
        promotion: {
          // academicYear: ""
        },
006544386   Neeraj Sharma   implement task
192
193
194
195
196
        passmark: {
          hindi: "40",
          english: "40",
          mathematics: "40"
        },
495e4037c   Neeraj Sharma   update
197
198
        selected: ["John", "Jacob", "Jacobs"],
        token: ""
006544386   Neeraj Sharma   implement task
199
      };
495e4037c   Neeraj Sharma   update
200
201
    },
    mounted() {
79583580d   Neeraj Sharma   implement task ma...
202
203
204
205
      var year = new Date().getFullYear() + 1;
      // this.promotion.acedemicYear = new Date().getFullYear() + "-" + year;
      this.acedemicYear.push({ year: new Date().getFullYear() + "-" + year });
      console.log("  this.promotion.acedemicYear ", this.acedemicYear);
495e4037c   Neeraj Sharma   update
206
207
208
209
210
211
212
213
214
215
216
217
      this.token = this.$store.state.token;
      this.getClass();
    },
    methods: {
      getClass() {
        http()
          .get("/getClassesList", {
            headers: { Authorization: "Bearer " + this.token }
          })
          .then(response => {
            this.classList = response.data.data;
          })
00e4bc4e1   Neeraj Sharma   fixed auntentication
218
219
220
221
222
223
224
225
          .catch(error => {
            this.showLoader = false;
            if (error.response.status === 401) {
              this.$router.replace({ path: "/" });
              this.$store.dispatch("setToken", null);
              this.$store.dispatch("Id", null);
              this.$store.dispatch("Role", null);
            }
495e4037c   Neeraj Sharma   update
226
227
          });
      }
006544386   Neeraj Sharma   implement task
228
229
230
    }
  };
  </script>