基础管理-班组

master
A0010407 1 year ago
parent 934045afe6
commit 8524e051e9

@ -322,10 +322,12 @@ export default {
}
};
},
created() {
this.getList();
this.getTeamMembers();
},
methods: {
//
indexMethod(index) {
@ -349,6 +351,7 @@ export default {
this.loading = false;
});
},
/** 查询班组列表 */
getList() {
this.loading = true;
@ -358,11 +361,13 @@ export default {
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
@ -392,22 +397,26 @@ export default {
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.teamId)
this.single = selection.length!==1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
@ -415,6 +424,7 @@ export default {
this.open = true;
this.title = "添加班组";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.rightList = [];
@ -445,6 +455,7 @@ export default {
this.open = true;
this.title = "修改班组";
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
@ -467,6 +478,7 @@ export default {
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const teamIds = row.teamId || this.ids;
@ -477,6 +489,7 @@ export default {
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
this.download('wms/team/export', {

Loading…
Cancel
Save