Selaa lähdekoodia

wanda-adm:feat > 修改

shaun-sheep 4 vuotta sitten
vanhempi
commit
ffd1e5fafe

+ 1 - 2
src/router/index.ts

@@ -165,7 +165,6 @@ export default new Router({
                 }
             ]
         },
-
         {
             path: "/scene",
             component: Layout,
@@ -223,7 +222,7 @@ export default new Router({
             meta: {
                 title: "综合管理与其他",
                 icon: "icon-zongheguanliyuqita"
-            }
+            },
         },
         {
             path: "/error",

+ 50 - 50
src/views/maintain/space/index.vue

@@ -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)

+ 13 - 0
src/views/management/mappingRelation/index.vue

@@ -0,0 +1,13 @@
+<template>
+    <div>映射关系维护</div>
+</template>
+
+<script>
+export default {
+    name: 'index'
+}
+</script>
+
+<style scoped>
+
+</style>