Commit 191a98d7 by 吴佳

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

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