Kaynağa Gözat

fix:修改重点项目只能填写本月投资金额

yangjunhao 1 yıl önce
ebeveyn
işleme
dadf7c2c9b
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 3 3
      src/views/ARTICLE/enterData.vue

+ 3 - 3
src/views/ARTICLE/enterData.vue

@@ -3,7 +3,7 @@
     <div class="cmain">
       <el-form ref="form" :model="form" :rules="rules" label-width="120px">
         <el-form-item label="日期" prop="month">
-          <el-date-picker v-model="form.month" type="month" placeholder="选择日期" value-format="yyyy-MM">
+          <el-date-picker v-model="form.month" type="month" placeholder="选择日期" value-format="yyyy-MM" disabled>
           </el-date-picker>
         </el-form-item>
 
@@ -60,7 +60,7 @@ export default {
       form: {
         articleId: this.param.param.id,
         deptId: this.param.deptId,
-        month: "",
+        month: new Date().toISOString().slice(0, 7),
         plan: this.param.param.plan,
         price: "",
         schedule: "",
@@ -95,4 +95,4 @@ export default {
 </script>
 
 <style>
-</style>
+</style>