b16791bc by zhangmeng

看板

1 parent 8dc86919
1 <template> 1 <template>
2 <div class="main"> 2 <div class="main">
3 <el-row class="w100"> 3 <el-row class="w100">
4 <el-col :span="type=='否'?8:12"> 4 <el-col v-if="obj.IFBASE" :span="type=='否'?8:12">
5 <left-page :obj="obj" :type="type" :url="result"/> 5 <left-page :obj="obj" :type="type" :url="result"/>
6 </el-col> 6 </el-col>
7 <el-col v-if="type=='否'" :span="8"> 7 <el-col v-if="type=='否'" :span="8">
8 <center-page :obj="obj" :type="type=='否'" :url="result"/> 8 <center-page :obj="obj" :type="type=='否'" :url="result"/>
9 </el-col> 9 </el-col>
10 <el-col :span="type=='否'?8:12"> 10 <el-col v-if="obj.IFBASE" :span="type=='否'?8:12">
11 <right-page :obj="obj" :type="type" :url="result"/> 11 <right-page :obj="obj" :type="type" :url="result"/>
12 </el-col> 12 </el-col>
13 </el-row> 13 </el-row>
...@@ -22,14 +22,13 @@ import CenterPage from "@/viewsPc/vip/centerPage" ...@@ -22,14 +22,13 @@ import CenterPage from "@/viewsPc/vip/centerPage"
22 import RightPage from "@/viewsPc/vip/rightPage" 22 import RightPage from "@/viewsPc/vip/rightPage"
23 import {getYS000} from '@/api/server.js' 23 import {getYS000} from '@/api/server.js'
24 import {ref, onMounted, getCurrentInstance} from 'vue' 24 import {ref, onMounted, getCurrentInstance} from 'vue'
25 import Errorhome from '@/views/error/404.vue'
26 25
27 const type = ref('是') 26 const type = ref('是')
28 const url = ref() 27 const url = ref()
29 const obj = ref({}) 28 const obj = ref({})
30 const result = ref() 29 const result = ref()
31 30
32 url.value = 'http://192.168.1.152:8899/login/sid=5342b777-d86a-4967-a18b-7329a3fca56b#/' 31 url.value = 'http://192.168.1.152:8899/login/sid=41a9a180-b1ad-4c78-95cc-f369fadb13f0#/'
33 // url.value ='http://192.168.1.152:8899/login/sid5342b777-d86a-4967-a18b-7329a3fca56b/' 32 // url.value ='http://192.168.1.152:8899/login/sid5342b777-d86a-4967-a18b-7329a3fca56b/'
34 // url.value = window.location.href 33 // url.value = window.location.href
35 result.value = url.value?.split('=')[1]?.split('#')[0]; 34 result.value = url.value?.split('=')[1]?.split('#')[0];
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
3 <div ref="textRef" class="top"> 3 <div ref="textRef" class="top">
4 <div class="left"> 4 <div class="left">
5 <div class="titleTop">董事会得分</div> 5 <div class="titleTop">董事会得分</div>
6 <div class="titleCenter">预计得分 <span class="tex1">{{ form.YJSCORE }}</span></div> 6 <div class="titleCenter">预计得分 <span class="tex1">{{ form?.YJSCORE }}</span></div>
7 <div class="titleCenter">标准得分 <span class="tex2">{{ form.STANDARDSCORE }}</span> 7 <div class="titleCenter">标准得分 <span class="tex2">{{ form?.STANDARDSCORE }}</span>
8 </div> 8 </div>
9 </div> 9 </div>
10 <div class="right"> 10 <div class="right">
...@@ -96,7 +96,7 @@ import * as echarts from "echarts"; ...@@ -96,7 +96,7 @@ import * as echarts from "echarts";
96 import * as api from "@/apiPc/common" 96 import * as api from "@/apiPc/common"
97 import {onMounted, ref, computed, onUnmounted, watch} from 'vue' 97 import {onMounted, ref, computed, onUnmounted, watch} from 'vue'
98 import {dayjs} from 'element-plus' 98 import {dayjs} from 'element-plus'
99 import {getYS001, getYS002, getYS003, getYS004, getYS005} from '@/api/server.js' 99 import {getYS000, getYS001, getYS002, getYS003, getYS004, getYS005} from '@/api/server.js'
100 100
101 const props = defineProps({ 101 const props = defineProps({
102 type: { 102 type: {
...@@ -107,7 +107,7 @@ const props = defineProps({ ...@@ -107,7 +107,7 @@ const props = defineProps({
107 type: String, 107 type: String,
108 default: undefined 108 default: undefined
109 }, 109 },
110 boj: { 110 obj: {
111 type: Object, 111 type: Object,
112 default: () => { 112 default: () => {
113 } 113 }
...@@ -116,6 +116,7 @@ const props = defineProps({ ...@@ -116,6 +116,7 @@ const props = defineProps({
116 }) 116 })
117 117
118 const url = computed(() => props.url) 118 const url = computed(() => props.url)
119 const obj = computed(() => props.obj)
119 const zhuRef1 = ref(null) 120 const zhuRef1 = ref(null)
120 const zhuRef2 = ref(null) 121 const zhuRef2 = ref(null)
121 const zhuRef3 = ref(null) 122 const zhuRef3 = ref(null)
...@@ -150,9 +151,11 @@ const list = ref([]) ...@@ -150,9 +151,11 @@ const list = ref([])
150 let total = 0 151 let total = 0
151 let intervalA = null 152 let intervalA = null
152 153
153 onMounted(() => { 154 onMounted(async () => {
154 if (props.type) { 155 if (props.type) {
155 if (url.value) init() 156 if (url.value) {
157 init()
158 }
156 window.addEventListener('resize', handleResize); 159 window.addEventListener('resize', handleResize);
157 } 160 }
158 161
...@@ -184,7 +187,7 @@ const init = () => { ...@@ -184,7 +187,7 @@ const init = () => {
184 } 187 }
185 188
186 async function handelGetYS001() { 189 async function handelGetYS001() {
187 const res = await getYS001(url.value) 190 const res = await getYS001(url.value, obj.value)
188 resYear1.value = res.data.yeargroup 191 resYear1.value = res.data.yeargroup
189 handelBing1(res.data.yeargroup[0], res.data.yeargroup[1]) 192 handelBing1(res.data.yeargroup[0], res.data.yeargroup[1])
190 handelZhu1(res.data.yeargroup[0], res.data.yeargroup[1]) 193 handelZhu1(res.data.yeargroup[0], res.data.yeargroup[1])
...@@ -192,7 +195,7 @@ async function handelGetYS001() { ...@@ -192,7 +195,7 @@ async function handelGetYS001() {
192 } 195 }
193 196
194 async function handelGetYS002() { 197 async function handelGetYS002() {
195 const res = await getYS002(url.value) 198 const res = await getYS002(url.value, obj.value)
196 resYear2.value = res.data.yeargroup 199 resYear2.value = res.data.yeargroup
197 handelBing2(res.data.yeargroup[0], res.data.yeargroup[1]) 200 handelBing2(res.data.yeargroup[0], res.data.yeargroup[1])
198 handelZhu2(res.data.yeargroup[0], res.data.yeargroup[1]) 201 handelZhu2(res.data.yeargroup[0], res.data.yeargroup[1])
...@@ -200,7 +203,7 @@ async function handelGetYS002() { ...@@ -200,7 +203,7 @@ async function handelGetYS002() {
200 } 203 }
201 204
202 async function handelGetYS003() { 205 async function handelGetYS003() {
203 const res = await getYS003(url.value) 206 const res = await getYS003(url.value, obj.value)
204 resYear3.value = res.data.yeargroup 207 resYear3.value = res.data.yeargroup
205 handelBing3(res.data.yeargroup[0], res.data.yeargroup[1]) 208 handelBing3(res.data.yeargroup[0], res.data.yeargroup[1])
206 handelZhu3(res.data.yeargroup[0], res.data.yeargroup[1]) 209 handelZhu3(res.data.yeargroup[0], res.data.yeargroup[1])
...@@ -208,7 +211,7 @@ async function handelGetYS003() { ...@@ -208,7 +211,7 @@ async function handelGetYS003() {
208 } 211 }
209 212
210 async function handelGetYS004() { 213 async function handelGetYS004() {
211 const res = await getYS004(url.value) 214 const res = await getYS004(url.value, obj.value)
212 let arrList = res.data.blockgroup 215 let arrList = res.data.blockgroup
213 // let arrList = [ 216 // let arrList = [
214 // { 217 // {
...@@ -310,7 +313,7 @@ async function handelGetYS004() { ...@@ -310,7 +313,7 @@ async function handelGetYS004() {
310 } 313 }
311 314
312 async function handelGetYS005() { 315 async function handelGetYS005() {
313 const res = await getYS005(url.value) 316 const res = await getYS005(url.value, obj.value)
314 form.value = res.data 317 form.value = res.data
315 } 318 }
316 319
......
...@@ -72,9 +72,15 @@ const props = defineProps({ ...@@ -72,9 +72,15 @@ const props = defineProps({
72 type: String, 72 type: String,
73 default: undefined 73 default: undefined
74 }, 74 },
75 obj: {
76 type: Object,
77 default: () => {
78 }
79 }
75 }) 80 })
76 81
77 const url = computed(() => props.url) 82 const url = computed(() => props.url)
83 const obj = computed(() => props.obj)
78 84
79 const zhuRef = ref(null) 85 const zhuRef = ref(null)
80 const lineRef = ref(null) 86 const lineRef = ref(null)
...@@ -121,7 +127,7 @@ onMounted(() => { ...@@ -121,7 +127,7 @@ onMounted(() => {
121 }) 127 })
122 128
123 async function handelGetYS006() { 129 async function handelGetYS006() {
124 const res = await getYS006(url.value) 130 const res = await getYS006(url.value, obj.value)
125 list.value = res.data.baselist 131 list.value = res.data.baselist
126 set1.value = [] 132 set1.value = []
127 set2.value = [] 133 set2.value = []
......
...@@ -71,10 +71,16 @@ const props = defineProps({ ...@@ -71,10 +71,16 @@ const props = defineProps({
71 type: String, 71 type: String,
72 default: undefined 72 default: undefined
73 }, 73 },
74 obj: {
75 type: Object,
76 default: () => {
77 }
78 }
74 }) 79 })
75 80
76 const url = computed(() => props.url) 81 const url = computed(() => props.url)
77 82 const obj = computed(() => props.obj)
83 console.log(obj.value)
78 const zhuRef = ref(null) 84 const zhuRef = ref(null)
79 const lineRef = ref(null) 85 const lineRef = ref(null)
80 const overdueRef = ref(null) 86 const overdueRef = ref(null)
...@@ -283,7 +289,7 @@ const init = () => { ...@@ -283,7 +289,7 @@ const init = () => {
283 } 289 }
284 290
285 async function handelGetYS007() { 291 async function handelGetYS007() {
286 const res = await getYS007(url.value) 292 const res = await getYS007(url.value, obj.value)
287 list7.value = res.data.list 293 list7.value = res.data.list
288 BC.value = res.data.BC * 100 || 0 294 BC.value = res.data.BC * 100 || 0
289 list7.value.sort((a, b) => a.EXERATIO - b.EXERATIO); 295 list7.value.sort((a, b) => a.EXERATIO - b.EXERATIO);
...@@ -350,7 +356,7 @@ function handelSelect7() { ...@@ -350,7 +356,7 @@ function handelSelect7() {
350 } 356 }
351 357
352 async function handelGetYS008() { 358 async function handelGetYS008() {
353 const res = await getYS008(url.value) 359 const res = await getYS008(url.value, obj.value)
354 list8.value = res.data.list 360 list8.value = res.data.list
355 list8Y.value = [] 361 list8Y.value = []
356 month8.value = [] 362 month8.value = []
...@@ -395,8 +401,9 @@ function handelType8() { ...@@ -395,8 +401,9 @@ function handelType8() {
395 } 401 }
396 402
397 async function handelGetYS009() { 403 async function handelGetYS009() {
398 const res = await getYS009(url.value) 404 const res = await getYS009(url.value, obj.value)
399 list9.value = res.data.list 405 list9.value = res.data.list
406 console.log(list9.value)
400 let arrY = [] 407 let arrY = []
401 let arr1 = [] 408 let arr1 = []
402 let arr2 = [] 409 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!