Commit 100f82c6 by chenyu

update: 列表展示字段

parent 945f4c0c
......@@ -468,7 +468,6 @@ export default {
.then(res => {
that.total = res.data.result.page.totalCount;
that.tagDetailList = res.data.result.page.result;
let defaultFieldsArr = res.data.result.fieldsStr.split(',');
if (list) {
list.forEach(function(ele, index) {
if (ele.code==='name') {
......@@ -476,7 +475,7 @@ export default {
ele.disabled=true;
that.selectedUserDefined.push(ele.code);
that.selectedFields.push(ele);
}else if (!!ele.check || defaultFieldsArr.indexOf(ele.code) > -1) {
}else if (!!ele.check) {
that.selectedUserDefined.push(ele.code);
that.selectedFields.push(ele);
}
......
......@@ -559,10 +559,14 @@ export default {
.then(res => {
that.total = res.data.result.page.totalCount;
that.memberGroupDetailData = res.data.result.page.result;
let defaultFieldsArr = res.data.result.fieldsStr.split(',');
if (list) {
list.forEach(function(ele, index) {
if (!!ele.check || defaultFieldsArr.indexOf(ele.code) > -1) {
if (ele.code==='name') {
ele.check = true;
ele.disabled=true;
that.selectedUserDefined.push(ele.code);
that.selectedFields.push(ele);
}else if (!!ele.check) {
that.selectedUserDefined.push(ele.code);
that.selectedFields.push(ele);
}
......
......@@ -563,10 +563,14 @@ export default {
.then(res => {
that.total = res.data.result.page.totalCount;
that.memberGroupDetailData = res.data.result.page.result;
let defaultFieldsArr = res.data.result.fieldsStr.split(',');
if (list) {
list.forEach(function(ele, index) {
if (!!ele.check || defaultFieldsArr.indexOf(ele.code) > -1) {
if (ele.code==='name') {
ele.check = true;
ele.disabled=true;
that.selectedUserDefined.push(ele.code);
that.selectedFields.push(ele);
}else if (!!ele.check) {
that.selectedUserDefined.push(ele.code);
that.selectedFields.push(ele);
}
......
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