Commit 45dabdc3 by 李伟康

commit 提交

1 parent 1e41983f
...@@ -85,10 +85,10 @@ export default { ...@@ -85,10 +85,10 @@ export default {
default: "preview", default: "preview",
}, },
customerType: Number, customerType: Number,
historyId: Number
}, },
data () { data () {
return { return {
historyId: ''
}; };
}, },
computed: { computed: {
...@@ -101,11 +101,6 @@ export default { ...@@ -101,11 +101,6 @@ export default {
return this.$store.state.user.historyStatus; return this.$store.state.user.historyStatus;
}, },
}, },
watch: {
watchStatus () {
this.historyId = ''
}
},
mounted () { }, mounted () { },
methods: { methods: {
...mapMutations("audio", ["setReceptionStatus"]), ...mapMutations("audio", ["setReceptionStatus"]),
...@@ -132,7 +127,7 @@ export default { ...@@ -132,7 +127,7 @@ export default {
back () { back () {
if (this.historyId) { if (this.historyId) {
this.jumpPage({ id: this.historyId }) this.jumpPage({ id: this.historyId })
this.historyId = '' this.$emit('update:historyId', '')
return return
} }
this.$refs?.toolRef?.hide(); this.$refs?.toolRef?.hide();
...@@ -144,7 +139,7 @@ export default { ...@@ -144,7 +139,7 @@ export default {
this.$emit("done", e); this.$emit("done", e);
}, },
jumpPage ({ id, historyId }) { jumpPage ({ id, historyId }) {
if (historyId) this.historyId = historyId if (historyId) this.$emit('update:historyId', historyId)
this.$emit("update:id", Number(id)); this.$emit("update:id", Number(id));
}, },
/**回店客户 */ /**回店客户 */
......
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
ref="detail" ref="detail"
:customerType.sync="customerType" :customerType.sync="customerType"
@reception="reception" @reception="reception"
:historyId.sync="historyId"
/> />
</template> </template>
<template slot="content"> <template slot="content">
...@@ -71,7 +72,8 @@ export default { ...@@ -71,7 +72,8 @@ export default {
id: '', id: '',
type: '', type: '',
customerType: -1, customerType: -1,
recording: false recording: false,
historyId: ''
} }
}, },
onBackPress (options) { onBackPress (options) {
...@@ -157,6 +159,11 @@ export default { ...@@ -157,6 +159,11 @@ export default {
this.cancel() this.cancel()
}, },
back () { back () {
if (this.historyId) {
this.id = this.historyId
this.historyId = ''
return
}
if (!this.id) return uni.navigateBack(); if (!this.id) return uni.navigateBack();
if (this.type != "preview") return this.$refs.home.finishRef.open(); if (this.type != "preview") return this.$refs.home.finishRef.open();
this.backHome(); this.backHome();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!