Commit f1f2f297 authored by “yiyousong”'s avatar “yiyousong”

fix: 修复预约报表导出所有的时候获取不到姓名、手机、身份证的问题

parent 84fe8be5
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
></Details> ></Details>
</div> </div>
</template> </template>
<script> <script>
import { mapState } from "vuex"; import { mapState } from "vuex";
import storage from "@/utils/js/Storage"; import storage from "@/utils/js/Storage";
...@@ -346,10 +346,14 @@ export default { ...@@ -346,10 +346,14 @@ export default {
for (let item of data) { for (let item of data) {
item.status = this.statusItem[item.status]; item.status = this.statusItem[item.status];
} }
let newData = data.map((v) => {
v.people && delete v.people.id;
return { ...v, ...v.people };
});
export2Excel( export2Excel(
this.tHeader, this.tHeader,
this.filterVal, this.filterVal,
data, newData,
"预约记录报表" + this.$moment().format("YYYYMMDDHHmmss") "预约记录报表" + this.$moment().format("YYYYMMDDHHmmss")
); );
}); });
...@@ -394,6 +398,5 @@ export default { ...@@ -394,6 +398,5 @@ export default {
}, },
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped></style>
</style>
\ No newline at end of file
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