组织架构图跳转优化

feature/fj
Chengliang 3 years ago
parent 7af2107493
commit 694c263131

@ -2,7 +2,7 @@
* @Author: Chengliang 1546584672@qq.com
* @Date: 2022-08-04 10:22:55
* @LastEditors: Chengliang 1546584672@qq.com
* @LastEditTime: 2022-08-09 10:34:39
* @LastEditTime: 2022-09-06 16:46:56
* @FilePath: /org-chart-frant/.umirc.ts
* @Description: ,`customMade`, koroFileHeader : https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
@ -26,7 +26,7 @@ export default defineConfig({
proxy: {
'/api': {
// 标识需要进行转换的请求的url
target: 'http://localhost:8686/api', // 服务端域名 / http://localhost:8686
target: 'http://221.226.25.34:8088/api', // 服务端域名 / http://localhost:8686
changeOrigin: true, // 允许域名进行转换
pathRewrite: { '^/api': '' }, // 将请求url里的ci去掉
},

@ -159,7 +159,7 @@ export default function companyPage() {
</div>`;
} else if (d.data.ftype == 1) {
return `<div onclick="window.open('${
subcompanyUrl + d.data.fnumber
subcompanyUrl + d.data.fobjid
}', '_blank')">
<div style="width: 85px; height: 85px; border: 1px solid #66BAF5; border-radius: 50%;text-align: center; line-height: 85px; margin: 0 auto;">
<img src="${getSubcompanyImage()}" />
@ -178,7 +178,7 @@ export default function companyPage() {
} else if (d.data.ftype == 2) {
return `
<div style="width: 100%; height: 100%; background: url('./img/company_job_label.png');background-size: 100% 100%;" onclick="window.open('${
departmentUrl + d.data.fnumber
departmentUrl + d.data.fobjid
}')">
<div style="padding-left: 8px; padding-top: 23px;">
<img src="${getDepartmentImage()}"/>

Loading…
Cancel
Save