Merge branch 'dev'
# Conflicts:
# src/views/engineering/index.vue
| | |
| | | <el-date-picker v-model="form.year " |
| | | placeholder="选择时间" |
| | | style="width: 100%" |
| | | type="date" |
| | | value-format="yyyy-MM-dd HH:mm:ss"/> |
| | | type="year" |
| | | value-format="yyyy" |
| | | :picker-options="pickerOptions"/> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | |
| | | this.getDeptList(); |
| | | }, |
| | | methods: { |
| | | pickerOptions: { |
| | | // 这里可以添加更多的picker选项,但为简化示例,只展示禁用其他日期的逻辑 |
| | | // 关键设置:显示年份选择器 |
| | | pickers: ['year'] |
| | | }, |
| | | isProject(id) { |
| | | const numericPattern = /^\d+(\.\d+)?$/; |
| | | return numericPattern.test(id) |