代码调整

This commit is contained in:
joylink_cuiweidong 2020-04-10 16:00:38 +08:00
parent 4be8b2dd87
commit e3f5d5210b

View File

@ -264,6 +264,7 @@ export default {
this.placeholderMap = {};
getPlaceholderList({ trainingType: '' }).then(res => {
debugger;
res.data.forEach(item => {
if (!this.placeholderMap[item.trainingType]) {
this.placeholderMap[item.trainingType] = [];
@ -277,7 +278,7 @@ export default {
repliceName(fieldValue, enumList) {
if (enumList && enumList.length > 0) {
for (let i = 0; i < enumList.length; i++) {
if (fieldValue.includes(`{${enumList[i].id}}`)) {
if (fieldValue.includes(`{${enumList[i].code}}`)) {
fieldValue = fieldValue.replace(
`{${enumList[i].code}}`,
`{${enumList[i].name}}`