Commit 227226d0 by liushikai

任务列表先init再search

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