班组长
This commit is contained in:
parent
d37fc87240
commit
1599183cab
|
|
@ -62,7 +62,7 @@ service.interceptors.request.use(config => {
|
|||
const s_url = sessionObj.url; // 请求地址
|
||||
const s_data = sessionObj.data; // 请求数据
|
||||
const s_time = sessionObj.time; // 请求时间
|
||||
const interval = 1000; // 间隔时间(ms),小于此时间视为重复提交
|
||||
const interval = 3000; // 间隔时间(ms),小于此时间视为重复提交
|
||||
if (s_data === requestObj.data && requestObj.time - s_time < interval && s_url === requestObj.url) {
|
||||
const message = '数据正在处理,请勿重复提交';
|
||||
console.warn(`[${s_url}]: ` + message)
|
||||
|
|
|
|||
|
|
@ -412,7 +412,7 @@
|
|||
|
||||
created() {
|
||||
this.getProList();
|
||||
this.getPersonList();
|
||||
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
|
|
@ -423,12 +423,12 @@
|
|||
});
|
||||
},
|
||||
// 获取人员列表
|
||||
getPersonList(){
|
||||
getPersonList(teamId){
|
||||
let param = {
|
||||
type:4,//1.全部人员 2.未分配人员 3.已分配人员 4.班组长
|
||||
roleCode: this.$store.getters.roleCode,
|
||||
departId: this.$store.getters.departId,
|
||||
teamId: this.$store.getters.teamId,
|
||||
teamId: teamId
|
||||
}
|
||||
getPersonList(param).then(response => {
|
||||
this.personList = response.data;
|
||||
|
|
@ -616,6 +616,7 @@
|
|||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.getPersonList("");
|
||||
this.reset();
|
||||
this.checkList = []
|
||||
this.open = true;
|
||||
|
|
@ -625,6 +626,7 @@
|
|||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const teamId = row.teamId
|
||||
this.getPersonList(teamId);
|
||||
getTeamInfo({id:teamId}).then(response => {
|
||||
this.form = response.data;
|
||||
this.personList.forEach(item=>{
|
||||
|
|
@ -633,7 +635,6 @@
|
|||
this.leaderData.isLeader=0;
|
||||
}
|
||||
})
|
||||
|
||||
this.$set(this.form,'proId',response.data.proId+'')
|
||||
this.checkList = response.data.checkList;
|
||||
// this.$set(this.form,'sex',response.data.sex+'')
|
||||
|
|
|
|||
Loading…
Reference in New Issue