!334 食谱制作页面,添加左侧显示用户信息功能

Merge pull request !334 from 德仔/develop
This commit is contained in:
德仔 2021-07-31 03:47:43 +00:00 committed by Gitee
commit 7a166a22fe

View File

@ -19,31 +19,53 @@
@onClick="handleOnClick" @onClick="handleOnClick"
/> />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="客户信息" name="2" v-if="!temId">
<div class="content">
<HealthyView
dev
showRemark
:data="healthyDataType === 0 ? healthyData : {}"
v-show="healthyDataType === 0"
/>
<BodySignView
dev
showRemark
:data="healthyDataType === 1 ? healthyData : {}"
v-show="healthyDataType === 1"
/>
</div>
</el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
</template> </template>
<script> <script>
import VueScrollTo from "vue-scrollto"; import VueScrollTo from "vue-scrollto";
import { createNamespacedHelpers } from "vuex"; import { createNamespacedHelpers } from "vuex";
const { import HealthyView from "@/components/HealthyView";
mapActions, import BodySignView from "@/components/BodySignView";
mapState, const { mapActions, mapState, mapGetters, mapMutations } =
mapGetters, createNamespacedHelpers("recipes");
mapMutations,
} = createNamespacedHelpers("recipes");
import IngredientSearchCom from "./IngredientSearchCom"; import IngredientSearchCom from "./IngredientSearchCom";
import PhysicalSignCom from "./PhysicalSignCom"; import PhysicalSignCom from "./PhysicalSignCom";
export default { export default {
name: "VerifyView", name: "VerifyView",
data() { data() {
const { temId } = this.$route.query;
return { return {
temId,
activeName: "0", activeName: "0",
selectedIgd: 0, selectedIgd: 0,
}; };
}, },
components: { IngredientSearchCom, PhysicalSignCom }, components: {
HealthyView,
BodySignView,
IngredientSearchCom,
PhysicalSignCom,
},
computed: { computed: {
...mapGetters(["verifyNotRecData"]), ...mapGetters(["verifyNotRecData"]),
...mapState(["healthyDataType", "healthyData"]),
}, },
methods: { methods: {
handleOnTabClick(tab) { handleOnTabClick(tab) {