Commit 18bbcc0a authored by renjintao's avatar renjintao

暂停记录

parent cd8c728c
<template>
<div class="record">
<Tabs value="name1">
<Tabs value="name1" @on-click="tabSwitch">
<TabPane label="订单暂停记录" name="name1">
<DataGrid :columns="columns" ref="grid" :action="action" :tool="false" :height="tdHeight"></DataGrid>
</TabPane>
......@@ -127,18 +127,18 @@ export default {
}
],
columnsProcess: [
{
{
key: "processcode",
title: "工艺文件编号",
align: "left",
width: 200,
tooltip:true,
tooltip: true
},
{
{
key: "processname",
title: "工艺名称",
align: "left",
tooltip:true,
tooltip: true
},
{
key: "taskSeq",
......@@ -151,14 +151,14 @@ export default {
title: "工序名称",
align: "left",
width: 350,
tooltip:true,
tooltip: true
},
{
key: "desc",
title: "暂停原因",
align: "left",
tooltip:true,
tooltip: true
},
{
key: "creatorUserId",
......@@ -183,7 +183,7 @@ export default {
},
mounted() {
this.$refs.grid.reload(this.easySearch);
this.loadList()
this.loadList();
window.onresize = () => {
///浏览器窗口大小变化
return (() => {
......@@ -201,7 +201,7 @@ export default {
methods: {
loadList() {
let params = {
FilterText: 'order_id="'+this.eid+'"'
FilterText: 'order_id="' + this.eid + '"'
};
Api.pauseCauseGetpaged(params)
.then(res => {
......@@ -215,6 +215,12 @@ export default {
this.$Message.error("连接失败");
});
},
tabSwitch(val) {
//tab切换
if (val == "name2") {
this.loadList();
}
},
search() {
this.$refs.grid.reload(this.easySearch);
},
......@@ -231,7 +237,7 @@ export default {
eid(v) {
this.condition.orderId.value = v;
this.$refs.grid.reload(this.condition);
this.loadList()
this.loadList();
}
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment