甘特图组件,有点改炸了
This commit is contained in:
@@ -385,14 +385,12 @@ export default {
|
||||
this.$refs.popupRef.open('bottom')
|
||||
},
|
||||
handleUpdate(row) {
|
||||
console.log('handleUpdate called', row);
|
||||
getReportSchedule(row.scheduleId).then(res => {
|
||||
this.form = res.data || {}
|
||||
this.$refs.popupRef.open('bottom')
|
||||
})
|
||||
},
|
||||
handleDelete(item) {
|
||||
console.log('handleDelete called', item);
|
||||
uni.showModal({
|
||||
title: '确认删除',
|
||||
content: `确定要删除排产“${item.scheduleName}”吗?`,
|
||||
@@ -449,12 +447,6 @@ export default {
|
||||
return options;
|
||||
},
|
||||
swipeActionClick(e, item) {
|
||||
console.log('swipeActionClick e:', e);
|
||||
console.log('swipeActionClick item:', item);
|
||||
if (e && e.content) {
|
||||
console.log('swipeActionClick e.content:', e.content);
|
||||
console.log('swipeActionClick e.content.text:', e.content.text);
|
||||
}
|
||||
const text = e.content.text;
|
||||
if (text === '编辑') {
|
||||
this.handleUpdate(item);
|
||||
@@ -465,7 +457,6 @@ export default {
|
||||
}
|
||||
},
|
||||
handleStart(row) {
|
||||
console.log('handleStart called', row);
|
||||
const now = new Date();
|
||||
const pad = n => n < 10 ? '0' + n : n;
|
||||
const formatDate = d => `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())} ${pad(d.getHours())}:${pad(d.getMinutes())}:${pad(d.getSeconds())}`;
|
||||
@@ -526,8 +517,6 @@ export default {
|
||||
// 只保留唯一 projectId
|
||||
const uniqueProjectIds = Array.from(new Set(list.map(item => item.projectId)))
|
||||
const categories = uniqueProjectIds.map(id => this.getProjectName(id))
|
||||
console.log(categories, '获取分类', list)
|
||||
|
||||
|
||||
const data = list.map(item => ({
|
||||
...item,
|
||||
|
||||
Reference in New Issue
Block a user