更改项目page的目录结构
This commit is contained in:
parent
dad1e60d73
commit
6d21624476
|
|
@ -356,7 +356,7 @@ const goToTaskList = (label) => {
|
||||||
const status = statusMap[label] || '';
|
const status = statusMap[label] || '';
|
||||||
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/task-list/index?status=${status}&label=${encodeURIComponent(label)}`
|
url: `/pages/task/list/index?status=${status}&label=${encodeURIComponent(label)}`
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -377,7 +377,7 @@ const goToTaskDetail = (task) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/task-detail/index?id=${task.id}`
|
url: `/pages/task/detail/index?id=${task.id}`
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -237,7 +237,7 @@ const handleCustomerClick = (customer) => {
|
||||||
console.log('点击客户:', customer);
|
console.log('点击客户:', customer);
|
||||||
// 跳转到客户详情页
|
// 跳转到客户详情页
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/customer-detail/index?id=${customer.id}`
|
url: `/pages/customer/detail/index?id=${customer.id}`
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -295,7 +295,7 @@ const handleAddCustomer = () => {
|
||||||
console.log('添加新客户');
|
console.log('添加新客户');
|
||||||
// 跳转到添加客户页面
|
// 跳转到添加客户页面
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/add-customer/index'
|
url: '/pages/customer/add/index'
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ const handleClick = () => {
|
||||||
|
|
||||||
// 跳转到详情页
|
// 跳转到详情页
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/event-detail/index'
|
url: '/pages/event/detail/index'
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ const handleTodoClick = (todo) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/task-detail/index?id=${todo.id}`
|
url: `/pages/task/detail/index?id=${todo.id}`
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
20
pages.json
20
pages.json
|
|
@ -15,69 +15,69 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/add-event/index",
|
"path": "pages/event/add/index",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "新建日程",
|
"navigationBarTitleText": "新建日程",
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/reminder-setup/index",
|
"path": "pages/event/reminder-setup/index",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "日程提醒",
|
"navigationBarTitleText": "日程提醒",
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/reminder-time-select/index",
|
"path": "pages/event/reminder-time-select/index",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "日程提醒",
|
"navigationBarTitleText": "日程提醒",
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/event-detail/index",
|
"path": "pages/event/detail/index",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "日程详情",
|
"navigationBarTitleText": "日程详情",
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/task-detail/index",
|
"path": "pages/task/detail/index",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "任务详情"
|
"navigationBarTitleText": "任务详情"
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/task-list/index",
|
"path": "pages/task/list/index",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "任务列表"
|
"navigationBarTitleText": "任务列表"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/submit-task/index",
|
"path": "pages/task/submit/index",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "提交详情"
|
"navigationBarTitleText": "提交详情"
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/apply-delay/index",
|
"path": "pages/task/apply-delay/index",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "申请详情",
|
"navigationBarTitleText": "申请详情",
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/customer-detail/index",
|
"path": "pages/customer/detail/index",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "客户详情",
|
"navigationBarTitleText": "客户详情",
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/add-customer/index",
|
"path": "pages/customer/add/index",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "客户信息",
|
"navigationBarTitleText": "客户信息",
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
|
|
|
||||||
|
|
@ -571,7 +571,7 @@ const openReminderSetup = () => {
|
||||||
uni.setStorageSync('reminderList', formData.value.reminders);
|
uni.setStorageSync('reminderList', formData.value.reminders);
|
||||||
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/reminder-setup/index'
|
url: '/pages/event/reminder-setup/index'
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -69,7 +69,7 @@ const formatReminderTime = (reminder) => {
|
||||||
// 添加提醒
|
// 添加提醒
|
||||||
const addReminder = () => {
|
const addReminder = () => {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/reminder-time-select/index?action=add&index=' + reminders.value.length
|
url: '/pages/event/reminder-time-select/index?action=add&index=' + reminders.value.length
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -93,7 +93,7 @@ const editReminder = (index) => {
|
||||||
.join('&');
|
.join('&');
|
||||||
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/reminder-time-select/index?' + queryString
|
url: '/pages/event/reminder-time-select/index?' + queryString
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -114,7 +114,7 @@ const handleAddClick = () => {
|
||||||
// 从 ScheduleEditor 组件获取当前选择的日期
|
// 从 ScheduleEditor 组件获取当前选择的日期
|
||||||
const currentDate = scheduleEditorRef.value?.selectedDate || selectedDate.value;
|
const currentDate = scheduleEditorRef.value?.selectedDate || selectedDate.value;
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/add-event/index?date=${currentDate}`
|
url: `/pages/event/add/index?date=${currentDate}`
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -452,7 +452,7 @@ const editRecord = (index) => {
|
||||||
|
|
||||||
// 跳转到提交任务页面
|
// 跳转到提交任务页面
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/submit-task/index?taskId=${task.value.id}&mode=edit&recordIndex=${index}`
|
url: `/pages/task/submit/index?taskId=${task.value.id}&mode=edit&recordIndex=${index}`
|
||||||
});
|
});
|
||||||
|
|
||||||
showMenuIndex.value = -1;
|
showMenuIndex.value = -1;
|
||||||
|
|
@ -638,14 +638,14 @@ const completeTask = () => {
|
||||||
// 提交任务
|
// 提交任务
|
||||||
const submitTask = () => {
|
const submitTask = () => {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/submit-task/index?taskId=${task.value.id || ''}`
|
url: `/pages/task/submit/index?taskId=${task.value.id || ''}`
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
// 申请延期
|
// 申请延期
|
||||||
const applyDelay = () => {
|
const applyDelay = () => {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/apply-delay/index?taskId=${task.value.id || ''}`
|
url: `/pages/task/apply-delay/index?taskId=${task.value.id || ''}`
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -168,7 +168,7 @@ const goToTaskDetail = (task) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/task-detail/index?id=${task.id}`
|
url: `/pages/task/detail/index?id=${task.id}`
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user