feat: add "导入" and modify title , icon
This commit is contained in:
parent
efba375d59
commit
b874f3a316
|
@ -11,7 +11,7 @@
|
||||||
<meta name="renderer" content="webkit">
|
<meta name="renderer" content="webkit">
|
||||||
<!-- <script src="https://cdn.jsdelivr.net/gh/WangYuLue/image-conversion/build/conversion.js"></script> -->
|
<!-- <script src="https://cdn.jsdelivr.net/gh/WangYuLue/image-conversion/build/conversion.js"></script> -->
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||||
<title>江西心诚药业有限公司</title>
|
<title>工业互联网平台</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
|
@ -1,24 +1,27 @@
|
||||||
/**
|
/**
|
||||||
* 工序报工接口
|
* 工序报工接口
|
||||||
*/
|
*/
|
||||||
import base from "./base"; // 导入接口域名列表
|
import base from "./base"; // 导入接口域名列表
|
||||||
import axiosFormData from "@/request";
|
import axiosFormData from "@/request";
|
||||||
import axiosJson from "@/request/index_new";
|
import axiosJson from "@/request/index_new";
|
||||||
const yxkAPI = {
|
const yxkAPI = {
|
||||||
yxkPostFormData(url, param) {
|
yxkPostFormData(url, param) {
|
||||||
return axiosFormData.post(`${base.url}${url}`, param);
|
return axiosFormData.post(`${base.url}${url}`, param);
|
||||||
},
|
},
|
||||||
yxkPost(url, param) {
|
yxkPost(url, param) {
|
||||||
return axiosJson.post(`${base.url}${url}`, param);
|
return axiosJson.post(`${base.url}${url}`, param);
|
||||||
},
|
},
|
||||||
yxkGet(url, param) {
|
yxkGet(url, param) {
|
||||||
return axiosJson.get(`${base.url}${url}`, { params: param });
|
return axiosJson.get(`${base.url}${url}`, { params: param });
|
||||||
},
|
},
|
||||||
yxkExport(url, param) {
|
yxkExport(url, param) {
|
||||||
return axiosJson.get(`${base.url}${url}`, {
|
return axiosJson.get(`${base.url}${url}`, {
|
||||||
params: param,
|
params: param,
|
||||||
responseType: "blob"
|
responseType: "blob"
|
||||||
});
|
});
|
||||||
}
|
},
|
||||||
};
|
autoGenerate(param) {
|
||||||
export default yxkAPI;
|
return axiosJson.get(`${base.url}/apis/deviceOperation/autoGenerate`, { params: param });
|
||||||
|
},
|
||||||
|
};
|
||||||
|
export default yxkAPI;
|
||||||
|
|
|
@ -111,6 +111,17 @@ export default {
|
||||||
imgShow: 0
|
imgShow: 0
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
async created() {
|
||||||
|
// 确保 companyInfo 已经加载
|
||||||
|
await this.ensureCompanyInfo();
|
||||||
|
const info = this.$store.state.common.companyInfo;
|
||||||
|
if (info && info.name) {
|
||||||
|
document.title = info.name;
|
||||||
|
}
|
||||||
|
if (info && info.favicon) {
|
||||||
|
this.setFavicon(info.logoUrl);
|
||||||
|
}
|
||||||
|
},
|
||||||
computed: {
|
computed: {
|
||||||
//重要。相同路由页面跳转时,query不同,可以刷新页面
|
//重要。相同路由页面跳转时,query不同,可以刷新页面
|
||||||
key() {
|
key() {
|
||||||
|
@ -151,8 +162,21 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions({
|
...mapActions({
|
||||||
getLogoUrl: "common/getLogoUrl"
|
getLogoUrl: "common/getLogoUrl",
|
||||||
}),
|
}),
|
||||||
|
async ensureCompanyInfo() {
|
||||||
|
if (!this.$store.state.common.companyInfo ||
|
||||||
|
!this.$store.state.common.companyInfo.name) {
|
||||||
|
for (let i = 0; i < 10; i++) {
|
||||||
|
await new Promise(resolve => setTimeout(resolve, 100));
|
||||||
|
if (this.$store.state.common.companyInfo &&
|
||||||
|
this.$store.state.common.companyInfo.name) {
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
// 切换侧边在线客服菜单
|
// 切换侧边在线客服菜单
|
||||||
changeMenu() {
|
changeMenu() {
|
||||||
this.isShow = true;
|
this.isShow = true;
|
||||||
|
@ -206,7 +230,16 @@ export default {
|
||||||
},
|
},
|
||||||
notreadnum(newv) {
|
notreadnum(newv) {
|
||||||
this.thisNotRedNum = newv;
|
this.thisNotRedNum = newv;
|
||||||
|
},
|
||||||
|
'$store.state.common.companyInfo': {
|
||||||
|
handler(newVal) {
|
||||||
|
if (newVal && newVal.name) {
|
||||||
|
document.title = newVal.name;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
immediate: true
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -55,6 +55,9 @@ export default {
|
||||||
companyInfo: state => state.common.companyInfo
|
companyInfo: state => state.common.companyInfo
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
|
created() {
|
||||||
|
document.title = '登录'
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions({
|
...mapActions({
|
||||||
login: "auth/loginByUser",
|
login: "auth/loginByUser",
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 3.9 KiB |
Loading…
Reference in New Issue