Blame view

prestige-vue-4.0.0/src/views/common/RendererRowStatus.vue 940 Bytes
5b5ab7e5   함상기   20240409
1
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
  <template>

      <i :class="imgForRowStatus" style="font-size: 0.9rem"></i>

  </template>

  

  <script>

      export default {

          data() {

              return {

                  rowStatus: '',

                  imgForRowStatus: null

              };

          },

          methods: {

              refresh(params) {

                  this.setRowStatus(params);

              },

  

              setRowStatus(params) {

                  this.rowStatus = params.value;

                  this.imgForRowStatus = this.rowStatus === 'N' ? 'pi pi-plus' 

                                              : this.rowStatus === 'D' ? 'pi pi-trash' 

                                                  : this.rowStatus === 'U' ? 'pi pi-user-edit' 

                                                      : this.rowStatus;

              }

          },

          created() {

              this.setRowStatus(this.params);

          }

      };

  </script>

  

  <style scoped></style>