--no commit message
Showing
2 changed files
with
13 additions
and
2 deletions
... | @@ -11,6 +11,7 @@ | ... | @@ -11,6 +11,7 @@ |
11 | </template> | 11 | </template> |
12 | <script> | 12 | <script> |
13 | import { deleteFlow } from "@/api/ywbl.js" | 13 | import { deleteFlow } from "@/api/ywbl.js" |
14 | import store from '@/store/index.js' | ||
14 | export default { | 15 | export default { |
15 | components: {}, | 16 | components: {}, |
16 | props: { | 17 | props: { |
... | @@ -52,8 +53,7 @@ | ... | @@ -52,8 +53,7 @@ |
52 | deleteFlow(formdata).then(res => { | 53 | deleteFlow(formdata).then(res => { |
53 | if (res.code == 200) { | 54 | if (res.code == 200) { |
54 | this.$popupCacel(); | 55 | this.$popupCacel(); |
55 | location.reload() | 56 | store.dispatch('user/refreshPage', true); |
56 | console.log("走i了"); | ||
57 | this.$message.success("删除成功"); | 57 | this.$message.success("删除成功"); |
58 | } else { | 58 | } else { |
59 | this.$message.error(res.message) | 59 | this.$message.error(res.message) | ... | ... |
... | @@ -11,6 +11,7 @@ import { | ... | @@ -11,6 +11,7 @@ import { |
11 | completeTask, | 11 | completeTask, |
12 | getNextLinkInfo, | 12 | getNextLinkInfo, |
13 | } from "@/api/fqsq.js"; | 13 | } from "@/api/fqsq.js"; |
14 | import { mapGetters } from 'vuex' | ||
14 | import { log } from "bpmn-js-token-simulation"; | 15 | import { log } from "bpmn-js-token-simulation"; |
15 | export default { | 16 | export default { |
16 | data () { | 17 | data () { |
... | @@ -29,6 +30,16 @@ export default { | ... | @@ -29,6 +30,16 @@ export default { |
29 | batchButtonName: '', | 30 | batchButtonName: '', |
30 | } | 31 | } |
31 | }, | 32 | }, |
33 | computed: { | ||
34 | ...mapGetters(['isRefresh']) | ||
35 | }, | ||
36 | watch: { | ||
37 | isRefresh: { | ||
38 | handler (newVal, oldVal) { | ||
39 | if (newVal) this.loadBdcdylist() | ||
40 | } | ||
41 | } | ||
42 | }, | ||
32 | mounted () { | 43 | mounted () { |
33 | this.flowInitParam(); | 44 | this.flowInitParam(); |
34 | this.loadBdcdylist(); | 45 | this.loadBdcdylist(); | ... | ... |
-
Please register or sign in to post a comment