hookehuyr

fix

<!--
* @Date: 2022-07-18 10:22:22
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-02-01 11:22:51
* @LastEditTime: 2023-02-01 18:20:34
* @FilePath: /data-table/src/views/index.vue
* @Description: 首页
-->
......@@ -402,25 +402,6 @@ const validOther = () => {
const preValidData = (values) => {
// 过滤掉标识为 ignore,undefined 的字段数据
let { ignore, undefined, ...rest_data } = values;
// TAG: 处理其他补充消息输入框内容
// for (const key in rest_data) {
// if (key.includes('#')) { // #号为自定义标识
// const [input_key, input_value] = key.split('#'); // 原始key值标记
// if (typeof rest_data[input_key] === 'object') { // 多选框值为数组
// rest_data[input_key].forEach((element, index)=> {
// if (element === input_value) { // 标签名等于选择的值
// // rest_data[input_key][index] = rest_data[key] ? rest_data[key] : input_value;
// rest_data[input_key][index] = rest_data[key];
// }
// });
// } else { // 单选框值为字符串
// if (rest_data[input_key] === input_value) { // 标签名等于选择的值
// rest_data[input_key] = rest_data[key] ? rest_data[key] : input_value;
// }
// }
// }
// }
// console.warn(postData.value);
// 合并自定义字段到提交表单字段
return _.assign(postData.value, rest_data);
}
......