diff --git a/src/App.vue b/src/App.vue index ed65799fb85e1d6361f0329ab4df8c9a7a4415df..4c2723f47e279262b066ee158b9c51116189d2c0 100644 --- a/src/App.vue +++ b/src/App.vue @@ -115,7 +115,7 @@ export default { // this.initMsg() }, mounted() { - this.getSysOptions(); + // this.getSysOptions(); }, methods: { /** @@ -123,54 +123,54 @@ export default { * limit:用户无操作时常限制(分钟) */ - exitSystemAfterLimit(limit) { - window.lastOperateTime = new Date(); - window.onload = this.addOperateListener; - this.setTimer(limit); - }, + // exitSystemAfterLimit(limit) { + // window.lastOperateTime = new Date(); + // window.onload = this.addOperateListener; + // this.setTimer(limit); + // }, //绑定用户操作事件 - addOperateListener() { - document.addEventListener("mousemove", this.resetStartTime); - document.addEventListener("keydown", this.resetStartTime); - document.addEventListener("scroll", this.resetStartTime); - document.addEventListener("touchstart", this.resetStartTime); - }, + // addOperateListener() { + // document.addEventListener("mousemove", this.resetStartTime); + // document.addEventListener("keydown", this.resetStartTime); + // document.addEventListener("scroll", this.resetStartTime); + // document.addEventListener("touchstart", this.resetStartTime); + // }, //重置起始时间 - resetStartTime() { - window.lastOperateTime = new Date(); - }, + // resetStartTime() { + // window.lastOperateTime = new Date(); + // }, //设置定时器 - setTimer(limit) { - window.logTimer = setInterval(() => { - var currentTime = new Date(); - var timeDiff = currentTime.getTime() - lastOperateTime.getTime(); - if (timeDiff > limit * 60 * 1000) { - clearInterval(window.logTimer); - this.$axios.post(`/apaas/system/v5/user/logout`).then((res) => { - if (res.data.code == "200") { - window.location.href = `/apaas/manage/ui/#/login`; - this.$store.commit("setUserInfo", null); - clearCookie("bgToken"); - this.$message.success("退出成功"); - resetRouter(); - } else { - this.$message.error("退出失败"); - } - }); - } - }, 1000); - }, + // setTimer(limit) { + // window.logTimer = setInterval(() => { + // var currentTime = new Date(); + // var timeDiff = currentTime.getTime() - lastOperateTime.getTime(); + // if (timeDiff > limit * 60 * 1000) { + // clearInterval(window.logTimer); + // this.$axios.post(`/apaas/system/v5/user/logout`).then((res) => { + // if (res.data.code == "200") { + // window.location.href = `/apaas/manage/ui/#/login`; + // this.$store.commit("setUserInfo", null); + // clearCookie("bgToken"); + // this.$message.success("退出成功"); + // resetRouter(); + // } else { + // this.$message.error("退出失败"); + // } + // }); + // } + // }, 1000); + // }, - getSysOptions() { - this.$axios.get(`/apaas/system/v5/sysOptions`).then((res) => { - if (res.data.code == 200) { - const result = res.data.data || {}; - if (result.session_validity) this.exitSystemAfterLimit(result.session_validity); - } else { - this.$message.error(res.data.data); - } - }); - }, + // getSysOptions() { + // this.$axios.get(`/apaas/system/v5/sysOptions`).then((res) => { + // if (res.data.code == 200) { + // const result = res.data.data || {}; + // if (result.session_validity) this.exitSystemAfterLimit(result.session_validity); + // } else { + // this.$message.error(res.data.data); + // } + // }); + // }, openMsg(data) { this.readFlag = !this.readFlag; diff --git a/src/page/main/support/document-type/index.vue b/src/page/main/support/document-type/index.vue index da82894d6352fe97380afd0a95db9f0e6b1b2924..4300a7b7949e22fd09dfe6219dc63af3bc9ae799 100644 --- a/src/page/main/support/document-type/index.vue +++ b/src/page/main/support/document-type/index.vue @@ -1,5 +1,574 @@ - 文档类型管理 + + + + + 文档类型 + + + + + + + + + {{ node.label }} + + + + + + + + + + + + + + 新增 + + + + + + + 状态 + + + + + + + + + 查询 + 重置 + + + + + + + + + + + 编辑 + 删除 + + + + + + + + + + + + + + {{ secondTipsDialogConfig.content }} + + + + 取消 + 确定 + + + + + + + + + + + + + + + + + + + + + + + + + + 取消 + 确定 + + + + - - + + + + diff --git a/vite.config.js b/vite.config.js index 88bdd87eb5abe2613c3631cbacaa8793c4066d57..47d2e4fa36e4be592b39fb13d1502600330a7c93 100644 --- a/vite.config.js +++ b/vite.config.js @@ -56,6 +56,15 @@ export default { changeOrigin: true, secure: false, }, + "/apaas/knowledge/v5": { + target: "https://apaas5.wodcloud.com/apaas/knowledge/v5", // 所要代理的目标地址 + rewrite: (path) => { + console.log("path", path); + return path.replace(/^\/apaas\/knowledge\/v5/, ""); + }, // 重写传过来的path路径,比如 `/api/index/1?id=10&name=zs`(注意:path路径最前面有斜杠(/),因此,正则匹配的时候不要忘了是斜杠(/)开头的;选项的 key 也是斜杠(/)开头的) + changeOrigin: true, // true/false, Default: false - changes the origin of the host header to the target URL + secure: false, //解决证书缺失问题 + }, }, }, build: {