From c635d78b479510ebe2556a420948effcd30a0731 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期六, 21 十二月 2024 18:40:43 +0800
Subject: [PATCH] 新建德森项目分支

---
 zy-asrs-openapi/src/main/webapp/views/getOrderList.html |  446 +++++++++++++++++++++++++++---------------------------
 1 files changed, 223 insertions(+), 223 deletions(-)

diff --git a/zy-asrs-openapi/src/main/webapp/views/getOrderList.html b/zy-asrs-openapi/src/main/webapp/views/getOrderList.html
index 0f47d61..02423e4 100644
--- a/zy-asrs-openapi/src/main/webapp/views/getOrderList.html
+++ b/zy-asrs-openapi/src/main/webapp/views/getOrderList.html
@@ -1,224 +1,224 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-    <meta charset="UTF-8">
-    <title>API寮�鏀惧钩鍙� - 鑾峰彇璁㈠崟鍒楄〃</title>
-    <link rel="stylesheet" href="../static/css/element.css">
-    <link rel="stylesheet" href="../static/css/common.css">
-    <script type="text/javascript" src="../static/js/jquery/jquery-3.3.1.min.js"></script>
-    <script type="text/javascript" src="../static/js/vue.min.js"></script>
-    <script type="text/javascript" src="../static/js/showdown.min.js"></script>
-    <script type="text/javascript" src="../static/js/common.js"></script>
-    <script type="text/javascript" src="../static/js/element.js"></script>
-</head>
-<body>
-    <div id="app">
-        <div id="content"></div>
-        <div class="slider">
-            <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>
-            <div><el-button type="text" @click="switchPage('reportStock.html')">搴撳瓨涓婃姤</el-button></div>
-            <div><el-button type="text" @click="switchPage('reportApiManage.html')">涓婃姤API绠$悊</el-button></div>
-            <el-divider></el-divider>
-            <div><el-button type="text" @click="switchPage('getOrderType.html')">鑾峰彇璁㈠崟绫诲瀷</el-button></div>
-            <div><el-button type="text" @click="switchPage('getOrderStatus.html')">鑾峰彇璁㈠崟鐘舵�佸垪琛�</el-button></div>
-            <div><el-button type="text" @click="switchPage('getOrderList.html')">鑾峰彇璁㈠崟鍒楄〃</el-button></div>
-            <div><el-button type="text" @click="switchPage('generateOrderPakIn.html')">鐢熸垚鍏ュ簱璁㈠崟</el-button></div>
-            <div><el-button type="text" @click="switchPage('generateOrderPakOut.html')">鐢熸垚鍑哄簱璁㈠崟</el-button></div>
-            <div><el-button type="text" @click="switchPage('createMat.html')">娣诲姞鐗╂枡淇℃伅</el-button></div>
-            <el-divider></el-divider>
-            <div><el-button type="text" @click="keyList()">瀵嗛挜绠$悊</el-button></div>
-        </div>
-
-        <el-dialog title="瀵嗛挜绠$悊" :visible.sync="keyTableVisible">
-            <el-table :data="keyTableData" v-loading="loading">
-                <el-table-column property="hostId$" label="浠撳簱"></el-table-column>
-                <el-table-column property="signKey" label="绛惧悕瀵嗛挜" width="150"></el-table-column>
-                <el-table-column property="appKey" label="鎺ュ彛璇锋眰瀵嗛挜" width="250"></el-table-column>
-                <el-table-column property="createTime$" label="鏃堕棿" width="200"></el-table-column>
-                <el-table-column label="鎿嶄綔" width="400">
-                    <template slot-scope="scope">
-                        <el-button size="mini" @click="generateSignKey(scope.row.hostId)">绛惧悕瀵嗛挜</el-button>
-                        <el-button size="mini" @click="generateAppKey(scope.row.hostId)">鎺ュ彛瀵嗛挜</el-button>
-                        <el-switch
-                                v-model="scope.row.signStatus"
-                                @change="switchChange(scope.row.hostId,scope.row.signStatus)"
-                                active-text="寮�鍚鍚�"
-                                inactive-text="鍏抽棴绛惧悕">
-                        </el-switch>
-                    </template>
-                </el-table-column>
-            </el-table>
-        </el-dialog>
-    </div>
-
-    <script>
-        showdown.setOption('tables', true);
-        var converter = new showdown.Converter()
-
-        var app = new Vue({
-            el: '#app',
-            data: {
-                keyTableVisible: false,
-                keyTableData: [],
-                loading: true,
-            },
-            created() {
-                this.init()
-            },
-            methods: {
-                init() {
-                    this.introduceClick()
-                },
-                introduceClick() {
-                    $.ajax({
-                        url: "md/getOrderList.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
-                    this.keyTableVisible = true
-                    $.ajax({
-                        url: baseUrl + "/hostKey/list/auth",
-                        headers: {'token': localStorage.getItem('token')},
-                        data: {},
-                        dataType:'json',
-                        contentType:'application/json;charset=UTF-8',
-                        method: 'POST',
-                        success: function (res) {
-                            let tmp = []
-                            res.data.forEach((item, index) => {
-                                item.signStatus = item.signStatus == 1 ? true : false;
-                                tmp.push(item)
-                            });
-                            that.keyTableData = tmp
-                            that.loading = false
-                        }
-                    });
-                },
-                generateSignKey(hostId) {
-                    let that = this
-                    this.$confirm('姝ゆ搷浣滃皢瑕嗙洊鍘熺鍚嶅瘑閽�, 鏄惁缁х画?', '鎻愮ず', {
-                        confirmButtonText: '纭畾',
-                        cancelButtonText: '鍙栨秷',
-                        type: 'warning'
-                    }).then(() => {
-                        $.ajax({
-                            url: baseUrl + "/hostKey/generateSignKey/auth",
-                            headers: {'token': localStorage.getItem('token')},
-                            data: {
-                                hostId: hostId
-                            },
-                            dataType: 'json',
-                            contentType: 'application/json;charset=UTF-8',
-                            method: 'GET',
-                            success: function (res) {
-                                if (res.code === 200) {
-                                    that.$message({
-                                        type: 'success',
-                                        message: '鐢熸垚鎴愬姛'
-                                    });
-
-                                    that.keyTableData.forEach((item, index) => {
-                                        if (item.hostId == hostId) {
-                                            item.signKey = res.data.signKey
-                                        }
-                                    });
-                                } else {
-                                    that.$message({
-                                        type: 'error',
-                                        message: res.msg
-                                    });
-                                }
-                            }
-                        });
-                    }).catch(() => {
-                        //鍙栨秷
-                    });
-                },
-                generateAppKey(hostId) {
-                    let that = this
-                    this.$confirm('姝ゆ搷浣滃皢瑕嗙洊鍘熸帴鍙e瘑閽�, 鏄惁缁х画?', '鎻愮ず', {
-                        confirmButtonText: '纭畾',
-                        cancelButtonText: '鍙栨秷',
-                        type: 'warning'
-                    }).then(() => {
-                        $.ajax({
-                            url: baseUrl + "/hostKey/generateAppKey/auth",
-                            headers: {'token': localStorage.getItem('token')},
-                            data: {
-                                hostId: hostId
-                            },
-                            dataType: 'json',
-                            contentType: 'application/json;charset=UTF-8',
-                            method: 'GET',
-                            success: function (res) {
-                                if (res.code === 200) {
-                                    that.$message({
-                                        type: 'success',
-                                        message: '鐢熸垚鎴愬姛'
-                                    });
-
-                                    that.keyTableData.forEach((item, index) => {
-                                        if (item.hostId == hostId) {
-                                            item.appKey = res.data.appKey
-                                        }
-                                    });
-                                } else {
-                                    that.$message({
-                                        type: 'error',
-                                        message: res.msg
-                                    });
-                                }
-                            }
-                        });
-                    }).catch(() => {
-                        //鍙栨秷
-                    });
-                },
-                switchChange(hostId, signStatus) {
-                    let that = this
-                    //绛惧悕鏍¢獙寮�鍏�
-                    $.ajax({
-                        url: baseUrl + "/hostKey/switchSign/auth",
-                        headers: {'token': localStorage.getItem('token')},
-                        data: {
-                            hostId: hostId,
-                            signStatus: signStatus ? 1 : 0,
-                        },
-                        dataType: 'json',
-                        contentType: 'application/json;charset=UTF-8',
-                        method: 'GET',
-                        success: function (res) {
-                            if (res.code === 200) {
-                                that.$message({
-                                    type: 'success',
-                                    message: '鍒囨崲鎴愬姛'
-                                });
-                            } else {
-                                that.$message({
-                                    type: 'error',
-                                    message: res.msg
-                                });
-                            }
-                        }
-                    });
-                },
-                switchPage(url) {
-                    location.href = url
-                },
-            }
-        })
-    </script>
-</body>
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <title>API寮�鏀惧钩鍙� - 鑾峰彇璁㈠崟鍒楄〃</title>
+    <link rel="stylesheet" href="../static/css/element.css">
+    <link rel="stylesheet" href="../static/css/common.css">
+    <script type="text/javascript" src="../static/js/jquery/jquery-3.3.1.min.js"></script>
+    <script type="text/javascript" src="../static/js/vue.min.js"></script>
+    <script type="text/javascript" src="../static/js/showdown.min.js"></script>
+    <script type="text/javascript" src="../static/js/common.js"></script>
+    <script type="text/javascript" src="../static/js/element.js"></script>
+</head>
+<body>
+    <div id="app">
+        <div id="content"></div>
+        <div class="slider">
+            <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>
+            <div><el-button type="text" @click="switchPage('reportStock.html')">搴撳瓨涓婃姤</el-button></div>
+            <div><el-button type="text" @click="switchPage('reportApiManage.html')">涓婃姤API绠$悊</el-button></div>
+            <el-divider></el-divider>
+            <div><el-button type="text" @click="switchPage('getOrderType.html')">鑾峰彇璁㈠崟绫诲瀷</el-button></div>
+            <div><el-button type="text" @click="switchPage('getOrderStatus.html')">鑾峰彇璁㈠崟鐘舵�佸垪琛�</el-button></div>
+            <div><el-button type="text" @click="switchPage('getOrderList.html')">鑾峰彇璁㈠崟鍒楄〃</el-button></div>
+            <div><el-button type="text" @click="switchPage('generateOrderPakIn.html')">鐢熸垚鍏ュ簱璁㈠崟</el-button></div>
+            <div><el-button type="text" @click="switchPage('generateOrderPakOut.html')">鐢熸垚鍑哄簱璁㈠崟</el-button></div>
+            <div><el-button type="text" @click="switchPage('createMat.html')">娣诲姞鐗╂枡淇℃伅</el-button></div>
+            <el-divider></el-divider>
+            <div><el-button type="text" @click="keyList()">瀵嗛挜绠$悊</el-button></div>
+        </div>
+
+        <el-dialog title="瀵嗛挜绠$悊" :visible.sync="keyTableVisible">
+            <el-table :data="keyTableData" v-loading="loading">
+                <el-table-column property="hostId$" label="浠撳簱"></el-table-column>
+                <el-table-column property="signKey" label="绛惧悕瀵嗛挜" width="150"></el-table-column>
+                <el-table-column property="appKey" label="鎺ュ彛璇锋眰瀵嗛挜" width="250"></el-table-column>
+                <el-table-column property="createTime$" label="鏃堕棿" width="200"></el-table-column>
+                <el-table-column label="鎿嶄綔" width="400">
+                    <template slot-scope="scope">
+                        <el-button size="mini" @click="generateSignKey(scope.row.hostId)">绛惧悕瀵嗛挜</el-button>
+                        <el-button size="mini" @click="generateAppKey(scope.row.hostId)">鎺ュ彛瀵嗛挜</el-button>
+                        <el-switch
+                                v-model="scope.row.signStatus"
+                                @change="switchChange(scope.row.hostId,scope.row.signStatus)"
+                                active-text="寮�鍚鍚�"
+                                inactive-text="鍏抽棴绛惧悕">
+                        </el-switch>
+                    </template>
+                </el-table-column>
+            </el-table>
+        </el-dialog>
+    </div>
+
+    <script>
+        showdown.setOption('tables', true);
+        var converter = new showdown.Converter()
+
+        var app = new Vue({
+            el: '#app',
+            data: {
+                keyTableVisible: false,
+                keyTableData: [],
+                loading: true,
+            },
+            created() {
+                this.init()
+            },
+            methods: {
+                init() {
+                    this.introduceClick()
+                },
+                introduceClick() {
+                    $.ajax({
+                        url: "md/getOrderList.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
+                    this.keyTableVisible = true
+                    $.ajax({
+                        url: baseUrl + "/hostKey/list/auth",
+                        headers: {'token': localStorage.getItem('token')},
+                        data: {},
+                        dataType:'json',
+                        contentType:'application/json;charset=UTF-8',
+                        method: 'POST',
+                        success: function (res) {
+                            let tmp = []
+                            res.data.forEach((item, index) => {
+                                item.signStatus = item.signStatus == 1 ? true : false;
+                                tmp.push(item)
+                            });
+                            that.keyTableData = tmp
+                            that.loading = false
+                        }
+                    });
+                },
+                generateSignKey(hostId) {
+                    let that = this
+                    this.$confirm('姝ゆ搷浣滃皢瑕嗙洊鍘熺鍚嶅瘑閽�, 鏄惁缁х画?', '鎻愮ず', {
+                        confirmButtonText: '纭畾',
+                        cancelButtonText: '鍙栨秷',
+                        type: 'warning'
+                    }).then(() => {
+                        $.ajax({
+                            url: baseUrl + "/hostKey/generateSignKey/auth",
+                            headers: {'token': localStorage.getItem('token')},
+                            data: {
+                                hostId: hostId
+                            },
+                            dataType: 'json',
+                            contentType: 'application/json;charset=UTF-8',
+                            method: 'GET',
+                            success: function (res) {
+                                if (res.code === 200) {
+                                    that.$message({
+                                        type: 'success',
+                                        message: '鐢熸垚鎴愬姛'
+                                    });
+
+                                    that.keyTableData.forEach((item, index) => {
+                                        if (item.hostId == hostId) {
+                                            item.signKey = res.data.signKey
+                                        }
+                                    });
+                                } else {
+                                    that.$message({
+                                        type: 'error',
+                                        message: res.msg
+                                    });
+                                }
+                            }
+                        });
+                    }).catch(() => {
+                        //鍙栨秷
+                    });
+                },
+                generateAppKey(hostId) {
+                    let that = this
+                    this.$confirm('姝ゆ搷浣滃皢瑕嗙洊鍘熸帴鍙e瘑閽�, 鏄惁缁х画?', '鎻愮ず', {
+                        confirmButtonText: '纭畾',
+                        cancelButtonText: '鍙栨秷',
+                        type: 'warning'
+                    }).then(() => {
+                        $.ajax({
+                            url: baseUrl + "/hostKey/generateAppKey/auth",
+                            headers: {'token': localStorage.getItem('token')},
+                            data: {
+                                hostId: hostId
+                            },
+                            dataType: 'json',
+                            contentType: 'application/json;charset=UTF-8',
+                            method: 'GET',
+                            success: function (res) {
+                                if (res.code === 200) {
+                                    that.$message({
+                                        type: 'success',
+                                        message: '鐢熸垚鎴愬姛'
+                                    });
+
+                                    that.keyTableData.forEach((item, index) => {
+                                        if (item.hostId == hostId) {
+                                            item.appKey = res.data.appKey
+                                        }
+                                    });
+                                } else {
+                                    that.$message({
+                                        type: 'error',
+                                        message: res.msg
+                                    });
+                                }
+                            }
+                        });
+                    }).catch(() => {
+                        //鍙栨秷
+                    });
+                },
+                switchChange(hostId, signStatus) {
+                    let that = this
+                    //绛惧悕鏍¢獙寮�鍏�
+                    $.ajax({
+                        url: baseUrl + "/hostKey/switchSign/auth",
+                        headers: {'token': localStorage.getItem('token')},
+                        data: {
+                            hostId: hostId,
+                            signStatus: signStatus ? 1 : 0,
+                        },
+                        dataType: 'json',
+                        contentType: 'application/json;charset=UTF-8',
+                        method: 'GET',
+                        success: function (res) {
+                            if (res.code === 200) {
+                                that.$message({
+                                    type: 'success',
+                                    message: '鍒囨崲鎴愬姛'
+                                });
+                            } else {
+                                that.$message({
+                                    type: 'error',
+                                    message: res.msg
+                                });
+                            }
+                        }
+                    });
+                },
+                switchPage(url) {
+                    location.href = url
+                },
+            }
+        })
+    </script>
+</body>
 </html>
\ No newline at end of file

--
Gitblit v1.9.1