|
|
@@ -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);
|