|
@@ -6,19 +6,38 @@
|
|
|
<sec-select
|
|
|
v-model="filter"
|
|
|
defaultSelectExam
|
|
|
- @exam-default="toPage(1)"
|
|
|
+ @exam-default="search"
|
|
|
></sec-select>
|
|
|
</template>
|
|
|
<el-form-item label-width="0px">
|
|
|
<el-button
|
|
|
v-if="checkPrivilege('button', 'select')"
|
|
|
type="primary"
|
|
|
- @click="toPage(1)"
|
|
|
+ @click="search"
|
|
|
>查询</el-button
|
|
|
>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
+ <div class="part-box part-box-pad box-justify">
|
|
|
+ <div>
|
|
|
+ <span>
|
|
|
+ 课程总计:<i class="color-primary">{{
|
|
|
+ statInfo.courseCount | defaultFieldFilter
|
|
|
+ }}</i>
|
|
|
+ 门
|
|
|
+ </span>
|
|
|
+ <span style="margin-left: 20px">
|
|
|
+ 图片总计:<i class="color-primary">{{
|
|
|
+ statInfo.imageCount | defaultFieldFilter
|
|
|
+ }}</i>
|
|
|
+ 张
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <el-button type="primary">导出数据</el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
|
|
|
<div class="part-box part-box-pad">
|
|
|
<el-table ref="TableList" :data="dataList">
|
|
@@ -96,7 +115,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { documentListPage } from "../api";
|
|
|
+import { documentListPage, documentStatistics } from "../api";
|
|
|
import DocumentDetailDialog from "../components/DocumentDetailDialog.vue";
|
|
|
import OtherDocumentDetailDialog from "../components/OtherDocumentDetailDialog.vue";
|
|
|
|
|
@@ -115,6 +134,7 @@ export default {
|
|
|
total: 0,
|
|
|
dataList: [],
|
|
|
curRow: {},
|
|
|
+ statInfo: {},
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -130,9 +150,17 @@ export default {
|
|
|
this.dataList = data.records;
|
|
|
this.total = data.total;
|
|
|
},
|
|
|
- toPage(page) {
|
|
|
+ async toPage(page) {
|
|
|
this.current = page;
|
|
|
- this.getList();
|
|
|
+ await this.getList();
|
|
|
+ },
|
|
|
+ async search() {
|
|
|
+ this.toPage(1);
|
|
|
+ // this.getStatistics();
|
|
|
+ },
|
|
|
+ async getStatistics() {
|
|
|
+ const res = await documentStatistics(this.filter);
|
|
|
+ this.statInfo = res || {};
|
|
|
},
|
|
|
toDetail(row) {
|
|
|
this.curRow = { ...row, ...this.filter };
|