Merge branch 'ldeyun' into 'master'

1.修改统计

See merge request cxcxt/cxc-szcx-uniapp!17
This commit is contained in:
闵 年泽 2025-03-06 14:11:09 +08:00
commit 0cf6f4345a
3 changed files with 22 additions and 15 deletions

View File

@ -1,4 +1,4 @@
# 开发环境
# 请求接口地址
#VITE_REQUEST_BASE_URL = https://36.112.48.190
VITE_REQUEST_BASE_URL = http://10.75.15.249:8080
#VITE_REQUEST_BASE_URL = https://36.112.48.190
VITE_REQUEST_BASE_URL = http://10.75.15.246:8085

View File

@ -98,17 +98,17 @@
});
/*生产环境 begin */
loginApi({
username: un,
password: pw,
ip: getDeviceIp()
// loginApi({
// username: un,
// password: pw,
// ip: getDeviceIp()
/*生产环境 end */
/*开发环境 begin */
// localLoginApi({
// username: username.value,
// password: password.value,
// captcha: 'app'
localLoginApi({
username: username.value,
password: password.value,
captcha: 'app'
/*开发环境 end */
}).then((loginres) => {
if (loginres.success) {

View File

@ -179,6 +179,8 @@
const fieldTexts = ref([]); //
const chartOption = ref({});
const orgType = ref(''); // by
var tempOrgType = ''; // by
const chartTitle = computed(() => {
return selectedOrgCodeLabel.value + '人员(' + selectedFieldLabel.value + ')分组统计';
@ -393,8 +395,13 @@
myChart.on('click', (params) => {
console.log(params.name, params.seriesIndex, params.dataIndex);
console.log(orgCodeGroupData.value);
let updateData = findRyByOrgCode(orgCodeGroupData.value.children, params.name);
let updateData = []
//
if(tempOrgType=='1'){
updateData = findRyByOrgCode(orgCodeGroupData.value.children, params.name);
}else{
updateData = orgCodeGroupData.value
}
console.log(updateData);
const ldhth = updateData.fieldValues[params.seriesIndex].ldhth;
@ -411,7 +418,7 @@
//
//
function findRyByOrgCode(treeData, targetOrgCode) {
// console.log(treeData, targetOrgCode);
console.log(treeData, targetOrgCode);
for (const node of treeData) {
//
if (node.orgText === targetOrgCode) {
@ -718,7 +725,7 @@
chartData.value = [];
try {
// A01A01A01 orgType by
var tempOrgType = '1';
tempOrgType = '1';
if(selectedOrgCode.value.includes('A01A01A01')){
tempOrgType = '1';
}else{
@ -745,7 +752,7 @@
});
}
// console.log(res); //deepseek
console.log(res); //deepseek
if (res.success) {
console.log(selectedOrgCode.value, res);
if (res.result.length < 1) {