0f94839d
함상기
babylon client fo...
|
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>
|