已删除2个文件
已重命名1个文件
已修改10个文件
已复制1个文件
copy from dist.zip
copy to "lishui \0504\051.zip"
Binary files differ
| | |
| | | import request from "@/utils/request"; |
| | | |
| | | // 登录方法 |
| | | export function login(username, password, code, orgid) { |
| | | export function login(username, password, code, orgid,campusid) { |
| | | const data = { |
| | | username, |
| | | password, |
| | | code, |
| | | orgid, |
| | | campusid, |
| | | }; |
| | | return request({ |
| | | url: "/login", |
| | |
| | | sipStatusClass: "status-disconnected", |
| | | sipConfig: { |
| | | // 移除硬编码的wsUrl和domain |
| | | wsUrl:'', |
| | | sipUri:'', |
| | | wsUrl: "", |
| | | sipUri: "", |
| | | password: "Smartor@2023", |
| | | displayName: "Web 小龙", |
| | | // realm: "9.208.5.18:8090", |
| | |
| | | this.sipConfig.sipUri = `${this.randomNum}@192.168.10.124`; |
| | | } else if (orgName == "龙泉市人民医院") { |
| | | this.sipConfig.sipUri = `${this.randomNum}@10.10.0.220`; |
| | | } else if (orgName == "杭州市第一人民医院湖滨院区"||orgName == "杭州市第一人民医院吴山院区") { |
| | | this.sipConfig.sipUri = `${this.randomNum}@192.169.5.248`; |
| | | } |
| | | } catch (error) { |
| | | console.error("获取分机号失败:", error); |
| | |
| | | const username = userInfo.username.trim(); |
| | | const password = userInfo.password; |
| | | const code = userInfo.code; |
| | | const campusid = userInfo.campusid; |
| | | |
| | | const orgid = userInfo.orgid; |
| | | return new Promise((resolve, reject) => { |
| | | login(username, password, code, orgid) |
| | | login(username, password, code, orgid, campusid) |
| | | .then((res) => { |
| | | setToken(res.token); |
| | | commit("SET_TOKEN", res.token); |
| | |
| | | localStorage.setItem("deptCode", ""); |
| | | localStorage.setItem("YongHuID", "1497875635748474880"); |
| | | localStorage.setItem("YongHuXM", "SYZYY"); |
| | | } |
| | | else if (orgid == "47231077933110211A1101") { |
| | | } else if (orgid == "47231077933110211A1101") { |
| | | localStorage.setItem("orgname", "莲都区人民医院"); |
| | | localStorage.setItem("ZuHuID", "1429338802177000011"); |
| | | localStorage.setItem("deptCode", ""); |
| | | localStorage.setItem("YongHuID", "1512710152715767808"); |
| | | localStorage.setItem("YongHuXM", "LDRMYY"); |
| | | } else if (orgid == "1") { |
| | | localStorage.setItem("orgname", "杭州市第一人民医院湖滨院区"); |
| | | localStorage.setItem("ZuHuID", ""); |
| | | localStorage.setItem("deptCode", ""); |
| | | localStorage.setItem("YongHuID", ""); |
| | | localStorage.setItem("YongHuXM", ""); |
| | | } else if (orgid == "2") { |
| | | localStorage.setItem("orgname", "杭州市第一人民医院吴山院区"); |
| | | localStorage.setItem("ZuHuID", ""); |
| | | localStorage.setItem("deptCode", ""); |
| | | localStorage.setItem("YongHuID", ""); |
| | | localStorage.setItem("YongHuXM", ""); |
| | | } |
| | | resolve(); |
| | | }) |
| | |
| | | wsUrl: "wss://10.10.0.220:7443", |
| | | domain: "10.10.0.220", |
| | | }, |
| | | 杭州市第一人民医院湖滨院区: { |
| | | wsUrl: "wss://192.169.5.248:5060", |
| | | domain: "192.169.5.248", |
| | | }, |
| | | 杭州市第一人民医院吴山院区: { |
| | | wsUrl: "wss://192.169.5.248:5060", |
| | | domain: "192.169.5.248", |
| | | }, |
| | | // 可以继续添加其他医院配置 |
| | | default: { |
| | | wsUrl: "wss://192.168.10.124:7443", |
| | |
| | | this.$refs.loginForm.validate((valid) => { |
| | | if (valid) { |
| | | this.loading = true; |
| | | |
| | | if (this.loginForm.rememberMe) { |
| | | Cookies.set("username", this.loginForm.username, { expires: 30 }); |
| | | Cookies.set("password", encrypt(this.loginForm.password), { |
| | |
| | | Cookies.remove("password"); |
| | | Cookies.remove("rememberMe"); |
| | | } |
| | | // this.loginForm.orgid = '1', |
| | | |
| | | // 动态设置 campusid 参数 |
| | | const selectedOrg = this.options.find(item => item.value === this.loginForm.orgid); |
| | | if (selectedOrg) { |
| | | if (selectedOrg.label.includes('湖滨')) { |
| | | this.loginForm.campusid = 1; |
| | | } else if (selectedOrg.label.includes('吴山')) { |
| | | this.loginForm.campusid = 2; |
| | | } else { |
| | | this.loginForm.campusid = 1; // 默认值或其他处理 |
| | | } |
| | | } |
| | | |
| | | this.$store |
| | | .dispatch("Login", this.loginForm) |
| | | .then((res) => { |
| | |
| | | }); |
| | | } |
| | | }); |
| | | }, |
| | | } |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | }, |
| | | // 查询标签列表参数 |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | serviceType: [2], |
| | | dateRange: [], |
| | | statisticaltype: 1, |
| | |
| | | </el-table-column> |
| | | </el-table> |
| | | |
| | | <pagination |
| | | <!-- <pagination |
| | | v-show="total > 0" |
| | | :total="total" |
| | | :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" |
| | | @pagination="getList" |
| | | /> |
| | | /> --> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | |
| | | }, |
| | | // 查询标签列表参数 |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | |
| | | serviceType: [2], |
| | | dateRange: [], |
| | | statisticaltype: 1, |
| | |
| | | // detail: https://cli.vuejs.org/config/#devserver-proxy |
| | | [process.env.VUE_APP_BASE_API]: { |
| | | // target: `https://www.health-y.cn/lssf`, |
| | | target: `http://192.168.100.10:8096`, |
| | | // target: `http://192.168.100.10:8096`, |
| | | // target: `http://192.168.100.10:8094`,//省立同德 |
| | | // target: `http://192.168.100.10:8095`,//新华 |
| | | // target:`http://localhost:8095`, |
| | | // target:`http://35z1t16164.qicp.vip`, |
| | | // target: `http://192.168.100.111:8095`, |
| | | target: `http://192.168.100.172:8095`, |
| | | // target: `http://192.168.101.166:8093`, |
| | | // target: `http://192.168.191.181:8095`, |
| | | changeOrigin: true, |