From 7124c1d1d118877b0fc93c3ec85741d718ec34ef Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期五, 15 九月 2023 11:15:46 +0800
Subject: [PATCH] 手机号变星星 写死
---
src/views/visualization.vue | 41 +++++++++++++++++++++++++++++------------
1 files changed, 29 insertions(+), 12 deletions(-)
diff --git a/src/views/visualization.vue b/src/views/visualization.vue
index b0763dc..2698fd1 100644
--- a/src/views/visualization.vue
+++ b/src/views/visualization.vue
@@ -1,8 +1,8 @@
<template>
<div class="home">
- <!-- v-if="Object.keys(taskData).length > 0 && taskData.Procedure.ID" -->
- <template>
+ <!-- -->
+ <template v-if="Tasks&&Tasks.length>0">
<div class="left">
<p class="title">
<span
@@ -27,7 +27,7 @@
style="float: right;margin-right:20px;font-size:28px;line-height:25px;"
@click="taskClick"
>
- <el-badge :value="TaskCount" :class="TaskCount==0?'item color_666':'item color_fff'">
+ <el-badge :value="TaskCount" :class="(TaskCount==0||isTipShow)?'item color_666':'item color_fff'">
<i class="el-icon-chat-dot-round" />
</el-badge>
</span>
@@ -82,7 +82,7 @@
<div class="content">
<div class="content_left">
<div class="content-top">
- <div class="small_title">褰撳墠瀹屾垚</div>
+ <div class="small_title">鍔犲伐鏁�</div>
<div class="content_leftBttom">
<dl>
<dd
@@ -95,7 +95,7 @@
</div>
</div>
<div class="content-top">
- <div class="small_title">姝e搧鐢熶骇</div>
+ <div class="small_title">鐩爣鏁�</div>
<div class="content_leftBttom">
<dl>
<dd
@@ -152,8 +152,10 @@
? parseInt(
(taskData.finishNumber / taskData.Order.amount) *
100
- )
- : 0
+ )>100?100:parseInt(
+ (taskData.finishNumber / taskData.Order.amount) *
+ 100
+ ): 0
"
></el-progress>
</el-descriptions-item>
@@ -274,7 +276,11 @@
(taskData.finishNumber /
taskData.Order.amount) *
100
- )
+ )>100?100:parseInt(
+ (taskData.finishNumber /
+ taskData.Order.amount) *
+ 100
+ )
: 0
"
:show-text="false"
@@ -471,9 +477,12 @@
style="font-size: 20px; font-weight: 600; margin-right: 10px"
>{{ item.workerName || "" }}</span
>
- <span>{{ item.phoneNum || "" }}</span>
+ <!-- <span>{{ item.phoneNum || "" }}</span> -->
+ <span class="color_yellow"><i class="el-icon-star-on" /><i class="el-icon-star-on" /><i class="el-icon-star-on" /><i class="el-icon-star-on" /><i class="el-icon-star-on" /></span>
</dl>
+
</div>
+
<!-- <div
style="
width: 100%;
@@ -498,8 +507,8 @@
</div>
</div>
</template>
- <!-- v-else -->
- <template>
+ <!-- -->
+ <template v-else>
<div class="home-img-box">
<div class="bg-title">
<img src="../../public/bg-title.png" />
@@ -539,6 +548,7 @@
:taskData="taskData"
:Order="taskData.Order"
@getSetProductNumber="getTaskInfo"
+ @isTip="isTip"
/>
</div>
</template>
@@ -665,6 +675,7 @@
cutdownTimer: null,
TaskCount:0,
plcStatus:1,
+ isTipShow:false,
};
},
mounted() {
@@ -688,6 +699,9 @@
}else{
this.$message.error('鐩墠娌℃湁浠诲姟锛�')
}
+ },
+ isTip(val){
+ this.isTipShow=val
},
cutClick(val) {
this.activeName = val;
@@ -975,6 +989,9 @@
</script>
<style lang="scss">
+.color_yellow{
+ color:yellow;
+}
.active-one {
width: 100%;
height: calc(100% - 100px);
@@ -1195,7 +1212,7 @@
// float:left;
.bottom-title {
font-weight: 600;
- font-size: 22px;
+ font-size: 20px;
height: 30px;
line-height: 30px;
margin-bottom: 5px;
--
Gitblit v1.8.0