|
@@ -232,10 +232,10 @@ export default {
|
|
|
])
|
|
|
}
|
|
|
},
|
|
|
- { title: '班次', key: 'shift', align: 'center' },
|
|
|
- { title: '负责人', key: 'principalName', align: 'center' },
|
|
|
- { title: '状态', slot: 'status', align: 'center' },
|
|
|
- { title: '备注', key: 'remark', align: 'center' },
|
|
|
+ { title: '班次', key: 'shift', align: 'center'},
|
|
|
+ { title: '负责人', key: 'principalName', align: 'center'},
|
|
|
+ { title: '状态', slot: 'status', align: 'center'},
|
|
|
+ { title: '备注', key: 'remark', align: 'center'},
|
|
|
// ...this.tableOtherColumns.filter(site => site.show).map(site => {
|
|
|
...this.tableOtherColumns.map(site => {
|
|
|
if(!this.columnIndex){
|
|
@@ -256,25 +256,25 @@ export default {
|
|
|
style: {
|
|
|
float: 'left',
|
|
|
fontSize: '24px',
|
|
|
- display: this.hasLastWeek ? '' : 'none'
|
|
|
+ // display: this.hasLastWeek ? '' : 'none'
|
|
|
},
|
|
|
on: {
|
|
|
click: () => {
|
|
|
- this.changeColumns(params.column.title-1)
|
|
|
+ this.changeColumns(params.column.title[1]-1)
|
|
|
}
|
|
|
}
|
|
|
}),
|
|
|
- h('span', params.column.title)
|
|
|
+ h('span', params.column.title[0]+'-'+params.column.title[1]+'(week)'),
|
|
|
])
|
|
|
},
|
|
|
children: [
|
|
|
- { title: 'Mon', slot: 'monOne', align: 'center' },
|
|
|
- { title: 'Tue', slot: 'tueOne', align: 'center' },
|
|
|
- { title: 'Wen', slot: 'wenOne', align: 'center' },
|
|
|
- { title: 'Thu', slot: 'thuOne', align: 'center' },
|
|
|
- { title: 'Fri', slot: 'friOne', align: 'center' },
|
|
|
- { title: 'Sat', slot: 'satOne', align: 'center' },
|
|
|
- { title: 'Sun', slot: 'sunOne', align: 'center' }
|
|
|
+ { title: '周一', slot: 'monOne', align: 'center' },
|
|
|
+ { title: '周二', slot: 'tueOne', align: 'center' },
|
|
|
+ { title: '周三', slot: 'wenOne', align: 'center' },
|
|
|
+ { title: '周四', slot: 'thuOne', align: 'center' },
|
|
|
+ { title: '周五', slot: 'friOne', align: 'center' },
|
|
|
+ { title: '周六', slot: 'satOne', align: 'center' },
|
|
|
+ { title: '周日', slot: 'sunOne', align: 'center' }
|
|
|
]
|
|
|
}
|
|
|
} else {
|
|
@@ -286,7 +286,8 @@ export default {
|
|
|
renderHeader: (h, params) => {
|
|
|
// console.log(params)
|
|
|
return h('div', [
|
|
|
- h('span', params.column.title),
|
|
|
+ h('span', params.column.title[0]+'-'+params.column.title[1]+'(week)'),
|
|
|
+ // title':year+'-'+data.week+'(week)
|
|
|
h('Icon', {
|
|
|
props: {
|
|
|
type: 'md-arrow-dropright'
|
|
@@ -294,24 +295,24 @@ export default {
|
|
|
style: {
|
|
|
float: 'right',
|
|
|
fontSize: '24px',
|
|
|
- display: this.hasNextWeek ? '' : 'none'
|
|
|
+ // display: this.hasNextWeek ? '' : 'none'
|
|
|
},
|
|
|
on: {
|
|
|
click: () => {
|
|
|
- this.changeColumns(params.column.title)
|
|
|
+ this.changeColumns(params.column.title[1])
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
])
|
|
|
},
|
|
|
children: [
|
|
|
- { title: 'Mon', slot: 'monTwo', align: 'center' },
|
|
|
- { title: 'Tue', slot: 'tueTwo', align: 'center' },
|
|
|
- { title: 'Wen', slot: 'wenTwo', align: 'center' },
|
|
|
- { title: 'Thu', slot: 'thuTwo', align: 'center' },
|
|
|
- { title: 'Fri', slot: 'friTwo', align: 'center' },
|
|
|
- { title: 'Sat', slot: 'satTwo', align: 'center' },
|
|
|
- { title: 'Sun', slot: 'sunTwo', align: 'center' }
|
|
|
+ { title: '周一', slot: 'monTwo', align: 'center' },
|
|
|
+ { title: '周二', slot: 'tueTwo', align: 'center' },
|
|
|
+ { title: '周三', slot: 'wenTwo', align: 'center' },
|
|
|
+ { title: '周四', slot: 'thuTwo', align: 'center' },
|
|
|
+ { title: '周五', slot: 'friTwo', align: 'center' },
|
|
|
+ { title: '周六', slot: 'satTwo', align: 'center' },
|
|
|
+ { title: '周日', slot: 'sunTwo', align: 'center' }
|
|
|
]
|
|
|
}
|
|
|
}
|
|
@@ -326,10 +327,12 @@ export default {
|
|
|
resizeWidth: 100,
|
|
|
resizeHeight: 100,
|
|
|
data: {
|
|
|
- "date": "",
|
|
|
+ "date": '',
|
|
|
"shift": '',
|
|
|
- "weekOfYear": 0
|
|
|
+ "weekOfYear": 0,
|
|
|
+ "year": ''
|
|
|
},
|
|
|
+ year: '',
|
|
|
remarkId: 0,
|
|
|
remarkDate: '',
|
|
|
tableOtherColumns: [],
|
|
@@ -364,8 +367,10 @@ export default {
|
|
|
}
|
|
|
let data = res.data
|
|
|
this.tableOtherColumns = []
|
|
|
- this.tableOtherColumns.push({'title':data.week})
|
|
|
- this.tableOtherColumns.push({'title':data.lastWeek})
|
|
|
+ // this.tableOtherColumns.push({'title':year+'-'+data.week+'(week)'})
|
|
|
+ this.tableOtherColumns.push({'title':[data.year,data.week]})
|
|
|
+ this.tableOtherColumns.push({'title':[data.year,data.lastWeek]})
|
|
|
+ this.year = data.year
|
|
|
this.hasLastWeek = data.hasLastWeek
|
|
|
this.hasNextWeek = data.hasNextWeek
|
|
|
for(let item of data.projectModle) {
|
|
@@ -457,6 +462,7 @@ export default {
|
|
|
changeColumns (index) {
|
|
|
this.data.weekOfYear = index
|
|
|
this.data.date = ''
|
|
|
+ this.data.year = this.year
|
|
|
this.upkeep_week_tv_look(this.data)
|
|
|
},
|
|
|
// 跳转详情
|
|
@@ -644,8 +650,8 @@ export default {
|
|
|
border-radius: 0;
|
|
|
}
|
|
|
.nobody{
|
|
|
- width: 15px;
|
|
|
- height: 15px;
|
|
|
+ width: 30px;
|
|
|
+ height: 30px;
|
|
|
border-radius: 8px;
|
|
|
background-color: transparent;
|
|
|
}
|