|
|
@@ -31,8 +31,8 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="公开课" v-if="activeTab === 'all' || activeTab === 'common'">
|
|
|
- <el-select v-model="queryParams.courseId" placeholder="请选择课程" filterable clearable size="small">
|
|
|
- <el-option v-for="dict in courseLists" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
|
|
|
+ <el-select v-model="queryParams.courseId" placeholder="请选择公开课" filterable clearable size="small">
|
|
|
+ <el-option v-for="dict in commonCourseLists" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
|
|
|
@@ -56,6 +56,22 @@
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
|
|
|
+ <el-row :gutter="10" class="mb8">
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-button
|
|
|
+ type="warning"
|
|
|
+ plain
|
|
|
+ icon="el-icon-download"
|
|
|
+ size="mini"
|
|
|
+ :loading="exportLoading"
|
|
|
+ @click="handleExport"
|
|
|
+ v-hasPermi="['his:company:export']"
|
|
|
+ >导出
|
|
|
+ </el-button>
|
|
|
+ </el-col>
|
|
|
+ <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
<!-- 表格 -->
|
|
|
<el-table border v-loading="loading" :data="courseTrafficLogList" @selection-change="handleSelectionChange"
|
|
|
show-summary :summary-method="getSummaries">
|
|
|
@@ -86,7 +102,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { listCourseTrafficLog, exportCourseTrafficLog } from "@/api/course/courseTrafficLog";
|
|
|
+import { listCourseTrafficLog, exportCourseTrafficLog, commonCourseList } from "@/api/course/courseTrafficLog";
|
|
|
import { courseList } from "@/api/course/courseRedPacketLog";
|
|
|
import { allList } from "@/api/company/company";
|
|
|
|
|
|
@@ -138,6 +154,7 @@ export default {
|
|
|
]
|
|
|
},
|
|
|
courseLists: [],
|
|
|
+ commonCourseLists: [],
|
|
|
loading: false,
|
|
|
exportLoading: false,
|
|
|
showSearch: true,
|
|
|
@@ -151,12 +168,23 @@ export default {
|
|
|
pageSize: 10,
|
|
|
companyId: null,
|
|
|
project: null,
|
|
|
- courseId: null
|
|
|
+ courseId: null,
|
|
|
+ typeFlag:0
|
|
|
}
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
+ const today = new Date();
|
|
|
+ const year = today.getFullYear();
|
|
|
+ const month = String(today.getMonth() + 1).padStart(2, '0');
|
|
|
+ const day = String(today.getDate()).padStart(2, '0');
|
|
|
+ const todayStr = `${year}-${month}-${day}`;
|
|
|
+ this.timeRange = [todayStr, todayStr];
|
|
|
+ this.queryParams.startDate = todayStr;
|
|
|
+ this.queryParams.endDate = todayStr;
|
|
|
+ this.queryParams.tabType = "project";
|
|
|
courseList().then(res => this.courseLists = res.list);
|
|
|
+ commonCourseList().then(res => this.commonCourseLists = res.list || res.data || []);
|
|
|
this.getDicts("sys_course_project").then(res => this.projectOptions = res.data);
|
|
|
this.getAllCompany();
|
|
|
this.getList();
|