Commit 45dabdc3 by 李伟康

commit 提交

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