Просмотр исходного кода

bugfix:
1、运营管理-播放详情-筛选-支持搜索内容标题。

lihao16 5 месяцев назад
Родитель
Сommit
cf0c5da1fa

+ 1 - 1
smsb-modules/smsb-source/src/main/java/com/inspur/source/domain/bo/SmsbSourcePlayRecordBo.java

@@ -62,5 +62,5 @@ public class SmsbSourcePlayRecordBo {
 
     private String endTime;
 
-
+    private String sourceName;
 }

+ 3 - 0
smsb-modules/smsb-source/src/main/resources/mapper/SmsbSourcePlayRecordMapper.xml

@@ -187,6 +187,9 @@
                 source_id
             ) sps ON mi.id = sps.sourceId
         WHERE mi.del_flag = 0
+        <if test="bo.sourceName != null and bo.sourceName != ''">
+            AND mi.original_name like  concat('%',#{bo.sourceName},'%')
+        </if>
         <if test="bo.sourceType != null">
             AND mi.type = #{bo.sourceType}
         </if>

+ 20 - 9
smsb-plus-ui/src/views/smsb/dashboard/play_info.vue

@@ -36,15 +36,19 @@
           <el-form-item label="">
             <el-button type="warning" plain icon="Download" @click="handleExport">报表导出</el-button>
           </el-form-item>
+          <el-form-item label="" prop="sourceType">
+            <el-input v-model="queryParams.sourceName" style="width: 150px" placeholder="请输入文件名称" @input="getRecordList"
+                      clearable></el-input>
+          </el-form-item>
           <el-form-item label="" prop="sourceType">
             <el-select v-model="queryParams.sourceType" style="width: 150px" placeholder="请选择类型" @change="getRecordList"
-              clearable>
-              <el-option v-for="dict in smsb_source_type" :key="dict.value" :label="dict.label" :value="dict.value" />
+                       clearable>
+              <el-option v-for="dict in smsb_source_type" :key="dict.value" :label="dict.label" :value="dict.value"/>
             </el-select>
           </el-form-item>
           <el-form-item label="" prop="sourceTag">
             <el-select v-model="queryParams.sourceTag" style="width: 150px" placeholder="请选择分类" @change="getRecordList"
-              clearable>
+                       clearable>
               <el-option v-for="dict in smsb_source_classify" :key="dict.value" :label="dict.label"
                 :value="dict.value" />
             </el-select>
@@ -141,11 +145,18 @@
 
 <script setup lang="ts">
 import * as echarts from 'echarts';
-import { getPushLine, listDeviceAndItem, listPlayRecordSummary, pushNumber, timesAndDurationLine } from '@/api/smsb/source/play_record';
-import { SourcePlayRecordForm, SourcePlayRecordQuery, SourcePlayRecordVO } from '@/api/smsb/source/play_record_type';
+import {
+  getPushLine,
+  listDeviceAndItem,
+  listPlayRecordSummary,
+  pushNumber,
+  timesAndDurationLine
+} from '@/api/smsb/source/play_record';
+import {SourcePlayRecordForm, SourcePlayRecordQuery, SourcePlayRecordVO} from '@/api/smsb/source/play_record_type';
+import {onUnmounted} from 'vue';
 
-const { proxy } = getCurrentInstance() as ComponentInternalInstance;
-const { smsb_source_classify, smsb_source_type, smsb_item_type } = toRefs<any>(
+const {proxy} = getCurrentInstance() as ComponentInternalInstance;
+const {smsb_source_classify, smsb_source_type, smsb_item_type} = toRefs<any>(
   proxy?.useDict('smsb_source_classify', 'smsb_source_type', 'smsb_item_type')
 );
 const loading = ref(true);
@@ -177,7 +188,8 @@ const data = reactive<PageData<SourcePlayRecordForm, SourcePlayRecordQuery>>({
     sourceType: null,
     sourceTag: null,
     startTime: null,
-    endTime: null
+    endTime: null,
+    sourceName: null
   },
   rules: {}
 });
@@ -415,7 +427,6 @@ onMounted(() => {
   // getRecordList();
 });
 
-import { onUnmounted, nextTick } from 'vue';
 onUnmounted(() => {
   if (pushLine?.value) {
     echarts.dispose(pushLine.value);