hookehuyr

fix

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: 2023-02-01 11:22:51 4 + * @LastEditTime: 2023-02-01 18:20:34
5 * @FilePath: /data-table/src/views/index.vue 5 * @FilePath: /data-table/src/views/index.vue
6 * @Description: 首页 6 * @Description: 首页
7 --> 7 -->
...@@ -402,25 +402,6 @@ const validOther = () => { ...@@ -402,25 +402,6 @@ const validOther = () => {
402 const preValidData = (values) => { 402 const preValidData = (values) => {
403 // 过滤掉标识为 ignore,undefined 的字段数据 403 // 过滤掉标识为 ignore,undefined 的字段数据
404 let { ignore, undefined, ...rest_data } = values; 404 let { ignore, undefined, ...rest_data } = values;
405 - // TAG: 处理其他补充消息输入框内容
406 - // for (const key in rest_data) {
407 - // if (key.includes('#')) { // #号为自定义标识
408 - // const [input_key, input_value] = key.split('#'); // 原始key值标记
409 - // if (typeof rest_data[input_key] === 'object') { // 多选框值为数组
410 - // rest_data[input_key].forEach((element, index)=> {
411 - // if (element === input_value) { // 标签名等于选择的值
412 - // // rest_data[input_key][index] = rest_data[key] ? rest_data[key] : input_value;
413 - // rest_data[input_key][index] = rest_data[key];
414 - // }
415 - // });
416 - // } else { // 单选框值为字符串
417 - // if (rest_data[input_key] === input_value) { // 标签名等于选择的值
418 - // rest_data[input_key] = rest_data[key] ? rest_data[key] : input_value;
419 - // }
420 - // }
421 - // }
422 - // }
423 - // console.warn(postData.value);
424 // 合并自定义字段到提交表单字段 405 // 合并自定义字段到提交表单字段
425 return _.assign(postData.value, rest_data); 406 return _.assign(postData.value, rest_data);
426 } 407 }
......