提交 2ebb26e4 authored 作者: 王鹏飞's avatar 王鹏飞

feat:毕业典礼优化

上级 f075eb12
......@@ -5,7 +5,7 @@
<el-button type="text" @click="goBack">返回列表</el-button>
<div class="main-form">
<el-form label-width="100px" ref="ruleForm" :model="ruleForm" :rules="rules">
<el-form-item label="本人参与方式" prop="product_id">
<!-- <el-form-item label="本人参与方式" prop="product_id">
<el-radio-group v-model="ruleForm.product_id" size="small">
<el-radio border :label="item.id" v-for="item in selfProductList" :key="item.id">
{{ item.name }}
......@@ -22,7 +22,7 @@
</ol>
</div>
</el-popover>
</el-form-item>
</el-form-item> -->
<template v-if="ruleForm.product_id">
<el-form-item label="姓名" prop="personal_name">
<el-input v-model="ruleForm.personal_name" />
......@@ -33,9 +33,9 @@
<el-form-item label="班级" prop="class_name">
<el-input v-model="ruleForm.class_name" />
</el-form-item>
<el-form-item label="邮寄地址" prop="address">
<!-- <el-form-item label="邮寄地址" prop="address">
<el-input type="textarea" v-model="ruleForm.address" />
</el-form-item>
</el-form-item> -->
</template>
<el-form-item label="添加随同" prop="has_children">
<el-radio-group v-model="ruleForm.has_children" size="small">
......@@ -63,9 +63,7 @@
<i class="el-icon-question" slot="reference"></i>
<div>
<ol>
<li v-for="item in otherProductList" :key="item.id">
{{ item.name }}{{ item.desc }} {{ item.price / 100 }}
</li>
<li v-for="item in otherProductList" :key="item.id">{{ item.name }}{{ item.desc }}</li>
</ol>
</div>
</el-popover>
......@@ -146,10 +144,10 @@ export default {
return this.$route.query.id
},
selfProductList() {
return this.productList.filter((item, index) => index < 3)
return this.productList.slice(0, this.productList.length - 1)
},
otherProductList() {
return this.productList.filter((item, index) => index >= 3)
return this.productList.slice(this.productList.length - 1)
},
disabled() {
return (!this.ruleForm.product_id && !this.ruleForm.has_children) || this.submitDisabled
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论