Skip to content

Commit

Permalink
style: add info activity name in outputs option
Browse files Browse the repository at this point in the history
  • Loading branch information
newarifrh committed Jul 17, 2024
1 parent 1678807 commit 38c1982
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/components/report/FormReportByActivity.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
<el-select v-model="form.output.outputId" placeholder="Pilih Nama Output" clearable filterable>
<el-option v-for="output in outputs" :key="output._id" :label="output.name" :value="output._id">
<span style="float: left">{{ output.name }}</span>
<span
style="
float: right;
color: var(--el-text-color-secondary);
font-size: 13px;
"
>
{{ output.activity.name }}
</span>
</el-option>
</el-select>
</el-form-item>
Expand Down
13 changes: 12 additions & 1 deletion src/components/report/FormReportOutputItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,18 @@
trigger: 'change',
}">
<el-select v-model="props.output.outputId" placeholder="Pilih Nama Output" clearable filterable>
<el-option v-for="output in outputs" :key="output._id" :label="output.name" :value="output._id" />
<el-option v-for="output in outputs" :key="output._id" :label="output.name" :value="output._id" >
<span style="float: left">{{ output.name }}</span>
<span
style="
float: right;
color: var(--el-text-color-secondary);
font-size: 13px;
"
>
{{ output.activity.name }}
</span>
</el-option>
</el-select>
</el-form-item>

Expand Down

0 comments on commit 38c1982

Please sign in to comment.