班组修改

yangwl
shaoyong 4 months ago
parent 4359431fb1
commit 384cc89641

@ -33,7 +33,29 @@
</div>
</el-dialog>
<el-dialog :title="teamTitle" :visible.sync="teamOpen" width="800px" append-to-body>
<el-dialog :title="teamTitle" :visible.sync="teamOpen" width="1000px" append-to-body>
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="班组编码" prop="teamCode">
<el-input
v-model="queryParams.teamCode"
placeholder="请输入班组编码"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="班组名称" prop="teamDesc">
<el-input
v-model="queryParams.teamDesc"
placeholder="请输入班组名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
</el-form-item>
</el-form>
<el-table :data="teamList" v-loading="teamLoading" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column type="index" label="序号" align="center" width="50"/>
@ -49,6 +71,13 @@
<el-table-column label="创建人" align="center" prop="createBy" />
<el-table-column label="创建时间" align="center" prop="createDate" />
</el-table>
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="handleBindTeam"> </el-button>
<el-button @click="cancel"> </el-button>
@ -93,6 +122,8 @@ export default {
open: false,
//
queryParams: {
teamCode:null,
teamDesc:null,
pageNum: 1,
pageSize: 10,
noticeId: null,
@ -143,14 +174,29 @@ export default {
//
handleAdd() {
this.teamLoading = true;
listTeam().then(response => {
listTeam(this.queryParams).then(response => {
this.teamList = response.rows;
this.total = response.total;
this.teamOpen = true;
this.teamTitle = "添加班组";
this.teamLoading = false;
});
},
handleQuery() {
this.queryParams.pageNum = 1;
this.teamLoading = true;
listTeam(this.queryParams).then(response => {
this.teamList = response.rows;
this.total = response.total;
this.teamLoading = false;
});
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
//
handleBindTeam() {
const groupCodes = this.ids

Loading…
Cancel
Save