Blame view

src/pages/NoticeBoard/noticeBoard.vue 17.6 KB
beb598536   Neeraj Sharma   design and functi...
1
  <template>
68d742034   Neeraj Sharma   implement new des...
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
    <v-container fluid class="body-color">
      <!-- ****** Edit  Notice Board ****** -->
      <v-dialog v-model="editNoticeBoardDialog" max-width="500px" scrollable>
        <v-card flat class="card-style pa-2" dark>
          <v-layout>
            <v-flex xs12>
              <label class="title text-xs-center">Edit Notice Board</label>
              <v-icon size="24" class="right" @click="editNoticeBoardDialog = false">cancel</v-icon>
            </v-flex>
          </v-layout>
          <v-card-text>
            <v-layout>
              <v-flex xs12 class="text-xs-center text-sm-center text-md-center text-lg-center">
                <img
                  src="/static/icon/user.png"
                  v-if="!editedItem.eventImageUrl && !imageUrl"
                  width="100px"
                />
                <img
                  :src="editedItem.eventImageUrl"
                  height="150"
                  v-else-if="editedItem.eventImageUrl && !imageUrl"
                  width="150px"
                />
                <img
                  v-if="imageUrl"
                  :src="imageUrl"
                  height="150"
                  style="border-radius:50%; width:150px"
                />
                <input
                  type="file"
                  style="display: none"
                  ref="image"
                  accept="image/*"
                  @change="onFilePicked"
                />
              </v-flex>
            </v-layout>
            <v-layout wrap>
              <v-flex xs12>
f4df757fe   Neeraj Sharma   responsive vie in...
43
                <v-layout>
68d742034   Neeraj Sharma   implement new des...
44
45
46
47
48
49
50
51
52
53
54
                  <v-flex xs4 class="pt-4 subheading">
                    <label class="right">Title:</label>
                  </v-flex>
                  <v-flex xs8 class="ml-3">
                    <v-text-field
                      v-model="editedItem.title"
                      placeholder="fill your Title"
                      name="name"
                      type="text"
                      required
                    ></v-text-field>
f4df757fe   Neeraj Sharma   responsive vie in...
55
56
                  </v-flex>
                </v-layout>
68d742034   Neeraj Sharma   implement new des...
57
58
59
60
61
              </v-flex>
              <v-flex xs12>
                <v-layout>
                  <v-flex xs4 class="pt-4 subheading">
                    <label class="right">Description:</label>
f4df757fe   Neeraj Sharma   responsive vie in...
62
                  </v-flex>
68d742034   Neeraj Sharma   implement new des...
63
64
65
66
67
68
69
70
                  <v-flex xs7 class="ml-3">
                    <v-text-field
                      placeholder="fill your Description"
                      v-model="editedItem.description"
                      type="text"
                      name="email"
                      required
                    ></v-text-field>
f4df757fe   Neeraj Sharma   responsive vie in...
71
                  </v-flex>
68d742034   Neeraj Sharma   implement new des...
72
73
74
75
76
77
78
                </v-layout>
              </v-flex>
              <v-flex xs12>
                <v-layout>
                  <v-flex xs4 class="pt-4 subheading">
                    <label class="right hidden-xs-only hidden-sm-only">Uplaod Image:</label>
                    <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Uplaod :</label>
f4df757fe   Neeraj Sharma   responsive vie in...
79
                  </v-flex>
68d742034   Neeraj Sharma   implement new des...
80
81
82
83
84
85
86
                  <v-flex xs7 class="ml-3">
                    <v-text-field
                      label="Select Image"
                      @click="pickFile"
                      v-model="imageName"
                      append-icon="attach_file"
                    ></v-text-field>
f4df757fe   Neeraj Sharma   responsive vie in...
87
88
                  </v-flex>
                </v-layout>
68d742034   Neeraj Sharma   implement new des...
89
90
91
92
93
94
95
96
97
98
99
              </v-flex>
              <v-flex xs12>
                <v-card-actions>
                  <v-spacer></v-spacer>
                  <v-btn round dark @click="save" class="add-button">Save</v-btn>
                </v-card-actions>
              </v-flex>
            </v-layout>
          </v-card-text>
        </v-card>
      </v-dialog>
beb598536   Neeraj Sharma   design and functi...
100

68d742034   Neeraj Sharma   implement new des...
101
      <!-- ****** VIEW PROFIL NOTICE BOARD ******  -->
beb598536   Neeraj Sharma   design and functi...
102

68d742034   Neeraj Sharma   implement new des...
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
      <v-dialog v-model="viewNoticeBoardDialog" max-width="600px" scrollable>
        <v-card flat class="card-style pa-3" dark>
          <v-layout>
            <v-flex xs12>
              <label class="title text-xs-center">View Notice Board</label>
              <v-icon size="24" class="right" @click="viewNoticeBoardDialog = false">cancel</v-icon>
            </v-flex>
          </v-layout>
          <v-card-text>
            <v-layout>
              <v-flex align-center justify-center layout text-xs-center>
                <img src="/static/icon/user.png" v-if="!editedItem.eventImageUrl" width="80" />
                <img
                  :src="editedItem.eventImageUrl"
                  v-else-if="editedItem.eventImageUrl"
                  class="img"
                  width="200"
                />
              </v-flex>
            </v-layout>
            <v-container grid-list-md>
              <v-layout wrap>
                <v-flex>
                  <v-layout>
                    <v-flex xs5 sm6>
                      <h5 class="right my-1">
                        <b>Title:</b>
                      </h5>
                    </v-flex>
                    <v-flex sm6 xs8>
                      <h5 class="my-1">{{ editedItem.title }}</h5>
beb598536   Neeraj Sharma   design and functi...
134
135
                    </v-flex>
                  </v-layout>
68d742034   Neeraj Sharma   implement new des...
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
163
164
165
166
167
168
169
170
171
172
173
174
                  <v-layout>
                    <v-flex xs5 sm6>
                      <h5 class="right my-1">
                        <b>Description:</b>
                      </h5>
                    </v-flex>
                    <v-flex sm6 xs8>
                      <h5 class="my-1">{{ editedItem.description }}</h5>
                    </v-flex>
                  </v-layout>
                </v-flex>
              </v-layout>
            </v-container>
          </v-card-text>
        </v-card>
      </v-dialog>
      <!-- ****** EXISTING Notice Board TABLE ****** -->
      <v-toolbar color="transparent" flat>
        <v-btn
          fab
          dark
          class="open-dialog-button hidden-xl-only hidden-md-only hidden-lg-only"
          small
          @click="addNoticeBoardDialog = true"
        >
          <v-icon dark>add</v-icon>
        </v-btn>
        <v-btn
          round
          class="open-dialog-button hidden-sm-only hidden-xs-only"
          dark
          @click="addNoticeBoardDialog = true"
        >
          <v-icon class="white--text pr-1" size="20">add</v-icon>Add Notice Board
        </v-btn>
        <v-spacer></v-spacer>
        <v-card-title class="body-1" v-show="show">
          <v-btn icon large flat @click="displaySearch">
            <v-avatar size="27">
aa310d61a   Shikha Mishra   added functionali...
175
              <img src="/static/icon/search.png" alt="icon" />
68d742034   Neeraj Sharma   implement new des...
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
            </v-avatar>
          </v-btn>
        </v-card-title>
        <v-flex xs8 sm8 md3 lg2 v-show="showSearch">
          <v-layout>
            <v-text-field v-model="search" label="Search" prepend-inner-icon="search" color="primary"></v-text-field>
            <v-icon @click="closeSearch" color="error">close</v-icon>
          </v-layout>
        </v-flex>
      </v-toolbar>
      <v-data-table
        :headers="headers"
        :items="notices"
        :pagination.sync="pagination"
        :search="search"
      >
        <template slot="items" slot-scope="props">
          <tr class="tr">
            <td class="td td-row">{{ props.index + 1}}</td>
            <td class="td td-row text-xs-center">
              <v-avatar size="40">
                <img :src="props.item.eventImageUrl" v-if="props.item.eventImageUrl" />
                <img src="/static/icon/user.png" v-else-if="!props.item.eventImageUrl" />
              </v-avatar>
            </td>
            <td class="text-xs-center td td-row">{{ props.item.title}}</td>
            <td class="text-xs-center td td-row">
              <span>
                <v-tooltip top>
                  <img
                    slot="activator"
                    style="cursor:pointer; width:25px; height:25px; "
                    class="mr-3"
                    @click="profile(props.item)"
aa310d61a   Shikha Mishra   added functionali...
210
                    src="/static/icon/view.png"
68d742034   Neeraj Sharma   implement new des...
211
212
213
214
215
216
217
218
219
                  />
                  <span>View</span>
                </v-tooltip>
                <v-tooltip top>
                  <img
                    slot="activator"
                    style="cursor:pointer; width:20px; height:18px; "
                    class="mr-3"
                    @click="editItem(props.item)"
aa310d61a   Shikha Mishra   added functionali...
220
                    src="/static/icon/edit.png"
68d742034   Neeraj Sharma   implement new des...
221
222
223
224
225
226
227
228
                  />
                  <span>Edit</span>
                </v-tooltip>
                <v-tooltip top>
                  <img
                    slot="activator"
                    style="cursor:pointer; width:20px; height:20px; "
                    @click="deleteItem(props.item)"
aa310d61a   Shikha Mishra   added functionali...
229
                    src="/static/icon/delete.png"
68d742034   Neeraj Sharma   implement new des...
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
                  />
                  <span>Delete</span>
                </v-tooltip>
              </span>
            </td>
          </tr>
        </template>
        <v-alert
          slot="no-results"
          :value="true"
          color="error"
          icon="warning"
        >Your search for "{{ search }}" found no results.</v-alert>
      </v-data-table>
      <!-- ****** ADD  Notice Board ****** -->
      <v-dialog v-model="addNoticeBoardDialog" max-width="600px">
        <v-card flat class="card-style pa-2" dark>
          <v-layout>
            <v-flex xs12>
              <label class="title text-xs-center">Add Notice Board</label>
              <v-icon size="24" class="right" @click="addNoticeBoardDialog = false">cancel</v-icon>
            </v-flex>
          </v-layout>
          <v-container fluid fill-height>
            <v-layout align-center>
              <v-flex xs12>
                <v-form ref="form" v-model="valid" lazy-validation>
                  <v-layout>
                    <v-flex xs12 class="text-xs-center text-sm-center text-md-center text-lg-center">
                      <v-avatar size="80px" v-if="!imageUrl">
                        <img src="/static/icon/user.png" />
                      </v-avatar>
                      <input
                        type="file"
                        style="display: none"
                        ref="image"
                        accept="image/*"
                        @change="onFilePicked"
                      />
beb598536   Neeraj Sharma   design and functi...
269

68d742034   Neeraj Sharma   implement new des...
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
                      <v-avatar size="150px" v-if="imageUrl">
                        <img :src="imageUrl" height="150" />
                      </v-avatar>
                    </v-flex>
                  </v-layout>
                  <v-layout>
                    <v-flex xs4 class="pt-4 subheading">
                      <label class="right">Title:</label>
                    </v-flex>
                    <v-flex xs7 class="ml-3">
                      <v-text-field
                        v-model="addNoticeBoard.title"
                        placeholder="fill your Title"
                        name="name"
                        type="text"
                        :rules="titleRules"
                        required
                      ></v-text-field>
                    </v-flex>
                  </v-layout>
                  <v-layout>
                    <v-flex xs4 class="pt-4 subheading">
                      <label class="right">Description:</label>
                    </v-flex>
                    <v-flex xs7 class="ml-3">
                      <v-text-field
                        v-model="addNoticeBoard.description"
                        placeholder="fill your Description"
                        name="name"
                        type="text"
                        :rules="descriptionRules"
                        required
                      ></v-text-field>
                    </v-flex>
                  </v-layout>
                  <v-layout>
                    <v-flex xs4 class="pt-4 subheading">
                      <label class="right hidden-xs-only hidden-sm-only">Uplaod Image:</label>
                      <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Uplaod :</label>
                    </v-flex>
                    <v-flex xs7 class="ml-3">
                      <v-text-field
                        label="Select Image"
                        @click="pickFile"
                        v-model="imageName"
                        append-icon="attach_file"
                      ></v-text-field>
                    </v-flex>
                  </v-layout>
                  <v-layout>
beb598536   Neeraj Sharma   design and functi...
320
                    <v-flex xs12>
68d742034   Neeraj Sharma   implement new des...
321
322
323
324
325
                      <v-card-actions>
                        <v-spacer></v-spacer>
                        <v-btn @click="clear" round dark class="clear-button">clear</v-btn>
                        <v-btn @click="submit" round dark :loading="loading" class="add-button">Add</v-btn>
                      </v-card-actions>
beb598536   Neeraj Sharma   design and functi...
326
327
                    </v-flex>
                  </v-layout>
68d742034   Neeraj Sharma   implement new des...
328
329
330
                </v-form>
              </v-flex>
            </v-layout>
beb598536   Neeraj Sharma   design and functi...
331
          </v-container>
68d742034   Neeraj Sharma   implement new des...
332
333
334
335
336
337
338
339
340
341
        </v-card>
      </v-dialog>
      <v-snackbar
        :timeout="timeout"
        :top="y === 'top'"
        :right="x === 'right'"
        :vertical="mode === 'vertical'"
        v-model="snackbar"
        :color="color"
      >{{ text }}</v-snackbar>
36fc987df   Neeraj Sharma   add loader in all...
342
343
344
      <div class="loader" v-if="showLoader">
        <v-progress-circular indeterminate color="white"></v-progress-circular>
      </div>
68d742034   Neeraj Sharma   implement new des...
345
    </v-container>
beb598536   Neeraj Sharma   design and functi...
346
347
348
349
  </template>
  
  <script>
  import http from "@/Services/http.js";
beb598536   Neeraj Sharma   design and functi...
350
351
352
353
354
355
356
357
358
  
  export default {
    data: () => ({
      snackbar: false,
      y: "top",
      x: "right",
      mode: "",
      timeout: 3000,
      text: "",
68d742034   Neeraj Sharma   implement new des...
359
360
361
      color: "",
      show: true,
      showSearch: false,
fc82ac667   Neeraj Sharma   fix design and re...
362
      showLoader: false,
beb598536   Neeraj Sharma   design and functi...
363
364
365
      loading: false,
      date: null,
      search: "",
68d742034   Neeraj Sharma   implement new des...
366
367
368
      addNoticeBoardDialog: false,
      editNoticeBoardDialog: false,
      viewNoticeBoardDialog: false,
beb598536   Neeraj Sharma   design and functi...
369
      valid: true,
beb598536   Neeraj Sharma   design and functi...
370
371
372
      addclass: [],
      addSection: [],
      gender: ["Male", "Female"],
beb598536   Neeraj Sharma   design and functi...
373
      pagination: {
68d742034   Neeraj Sharma   implement new des...
374
        rowsPerPage: 10
beb598536   Neeraj Sharma   design and functi...
375
      },
beb598536   Neeraj Sharma   design and functi...
376
377
378
      imageName: "",
      imageUrl: "",
      imageFile: "",
46db0a3b5   Neeraj Sharma   add sunbject and ...
379
      upload: "",
beb598536   Neeraj Sharma   design and functi...
380
381
382
383
384
      titleRules: [v => !!v || " Title is required"],
      descriptionRules: [v => !!v || " Description is required"],
      headers: [
        {
          text: "No",
68d742034   Neeraj Sharma   implement new des...
385
          align: "",
beb598536   Neeraj Sharma   design and functi...
386
387
388
          sortable: false,
          value: "No"
        },
fc82ac667   Neeraj Sharma   fix design and re...
389
        {
68d742034   Neeraj Sharma   implement new des...
390
391
          text: "Event Image",
          align: "center",
fc82ac667   Neeraj Sharma   fix design and re...
392
          sortable: false,
68d742034   Neeraj Sharma   implement new des...
393
          value: "eventImageUrl"
fc82ac667   Neeraj Sharma   fix design and re...
394
        },
68d742034   Neeraj Sharma   implement new des...
395
        { text: "Title", value: "title", sortable: false, align: "center" },
beb598536   Neeraj Sharma   design and functi...
396
397
        { text: "Action", value: "", sortable: false, align: "center" }
      ],
68d742034   Neeraj Sharma   implement new des...
398
      notices: [],
beb598536   Neeraj Sharma   design and functi...
399
      editedIndex: -1,
46db0a3b5   Neeraj Sharma   add sunbject and ...
400
      addNoticeBoard: {},
beb598536   Neeraj Sharma   design and functi...
401
402
403
      editedItem: {
        title: "",
        description: ""
a17c68a03   Neeraj Sharma   implement two rou...
404
      }
beb598536   Neeraj Sharma   design and functi...
405
    }),
beb598536   Neeraj Sharma   design and functi...
406
407
408
409
    methods: {
      pickFile() {
        this.$refs.image.click();
      },
2d0fc1144   Neeraj Sharma   upload dynamic im...
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
      onFilePicked(e) {
        // console.log(e)
        const files = e.target.files;
        this.upload = e.target.files[0];
        console.log("thisupload==>", this.upload);
        if (files[0] !== undefined) {
          this.imageName = files[0].name;
          if (this.imageName.lastIndexOf(".") <= 0) {
            return;
          }
          const fr = new FileReader();
          fr.readAsDataURL(files[0]);
          fr.addEventListener("load", () => {
            this.imageUrl = fr.result;
            this.imageFile = files[0]; // this is an image file that can be sent to server...
2d0fc1144   Neeraj Sharma   upload dynamic im...
425
426
427
428
429
430
431
          });
        } else {
          this.imageName = "";
          this.imageFile = "";
          this.imageUrl = "";
        }
      },
46db0a3b5   Neeraj Sharma   add sunbject and ...
432
      getNoticeDataList() {
36fc987df   Neeraj Sharma   add loader in all...
433
        this.showLoader = true;
beb598536   Neeraj Sharma   design and functi...
434
435
436
437
438
439
        var token = this.$store.state.token;
        http()
          .get("/getEventsList", {
            headers: { Authorization: "Bearer " + token }
          })
          .then(response => {
68d742034   Neeraj Sharma   implement new des...
440
            this.notices = response.data.data;
36fc987df   Neeraj Sharma   add loader in all...
441
            this.showLoader = false;
beb598536   Neeraj Sharma   design and functi...
442
          })
00e4bc4e1   Neeraj Sharma   fixed auntentication
443
          .catch(error => {
36fc987df   Neeraj Sharma   add loader in all...
444
            this.showLoader = false;
a17c68a03   Neeraj Sharma   implement two rou...
445
446
447
448
449
            if (error.response.status === 401) {
              this.$router.replace({ path: "/" });
              this.$store.dispatch("setToken", null);
              this.$store.dispatch("Id", null);
            }
beb598536   Neeraj Sharma   design and functi...
450
451
452
          });
      },
      editItem(item) {
68d742034   Neeraj Sharma   implement new des...
453
        this.editedIndex = this.notices.indexOf(item);
beb598536   Neeraj Sharma   design and functi...
454
        this.editedItem = Object.assign({}, item);
68d742034   Neeraj Sharma   implement new des...
455
        this.editNoticeBoardDialog = true;
beb598536   Neeraj Sharma   design and functi...
456
457
      },
      profile(item) {
68d742034   Neeraj Sharma   implement new des...
458
        this.editedIndex = this.notices.indexOf(item);
beb598536   Neeraj Sharma   design and functi...
459
        this.editedItem = Object.assign({}, item);
68d742034   Neeraj Sharma   implement new des...
460
        this.viewNoticeBoardDialog = true;
beb598536   Neeraj Sharma   design and functi...
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
      },
      deleteItem(item) {
        let deleteEvent = {
          eventId: item._id
        };
        http()
          .delete(
            "/deleteEvent",
            confirm("Are you sure you want to delete this?") && {
              params: deleteEvent
            }
          )
          .then(response => {
            // console.log("deleteUers",deleteEvent)
            if ((this.snackbar = true)) {
46db0a3b5   Neeraj Sharma   add sunbject and ...
476
              this.text = "Successfully delete Existing Notice Data";
beb598536   Neeraj Sharma   design and functi...
477
            }
2d0fc1144   Neeraj Sharma   upload dynamic im...
478
            this.getNoticeDataList();
beb598536   Neeraj Sharma   design and functi...
479
480
481
482
483
          })
          .catch(error => {
            // console.log(error);
          });
      },
beb598536   Neeraj Sharma   design and functi...
484
      close() {
68d742034   Neeraj Sharma   implement new des...
485
        this.editNoticeBoardDialog = false;
beb598536   Neeraj Sharma   design and functi...
486
487
488
      },
      submit() {
        if (this.$refs.form.validate()) {
2d0fc1144   Neeraj Sharma   upload dynamic im...
489
490
491
492
493
          if (this.imageUrl) {
            var str = this.imageUrl;
            const [baseUrl, imageUrl] = str.split(/,/);
            this.addNoticeBoard.upload = imageUrl;
          }
beb598536   Neeraj Sharma   design and functi...
494
          http()
46db0a3b5   Neeraj Sharma   add sunbject and ...
495
            .post("/createEvent", this.addNoticeBoard)
beb598536   Neeraj Sharma   design and functi...
496
            .then(response => {
0551a0f15   Neeraj Sharma   implemnet functio...
497
498
              this.imageUrl = "";
              this.snackbar = true;
68d742034   Neeraj Sharma   implement new des...
499
500
              this.color = "green";
              this.text = response.data.message;
2d0fc1144   Neeraj Sharma   upload dynamic im...
501
              this.getNoticeDataList();
68d742034   Neeraj Sharma   implement new des...
502
              this.addNoticeBoardDialog = false;
beb598536   Neeraj Sharma   design and functi...
503
504
505
              this.clear();
            })
            .catch(error => {
0551a0f15   Neeraj Sharma   implemnet functio...
506
507
              this.snackbar = true;
              this.text = error.response.data.message;
68d742034   Neeraj Sharma   implement new des...
508
              this.color = "error";
beb598536   Neeraj Sharma   design and functi...
509
510
511
            });
        }
      },
beb598536   Neeraj Sharma   design and functi...
512
513
      clear() {
        this.$refs.form.reset();
0551a0f15   Neeraj Sharma   implemnet functio...
514
        this.imageUrl = "";
beb598536   Neeraj Sharma   design and functi...
515
516
      },
      save() {
2d0fc1144   Neeraj Sharma   upload dynamic im...
517
        let editNoticeBoard = {
beb598536   Neeraj Sharma   design and functi...
518
519
          eventId: this.editedItem._id,
          title: this.editedItem.title,
2d0fc1144   Neeraj Sharma   upload dynamic im...
520
          description: this.editedItem.description
beb598536   Neeraj Sharma   design and functi...
521
        };
2d0fc1144   Neeraj Sharma   upload dynamic im...
522
523
524
525
526
        if (this.imageUrl) {
          var str = this.imageUrl;
          const [baseUrl, imageUrl] = str.split(/,/);
          editNoticeBoard.upload = imageUrl;
        }
beb598536   Neeraj Sharma   design and functi...
527
        http()
2d0fc1144   Neeraj Sharma   upload dynamic im...
528
          .put("/updateEvent", editNoticeBoard)
beb598536   Neeraj Sharma   design and functi...
529
          .then(response => {
beb598536   Neeraj Sharma   design and functi...
530
            if ((this.snackbar = true)) {
46db0a3b5   Neeraj Sharma   add sunbject and ...
531
              this.text = "Successfully Edit Existing Notice Data";
beb598536   Neeraj Sharma   design and functi...
532
            }
2d0fc1144   Neeraj Sharma   upload dynamic im...
533
            this.getNoticeDataList();
a17c68a03   Neeraj Sharma   implement two rou...
534
            this.close();
beb598536   Neeraj Sharma   design and functi...
535
536
537
538
          })
          .catch(error => {
            // console.log(error);
          });
68d742034   Neeraj Sharma   implement new des...
539
540
541
542
543
544
545
546
      },
      displaySearch() {
        (this.show = false), (this.showSearch = true);
      },
      closeSearch() {
        this.showSearch = false;
        this.show = true;
        this.search = "";
beb598536   Neeraj Sharma   design and functi...
547
548
549
      }
    },
    mounted() {
46db0a3b5   Neeraj Sharma   add sunbject and ...
550
      this.getNoticeDataList();
beb598536   Neeraj Sharma   design and functi...
551
552
    }
  };
68d742034   Neeraj Sharma   implement new des...
553
  </script>