|
|
@ -33,7 +33,29 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-dialog>
|
|
|
|
</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 :data="teamList" v-loading="teamLoading" @selection-change="handleSelectionChange">
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
<el-table-column type="index" label="序号" align="center" width="50"/>
|
|
|
|
<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="createBy" />
|
|
|
|
<el-table-column label="创建时间" align="center" prop="createDate" />
|
|
|
|
<el-table-column label="创建时间" align="center" prop="createDate" />
|
|
|
|
</el-table>
|
|
|
|
</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">
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
<el-button type="primary" @click="handleBindTeam">提 交</el-button>
|
|
|
|
<el-button type="primary" @click="handleBindTeam">提 交</el-button>
|
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
@ -93,6 +122,8 @@ export default {
|
|
|
|
open: false,
|
|
|
|
open: false,
|
|
|
|
// 查询参数
|
|
|
|
// 查询参数
|
|
|
|
queryParams: {
|
|
|
|
queryParams: {
|
|
|
|
|
|
|
|
teamCode:null,
|
|
|
|
|
|
|
|
teamDesc:null,
|
|
|
|
pageNum: 1,
|
|
|
|
pageNum: 1,
|
|
|
|
pageSize: 10,
|
|
|
|
pageSize: 10,
|
|
|
|
noticeId: null,
|
|
|
|
noticeId: null,
|
|
|
@ -143,14 +174,29 @@ export default {
|
|
|
|
// 新增
|
|
|
|
// 新增
|
|
|
|
handleAdd() {
|
|
|
|
handleAdd() {
|
|
|
|
this.teamLoading = true;
|
|
|
|
this.teamLoading = true;
|
|
|
|
listTeam().then(response => {
|
|
|
|
listTeam(this.queryParams).then(response => {
|
|
|
|
this.teamList = response.rows;
|
|
|
|
this.teamList = response.rows;
|
|
|
|
|
|
|
|
this.total = response.total;
|
|
|
|
this.teamOpen = true;
|
|
|
|
this.teamOpen = true;
|
|
|
|
this.teamTitle = "添加班组";
|
|
|
|
this.teamTitle = "添加班组";
|
|
|
|
this.teamLoading = false;
|
|
|
|
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() {
|
|
|
|
handleBindTeam() {
|
|
|
|
const groupCodes = this.ids
|
|
|
|
const groupCodes = this.ids
|
|
|
|