代码调整
This commit is contained in:
parent
4be8b2dd87
commit
e3f5d5210b
@ -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}}`
|
||||
|
Loading…
Reference in New Issue
Block a user