vue2-client 1.14.32 → 1.14.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,36 @@
1
+ <script>
2
+ export default {
3
+ props: {
4
+ weekDays: {
5
+ type: Array,
6
+ default: () => []
7
+ }
8
+ },
9
+ computed: {
10
+ columns () {
11
+ const baseColumns = [
12
+ { title: '序号', dataIndex: 'index', width: 60 },
13
+ { title: '科室', dataIndex: 'department', width: 120 },
14
+ { title: '医生', dataIndex: 'doctor', width: 100 },
15
+ { title: '上/下/晚', dataIndex: 'shiftType', width: 80 },
16
+ ]
17
+
18
+ // 增加防御判断,确保 weekDays 存在
19
+ const dayColumns = this.weekDays.length > 0
20
+ ? this.weekDays.map((day, dayIndex) => ({
21
+ title: `${day.label} ${day.date}`,
22
+ dataIndex: `shifts-${dayIndex}`, // 改为字符串形式
23
+ dayIndex: dayIndex,
24
+ width: 120,
25
+ }))
26
+ : []
27
+
28
+ const tailColumns = [
29
+ { title: '排班数', dataIndex: 'count', width: 80 }
30
+ ]
31
+
32
+ return [...baseColumns, ...dayColumns, ...tailColumns]
33
+ }
34
+ }
35
+ }
36
+ </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.14.32",
3
+ "version": "1.14.33",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -0,0 +1,91 @@
1
+ <template>
2
+ <div class="tree-container">
3
+ <div class="tree-list">
4
+ <tree-node
5
+ v-for="node in treeData"
6
+ :key="node.id"
7
+ :node="node"
8
+ @toggle="toggleNode"/>
9
+ </div>
10
+ </div>
11
+ </template>
12
+
13
+ <script>
14
+ import TreeNode from './TreeNode.vue'
15
+
16
+ export default {
17
+ name: 'TreeList',
18
+ components: {
19
+ TreeNode
20
+ },
21
+ data() {
22
+ return {
23
+ treeData: [
24
+ {
25
+ id: '1',
26
+ title: '体征',
27
+ expanded: false,
28
+ children: [
29
+ {
30
+ id: '1-1',
31
+ title: '一般情况'
32
+ },
33
+ {
34
+ id: '1-2',
35
+ title: '皮肤粘膜'
36
+ },
37
+ {
38
+ id: '1-3',
39
+ title: '头颈',
40
+ expanded: false,
41
+ children: [
42
+ {
43
+ id: '1-3-1',
44
+ title: '头部'
45
+ },
46
+ {
47
+ id: '1-3-2',
48
+ title: '颈部'
49
+ }
50
+ ]
51
+ }
52
+ ]
53
+ }
54
+ ]
55
+ }
56
+ },
57
+ methods: {
58
+ toggleNode(node) {
59
+ node.expanded = !node.expanded
60
+ }
61
+ }
62
+ }
63
+ </script>
64
+
65
+ <style scoped>
66
+ .tree-container {
67
+ width: 240px;
68
+ height: 400px;
69
+ border: 1px solid #e8e8e8;
70
+ overflow-y: auto;
71
+ padding: 8px;
72
+ }
73
+
74
+ /* 自定义滚动条样式 */
75
+ .tree-container::-webkit-scrollbar {
76
+ width: 6px;
77
+ }
78
+
79
+ .tree-container::-webkit-scrollbar-thumb {
80
+ background-color: #ccc;
81
+ border-radius: 3px;
82
+ }
83
+
84
+ .tree-container::-webkit-scrollbar-track {
85
+ background-color: #f5f5f5;
86
+ }
87
+
88
+ .tree-list {
89
+ font-size: 14px;
90
+ }
91
+ </style>
@@ -0,0 +1,81 @@
1
+ <template>
2
+ <div class="tree-node">
3
+ <div class="node-content" @click="handleClick">
4
+ <span v-if="hasChildren" class="toggle-icon">
5
+ {{ node.expanded ? '-' : '+' }}
6
+ </span>
7
+ <span class="node-title">{{ node.title }}</span>
8
+ </div>
9
+ <div v-if="hasChildren && node.expanded" class="node-children">
10
+ <tree-node
11
+ v-for="child in node.children"
12
+ :key="child.id"
13
+ :node="child"
14
+ @toggle="$emit('toggle', $event)"
15
+ :level="level + 1"/>
16
+ </div>
17
+ </div>
18
+ </template>
19
+
20
+ <script>
21
+ export default {
22
+ name: 'TreeNode',
23
+ props: {
24
+ node: {
25
+ type: Object,
26
+ required: true
27
+ },
28
+ level: {
29
+ type: Number,
30
+ default: 0
31
+ }
32
+ },
33
+ computed: {
34
+ hasChildren() {
35
+ return this.node.children && this.node.children.length > 0
36
+ }
37
+ },
38
+ methods: {
39
+ handleClick() {
40
+ if (this.hasChildren) {
41
+ this.$emit('toggle', this.node)
42
+ }
43
+ }
44
+ }
45
+ }
46
+ </script>
47
+
48
+ <style scoped>
49
+ .tree-node {
50
+ margin: 2px 0;
51
+ }
52
+
53
+ .node-content {
54
+ display: flex;
55
+ align-items: center;
56
+ padding: 4px 0;
57
+ user-select: none;
58
+ }
59
+
60
+ .toggle-icon {
61
+ width: 16px;
62
+ text-align: center;
63
+ font-size: 14px;
64
+ color: #666;
65
+ margin-right: 4px;
66
+ cursor: pointer;
67
+ }
68
+
69
+ .node-title {
70
+ flex: 1;
71
+ cursor: default;
72
+ }
73
+
74
+ .node-content:hover {
75
+ background-color: #f5f5f5;
76
+ }
77
+
78
+ .node-children {
79
+ padding-left: 20px;
80
+ }
81
+ </style>
@@ -0,0 +1,191 @@
1
+ <template>
2
+ <a-row
3
+ class="title_box"
4
+ :style="{backgroundColor: requiredParameters.backgroundColor,height:requiredParameters.height}"
5
+ type="flex"
6
+ v-model="requiredParameters">
7
+ <a-col class="title_col_left" :flex="3">
8
+ <div class="title_img_box">
9
+ <img src="../img/header10086.png" class="title_img" alt="">
10
+ </div>
11
+ <div class="title_name">{{ requiredParameters.title }}</div>
12
+ </a-col>
13
+ <a-col class="title_col_right" id="titleSelect" :flex="3" style="padding-right: 3%" v-model="dateData">
14
+ <div class="title_date_box">
15
+ <div class="title_data">{{ dateData.date }}</div>
16
+ <div class="title_week">{{ dateData.dayOfWeek }}</div>
17
+ </div>
18
+ <div class="title_time">{{ dateData.time }}</div>
19
+ <div style="font-size: x-large;margin-left: 1%">|</div>
20
+ <div class="title_refresh" @click="refreshTitle"><a-icon type="undo" style="font-size: x-large;"/></div>
21
+ <div class="title_refresh_box">
22
+ <div class="title_refresh_time">{{ dateData.refreshTime }}</div>
23
+ <div class="latest_update_time">最新更新时间</div>
24
+ </div>
25
+ </a-col>
26
+ </a-row>
27
+ </template>
28
+
29
+ <script>
30
+
31
+ export default {
32
+ name: 'TitleComponent',
33
+ components: {},
34
+ data () {
35
+ return {
36
+ dateData: {
37
+ date: '',
38
+ dayOfWeek: '',
39
+ time: '',
40
+ refreshTime: ''
41
+ },
42
+ timer: null
43
+ }
44
+ },
45
+ props: {
46
+ requiredParameters: {
47
+ type: Object,
48
+ default: () => ({
49
+ title: '',
50
+ backgroundColor: '',
51
+ height: ''
52
+ }),
53
+ }
54
+ },
55
+ created () {
56
+ this.updateDateData()
57
+ this.startTimer()
58
+ },
59
+ beforeDestroy () {
60
+ this.stopTimer()
61
+ },
62
+ methods: {
63
+ // 刷新页面
64
+ refreshTitle () {
65
+ this.$forceUpdate()
66
+ const now = new Date()
67
+ this.dateData.refreshTime = now.toLocaleTimeString()
68
+ this.$emit('refreshTitle')
69
+ },
70
+ updateDateData () {
71
+ const now = new Date()
72
+ const options = { weekday: 'long' }
73
+ this.dateData.date = this.formatDate(now)
74
+ this.dateData.time = this.formatTime(now)
75
+ this.dateData.dayOfWeek = now.toLocaleDateString(undefined, options)
76
+ this.dateData.refreshTime = now.toLocaleTimeString()
77
+ },
78
+ formatDate (date) {
79
+ const month = date.getMonth() + 1
80
+ const day = date.getDate()
81
+ return `${month}月${day}日`
82
+ },
83
+ formatTime (date) {
84
+ const hours = String(date.getHours()).padStart(2, '0')
85
+ const minutes = String(date.getMinutes()).padStart(2, '0')
86
+ return `${hours}:${minutes}`
87
+ },
88
+ startTimer () {
89
+ this.timer = setInterval(() => {
90
+ const now = new Date()
91
+ this.dateData.time = this.formatTime(now)
92
+ }, 10000) // 每秒更新一次
93
+ },
94
+ stopTimer () {
95
+ if (this.timer) {
96
+ clearInterval(this.timer)
97
+ this.timer = null
98
+ }
99
+ }
100
+ }
101
+ }
102
+ </script>
103
+
104
+ <style scoped>
105
+ .title_box {
106
+ width: 100%;
107
+ min-height:42px;
108
+ }
109
+ .title_col_left {
110
+ height: 100%;
111
+ color: white;
112
+ display: flex;
113
+ align-content: center;
114
+ align-items: center;
115
+ }
116
+ .title_col_right {
117
+ height: 100%;
118
+ color: white;
119
+ display: flex;
120
+ align-content: center;
121
+ align-items: center;
122
+ justify-content: flex-end;
123
+ }
124
+ .title_img_box {
125
+ height: 80%;
126
+ width: auto;
127
+ margin-left: 1%;
128
+ border-radius: 50%;
129
+ background-color: #35baf6;
130
+ }
131
+ .title_img{
132
+ width: 100%;
133
+ height: 100%;
134
+ }
135
+ .title_name {
136
+ font-size: medium !important;
137
+ font-weight: bold;
138
+ margin-left: 1%;
139
+ }
140
+ .title_date_box{
141
+ width: 20%;
142
+ height: 100%;
143
+ display: flex;
144
+ flex-direction: column;
145
+ justify-content: center;
146
+ }
147
+ .title_data{
148
+ display: flex;
149
+ justify-content: center;
150
+ align-items: center;
151
+ font-size: smaller;
152
+ }
153
+ .title_week{
154
+ display: flex;
155
+ justify-content: center;
156
+ align-items: center;
157
+ font-size: smaller;
158
+ }
159
+ .title_time{
160
+ font-size: x-large;
161
+ }
162
+ .title_refresh{
163
+ margin-left: 1%;
164
+ height: 100%;
165
+ align-content: center;
166
+ align-items: center;
167
+ cursor: pointer;
168
+ display: flex;
169
+ width: 7%;
170
+ justify-content: center;
171
+ min-width: 31px;
172
+ }
173
+ .title_refresh:hover{
174
+ background-color: rgb(31, 138, 137);
175
+ }
176
+ .title_refresh:active{
177
+ background-color: rgb(26, 129, 128);
178
+ }
179
+ .title_refresh_box{
180
+ margin-right: 1%;
181
+ }
182
+ .latest_update_time{
183
+ font-size: x-small;
184
+ }
185
+ .title_refresh_time{
186
+ display: flex;
187
+ font-size: x-small;
188
+ align-content: center;
189
+ justify-content: center;
190
+ }
191
+ </style>
@@ -25,7 +25,7 @@
25
25
  </template>
26
26
  <template v-else-if="cell.type === 'slot'">
27
27
  <template
28
- v-if="['x-form-table','x-add-native-form','x-tree-pro', 'x-his-editor', 'x-tab', 'x-form-group', 'x-report', 'x-buttons', 'x-label-select', 'x-conversation', 'x-check-list', 'x-cardSet', 'x-collapse','x-h-descriptions', 'x-sidebar', 'x-list','x-input','x-time-line', 'x-radio','x-calendar', 'x-time-select' ,'x-checkbox', 'x-title', 'x-select', 'x-tree-rows', 'x-three-test-orders'].includes(cell.slotType)">
28
+ v-if="['x-form-table','x-add-native-form','x-tree-pro', 'x-his-editor', 'x-tab', 'x-form-group', 'x-report', 'x-buttons', 'x-label-select', 'x-conversation', 'x-check-list', 'x-cardSet', 'x-collapse','x-h-descriptions', 'x-sidebar', 'x-list','x-input','x-time-line', 'x-radio','x-calendar', 'x-time-select' ,'x-checkbox', 'x-title', 'x-select', 'x-tree-rows', 'x-three-test-orders', 'x-shift-schedule'].includes(cell.slotType)">
29
29
  <component
30
30
  :is="getComponentName(cell.slotConfig, cell.serviceName, cell.slotType)"
31
31
  :key="cellIndex"
@@ -63,7 +63,7 @@
63
63
  </template>
64
64
  <template v-else-if="cell.type === 'slot'">
65
65
  <template
66
- v-if="['x-form-table','x-add-native-form','x-tree-pro', 'x-his-editor', 'x-tab', 'x-form-group', 'x-report', 'x-buttons', 'x-label-select', 'x-conversation', 'x-check-list', 'x-cardSet', 'x-collapse', 'x-h-descriptions', 'x-sidebar', 'x-list','x-input','x-time-line', 'x-radio','x-calendar', 'x-time-select','x-checkbox', 'x-title', 'x-select', 'x-tree-rows', 'x-three-test-orders'].includes(cell.slotType)">
66
+ v-if="['x-form-table','x-add-native-form','x-tree-pro', 'x-his-editor', 'x-tab', 'x-form-group', 'x-report', 'x-buttons', 'x-label-select', 'x-conversation', 'x-check-list', 'x-cardSet', 'x-collapse', 'x-h-descriptions', 'x-sidebar', 'x-list','x-input','x-time-line', 'x-radio','x-calendar', 'x-time-select','x-checkbox', 'x-title', 'x-select', 'x-tree-rows', 'x-three-test-orders', 'x-shift-schedule'].includes(cell.slotType)">
67
67
  <component
68
68
  :is="getComponentName(cell.slotConfig, cell.serviceName, cell.slotType)"
69
69
  :key="cellIndex"
@@ -124,7 +124,8 @@ export default {
124
124
  XTitle: () => import('@vue2-client/base-client/components/his/XTitle/XTitle.vue'),
125
125
  XSelect: () => import('@vue2-client/base-client/components/his/XSelect/XSelect.vue'),
126
126
  XTreeRows: () => import('@vue2-client/base-client/components/his/XTreeRows/XTreeRows.vue'),
127
- XThreeTestOrders: () => import('@vue2-client/base-client/components/his/threeTestOrders/threeTestOrders.vue')
127
+ XThreeTestOrders: () => import('@vue2-client/base-client/components/his/threeTestOrders/threeTestOrders.vue'),
128
+ XShiftSchedule: () => import('@vue2-client/base-client/components/his/XShiftSchedule/XShiftSchedule.vue')
128
129
  },
129
130
  props: {
130
131
  // 每一行的配置
@@ -0,0 +1,261 @@
1
+ <template>
2
+ <a-table
3
+ :columns="columns"
4
+ :data-source="data"
5
+ :rowSelection="rowSelection"
6
+ >
7
+ <span slot="time" class="time-title">
8
+ <span>上</span>
9
+ <span>下</span>
10
+ <span>晚</span>
11
+ </span>
12
+ <template slot="Monday" slot-scope="text, record">
13
+ <div class="time-title">
14
+ <a-button v-for="(item, index) in record.Monday" :key="index" @click="handleShiftChange('Monday', index, record)">{{item === 1 || item === '1' ? '坐诊' : '休息'}}</a-button>
15
+ </div>
16
+ </template>
17
+ <template slot="Tuesday" slot-scope="text, record">
18
+ <div class="time-title">
19
+ <a-button v-for="(item, index) in record.Tuesday" :key="index" @click="handleShiftChange('Tuesday', index, record)">{{item === 1 || item === '1' ? '坐诊' : '休息'}}</a-button>
20
+ </div>
21
+ </template>
22
+ <template slot="Wednesday" slot-scope="text, record">
23
+ <div class="time-title">
24
+ <a-button v-for="(item, index) in record.Wednesday" :key="index" @click="handleShiftChange('Wednesday', index, record)">{{item === 1 || item === '1' ? '坐诊' : '休息'}}</a-button>
25
+ </div>
26
+ </template>
27
+ <template slot="Thursday" slot-scope="text, record">
28
+ <div class="time-title">
29
+ <a-button v-for="(item, index) in record.Thursday" :key="index" @click="handleShiftChange('Thursday', index, record)">{{item === 1 || item === '1' ? '坐诊' : '休息'}}</a-button>
30
+ </div>
31
+ </template>
32
+ <template slot="Friday" slot-scope="text, record">
33
+ <div class="time-title">
34
+ <a-button v-for="(item, index) in record.Friday" :key="index" @click="handleShiftChange('Friday', index, record)">{{item === 1 || item === '1' ? '坐诊' : '休息'}}</a-button>
35
+ </div>
36
+ </template>
37
+ <template slot="Saturday" slot-scope="text, record">
38
+ <div class="time-title">
39
+ <a-button v-for="(item, index) in record.Saturday" :key="index" @click="handleShiftChange('Saturday', index, record)">{{item === 1 || item === '1' ? '坐诊' : '休息'}}</a-button>
40
+ </div>
41
+ </template>
42
+ <template slot="Sunday" slot-scope="text, record">
43
+ <div class="time-title">
44
+ <a-button v-for="(item, index) in record.Sunday" :key="index" @click="handleShiftChange('Sunday', index, record)">{{item === 1 || item === '1' ? '坐诊' : '休息'}}</a-button>
45
+ </div>
46
+ </template>
47
+ <template slot="sk_limit" slot-scope="text, record">
48
+ <a-input-number id="inputNumber" v-model="record.sk_limit" :min="1" :max="100" />
49
+ </template>
50
+ </a-table>
51
+ </template>
52
+ <script>
53
+ import { runLogic } from '@vue2-client/services/api/common'
54
+
55
+ const columns = [
56
+ {
57
+ title: '科室',
58
+ dataIndex: 'dept',
59
+ key: 'dept',
60
+ scopedSlots: { customRender: 'dept' },
61
+ align: 'center'
62
+ },
63
+ {
64
+ title: '人员',
65
+ dataIndex: 'personnel',
66
+ key: 'personnel',
67
+ align: 'center'
68
+ },
69
+ {
70
+ title: '职位',
71
+ dataIndex: 'position',
72
+ key: 'position',
73
+ align: 'center'
74
+ },
75
+ {
76
+ title: '上/下/晚',
77
+ dataIndex: 'time',
78
+ key: 'time',
79
+ scopedSlots: { customRender: 'time' },
80
+ align: 'center'
81
+ },
82
+ {
83
+ title: '周一',
84
+ key: 'Monday',
85
+ dataIndex: 'Monday',
86
+ scopedSlots: { customRender: 'Monday' },
87
+ align: 'center'
88
+ },
89
+ {
90
+ title: '周二',
91
+ key: 'Tuesday',
92
+ dataIndex: 'Tuesday',
93
+ scopedSlots: { customRender: 'Tuesday' },
94
+ align: 'center'
95
+ },
96
+ {
97
+ title: '周三',
98
+ key: 'Wednesday',
99
+ dataIndex: 'Wednesday',
100
+ scopedSlots: { customRender: 'Wednesday' },
101
+ align: 'center'
102
+ },
103
+ {
104
+ title: '周四',
105
+ key: 'Thursday',
106
+ dataIndex: 'Thursday',
107
+ scopedSlots: { customRender: 'Thursday' },
108
+ align: 'center'
109
+ },
110
+ {
111
+ title: '周五',
112
+ key: 'Friday',
113
+ dataIndex: 'Friday',
114
+ scopedSlots: { customRender: 'Friday' },
115
+ align: 'center'
116
+ },
117
+ {
118
+ title: '周六',
119
+ key: 'Saturday',
120
+ dataIndex: 'Saturday',
121
+ scopedSlots: { customRender: 'Saturday' },
122
+ align: 'center'
123
+ },
124
+ {
125
+ title: '周日',
126
+ key: 'Sunday',
127
+ dataIndex: 'Sunday',
128
+ scopedSlots: { customRender: 'Sunday' },
129
+ align: 'center'
130
+ },
131
+ {
132
+ title: '排班数',
133
+ key: 'sk_limit',
134
+ dataIndex: 'sk_limit',
135
+ scopedSlots: { customRender: 'sk_limit' },
136
+ align: 'center'
137
+ }
138
+ ]
139
+
140
+ export default {
141
+ data () {
142
+ return {
143
+ data: [],
144
+ columns,
145
+ weekDate: [],
146
+ // 选中的行键值集合
147
+ selectedRows: [],
148
+ // 选中的行信息集合
149
+ selectedRowKeys: []
150
+ }
151
+ },
152
+ computed: {
153
+ rowSelection () {
154
+ return {
155
+ selectedRowKeys: this.selectedRowKeys,
156
+ onChange: (selectedRowKeys, selectedRows) => {
157
+ this.onSelectChange(selectedRowKeys, selectedRows)
158
+ }
159
+ }
160
+ }
161
+ },
162
+ mounted () {
163
+ this.init()
164
+ },
165
+ methods: {
166
+ handleShiftChange (day, index, record) {
167
+ // 找到当前记录在data中的索引
168
+ const dataIndex = this.data.findIndex(item => item.id === record.id)
169
+ if (dataIndex === -1) return
170
+ // 获取当前状态
171
+ const currentValue = record[day][index]
172
+ const newValue = currentValue === 1 || currentValue === '1' ? 0 : 1
173
+ // 更新按钮显示
174
+ this.$set(record[day], index, newValue)
175
+ // 同步更新data中的数据
176
+ this.$set(this.data[dataIndex][day], index, newValue)
177
+ console.log('当前操作的行数据:', this.data[dataIndex])
178
+ },
179
+ onSelectChange (selectedRowKeys, selectedRows) {
180
+ this.selectedRowKeys = selectedRowKeys
181
+ this.selectedRows = selectedRows
182
+ console.log('selectedRows changed: ', selectedRows)
183
+ },
184
+ // 获取选中的行数据
185
+ getSelectedRowData () {
186
+ return this.selectedRows
187
+ },
188
+ getAllTable() {
189
+ return this.data
190
+ },
191
+ init () {
192
+ runLogic('shiftSchedulingLOGIC', {}, 'af-his').then(res => {
193
+ if (res && Array.isArray(res)) {
194
+ let key = 0
195
+ this.data = res.map(item => {
196
+ // 转换排班数据格式
197
+ const scheduleData = {
198
+ key: key++,
199
+ id: item.id,
200
+ dept: item.dept,
201
+ personnel: item.personnel,
202
+ position: item.position || '',
203
+ selected_id: item.selected_id,
204
+ sk_limit: item.sk_limit || 0,
205
+ Monday: [
206
+ item.f_monday_am === '1' ? 1 : 0,
207
+ item.f_monday_pm === '1' ? 1 : 0,
208
+ item.f_monday_evening === '1' ? 1 : 0
209
+ ],
210
+ Tuesday: [
211
+ item.f_tuesday_am === '1' ? 1 : 0,
212
+ item.f_tuesday_pm === '1' ? 1 : 0,
213
+ item.f_tuesday_evening === '1' ? 1 : 0
214
+ ],
215
+ Wednesday: [
216
+ item.f_wednesday_am === '1' ? 1 : 0,
217
+ item.f_wednesday_pm === '1' ? 1 : 0,
218
+ item.f_wednesday_evening === '1' ? 1 : 0
219
+ ],
220
+ Thursday: [
221
+ item.f_thursday_am === '1' ? 1 : 0,
222
+ item.f_thursday_pm === '1' ? 1 : 0,
223
+ item.f_thursday_evening === '1' ? 1 : 0
224
+ ],
225
+ Friday: [
226
+ item.f_friday_am === '1' ? 1 : 0,
227
+ item.f_friday_pm === '1' ? 1 : 0,
228
+ item.f_friday_evening === '1' ? 1 : 0
229
+ ],
230
+ Saturday: [
231
+ item.f_saturday_am === '1' ? 1 : 0,
232
+ item.f_saturday_pm === '1' ? 1 : 0,
233
+ item.f_saturday_evening === '1' ? 1 : 0
234
+ ],
235
+ Sunday: [
236
+ item.f_sunday_am === '1' ? 1 : 0,
237
+ item.f_sunday_pm === '1' ? 1 : 0,
238
+ item.f_sunday_evening === '1' ? 1 : 0
239
+ ]
240
+ }
241
+ return scheduleData
242
+ })
243
+ }
244
+ })
245
+ }
246
+ }
247
+ }
248
+ </script>
249
+
250
+ <style scoped type="less">
251
+ .time-title {
252
+ display: flex !important;
253
+ flex-direction: column !important;
254
+ align-items: center !important;
255
+ }
256
+ ::v-deep .ant-table-thead > tr > th,
257
+ ::v-deep .ant-table-tbody > tr > td {
258
+ padding: 8px 16px !important;
259
+ overflow-wrap: break-word;
260
+ }
261
+ </style>