mo 3 роки тому
батько
коміт
84cf3d27fc

+ 2 - 1
src/views/couponManager/couponUpdate.vue

@@ -144,7 +144,7 @@
                   style="font-size: 18px; color: #f56c6c"
                 ></i> </el-tooltip
             ></span>
-            <el-input v-model="form.deadline" placeholder="请输入有效期天数">
+            <el-input v-model="form.deadline" placeholder="请输入有效期天数" :disabled="isDisabled">
               <template slot="append">天</template>
             </el-input>
           </el-form-item>
@@ -172,6 +172,7 @@
               range-separator="-"
               start-placeholder="活动开始日期"
               end-placeholder="活动结束日期"
+              :disabled="isDisabled"
             >
             </el-date-picker>
           </el-form-item>

+ 3 - 0
src/views/main/baseinfo/curriculum.vue

@@ -243,6 +243,9 @@ export default {
       },
     },
   },
+  mounted(){
+     this.$refs.searchHeader.initStatue('month');
+  },
   methods: {
     changeValue(date) {
       // 请求更改数据

+ 1 - 1
src/views/main/baseinfo/management.vue

@@ -365,7 +365,7 @@ export default {
   },
   methods: {
     init() {
-      this.$refs.searchHeader.initStatue();
+      this.$refs.searchHeader.initStatue('month');
       this.mdate = this.getInitDate();
       this.endDate = this.$helpers.dayjs(new Date()).format("YYYY-MM-DD");
       // this.$refs.searchHeader.initStatue()

+ 7 - 2
src/views/main/baseinfo/modals/searchHeader.vue

@@ -143,8 +143,13 @@ export default {
         },
       };
     },
-    initStatue() {
-      this.timer = "";
+    initStatue(val) {
+      if(val){
+        this.timer = val;
+      }else{
+         this.timer = "";
+      }
+
     },
   },
 };

+ 3 - 0
src/views/main/baseinfo/student.vue

@@ -224,6 +224,9 @@ export default {
       loading: false,
     };
   },
+    mounted(){
+     this.$refs.searchHeader.initStatue('month');
+  },
   methods: {
     changeValue(date) {
       // 请求更改数据

+ 2 - 0
vue.config.js

@@ -54,7 +54,9 @@ module.exports = {
     //   warnings: false,
     //   errors: true
     // },
+    host: '127.0.0.1',
     https: true,
+
     proxy: {
       // change xxx-api/login => mock/login
       // detail: https://cli.vuejs.org/config/#devserver-proxy