1234567891011121314151617181920212223242526 |
- export default {
- setPlanList(state, planList) {
- planList.forEach((plan) => {
- if(!state.planList.some(p => p.id == plan.id)) {
- plan.checked = false;
- state.planList.push(plan)
- }
- });
- },
- setAutoPlanList(state, planList) {
- planList.forEach((plan) => {
- if(!state.autoPlanList.some(p => p.id == plan.id)) {
- plan.checked = false;
- state.autoPlanList.push(plan)
- }
- });
- },
- setTaskList(state, taskList) {
- taskList.forEach((task) => {
- if(!state.taskList.some(p => p.id == task.id)) {
- task.checked = false;
- state.taskList.push(task)
- }
- });
- },
- };
|