#
Junjie
2024-01-10 0abbc58f9cb4811ea77d68abdf46c9dd8b370ff8
zy-asrs-openapi/src/main/webapp/views/index.html
@@ -13,9 +13,31 @@
</head>
<body>
    <div id="app">
        <div id="content"></div>
        <div id="content">
            <div class="content-header">
                <div><img src="../static/images/zy-logo.png" class="header-logo"></div>
                <h1>API开放平台v1.0</h1>
            </div>
            <div class="content-body">
                <div>
                    <div>
                        <img src="../static/images/generateOrderPakIn.png" style="width: 640px;height: 740px;">
                    </div>
                    <div class="content-desc">生成入库订单</div>
                </div>
                <div>
                    <img src="../static/images/generateOrderPakOut.png" style="width: 640px;height: 740px;">
                    <div class="content-desc">生成出库订单</div>
                </div>
                <div>
                    <img src="../static/images/createMat.png" style="width: 640px;height: 740px;">
                    <div class="content-desc">添加物料</div>
                </div>
            </div>
        </div>
        <div class="slider">
            <div><el-button type="text" @click="switchPage('index.html')">规范说明</el-button></div>
            <div><el-button type="text" @click="switchPage('index.html')">简介</el-button></div>
            <div><el-button type="text" @click="switchPage('default.html')">规范说明</el-button></div>
            <el-divider></el-divider>
            <div><el-button type="text" @click="switchPage('reportCompleted.html')">订单完成上报</el-button></div>
            <div><el-button type="text" @click="switchPage('reportCancel.html')">订单取消上报</el-button></div>
@@ -64,6 +86,7 @@
                keyTableVisible: false,
                keyTableData: [],
                loading: true,
                activeIndex: '1'
            },
            created() {
                this.init()
@@ -73,16 +96,16 @@
                    this.introduceClick()
                },
                introduceClick() {
                    $.ajax({
                        url: "md/introduce.md",
                        headers: {'token': localStorage.getItem('token')},
                        method: 'GET',
                        success: function (res) {
                            // $("#content").html(marked.parse(res))
                            // console.log(converter.makeHtml(res))
                            $("#content").html(converter.makeHtml(res))
                        }
                    });
                    // $.ajax({
                    //     url: "md/introduce.md",
                    //     headers: {'token': localStorage.getItem('token')},
                    //     method: 'GET',
                    //     success: function (res) {
                    //         // $("#content").html(marked.parse(res))
                    //         // console.log(converter.makeHtml(res))
                    //         $("#content").html(converter.makeHtml(res))
                    //     }
                    // });
                },
                keyList() {
                    let that = this
@@ -215,7 +238,7 @@
                },
                switchPage(url) {
                    location.href = url
                },
                }
            }
        })
    </script>