This commit is contained in:
duanxiaohai 2024-05-27 14:28:51 +08:00
parent f48a086c6c
commit 2f25177273
3 changed files with 92 additions and 160 deletions

View File

@ -52,9 +52,7 @@ const router = createRouter({
function getCookie(cname) { function getCookie(cname) {
var cn = cname var cn = cname
console.log('cname', cname)
const cookies = document.cookie.split('; '); const cookies = document.cookie.split('; ');
console.log('cookies', cookies)
for (let i = 0; i < cookies.length; i++) { for (let i = 0; i < cookies.length; i++) {
const [name, value] = cookies[i].split('='); const [name, value] = cookies[i].split('=');
if (name === cn) { if (name === cn) {
@ -73,7 +71,7 @@ function getCookie(cname) {
router.beforeEach((to, form, next) => { router.beforeEach((to, form, next) => {
var token = getCookie('lytoken') var token = getCookie('lytoken')
console.log('token', token) // console.log('token', token)
if (token == '') { if (token == '') {
window.location.href = window.location.href =
'http://220.191.238.50:996/api/login?returnURL=' + 'http://220.191.238.50:996/api/login?returnURL=' +

View File

@ -116,16 +116,38 @@
<div class="czrBox"> <div class="czrBox">
<div class="situation situation1"></div> <div class="situation situation1"></div>
<div class="column"> <div class="column">
<div v-for="item in 3"> <!-- <div v-for="item in data.diversification.hszhxms">
作为侦探在做推理的时候心里也有很多地方隐藏著不安担心可能会疏忽某些地方而导致还存在另一种可能性所以说当自己的推理正中靶心的时候这种成就感就无与伦比 发起单位: {{ item.fqdw }}
</div> <br>
项目名称: {{item.xmmc}}
<br>
公众筹款金额(): {{ item.gzzcje }}
<br>
捐赠支出金额: {{ item.jzzcje }}
<br>
捐赠人次: {{ item.jzrc }}
</div> -->
</div> </div>
</div> </div>
<div class="czrBox"> <div class="czrBox">
<div class="situation situation2"></div> <div class="situation situation2"></div>
</div> </div>
<div class="situation situation3"></div> <div class="czrBox">
<div class="czrBox"></div> <div class="situation situation3"></div>
<div class="column">
<div v-for="item in data.diversification.hszhxms">
发起单位: {{ item.fqdw }}
<br>
项目名称: {{item.xmmc}}
<br>
公众筹款金额(): {{ item.gzzcje }}
<br>
捐赠支出金额: {{ item.jzzcje }}
<br>
捐赠人次: {{ item.jzrc }}
</div>
</div>
</div>
</div> </div>
</div> </div>
<!-- <eBubble></eBubble> --> <!-- <eBubble></eBubble> -->
@ -135,16 +157,19 @@
</template> </template>
<script setup> <script setup>
import { ref, reactive, onMounted, onBeforeMount } from "vue"; import { ref, reactive, onMounted, onBeforeMount, computed } from "vue";
import eP1 from "./echarts_work/eP1.vue"; import eP1 from "./echarts_work/eP1.vue";
import eP2 from "./echarts_work/eP2.vue"; import eP2 from "./echarts_work/eP2.vue";
import eP3 from "./echarts_work/eP3.vue"; import eP3 from "./echarts_work/eP3.vue";
import eP4 from "./echarts_work/eP4.vue"; import eP4 from "./echarts_work/eP4.vue";
import ePjz from "./echarts_work/ePjz.vue"; import ePjz from "./echarts_work/ePjz.vue";
import http from "@/utils/request.js";
// &
const zxjz = ref(true); const zxjz = ref(true);
const zxjzChange = () => { const zxjzChange = () => {
zxjz.value = !zxjz.value; zxjz.value = !zxjz.value;
}; };
// tap
const jz = ref([ const jz = ref([
{ {
choose: "1", choose: "1",
@ -160,158 +185,67 @@ const jzChange = (index, value) => {
jz.value[index].choose = value; jz.value[index].choose = value;
}; };
const selectData = reactive({ const data = reactive({
value1: "111", education: {
value2: "tes1", data: [
options1: [ {
{ nf: "2019", //
value: "111", jzrs: "4202", //
label: "2023秋季检查", jzje: "1523", //
}, },
{ ],
value: "222", year: ["2019"],
label: "2024春季检查", }, //
}, housing: {
], data: [
options2: [ {
{ nf: "2019", //
value: "tes1", jzrs: "4202", //
label: "中小学心理健康诊断测验(MHT", jzje: "1523", //
}, },
{ ],
value: "tes2", year: ["2019"],
label: "小学心理健康诊断测验", }, //
}, lifeAssistance: {
{ subsidyInformation: [
value: "tes3", {
label: "中学心理健康诊断", btsx: "80至99岁老人生活补助", //
}, btje: "11515620", //
], },
list: [], ],
active: "城市", }, //
list1: [], diversification: {
hszhxms: [
{
fqdw: "龙游县红十字会", //
xmmc: "防溺水设施配置", //
gzzcje: "10800.42", //
jzzcje: "0", //
jzrc: "444", //
},
],
}, //
}); });
var roseData1 = ref([
{
name: "正常",
value: 17,
},
{
name: "关注",
value: 16,
},
{
name: "追踪",
value: 14,
},
{
name: "异常",
value: 8,
},
{
name: "警戒",
value: 8,
},
]);
var roseData2 = ref([
{
name: "正常",
value: 37,
},
{
name: "关注",
value: 26,
},
{
name: "追踪",
value: 24,
},
{
name: "异常",
value: 18,
},
{
name: "警戒",
value: 18,
},
]);
var roseData3 = ref([
{
name: "正常",
value: 227,
},
{
name: "关注",
value: 169,
},
{
name: "追踪",
value: 114,
},
{
name: "异常",
value: 98,
},
{
name: "警戒",
value: 78,
},
]);
var schoolData = ref([
{ name: "副高级", value: 44 },
{ name: "正高级", value: 22 },
{ name: "未定级", value: 11 },
{ name: "员级", value: 12 },
{ name: "中级", value: 54 },
{ name: "助理级", value: 74 },
]);
var schoolData1 = ref([
{ name: "副高级", value: 11 },
{ name: "正高级", value: 22 },
{ name: "未定级", value: 11 },
{ name: "员级", value: 12 },
{ name: "中级", value: 22 },
{ name: "助理级", value: 74 },
]);
var schoolData2 = ref([
{ name: "副高级", value: 22 },
{ name: "正高级", value: 22 },
{ name: "未定级", value: 11 },
{ name: "员级", value: 33 },
{ name: "中级", value: 54 },
{ name: "助理级", value: 74 },
]);
const selectChange1 = () => { const getData = async () => {
if (selectData.value1 == "111") { await http.get("/api/ggfwyth/succour").then((res) => {
selectData.list = roseData1.value; if (res.code == 200) {
} else if (selectData.value2 == "tes1") { console.log(res.data);
selectData.list = roseData2.value; //
} else if (selectData.value2 == "tes2") { // data.education.data[0] = res.data.specialAssistance.education.data[0];
selectData.list = roseData3.value; // &&
} else { // &&
selectData.list = roseData1.value; //
} //
}; //
const ratingBtn = (item) => { //
selectData.active = item; // // &&
switch (selectData.active) { //
case "城市": }
selectData.list1 = schoolData.value; });
break;
case "县镇":
selectData.list1 = schoolData1.value;
break;
case "农村":
selectData.list1 = schoolData2.value;
break;
default:
break;
}
}; };
onBeforeMount(() => { onBeforeMount(() => {
selectData.list = roseData1.value; getData();
selectData.list1 = schoolData.value;
}); });
</script> </script>
@ -843,7 +777,7 @@ onBeforeMount(() => {
// box-sizing: border-box; // box-sizing: border-box;
.czrBox { .czrBox {
height: 104px; height: 118px;
.column { .column {
height: calc(100% - 26px); height: calc(100% - 26px);
overflow-y: auto; overflow-y: auto;

View File

@ -15,8 +15,8 @@ export default defineConfig({
// 第一个代理 // 第一个代理
"/api": { "/api": {
// 匹配到啥来进行方向代理 // 匹配到啥来进行方向代理
// target: "http://192.168.1.2:8095/", //本地 target: "http://192.168.1.2:8095/", //本地
target: "http://220.191.238.50:996/", //线上 // target: "http://220.191.238.50:996/", //线上
changeOrigin: true, //是否支持跨域 changeOrigin: true, //是否支持跨域
//rewrite: (path) => path.replace(/^\/api/, '') // 如果不需要api 直接把路径上的api 替换成空,这个 //rewrite: (path) => path.replace(/^\/api/, '') // 如果不需要api 直接把路径上的api 替换成空,这个
}, },