feat: 粒子背景+动起来了
This commit is contained in:
@@ -24,6 +24,10 @@ export const usePersonConfig = defineStore('person', {
|
||||
getNotPersonList(state) {
|
||||
return state.personConfig.notPersonList;
|
||||
},
|
||||
// 获取所有人员名单
|
||||
getAllPersonList(state) {
|
||||
return state.personConfig.alreadyPersonList.concat(state.personConfig.notPersonList);
|
||||
},
|
||||
// 获取table列数
|
||||
getTableRowCount(state) {
|
||||
return state.personConfig.tableRowCount;
|
||||
@@ -53,6 +57,14 @@ export const usePersonConfig = defineStore('person', {
|
||||
this.personConfig.notPersonList = this.personConfig.notPersonList.filter((item: IPersonConfig) => item.id!== item.id);
|
||||
});
|
||||
},
|
||||
// 删除指定人员
|
||||
deletePerson(person:IPersonConfig){
|
||||
console.log('delperson:',person);
|
||||
if(person.id!=undefined||person.id!=null){
|
||||
this.personConfig.alreadyPersonList = this.personConfig.alreadyPersonList.filter((item: IPersonConfig) => item.id!== person.id);
|
||||
this.personConfig.notPersonList = this.personConfig.notPersonList.filter((item: IPersonConfig) => item.id!== person.id);
|
||||
}
|
||||
},
|
||||
// 删除所有人员
|
||||
deleteAllPerson() {
|
||||
this.personConfig.alreadyPersonList = [];
|
||||
|
||||
Reference in New Issue
Block a user