Commit 97404117 by liuchenxi

update: 修改表格字段回显问题

parent ef6fa367
......@@ -328,14 +328,22 @@ export default {
});
},
submitMemberFields(v) {
const check = v.split(",");
const sortFieds = this.memberFields.reduce((res, cur) => {
if (check.includes(cur.code)) {
res.push(cur.code);
}
return res;
}, []);
doFetch(url.updateFields, {
pageName: this.pageName,
fields: v
fields: sortFieds.toString()
})
.then(res => {
if (res.data.errorCode === 0) {
checkSuccess();
this.checkedFields = v.split(",");
// 需要对选中字段排序
this.checkedFields = sortFieds;
this.getAjaxMembers();
} else {
checkFalse(res.data.message);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment