Explorar el Código

Merge branch 'dev_g' of United_Software/k_online_ui into dev

Jack Zhou hace 5 meses
padre
commit
a19b9ac6a5
Se han modificado 1 ficheros con 8 adiciones y 1 borrados
  1. 8 1
      src/views/Dashboard/src/DashboardView.vue

+ 8 - 1
src/views/Dashboard/src/DashboardView.vue

@@ -21,6 +21,7 @@ const SaveVisible = ref(false)
 interface ManagementItem {
   title: string
   switchValue: boolean
+  isRevenueDisplay: boolean
   text: string
   id: number
   title1: string
@@ -799,9 +800,10 @@ const ClickParams = (val: any) => {
             <div class="management_content" v-for="(item, index) in Management" :key="index">
               <div class="management_flex">
                 <div class="content_title">{{ item.title }}</div>
-                <div><el-switch v-model="item.switchValue" /></div>
+                <div><el-switch v-model="item.switchValue" :disabled="item.isRevenueDisplay != undefined && item.isRevenueDisplay == false" /></div>
               </div>
               <div class="content_text">{{ item.text }}</div>
+              <div class="content_text_warining" v-if="item.title == 'Revenue Spent'">*To ensure the accuracy of the data display, this report needs to be configured and displayed after communicating clearly with Sales.</div>
             </div>
             <el-divider />
             <div class="tips">
@@ -1265,6 +1267,11 @@ const ClickParams = (val: any) => {
   font-size: var(--font-size-2);
   line-height: 16px;
 }
+.content_text_warining {
+  color: var(--color-warning);
+  font-size: var(--font-size-2);
+  line-height: 16px;
+}
 .tips {
   display: flex;
   justify-content: center;