|
@@ -7,6 +7,8 @@ import pie3 from './teacher/pie3.vue'
|
|
|
const AllResponse = ref('');
|
|
|
|
|
|
const left_top_mainShow = ref('');
|
|
|
+const newTotal1 = ref('');
|
|
|
+
|
|
|
const left_middle_table = ref('');
|
|
|
const left_bottom_table = ref('');
|
|
|
|
|
@@ -28,6 +30,7 @@ const initData = () => {
|
|
|
AllResponse.value = res.data;
|
|
|
console.log(res,"alvis")
|
|
|
left_top_mainShow.value = res.data.left_top_mainShow;
|
|
|
+
|
|
|
left_middle_table.value =res.data.left_middle_table ;
|
|
|
left_bottom_table.value =res.data.left_bottom_table ;
|
|
|
|
|
@@ -46,9 +49,9 @@ initData();
|
|
|
|
|
|
function numTrans(num) {
|
|
|
let newNum = converToArray(num)
|
|
|
- if (newNum.length < 7) {
|
|
|
+ if (newNum.length < 4) {
|
|
|
const zero = []
|
|
|
- for (let i = 0; i < 7 - newNum.length; i++)
|
|
|
+ for (let i = 0; i < 4 - newNum.length; i++)
|
|
|
zero.push(0)
|
|
|
|
|
|
newNum = [...zero, ...newNum]
|
|
@@ -69,12 +72,11 @@ const converToArray = number => [...`${number}`].map(el => parseInt(el))
|
|
|
<div class="flex flex-row justify-between ">
|
|
|
<div v-for="(item,index) in left_top_mainShow" :key="index" >
|
|
|
<h4 class="text-lg font-medium">{{ item.title }}</h4>
|
|
|
- <!-- <div class="border-blue-500/50 text-4xl mt-2">{{ item.detailNum }}</div> -->
|
|
|
+ <!-- <div class="border-blue-500/50 text-4xl mt-2 splitNum">
|
|
|
+ <span class="bg-block" v-for="n in newTotal1">{{n}}</span>
|
|
|
+ </div> -->
|
|
|
<div class="border-blue-500/50 text-4xl mt-4 splitNum">
|
|
|
- <span class="bg-block">0</span>
|
|
|
- <span class="bg-block">1</span>
|
|
|
- <span class="bg-block">1</span>
|
|
|
- <span class="bg-block">1</span>
|
|
|
+ <span class="bg-block">{{ item.detailNum }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|