5 changed files with 260 additions and 182 deletions
@ -1,68 +0,0 @@ |
|||||
location /systemapi { |
|
||||
#host修改为真实的域名和端口 |
|
||||
proxy_set_header Host $http_host; |
|
||||
#客户真实ip |
|
||||
proxy_set_header X-Real-IP $remote_addr; |
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
|
||||
#客户端真实协议 |
|
||||
proxy_set_header X-Forwarded-Proto $scheme; |
|
||||
rewrite ^/systemapi/(.*)$ /$1 break; |
|
||||
proxy_pass http://36.133.126.182:39250; #设置代理服务器的协义和地址 |
|
||||
#proxy_pass http://120.224.6.6:60001; |
|
||||
} |
|
||||
location /kpiapi { |
|
||||
#host修改为真实的域名和端口 |
|
||||
proxy_set_header Host $http_host; |
|
||||
#客户真实ip |
|
||||
proxy_set_header X-Real-IP $remote_addr; |
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
|
||||
#客户端真实协议 |
|
||||
proxy_set_header X-Forwarded-Proto $scheme; |
|
||||
rewrite ^/kpiapi/(.*)$ /$1 break; |
|
||||
proxy_pass http://36.133.126.182:6666; #设置代理服务器的协义和地址 |
|
||||
#proxy_pass http://120.224.6.6:60002; |
|
||||
} |
|
||||
location /hrapi { |
|
||||
#host修改为真实的域名和端口 |
|
||||
proxy_set_header Host $http_host; |
|
||||
#客户真实ip |
|
||||
proxy_set_header X-Real-IP $remote_addr; |
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
|
||||
#客户端真实协议 |
|
||||
proxy_set_header X-Forwarded-Proto $scheme; |
|
||||
rewrite ^/hrapi/(.*)$ /$1 break; |
|
||||
proxy_pass http://120.224.6.6:39168; #设置代理服务器的协义和地址 |
|
||||
} |
|
||||
location /api { |
|
||||
#host修改为真实的域名和端口 |
|
||||
proxy_set_header Host $http_host; |
|
||||
#客户真实ip |
|
||||
proxy_set_header X-Real-IP $remote_addr; |
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
|
||||
#客户端真实协议 |
|
||||
proxy_set_header X-Forwarded-Proto $scheme; |
|
||||
rewrite ^/api/(.*)$ /$1 break; |
|
||||
proxy_pass http://36.133.126.182:8888; #设置代理服务器的协义和地址 |
|
||||
} |
|
||||
location /javasys { |
|
||||
#host修改为真实的域名和端口 |
|
||||
proxy_set_header Host $http_host; |
|
||||
#客户真实ip |
|
||||
proxy_set_header X-Real-IP $remote_addr; |
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
|
||||
#客户端真实协议 |
|
||||
proxy_set_header X-Forwarded-Proto $scheme; |
|
||||
rewrite ^/javasys/(.*)$ /$1 break; |
|
||||
proxy_pass http://36.133.126.182:8111; #设置代理服务器的协义和地址 |
|
||||
} |
|
||||
location /javasys/lowCode { |
|
||||
#host修改为真实的域名和端口 |
|
||||
proxy_set_header Host $http_host; |
|
||||
#客户真实ip |
|
||||
proxy_set_header X-Real-IP $remote_addr; |
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
|
||||
#客户端真实协议 |
|
||||
proxy_set_header X-Forwarded-Proto $scheme; |
|
||||
rewrite ^/javasys/(.*)$ /$1 break; |
|
||||
proxy_pass http://36.133.126.182:39999; #设置代理服务器的协义和地址 |
|
||||
} |
|
||||
@ -0,0 +1,58 @@ |
|||||
|
<script lang="ts" setup> |
||||
|
|
||||
|
import { ElDialog } from 'element-plus'; |
||||
|
|
||||
|
const props = withDefaults(defineProps<{ |
||||
|
fields:any[], |
||||
|
commitFunc:(fields:{field:string,label:string}[])=>void, |
||||
|
closeFunc:()=>void, //父级只需销毁组件 |
||||
|
}>(),{}) |
||||
|
|
||||
|
const checkList=ref<string[]>([]) |
||||
|
|
||||
|
onMounted(()=>{ |
||||
|
props.fields.forEach((val)=>{ |
||||
|
if (val.attribute===''){ |
||||
|
checkList.value.push(val.field) |
||||
|
} |
||||
|
}) |
||||
|
}) |
||||
|
|
||||
|
function handleData(){ |
||||
|
const arr:{field:string,label:string}[]=[] |
||||
|
props.fields.forEach((val)=>{ |
||||
|
if(checkList.value.includes(val.field)){ |
||||
|
arr.push({ field:val.field, label:val.label }) |
||||
|
} |
||||
|
}) |
||||
|
props.commitFunc(arr) |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<template> |
||||
|
<el-dialog :model-value="true" :style="{height: '60%',width:'60%'}" @close="props.closeFunc"> |
||||
|
<h3>请选择导出的字段</h3> |
||||
|
<div style="display: flex;height: 60%;margin: 20px;"> |
||||
|
<el-checkbox-group v-model="checkList"> |
||||
|
<template v-for="item in props.fields"> |
||||
|
<el-checkbox v-if="item.attribute===''" :key="item.field" :label="item.label" :value="item.field" /> |
||||
|
</template> |
||||
|
</el-checkbox-group> |
||||
|
</div> |
||||
|
<el-button type="primary" @click="handleData">导出</el-button> |
||||
|
</el-dialog> |
||||
|
</template> |
||||
|
<style> |
||||
|
/* dialog的body内容样式设置*/ |
||||
|
.el-dialog__body{ |
||||
|
height: 96%; |
||||
|
display: flex; |
||||
|
flex-direction: column; |
||||
|
align-items: center; |
||||
|
} |
||||
|
.el-dialog{ |
||||
|
/* 让整个弹出窗口位置更高一些*/ |
||||
|
--el-dialog-margin-top:7vh; |
||||
|
} |
||||
|
|
||||
|
</style> |
||||
Loading…
Reference in new issue