Commit cbb76217 by 李伟康

```

fix(equity): 修复股权工具创建页面日期选择逻辑

- 修正未来日历组件的startDate属性,从endDate改为startDate
- 添加startDate数据属性,默认为当前日期的下一天
- 注释掉viewKey的更新逻辑,避免不必要的组件重渲染
```
1 parent eca5b1a6
......@@ -84,7 +84,7 @@
ref="futureCalendar"
:insert="false"
:clearDate="false"
:startDate="endDate"
:startDate="startDate"
@confirm="confirmCalendar($event,'effectiveDate')"
:date="orderObj.effectiveDate"
showBottomBtn
......@@ -173,6 +173,7 @@ export default {
formList: utils.deepClone(EQUITY_FORM_LIST),
titleList: utils.deepClone(EQUITY_FORM_TITLE_LIST),
endDate: dayjs().format('YYYY-MM-DD'),
startDate: dayjs().add(1, 'day').format('YYYY-MM-DD'),
equityFormRule: utils.deepClone(EQUITY_FORM_RULE),
orderObj: {},
loadComplete: false,
......@@ -232,7 +233,7 @@ export default {
if (i.value == val.value) i.current = e.detail.value
})
})
this.viewKey = Date.now()
// this.viewKey = Date.now()
},
handleCell (val) {
if (['calendar', 'futureCalendar'].includes(val.key)) return this.$refs[val.key]?.open()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!