diff --git a/.env.development b/.env.development index a084816..af842e8 100644 --- a/.env.development +++ b/.env.development @@ -6,10 +6,10 @@ VITE_PUBLIC_PATH = / # 跨域代理,您可以配置多个 ,请注意,没有换行符 -VITE_PROXY = [["/jeecgboot","http://127.0.0.1:8080/jeecg-boot"],["/upload","http://localhost:3300/upload"]] +VITE_PROXY = [["/jeecgboot","http://62.234.217.137:10000/jeecg-boot"],["/upload","http://localhost:3300/upload"]] #后台接口全路径地址(必填) -VITE_GLOB_DOMAIN_URL=http://127.0.0.1:8080/jeecg-boot +VITE_GLOB_DOMAIN_URL=http://62.234.217.137:10000/jeecg-boot #后台接口父地址(必填) VITE_GLOB_API_URL=/jeecgboot diff --git a/src/views/cet/cet-ana-3.vue b/src/views/cet/cet-ana-3.vue index d9a6b6c..f98cf8a 100644 --- a/src/views/cet/cet-ana-3.vue +++ b/src/views/cet/cet-ana-3.vue @@ -214,12 +214,26 @@ // 获取批次数据 async getBatch() { const getBatch = await defHttp.get({ url: this.Url.getBatch }); + console.log('1111', getBatch); this.batchOptions = getBatch.batches.map((item) => { return { value: item.value, label: item.label, }; }); + console.log('2222', this.batchOptions); + this.batchOptions.forEach((item) => { + const year = item.label.substring(0, 4); + if (item.label.includes('12-01')) { + item.label = `${year}冬季`; + } else if (item.label.includes('06-01')) { + item.label = `${year}夏季`; + } else if (item.label.includes('09-01')) { + item.label = `${year}夏季`; + } else if (item.label.includes('03-01')) { + item.label = `${year}春季`; + } + }); // const getCollege = await defHttp.get({ url: this.Url.getCollege }); // this.collegeOptions = getCollege.colleges; @@ -253,6 +267,7 @@ }, // 查询数据 async query() { + this.getBatch(); let resultData = null; try { //如果this.batch为null则先赋个值 diff --git a/src/views/cet/universityDashboard.vue b/src/views/cet/universityDashboard.vue index 8232bc3..13139ec 100644 --- a/src/views/cet/universityDashboard.vue +++ b/src/views/cet/universityDashboard.vue @@ -1,6 +1,6 @@ - + - - {{ totalName }}总人数:{{ total }} + + + + + + {{ selectedLabel || '请选择学院' }} + + + + + + + + + {{ item.label }} + + + + + + + + + + + + {{ subItem.label }} + + + + + + + + 查询 + + {{ totalName }}总人数:{{ total }} 累计通过人数: {{ passNumberBottom }} 累计总通过率: {{ passRateBottom }} - - - 查询 @@ -27,9 +59,7 @@ - - + 累计总通过率 @@ -39,11 +69,10 @@ - + - - - + + visible: false, level: null, @@ -979,4 +2011,4 @@ export default { z-index:9999; } - \ No newline at end of file +