Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2023-02-01 18:22:14 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
eeccec7dfaa1b1a890afb79309907f7a81f2bb05
eeccec7d
1 parent
15a307f1
fix
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
20 deletions
src/views/index.vue
src/views/index.vue
View file @
eeccec7
<!--
* @Date: 2022-07-18 10:22:22
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-02-01 1
1:22:51
* @LastEditTime: 2023-02-01 1
8: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);
}
...
...
Please
register
or
login
to post a comment