|
@@ -386,28 +386,28 @@ export default class spaceIndex extends Vue {
|
|
|
if (item.outline) {
|
|
|
delete item.outline;
|
|
|
}
|
|
|
- this.all.forEach(i => {
|
|
|
- const category = ['ENUM', 'MENUM', 'BOOLEAN']
|
|
|
- if (i.category == 'STATIC' && category.includes(i.dataType) && i.dataSource) {
|
|
|
- let inx = i.path.substr(i.path.indexOf('.') + 1)
|
|
|
- for (let l in item) {
|
|
|
- if (l == inx) {
|
|
|
- if (i.dataSource) {
|
|
|
- item[l] = i.dataSource.filter(i => item[l].includes(i.code)).map(item => item.name).join(',')
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- if (i.category == 'STATIC' && i.dataType == 'ATTACHMENT') {
|
|
|
- let inx = i.path.substr(i.path.indexOf('.') + 1)
|
|
|
- for (let l in item) {
|
|
|
- if (l == inx) {
|
|
|
- item['sign/' + inx] = item[l]
|
|
|
- item[l] = item[l].length
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
+ // this.all.forEach(i => {
|
|
|
+ // const category = ['ENUM', 'MENUM', 'BOOLEAN']
|
|
|
+ // if (i.category == 'STATIC' && category.includes(i.dataType) && i.dataSource) {
|
|
|
+ // let inx = i.path.substr(i.path.indexOf('.') + 1)
|
|
|
+ // for (let l in item) {
|
|
|
+ // if (l == inx) {
|
|
|
+ // if (i.dataSource) {
|
|
|
+ // item[l] = i.dataSource.filter(i => item[l].includes(i.code)).map(item => item.name).join(',')
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // if (i.category == 'STATIC' && i.dataType == 'ATTACHMENT') {
|
|
|
+ // let inx = i.path.substr(i.path.indexOf('.') + 1)
|
|
|
+ // for (let l in item) {
|
|
|
+ // if (l == inx) {
|
|
|
+ // item['sign/' + inx] = item[l]
|
|
|
+ // item[l] = item[l].length
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // })
|
|
|
|
|
|
// item = {
|
|
|
// ...item,
|
|
@@ -557,34 +557,34 @@ export default class spaceIndex extends Vue {
|
|
|
// 编辑当前行
|
|
|
handleCurrentEdit(val) {
|
|
|
// this.tableData.map(item => {
|
|
|
- this.all.forEach(i => {
|
|
|
- const category = ['ENUM', 'MENUM', 'BOOLEAN']
|
|
|
- if (i.category == 'STATIC' && category.includes(i.dataType) && i.dataSource) {
|
|
|
- let inx = i.path.substr(i.path.indexOf('.') + 1)
|
|
|
- // for (let l in item) {
|
|
|
- // if (l == inx) {
|
|
|
- // if (i.dataSource) {
|
|
|
- // item[l] = i.dataSource.filter(i => item[l].includes(i.name)).map(item => item.code).join(',')
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
- for (let l in val) {
|
|
|
- if (l == inx) {
|
|
|
- if (i.dataSource) {
|
|
|
- val[l] = i.dataSource.filter(i => val[l].includes(i.name)).map(item => item.code).join(',')
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- if (i.category == 'STATIC' && i.dataType == 'ATTACHMENT') {
|
|
|
- let inx = i.path.substr(i.path.indexOf('.') + 1)
|
|
|
- // for (let l in item) {
|
|
|
- // if (l == inx) {
|
|
|
- // item[l] = item['sign/' + inx]
|
|
|
- // }
|
|
|
- // }
|
|
|
- }
|
|
|
- })
|
|
|
+ // this.all.forEach(i => {
|
|
|
+ // const category = ['ENUM', 'MENUM', 'BOOLEAN']
|
|
|
+ // if (i.category == 'STATIC' && category.includes(i.dataType) && i.dataSource) {
|
|
|
+ // let inx = i.path.substr(i.path.indexOf('.') + 1)
|
|
|
+ // for (let l in item) {
|
|
|
+ // if (l == inx) {
|
|
|
+ // if (i.dataSource) {
|
|
|
+ // item[l] = i.dataSource.filter(i => item[l].includes(i.name)).map(item => item.code).join(',')
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // for (let l in val) {
|
|
|
+ // if (l == inx) {
|
|
|
+ // if (i.dataSource) {
|
|
|
+ // val[l] = i.dataSource.filter(i => val[l].includes(i.name)).map(item => item.code).join(',')
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // if (i.category == 'STATIC' && i.dataType == 'ATTACHMENT') {
|
|
|
+ // let inx = i.path.substr(i.path.indexOf('.') + 1)
|
|
|
+ // for (let l in item) {
|
|
|
+ // if (l == inx) {
|
|
|
+ // item[l] = item['sign/' + inx]
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // })
|
|
|
// })
|
|
|
this.currRowContent = val
|
|
|
console.log(val)
|