代码调整
This commit is contained in:
parent
4be8b2dd87
commit
e3f5d5210b
@ -264,6 +264,7 @@ export default {
|
|||||||
|
|
||||||
this.placeholderMap = {};
|
this.placeholderMap = {};
|
||||||
getPlaceholderList({ trainingType: '' }).then(res => {
|
getPlaceholderList({ trainingType: '' }).then(res => {
|
||||||
|
debugger;
|
||||||
res.data.forEach(item => {
|
res.data.forEach(item => {
|
||||||
if (!this.placeholderMap[item.trainingType]) {
|
if (!this.placeholderMap[item.trainingType]) {
|
||||||
this.placeholderMap[item.trainingType] = [];
|
this.placeholderMap[item.trainingType] = [];
|
||||||
@ -277,7 +278,7 @@ export default {
|
|||||||
repliceName(fieldValue, enumList) {
|
repliceName(fieldValue, enumList) {
|
||||||
if (enumList && enumList.length > 0) {
|
if (enumList && enumList.length > 0) {
|
||||||
for (let i = 0; i < enumList.length; i++) {
|
for (let i = 0; i < enumList.length; i++) {
|
||||||
if (fieldValue.includes(`{${enumList[i].id}}`)) {
|
if (fieldValue.includes(`{${enumList[i].code}}`)) {
|
||||||
fieldValue = fieldValue.replace(
|
fieldValue = fieldValue.replace(
|
||||||
`{${enumList[i].code}}`,
|
`{${enumList[i].code}}`,
|
||||||
`{${enumList[i].name}}`
|
`{${enumList[i].name}}`
|
||||||
|
Loading…
Reference in New Issue
Block a user