Commit 4c01d355 authored by 李俊赕's avatar 李俊赕

安装mock

parent ee717a6a
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
"less": "^3.0.4", "less": "^3.0.4",
"less-loader": "^5.0.0", "less-loader": "^5.0.0",
"lint-staged": "^9.5.0", "lint-staged": "^9.5.0",
"mock": "^0.1.1",
"vue-cli-plugin-element": "~1.0.1", "vue-cli-plugin-element": "~1.0.1",
"vue-template-compiler": "^2.6.11" "vue-template-compiler": "^2.6.11"
}, },
......
...@@ -178,13 +178,12 @@ export default { ...@@ -178,13 +178,12 @@ export default {
}) })
this.fieldNameArr = fieldNameArr this.fieldNameArr = fieldNameArr
formatlist.map(item => { formatlist.map(item => {
let idx = fieldNameArr.indexOf(item.fieldName) const idx = fieldNameArr.indexOf(item.fieldName)
if (item.otherField && item.otherField.length > 0) { if (item.otherField && item.otherField.length > 0) {
item.otherField.map(otherItem=>{ item.otherField.map(otherItem => {
const idx1 = fieldNameArr.indexOf(otherItem.fieldName) const idx1 = fieldNameArr.indexOf(otherItem.fieldName)
if (idx1 >= 0) { if (idx1 >= 0) {
item.value = dataList[idx1].value item.value = dataList[idx1].value
break
} }
}) })
} }
......
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