Commit 227226d0 by liushikai

任务列表先init再search

parent 5977dcad
......@@ -12,12 +12,12 @@
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
<!--PD000000 -->
<el-tab-pane label="申报信息" name="selp">
<m-selp :model="model" :codes="codes" />
<m-selp :model="model" :codes="codes" ref="selp"/>
</el-tab-pane>
<!--PD000000 -->
<el-tab-pane label="差错反馈" name="errp">
<m-errp :model="model" :codes="codes" />
<m-errp :model="model" :codes="codes" ref="errp"/>
</el-tab-pane>
</c-tabs>
</el-form>
......@@ -31,6 +31,7 @@ import CommonProcess from "~/mixin/CommonProcess";
import Check from "~/model/Bopsel/Check";
import Default from "~/model/Bopsel/Default";
import Pattern from "~/model/Bopsel/Pattern";
import Utils from "~/utils/index"
import Selp from "./Selp";
import Errp from "./Errp";
......@@ -101,12 +102,19 @@ export default {
}
});
let rtnmsg = await this.init({});
if (rtnmsg.respCode == SUCCESS) {
// let rtnmsg = await this.init({});
// if (rtnmsg.respCode == SUCCESS) {
// //TODO 处理数据逻辑
// } else {
// this.$notify.error({ title: "错误", message: "服务请求失败!" });
// }
const that = this;
that.init(that.model).then((res) => {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
that.model = Utils.copyValueFromVO(that.model, res.data);
this.$refs.selp.selpHandleSearch();
this.$refs.errp.errpHandleSearch();
});
},
};
</script>
......
......@@ -424,8 +424,8 @@ export default {
{ label: "归档", value: "chkcan" },
{ label: "云平台", value: "chkypt" },
];
await this.handleSearch()
this.$store.commit("setTaskList", {key: "sptsel", val: this.stmData.data.length})
// await this.handleSearch()
// this.$store.commit("setTaskList", {key: "sptsel", val: this.stmData.data.length})
},
methods: {
sourceChangeEvent(val) {
......
......@@ -399,8 +399,8 @@ export default {
};
},
async mounted() {
await this.sptfndHandleSearch()
this.$store.commit("setTaskList", {key: "sptbrk", val: this.stmData.data.length})
// await this.sptfndHandleSearch()
// this.$store.commit("setTaskList", {key: "sptbrk", val: this.stmData.data.length})
},
computed: {
chkinc: {
......
......@@ -59,6 +59,7 @@ export default {
that.init(that.model).then(res => {
//TODO 处理数据逻辑
that.model = Utils.copyValueFromVO(that.model, res.data)
this.$refs.Menu.sptfndHandleSearch();
// that.$refs.Menu.stmData.columns = res.data.sptstm.rows;
})
}
......
......@@ -60,6 +60,7 @@ export default {
//TODO 处理数据逻辑
that.model = Utils.copyValueFromVO(that.model, res.data)
// that.$refs.Menu.stmData.columns = res.data.sptstm.rows;
this.$refs.Menu.handleSearch()
})
}
}
......
......@@ -580,8 +580,8 @@ export default {
{ label: "Rejected", value: "N" },
{ label: "Waiting", value: "W" },
];
await this.handleSearch()
this.$store.commit("setTaskList", {key: "trnrel", val: this.stmData.data.length})
// await this.handleSearch()
// this.$store.commit("setTaskList", {key: "trnrel", val: this.stmData.data.length})
},
computed: {},
......
......@@ -90,6 +90,7 @@ export default {
that.model = Utils.copyValueFromVO(that.model, res.data);
// that.$refs.inftrnps.stmData.columns=res.data.trncorco_trnstm.rows
this.$refs.inftrnps.handleSearch();
});
},
};
......
......@@ -98,6 +98,7 @@ export default {
that.model = Utils.copyValueFromVO(that.model, res.data);
// that.$refs.inftrnps.stmData.columns=res.data.trncorco_trnstm.rows
this.$refs.inftrnps.handleSearch();
});
},
};
......
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