|
|
|
@ -32,6 +32,7 @@
|
|
|
|
|
:item="item"
|
|
|
|
|
></sidebar-item>
|
|
|
|
|
</el-menu>
|
|
|
|
|
<div style="position: absolute;bottom: 15px; color:rgb(105, 105, 105);left: 35px; font-size: 11px">{{this.version}}</div>
|
|
|
|
|
</el-scrollbar>
|
|
|
|
|
<el-container
|
|
|
|
|
class="container-box"
|
|
|
|
@ -310,6 +311,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
employName: "",
|
|
|
|
|
name: "",
|
|
|
|
|
version:"",
|
|
|
|
|
passwordFormDataRules: {
|
|
|
|
|
oldPassword: [
|
|
|
|
|
{
|
|
|
|
@ -367,6 +369,15 @@ export default {
|
|
|
|
|
mounted() {
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
inquire(){
|
|
|
|
|
let xhr = new XMLHttpRequest()
|
|
|
|
|
let okStatus = document.location.protocol === "file:" ? 0 : 200;
|
|
|
|
|
xhr.open("GET", "version.txt", false); // public文件夹下的绝对路径
|
|
|
|
|
xhr.overrideMimeType("text/html;charset=utf-8")
|
|
|
|
|
xhr.send(null)
|
|
|
|
|
this.version=xhr.responseText;
|
|
|
|
|
//alert(xhr.responseText) // xhr.responseText为文本中的内容
|
|
|
|
|
},
|
|
|
|
|
toggleSideBar() {
|
|
|
|
|
this.$store.dispatch("ToggleSideBar");
|
|
|
|
|
},
|
|
|
|
@ -448,7 +459,7 @@ export default {
|
|
|
|
|
userInfo()
|
|
|
|
|
.then((response) => {
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.userInfo = response.data;
|
|
|
|
|
this.locInvName = this.userInfo.locInvName;
|
|
|
|
|
this.locSubInvName = this.userInfo.locSubInvName;
|
|
|
|
@ -562,7 +573,7 @@ export default {
|
|
|
|
|
this.getUserInfo();
|
|
|
|
|
socket.init(this)
|
|
|
|
|
axios.get("./config.json").then(res => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 基础地址
|
|
|
|
|
this.hospitalName = res.data.hosp_name;
|
|
|
|
|
});
|
|
|
|
|