소스 검색

优惠券类型和问卷暂时管理问卷预览功能

1
mo 3 년 전
부모
커밋
1a5025d4e4
3개의 변경된 파일9개의 추가작업 그리고 6개의 파일을 삭제
  1. 6 3
      src/views/couponManager/couponUpdate.vue
  2. 2 2
      src/views/couponManager/index.vue
  3. 1 1
      src/views/setQuestions/operation.vue

+ 6 - 3
src/views/couponManager/couponUpdate.vue

@@ -39,7 +39,7 @@
         </el-col>
       </el-row>
       <el-row :gutter="20">
-        <el-col style="width: 395px">
+        <!-- <el-col style="width: 395px">
           <el-form-item
             label="优惠券类型"
             prop="type"
@@ -62,7 +62,7 @@
               ></el-option>
             </el-select>
           </el-form-item>
-        </el-col>
+        </el-col> -->
         <el-col style="width: 395px" v-if="form.type == 'FULL_REDUCTION'">
           <el-form-item
             label="面值"
@@ -264,7 +264,7 @@ export default {
       form: {
         name: "",
         description: "",
-        type: "",
+        type: "FULL_REDUCTION",
         faceValue: "",
         fullAmount: "",
         effectiveType: "",
@@ -283,6 +283,9 @@ export default {
     if (this.$route.query.row) {
       this.activeRow = JSON.parse(this.$route.query.row);
       this.form = { ...this.activeRow };
+      // 优惠券只能时满减
+      this.form.type = 'FULL_REDUCTION'
+
       let effectiveStartTime = this.activeRow.effectiveStartTime;
       let effectiveExpireTime = this.activeRow.effectiveExpireTime;
       let startDate = this.activeRow.startDate;

+ 2 - 2
src/views/couponManager/index.vue

@@ -21,7 +21,7 @@
             placeholder="优惠券名称、编号"
           ></el-input>
         </el-form-item>
-        <el-form-item prop="type">
+        <!-- <el-form-item prop="type">
           <el-select
             placeholder="优惠券类型"
             v-model.trim="searchForm.type"
@@ -35,7 +35,7 @@
               :label="item.label"
             ></el-option>
           </el-select>
-        </el-form-item>
+        </el-form-item> -->
         <el-form-item prop="status">
           <el-select
             placeholder="优惠券状态"

+ 1 - 1
src/views/setQuestions/operation.vue

@@ -72,7 +72,7 @@
         </el-row>
         <el-button type="primary" :disabled="disabled" @click="onSubmit">{{ type == 'create' ? '生成问卷' : '修改问卷' }}</el-button>
         <el-button @click="onReset" :disabled="disabled">重置</el-button>
-        <el-button @click="onPreview">预览</el-button>
+        <!-- <el-button @click="onPreview">预览</el-button> -->
 
         <el-dialog title="问卷题目"
                :close-on-click-modal="false"