Skip to content

Instantly share code, notes, and snippets.

@ak4bento
Created January 22, 2019 03:48
Show Gist options
  • Save ak4bento/c7c0f1f7ba9e4414d43957e4bc52fbe5 to your computer and use it in GitHub Desktop.
Save ak4bento/c7c0f1f7ba9e4414d43957e4bc52fbe5 to your computer and use it in GitHub Desktop.
working hours
<el-table-column min-width="150px" label="Sunday" prop="sunday" align="center" >
<template slot-scope="scope">
<span v-if="scope.row.working_hours[0] != null">
<span v-for="(item, index) in scope.row.working_hours" v-if="item.working_hours_day == 1" :key="index" >
<!-- <span v-if="item.working_hours_day == 1"> -->
<el-button style="background: #FBFBFB">
{{ item.shift_start_time }} - {{ item.shift_end_time }} <br>
</el-button> <br>
<!-- </span> -->
</span>
</span>
<span v-else>
<el-button icon="el-icon-plus" style="border: none; background: none" />
</span>
</template>
</el-table-column>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment