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

View File

@ -116,16 +116,38 @@
<div class="czrBox">
<div class="situation situation1"></div>
<div class="column">
<div v-for="item in 3">
作为侦探在做推理的时候心里也有很多地方隐藏著不安担心可能会疏忽某些地方而导致还存在另一种可能性所以说当自己的推理正中靶心的时候这种成就感就无与伦比
</div>
<!-- <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 class="czrBox">
<div class="situation situation2"></div>
</div>
<div class="situation situation3"></div>
<div class="czrBox"></div>
<div class="czrBox">
<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>
<!-- <eBubble></eBubble> -->
@ -135,16 +157,19 @@
</template>
<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 eP2 from "./echarts_work/eP2.vue";
import eP3 from "./echarts_work/eP3.vue";
import eP4 from "./echarts_work/eP4.vue";
import ePjz from "./echarts_work/ePjz.vue";
import http from "@/utils/request.js";
// &
const zxjz = ref(true);
const zxjzChange = () => {
zxjz.value = !zxjz.value;
};
// tap
const jz = ref([
{
choose: "1",
@ -160,158 +185,67 @@ const jzChange = (index, value) => {
jz.value[index].choose = value;
};
const selectData = reactive({
value1: "111",
value2: "tes1",
options1: [
{
value: "111",
label: "2023秋季检查",
},
{
value: "222",
label: "2024春季检查",
},
],
options2: [
{
value: "tes1",
label: "中小学心理健康诊断测验(MHT",
},
{
value: "tes2",
label: "小学心理健康诊断测验",
},
{
value: "tes3",
label: "中学心理健康诊断",
},
],
list: [],
active: "城市",
list1: [],
const data = reactive({
education: {
data: [
{
nf: "2019", //
jzrs: "4202", //
jzje: "1523", //
},
],
year: ["2019"],
}, //
housing: {
data: [
{
nf: "2019", //
jzrs: "4202", //
jzje: "1523", //
},
],
year: ["2019"],
}, //
lifeAssistance: {
subsidyInformation: [
{
btsx: "80至99岁老人生活补助", //
btje: "11515620", //
},
],
}, //
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 = () => {
if (selectData.value1 == "111") {
selectData.list = roseData1.value;
} else if (selectData.value2 == "tes1") {
selectData.list = roseData2.value;
} else if (selectData.value2 == "tes2") {
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;
}
const getData = async () => {
await http.get("/api/ggfwyth/succour").then((res) => {
if (res.code == 200) {
console.log(res.data);
//
// data.education.data[0] = res.data.specialAssistance.education.data[0];
// &&
// &&
//
//
//
//
// &&
//
}
});
};
onBeforeMount(() => {
selectData.list = roseData1.value;
selectData.list1 = schoolData.value;
getData();
});
</script>
@ -843,7 +777,7 @@ onBeforeMount(() => {
// box-sizing: border-box;
.czrBox {
height: 104px;
height: 118px;
.column {
height: calc(100% - 26px);
overflow-y: auto;

View File

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