Showing
1 changed file
with
18 additions
and
6 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-07-18 10:22:22 | 2 | * @Date: 2022-07-18 10:22:22 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2025-02-13 14:31:19 | 4 | + * @LastEditTime: 2025-02-13 16:28:32 |
| 5 | * @FilePath: /data-table/src/views/index.vue | 5 | * @FilePath: /data-table/src/views/index.vue |
| 6 | * @Description: 首页 | 6 | * @Description: 首页 |
| 7 | --> | 7 | --> |
| ... | @@ -604,11 +604,23 @@ onMounted(async () => { | ... | @@ -604,11 +604,23 @@ onMounted(async () => { |
| 604 | }); | 604 | }); |
| 605 | 605 | ||
| 606 | // 自定义失焦操作 | 606 | // 自定义失焦操作 |
| 607 | -const onBlur = (item) => { | 607 | +// const onBlur = async (item) => { |
| 608 | - // TODO: 之后新增判断逻辑 | 608 | +// console.warn(item); |
| 609 | - // TODO:数据变化获取后台数据填充 | 609 | +// // const history_data = await queryFormDataAPI({ form_code: $route.query.code, data_id, openid: iframe_openid, force_back, page_type }); |
| 610 | - console.warn(item); | 610 | +// // if (history_data.code) { |
| 611 | -} | 611 | +// // // 结构优化一下 |
| 612 | +// // let object = history_data.data; | ||
| 613 | +// // 如果字段有数据了 object里面的字段需要删掉 | ||
| 614 | +// // delete historyData.value[item.key]; | ||
| 615 | +// // const objectMap = new Map(Object.entries(object)); // 将 object 转换为 Map,Object.entries() 方法用于返回一个给定对象自身可枚举属性的键值对数组,数组中的每个元素是一个包含键值对的数组,[ ["name", "Alice"], ["age", 30], ["city", "New York"] ] | ||
| 616 | +// // formData.value.forEach((item) => { | ||
| 617 | +// // if (objectMap.has(item.key)) { | ||
| 618 | +// // item.component_props.default = objectMap.get(item.key); | ||
| 619 | +// // } | ||
| 620 | +// // }); | ||
| 621 | +// // historyData.value = history_data.data; // 历史表单字段数据 | ||
| 622 | +// // } | ||
| 623 | +// } | ||
| 612 | 624 | ||
| 613 | // 打开轮询用户是否关注 | 625 | // 打开轮询用户是否关注 |
| 614 | const onTap = () => { | 626 | const onTap = () => { | ... | ... |
-
Please register or login to post a comment