feat:交接记录添加expend展开收起按钮
This commit is contained in:
parent
10988dae96
commit
fa182745a3
|
|
@ -7,23 +7,21 @@
|
|||
icon="el-icon-plus"
|
||||
@click="table_add(10)"
|
||||
v-auth="'handover.create'"
|
||||
>新增</el-button
|
||||
>
|
||||
>新增</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-plus"
|
||||
@click="table_add(20)"
|
||||
v-auth="'handover.create'"
|
||||
v-if="mgroup_name!=='切片'&&mgroup_name!=='拉单丝'&&mgroup_name!=='一次复丝'&&mgroup_name!=='二次复丝'&&mgroup_name!=='切丝排版'"
|
||||
>返工</el-button
|
||||
>
|
||||
>返工</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-plus"
|
||||
@click="table_add(50)"
|
||||
v-auth="'handover.create'"
|
||||
>改版</el-button
|
||||
>
|
||||
>改版</el-button>
|
||||
<el-button type="primary" @click="expendChange">{{changeText}}</el-button>
|
||||
</div>
|
||||
<div class="right-panel">
|
||||
<el-select
|
||||
|
|
@ -61,7 +59,7 @@
|
|||
row-key="id"
|
||||
:params="params"
|
||||
:query="query"
|
||||
default-expand-all
|
||||
:expendShow="expendCode"
|
||||
>
|
||||
<el-table-column
|
||||
label="#"
|
||||
|
|
@ -289,8 +287,10 @@ export default {
|
|||
mlogId: "",
|
||||
mgroupId: "",
|
||||
processId: "",
|
||||
changeText: "展开",
|
||||
processCate: "",
|
||||
printer_name: "",
|
||||
expendCode:false,
|
||||
printVisible:false,
|
||||
backDialogVisible: false,
|
||||
mgroup_name:'',
|
||||
|
|
@ -313,6 +313,14 @@ export default {
|
|||
this.getMgroupOptions();
|
||||
},
|
||||
methods: {
|
||||
expendChange(){
|
||||
this.expendCode = !this.expendCode;
|
||||
if(this.expendCode){
|
||||
this.changeText="收起"
|
||||
}else{
|
||||
this.changeText="展开"
|
||||
}
|
||||
},
|
||||
//获取工段列表
|
||||
getMgroupOptions() {
|
||||
let that = this;
|
||||
|
|
|
|||
Loading…
Reference in New Issue