@@ -285,20 +285,22 @@ export default {
this.inforlist = [[], [], [], [], [], [], [], [], [], []]
res.data.tableInfo.tableFieldInfos.map((item) => {
- if (item.groupIndex) {
- this.inforlist[item.groupIndex - 1].push(item)
- }
+ this.inforlist[item.groupIndex].push(item)
if (item.dictionaryCode) {
this.dictList.push(item.dictionaryCode)
- }
- if (item.fieldDataType == 5) {
- // item.fieldValue = item.fieldValue.split(',')
- }
- })
- this.$dict.load(this.dictList).then(() => {
- // this.pageShow = true
+ this.$dict.load(this.dictList)
+ }
+
+ if (item.fieldDataType == 5) {
+ item.fieldValue = item.fieldValue && item.fieldValue.split(',')
+ }
+
+ if (item.fieldDataType == 9) {
+ console.log(item.dictionaryCode)
+ console.log(this.$dict.getDict(item.dictionaryCode, item.fieldValue))
+ }
})
}
}