Przeglądaj źródła

增加ai统计界面的金额显示和金额统计

jzp 1 miesiąc temu
rodzic
commit
ff25d120a4

+ 2 - 1
src/views/components/index/statisticsDashboard.vue

@@ -85,7 +85,7 @@
                 <count-to :start-val="0" :end-val="balance" :duration="3600" class="card-panel-num" />
               </div>
             </div>
-            <div class="property-card propertyline">
+            <div class="property-card propertyline" v-if="projectFrom === 'sczy'">
               <div class="property-title">
                 <i class="el-icon-money"></i>
                 润天余额(元)
@@ -593,6 +593,7 @@ const viewCharOption = {
     bottom: '3%',
     containLabel: true
   },
+  projectFrom:process.env.VUE_APP_PROJECT_FROM,
   xAxis: {
     type: 'category',
     data: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23']

+ 15 - 0
src/views/fastGpt/fastgptEventLogTotal/index.vue

@@ -55,6 +55,15 @@
     </el-form>
 
     <el-row :gutter="10" class="mb8">
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          icon="el-icon-download"
+          size="mini"
+          @click="handleExport"
+          v-hasPermi="['fastGpt:fastgptEventLogTotal:export']"
+        >导出</el-button>
+      </el-col>
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 
@@ -77,6 +86,12 @@
     </span>
         </template>
       </el-table-column>
+      <!-- 新增金额列 -->
+      <el-table-column label="金额" align="center">
+        <template slot-scope="scope">
+          <span>{{ scope.row.typeCountMap && scope.row.typeCountMap['11'] ? (scope.row.typeCountMap['11'] / 100000).toFixed(4) : '0.0000' }}</span>
+        </template>
+      </el-table-column>
     </el-table>
 
     <pagination