浏览代码

fix(forecast-form): 在编辑模式下禁用年份和月份选择

yz 2 周之前
父节点
当前提交
2ad4c6bd4f
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/components/forecast-form/index.vue

+ 2 - 0
src/components/forecast-form/index.vue

@@ -30,6 +30,7 @@
               value-format="yyyy"
               placeholder="请选择年份"
               style="width: 100%"
+              :disabled="isEdit"
             />
           </template>
 
@@ -40,6 +41,7 @@
               v-model="formData.month"
               placeholder="请选择月份"
               style="width: 100%"
+              :disabled="isEdit"
             >
               <el-option
                 v-for="opt in (column && column.dicData) ? column.dicData : []"