Commit 191a98d7 by 吴佳

20220120 wujia 跳转草稿箱、待复核页面后刷新页面数据

parent 06420273
...@@ -14,6 +14,8 @@ export default { ...@@ -14,6 +14,8 @@ export default {
this.$store.dispatch("TagsView/delView", this.$route) this.$store.dispatch("TagsView/delView", this.$route)
this.$router.history.push("/taskList", () => { this.$router.history.push("/taskList", () => {
this.$store.commit("setTaskListTabVal", 'trnrel') this.$store.commit("setTaskListTabVal", 'trnrel')
//修改待复核界面刷新状态为需要刷新
this.$store.commit("setLoadingFreshReview", true)
}); });
}else if(result.fieldErrors && Object.keys(result.fieldErrors).length > 0 ){ }else if(result.fieldErrors && Object.keys(result.fieldErrors).length > 0 ){
const tab = this.showBackendErrors(result.fieldErrors) const tab = this.showBackendErrors(result.fieldErrors)
...@@ -48,6 +50,8 @@ export default { ...@@ -48,6 +50,8 @@ export default {
this.$store.dispatch("TagsView/delView", this.$route) this.$store.dispatch("TagsView/delView", this.$route)
this.$router.history.push("/taskList", () => { this.$router.history.push("/taskList", () => {
this.$store.commit("setTaskListTabVal", 'sptbrk') this.$store.commit("setTaskListTabVal", 'sptbrk')
//修改草稿箱界面刷新状态为需要刷新
this.$store.commit("setLoadingFreshPending", true)
}); });
} else { } else {
this.$notify({ this.$notify({
......
...@@ -20,7 +20,9 @@ const Status = { ...@@ -20,7 +20,9 @@ const Status = {
// 校验 // 校验
check: false, check: false,
// 暂存 // 暂存
stash: false stash: false,
freshReview: false,
freshPending: false,
}, },
taskListTabVal: '', taskListTabVal: '',
taskList: { taskList: {
...@@ -84,6 +86,12 @@ const Status = { ...@@ -84,6 +86,12 @@ const Status = {
setLoadingCheck(state, value) { setLoadingCheck(state, value) {
state.loading.check = value; state.loading.check = value;
}, },
setLoadingFreshReview(state, value) {
state.loading.freshReview = value;
},
setLoadingFreshPending(state, value) {
state.loading.freshPending = value;
},
setLoadingStash(state, value) { setLoadingStash(state, value) {
state.loading.stash = value; state.loading.stash = value;
}, },
......
...@@ -34,9 +34,6 @@ export default { ...@@ -34,9 +34,6 @@ export default {
} }
}, },
mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理 mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理
computed: {
},
data(){ data(){
return { return {
tabVal: "menu", tabVal: "menu",
...@@ -62,7 +59,26 @@ export default { ...@@ -62,7 +59,26 @@ export default {
this.$refs.Menu.sptfndHandleSearch(); this.$refs.Menu.sptfndHandleSearch();
// that.$refs.Menu.stmData.columns = res.data.sptstm.rows; // that.$refs.Menu.stmData.columns = res.data.sptstm.rows;
}) })
} },
computed: {
reload: function(){
return this.$store.state.Status.loading.freshPending;
}
},
watch:{
reload: function(val, oldVal){
if(val){
const that = this;
that.init(that.model).then((res) => {
that.model = Utils.copyValueFromVO(that.model, res.data);
//请求草稿箱数据
this.$refs.Menu.sptfndHandleSearch();
//刷新页面后重置刷新状态为不刷新
this.$store.commit("setLoadingFreshPending", false)
});
}
},
},
} }
</script> </script>
<style> <style>
......
...@@ -68,7 +68,7 @@ export default { ...@@ -68,7 +68,7 @@ export default {
"m-inftrnps": Inftrnps, "m-inftrnps": Inftrnps,
}, },
mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理 mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理
computed: {}, // computed: {},
provide() { provide() {
return { return {
root: this, root: this,
...@@ -87,19 +87,44 @@ export default { ...@@ -87,19 +87,44 @@ export default {
bchtyp: CodeTable.bchtyp, bchtyp: CodeTable.bchtyp,
usrsort: CodeTable.usrsort, usrsort: CodeTable.usrsort,
}, },
// reload:false,
}; };
}, },
methods: {}, created() {
mounted: async function () {
console.log("进入trnrel交易");
const that = this; const that = this;
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);
// that.$refs.inftrnps.stmData.columns=res.data.trncorco_trnstm.rows // that.$refs.inftrnps.stmData.columns=res.data.trncorco_trnstm.rows
this.$refs.inftrnps.handleSearch(); this.$refs.inftrnps.handleSearch();
}); });
},
methods: {
},
computed: {
reload: function(){
return this.$store.state.Status.loading.freshReview;
}
},
watch:{
reload: function(val, oldVal){
if(val){
const that = this;
that.init(that.model).then((res) => {
//TODO 处理数据逻辑
that.model = Utils.copyValueFromVO(that.model, res.data);
// that.$refs.inftrnps.stmData.columns=res.data.trncorco_trnstm.rows
this.$refs.inftrnps.handleSearch();
//刷新页面后重置刷新状态为不刷新
this.$store.commit("setLoadingFreshReview", false)
});
}
},
}, },
}; };
</script> </script>
......
...@@ -91,7 +91,9 @@ export default { ...@@ -91,7 +91,9 @@ export default {
name: "TaskList", name: "TaskList",
created() {}, created() {},
methods: { methods: {
tabClick(tab) {}, tabClick(tab) {
this.$store.commit("setTaskListTabVal", tab.name)
},
}, },
components: { components: {
"t-sptsel": Sptsel, "t-sptsel": Sptsel,
......
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