1
lzhe
2024-06-19 fdb97cca1f302db3fe07cc700130a085d991d682
1
已添加1个文件
已修改4个文件
75 ■■■■ 文件已修改
src/config/route.js 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/layout/index.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/login/components/passwordForm.vue 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mdc/time-analysis.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/myiframe/urlPath.vue 43 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/config/route.js
@@ -2,7 +2,7 @@
 * @Author: lzhe lzhe@example.com
 * @Date: 2024-05-24 11:25:26
 * @LastEditors: lzhe lzhe@example.com
 * @LastEditTime: 2024-05-29 16:16:57
 * @LastEditTime: 2024-06-19 21:52:58
 * @FilePath: /src/config/route.js
 * @Description: è¿™æ˜¯é»˜è®¤è®¾ç½®,请设置`customMade`, æ‰“å¼€koroFileHeader查看配置 è¿›è¡Œè®¾ç½®: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
@@ -88,6 +88,17 @@
            type: 'menu',
            hidden: true
        }
    },
    {
        name: "任务调度",
        path: "/myiframe/urlPath",
        component: "myiframe/urlPath",
        meta: {
            icon: "el-icon-menu",
            title: "任务调度",
            type: 'menu',
            hidden: true
        }
    }
]
src/layout/index.vue
@@ -284,13 +284,13 @@
                // å¦‚果没有找到匹配的path,返回null  
                return null;  
            },
            handleSelect(key, keyPath) {
            handleSelect(key, keyPath,index,routeResult) {
                var MENU = this.$TOOL.data.get("MENU");
                var foundRoute = this.findRouteByPath(MENU, key);
                //http://116.63.148.72:8080/xxl-job-admin
                var TOKEN = this.$TOOL.cookie.get("TOKEN");
                if(key == '/i/任务调度') {
                    window.open("http://116.63.148.72:8080/xxl-job-admin");
                if(key == "/myiframe/urlPath") {  //任务调度
                    this.$router.push({path: '/myiframe/urlPath',query:{name: foundRoute.name,src:foundRoute.origin}});
                    return;
                }
                if(foundRoute.name != "数字看板") {
src/views/login/components/passwordForm.vue
@@ -114,16 +114,14 @@
                            // å¦‚果没有 children å±žæ€§ï¼Œè¯´æ˜Žæ˜¯æœ€åŽä¸€çº§ï¼Œæ·»åŠ  component å¯¹è±¡  
                            var len = clonedItem.path.length;
                            if (item.name == "任务调度") {
                                //clonedItem.component = clonedItem.path;   //有component不可以使用iframe
                                clonedItem.origin = item.path;
                                clonedItem.component = "myiframe/urlPath";   //有component不可以使用iframe
                                clonedItem.path = "/myiframe/urlPath";
                            } else {
                                clonedItem.component = clonedItem.path.substring(1, len);
                            }
                        }
                        if (item.name == "任务调度") {
                            clonedItem.meta = { title: clonedItem.name, icon: "el-icon-takeaway-box", type: "iframe" }
                        } else {
                            clonedItem.meta = { title: clonedItem.name, icon: "el-icon-takeaway-box", type: "menu" }
                        }
                        clonedItem.meta = { title: clonedItem.name, icon: "el-icon-takeaway-box", type: "menu" }
                        return clonedItem;
                    });
                }
src/views/mdc/time-analysis.vue
@@ -2,7 +2,7 @@
 * @Author: lzhe lzhe@example.com
 * @Date: 2024-04-26 09:36:18
 * @LastEditors: lzhe lzhe@example.com
 * @LastEditTime: 2024-06-18 17:46:40
 * @LastEditTime: 2024-06-19 22:40:07
 * @FilePath: /smart-web/src/views/mdc/status-record.vue
 * @Description: è¿™æ˜¯é»˜è®¤è®¾ç½®,请设置`customMade`, æ‰“å¼€koroFileHeader查看配置 è¿›è¡Œè®¾ç½®: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
@@ -298,6 +298,7 @@
                            if(value <= 1) {
                                value = value * 100;
                            }
                            console.log(value)
                            return value + "%";
                        }
                    },
src/views/myiframe/urlPath.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,43 @@
<!--
 * @Author: lzhe lzhe@example.com
 * @Date: 2024-03-26 10:28:33
 * @LastEditors: lzhe lzhe@example.com
 * @LastEditTime: 2024-06-19 22:35:33
 * @FilePath: /smart-web/src/views/master/person/main/index.vue
 * @Description: è¿™æ˜¯é»˜è®¤è®¾ç½®,请设置`customMade`, æ‰“å¼€koroFileHeader查看配置 è¿›è¡Œè®¾ç½®: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
    <div class="frame-main">
        <iframe :src="urlPath" frameborder="0" style="width: 100%;min-height: 500px"></iframe>
    </div>
</template>
<script>
    export default {
        name: "urlpath",
        data(){
            return {
                urlPath: ""
            }
        },
        created(){
        },
        mounted(){
            this.urlPath = `${this.$route.query.src}`;
        },
        components: {
        },
        methods: {
        }
    }
</script>
<style scoped>
    .frame-main {
        background-color: #fff;
        margin: 8px;
        padding: 8px;
    }
</style>