WXL
12 小时以前 3e280975ba21c9b311f3538788c220bdd70e16bc
青岛维护
已删除2个文件
已修改8个文件
已添加1个文件
64 ■■■■ 文件已修改
.env.development 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
.env.production 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
.env.staging 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
package.json 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/layout/components/Sidebar/Logo.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/crypto.js 39 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/login.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vue.config.js 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
管理端 (2).zip 补丁 | 查看 | 原始文档 | blame | 历史
管理端 (3).zip 补丁 | 查看 | 原始文档 | blame | 历史
管理端.zip 补丁 | 查看 | 原始文档 | blame | 历史
.env.development
@@ -1,5 +1,5 @@
# é¡µé¢æ ‡é¢˜
VUE_APP_TITLE = é’附院OPO管理平台
VUE_APP_TITLE = é’大附院OPO管理平台
# å¼€å‘环境配置
ENV = 'development'
.env.production
@@ -1,5 +1,5 @@
# é¡µé¢æ ‡é¢˜
VUE_APP_TITLE = é’附院OPO管理平台
VUE_APP_TITLE = é’大附院OPO管理平台
# ç”Ÿäº§çŽ¯å¢ƒé…ç½®
ENV = 'production'
.env.staging
@@ -1,5 +1,5 @@
# é¡µé¢æ ‡é¢˜
VUE_APP_TITLE = é’附院OPO管理平台
VUE_APP_TITLE = é’大附院OPO管理平台
NODE_ENV = production
package.json
@@ -42,6 +42,7 @@
    "build": "^0.1.4",
    "clipboard": "2.0.6",
    "core-js": "3.8.1",
    "crypto-js": "^4.2.0",
    "dayjs": "^1.11.1",
    "dingtalk-jsapi": "^3.1.1",
    "echarts": "^4.9.0",
src/layout/components/Sidebar/Logo.vue
@@ -36,7 +36,7 @@
  },
  data() {
    return {
      title: '青附院OPO管理平台',
      title: '青大附院OPO管理平台',
      logo: logoImg
    }
  }
src/utils/crypto.js
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,39 @@
// utils/crypto.js
import CryptoJS from "crypto-js";
// âœ… å¯†é’¥ï¼ˆå‰åŽç«¯å¿…须一致)
const SECRET_KEY = "QfOpO2026@SecretKey#Aes256!00001";
const IV = "1234567890123456"; // 16位
console.log(SECRET_KEY);
/**
 * AES åР坆
 */
export function encrypts(text) {
  const key = CryptoJS.enc.Utf8.parse(SECRET_KEY);
  const iv = CryptoJS.enc.Utf8.parse(IV);
  const encrypted = CryptoJS.AES.encrypt(text, key, {
    iv,
    mode: CryptoJS.mode.CBC,
    padding: CryptoJS.pad.Pkcs7,
  });
  return encrypted.toString(); // Base64
}
/**
 * AES è§£å¯†ï¼ˆå¯é€‰ï¼Œç”¨äºŽè°ƒè¯•)
 */
export function decrypt(cipherText) {
  const key = CryptoJS.enc.Utf8.parse(SECRET_KEY);
  const iv = CryptoJS.enc.Utf8.parse(IV);
  const decrypted = CryptoJS.AES.decrypt(cipherText, key, {
    iv,
    mode: CryptoJS.mode.CBC,
    padding: CryptoJS.pad.Pkcs7,
  });
  return decrypted.toString(CryptoJS.enc.Utf8);
}
src/views/login.vue
@@ -90,7 +90,7 @@
import { getCodeImg } from "@/api/login";
import Cookies from "js-cookie";
import { encrypt, decrypt } from "@/utils/jsencrypt";
import { encrypts } from "@/utils/crypto";
export default {
  name: "Login",
  data() {
@@ -139,7 +139,7 @@
    this.getCode();
    this.getCookie();
    this.getAuthCode();
    this.loginForm.password='';
    this.loginForm.password = "";
    // this.loginForm.password=this.generatePassword();
    // this.avoidLogin();
  },
@@ -240,8 +240,12 @@
            Cookies.remove("password");
            Cookies.remove("rememberMe");
          }
          let loginobj = { username: null, password: null };
          loginobj.username = encrypts(this.loginForm.username);
          loginobj.password = encrypts(this.loginForm.password);
          this.$store
            .dispatch("Login", this.loginForm)
            .dispatch("Login", loginobj)
            .then(res => {
              console.log(this.$store.state.user.code, "44");
              console.log(this.$store.state.user.msg, "22");
vue.config.js
@@ -5,7 +5,7 @@
  return path.join(__dirname, dir);
}
const name = process.env.VUE_APP_TITLE || "青附院OPO管理平台"; // ç½‘页标题
const name = process.env.VUE_APP_TITLE || "青大附院OPO管理平台"; // ç½‘页标题
const port = process.env.port || process.env.npm_config_port || 80; // ç«¯å£
@@ -33,9 +33,9 @@
    proxy: {
      // detail: https://cli.vuejs.org/config/#devserver-proxy
      [process.env.VUE_APP_BASE_API]: {
        target: `http://www.qdopo.com:9095`,
        // target: `http://www.qdopo.com:9095`,
        // target:`http://192.168.76.25:9095`,//打包地址
        // target:`http://192.168.100.10:8080`,
        target:`http://192.168.100.10:8080`,
        // target:`http://192.168.100.137:8080`,
        // target: `https://slb.hospitalstar.com:9093`,
        changeOrigin: true,
¹ÜÀí¶Ë (2).zip
Binary files differ
¹ÜÀí¶Ë (3).zip
Binary files differ
¹ÜÀí¶Ë.zip
Binary files differ