b16791bc by zhangmeng

看板

1 parent 8dc86919
<template>
<div class="main">
<el-row class="w100">
<el-col :span="type=='否'?8:12">
<el-col v-if="obj.IFBASE" :span="type=='否'?8:12">
<left-page :obj="obj" :type="type" :url="result"/>
</el-col>
<el-col v-if="type=='否'" :span="8">
<center-page :obj="obj" :type="type=='否'" :url="result"/>
</el-col>
<el-col :span="type=='否'?8:12">
<el-col v-if="obj.IFBASE" :span="type=='否'?8:12">
<right-page :obj="obj" :type="type" :url="result"/>
</el-col>
</el-row>
......@@ -22,14 +22,13 @@ import CenterPage from "@/viewsPc/vip/centerPage"
import RightPage from "@/viewsPc/vip/rightPage"
import {getYS000} from '@/api/server.js'
import {ref, onMounted, getCurrentInstance} from 'vue'
import Errorhome from '@/views/error/404.vue'
const type = ref('是')
const url = ref()
const obj = ref({})
const result = ref()
url.value = 'http://192.168.1.152:8899/login/sid=5342b777-d86a-4967-a18b-7329a3fca56b#/'
url.value = 'http://192.168.1.152:8899/login/sid=41a9a180-b1ad-4c78-95cc-f369fadb13f0#/'
// url.value ='http://192.168.1.152:8899/login/sid5342b777-d86a-4967-a18b-7329a3fca56b/'
// url.value = window.location.href
result.value = url.value?.split('=')[1]?.split('#')[0];
......
......@@ -3,8 +3,8 @@
<div ref="textRef" class="top">
<div class="left">
<div class="titleTop">董事会得分</div>
<div class="titleCenter">预计得分 <span class="tex1">{{ form.YJSCORE }}</span></div>
<div class="titleCenter">标准得分 <span class="tex2">{{ form.STANDARDSCORE }}</span>
<div class="titleCenter">预计得分 <span class="tex1">{{ form?.YJSCORE }}</span></div>
<div class="titleCenter">标准得分 <span class="tex2">{{ form?.STANDARDSCORE }}</span>
</div>
</div>
<div class="right">
......@@ -96,7 +96,7 @@ import * as echarts from "echarts";
import * as api from "@/apiPc/common"
import {onMounted, ref, computed, onUnmounted, watch} from 'vue'
import {dayjs} from 'element-plus'
import {getYS001, getYS002, getYS003, getYS004, getYS005} from '@/api/server.js'
import {getYS000, getYS001, getYS002, getYS003, getYS004, getYS005} from '@/api/server.js'
const props = defineProps({
type: {
......@@ -107,7 +107,7 @@ const props = defineProps({
type: String,
default: undefined
},
boj: {
obj: {
type: Object,
default: () => {
}
......@@ -116,6 +116,7 @@ const props = defineProps({
})
const url = computed(() => props.url)
const obj = computed(() => props.obj)
const zhuRef1 = ref(null)
const zhuRef2 = ref(null)
const zhuRef3 = ref(null)
......@@ -150,9 +151,11 @@ const list = ref([])
let total = 0
let intervalA = null
onMounted(() => {
onMounted(async () => {
if (props.type) {
if (url.value) init()
if (url.value) {
init()
}
window.addEventListener('resize', handleResize);
}
......@@ -184,7 +187,7 @@ const init = () => {
}
async function handelGetYS001() {
const res = await getYS001(url.value)
const res = await getYS001(url.value, obj.value)
resYear1.value = res.data.yeargroup
handelBing1(res.data.yeargroup[0], res.data.yeargroup[1])
handelZhu1(res.data.yeargroup[0], res.data.yeargroup[1])
......@@ -192,7 +195,7 @@ async function handelGetYS001() {
}
async function handelGetYS002() {
const res = await getYS002(url.value)
const res = await getYS002(url.value, obj.value)
resYear2.value = res.data.yeargroup
handelBing2(res.data.yeargroup[0], res.data.yeargroup[1])
handelZhu2(res.data.yeargroup[0], res.data.yeargroup[1])
......@@ -200,7 +203,7 @@ async function handelGetYS002() {
}
async function handelGetYS003() {
const res = await getYS003(url.value)
const res = await getYS003(url.value, obj.value)
resYear3.value = res.data.yeargroup
handelBing3(res.data.yeargroup[0], res.data.yeargroup[1])
handelZhu3(res.data.yeargroup[0], res.data.yeargroup[1])
......@@ -208,7 +211,7 @@ async function handelGetYS003() {
}
async function handelGetYS004() {
const res = await getYS004(url.value)
const res = await getYS004(url.value, obj.value)
let arrList = res.data.blockgroup
// let arrList = [
// {
......@@ -310,7 +313,7 @@ async function handelGetYS004() {
}
async function handelGetYS005() {
const res = await getYS005(url.value)
const res = await getYS005(url.value, obj.value)
form.value = res.data
}
......
......@@ -72,9 +72,15 @@ const props = defineProps({
type: String,
default: undefined
},
obj: {
type: Object,
default: () => {
}
}
})
const url = computed(() => props.url)
const obj = computed(() => props.obj)
const zhuRef = ref(null)
const lineRef = ref(null)
......@@ -121,7 +127,7 @@ onMounted(() => {
})
async function handelGetYS006() {
const res = await getYS006(url.value)
const res = await getYS006(url.value, obj.value)
list.value = res.data.baselist
set1.value = []
set2.value = []
......
......@@ -71,10 +71,16 @@ const props = defineProps({
type: String,
default: undefined
},
obj: {
type: Object,
default: () => {
}
}
})
const url = computed(() => props.url)
const obj = computed(() => props.obj)
console.log(obj.value)
const zhuRef = ref(null)
const lineRef = ref(null)
const overdueRef = ref(null)
......@@ -283,7 +289,7 @@ const init = () => {
}
async function handelGetYS007() {
const res = await getYS007(url.value)
const res = await getYS007(url.value, obj.value)
list7.value = res.data.list
BC.value = res.data.BC * 100 || 0
list7.value.sort((a, b) => a.EXERATIO - b.EXERATIO);
......@@ -350,7 +356,7 @@ function handelSelect7() {
}
async function handelGetYS008() {
const res = await getYS008(url.value)
const res = await getYS008(url.value, obj.value)
list8.value = res.data.list
list8Y.value = []
month8.value = []
......@@ -395,8 +401,9 @@ function handelType8() {
}
async function handelGetYS009() {
const res = await getYS009(url.value)
const res = await getYS009(url.value, obj.value)
list9.value = res.data.list
console.log(list9.value)
let arrY = []
let arr1 = []
let arr2 = []
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!