提交 9476d0c2 authored 作者: 翟畅's avatar 翟畅

zc统计、资源添加所属目录

上级 244b97f2
......@@ -15,6 +15,14 @@ export function memberRelativeAPI() { //用户数据概览
})
}
export function bookQrListAPI(params) { //一册一码列表
return request({
url: `${requestPath.resource}/statistics/page`,
method: 'get',
params
})
}
export function trendEchartsDataAPI(params) { //用户趋势统计
return request({
url: `${requestPath.statistics}/api/sta/member/trendEchartsData`,
......
......@@ -28,6 +28,13 @@
margin: 0 30px 0 34px;
float: left;
}
.currentCataLogueBox{
color: #222;
line-height: 66px;
margin-left: 10px;
float: left;
font-size: 12px;
}
.classify{
// width: 90px;
padding: 0 10px;
......
......@@ -153,7 +153,7 @@ export const resourcStaticList=[
{label:'文章',value:3},
{label:'视频',value:5},
{label:'音频',value:6},
{label:'专题',value:7},
// {label:'专题',value:7},
{label:'图片',value:9},
{label:'附件',value:12},
]
\ No newline at end of file
......@@ -294,7 +294,8 @@ export default {
}
this.$store.dispatch('user/login', this.loginForm)
.then(() => {
this.$router.push({ path: this.redirect || '/', query: this.otherQuery })
// this.$router.push({ path: this.redirect || '/', query: this.otherQuery })
this.$router.push({ path: '/dashboard', query: this.otherQuery })
getStoreStaff()
this.loading = false
}).catch((err) => {
......
......@@ -29,6 +29,7 @@
</el-tree>
</div>
</div>
<div class="currentCataLogueBox" v-if="currentCataLogueText">所属分类目录:{{currentCataLogueText}}</div>
<div class="top_tips" @click="searchDialog = true"><i class="el-icon-question"></i></div>
<div class="search_box">
......@@ -100,12 +101,12 @@
<span v-else style="color:#999999"><span class="down_status"></span>已下架</span>
</template>
</el-table-column>
<el-table-column align="center" prop="createdTime" label="关联图书" min-width="10%" show-overflow-tooltip>
<el-table-column align="center" prop="createdTime" label="关联图书(资源码)" min-width="10%" show-overflow-tooltip>
<template slot-scope="scope">
<span v-if="scope.row.nameList && scope.row.nameList.length > 0">{{scope.row.nameList.join(',')}}</span>
</template>
</el-table-column>
<el-table-column align="center" prop="createdTime" label="关联图书ISBN" min-width="10%" show-overflow-tooltip>
<el-table-column align="center" prop="createdTime" label="关联图书ISBN(资源码)" min-width="10%" show-overflow-tooltip>
<template slot-scope="scope">
<span v-if="scope.row.isbnList && scope.row.isbnList.length > 0">{{scope.row.isbnList.join(',')}}</span>
</template>
......@@ -230,7 +231,8 @@ import searchDia from "@/components/dialog/searchTips";
label: "typeName"
},
inResize: true,
sending: null
sending: null,
currentCataLogueText:'',
}
},
mounted() {
......@@ -454,6 +456,46 @@ import searchDia from "@/components/dialog/searchTips";
});
},
handleNodeClick(data) {
let firstCode = data.code.substring(0,2)
let secondCode = data.code.substring(0,4)
let thirdCode = data.code.substring(0,6)
let forthCode = data.code.substring(0,8)
let txt = ''
this.sortList[0].list.forEach((item,index) => {
if(firstCode){
if(firstCode == item.code){
txt = item.showName
}
}
if(item.list && item.list.length > 0){
item.list.forEach((x,y) => {
if(secondCode){
if(secondCode == x.code){
txt = txt + ' > ' + x.showName
}
}
if(x.list && x.list.length > 0){
x.list.forEach((a,b) => {
if(thirdCode){
if(thirdCode == a.code){
txt = txt + ' > ' + a.showName
}
}
if(a.list && a.list.length > 0){
a.list.forEach((q,w) => {
if(forthCode){
if(forthCode == q.code){
txt = txt + ' > ' + q.showName
}
}
})
}
})
}
})
}
})
this.currentCataLogueText = txt
//点击分类--搜索
this.inResize = false;
this.$nextTick(t => {
......
......@@ -29,6 +29,7 @@
</el-tree>
</div>
</div>
<div class="currentCataLogueBox" v-if="currentCataLogueText">所属分类目录:{{currentCataLogueText}}</div>
<div class="container">
<el-form inline size="small" :model="listQuery" ref="listQuery" :label-position="labelPosition" label-width="100px">
<el-form-item label="资源名称:">
......@@ -79,12 +80,12 @@
<span v-else style="color:#999999"><span class="down_status"></span>已下架</span>
</template>
</el-table-column>
<el-table-column align="center" prop="createdTime" label="关联图书" min-width="10%" show-overflow-tooltip>
<el-table-column align="center" prop="createdTime" label="关联图书(资源码)" min-width="10%" show-overflow-tooltip>
<template slot-scope="scope">
<span v-if="scope.row.nameList && scope.row.nameList.length > 0">{{scope.row.nameList.join(',')}}</span>
</template>
</el-table-column>
<el-table-column align="center" prop="createdTime" label="关联图书ISBN" min-width="10%" show-overflow-tooltip>
<el-table-column align="center" prop="createdTime" label="关联图书ISBN(资源码)" min-width="10%" show-overflow-tooltip>
<template slot-scope="scope">
<span v-if="scope.row.isbnList && scope.row.isbnList.length > 0">{{scope.row.isbnList.join(',')}}</span>
</template>
......@@ -176,7 +177,8 @@ export default {
dialogImport: false,
importTitle: '导入音频',
action:'file/upload/info',
sending: null
sending: null,
currentCataLogueText:'',
}
},
mounted() {
......@@ -360,6 +362,46 @@ export default {
})
},
handleNodeClick(data) {//点击分类
let firstCode = data.code.substring(0,2)
let secondCode = data.code.substring(0,4)
let thirdCode = data.code.substring(0,6)
let forthCode = data.code.substring(0,8)
let txt = ''
this.sortList[0].list.forEach((item,index) => {
if(firstCode){
if(firstCode == item.code){
txt = item.showName
}
}
if(item.list && item.list.length > 0){
item.list.forEach((x,y) => {
if(secondCode){
if(secondCode == x.code){
txt = txt + ' > ' + x.showName
}
}
if(x.list && x.list.length > 0){
x.list.forEach((a,b) => {
if(thirdCode){
if(thirdCode == a.code){
txt = txt + ' > ' + a.showName
}
}
if(a.list && a.list.length > 0){
a.list.forEach((q,w) => {
if(forthCode){
if(forthCode == q.code){
txt = txt + ' > ' + q.showName
}
}
})
}
})
}
})
}
})
this.currentCataLogueText = txt
this.inResize = false;
this.$nextTick(t => {
this.inResize = true;
......
......@@ -29,6 +29,7 @@
</el-tree>
</div>
</div>
<div class="currentCataLogueBox" v-if="currentCataLogueText">所属分类目录:{{currentCataLogueText}}</div>
<div class="top_tips" @click="searchDialog = true"><i class="el-icon-question"></i></div>
<div class="search_box">
<el-input class="search" @keyup.enter.native="getList(1)" placeholder="请输入资源关键字模糊搜索,展开高级搜索可使用更多搜索条件" v-model="listQuery.name">
......@@ -89,12 +90,12 @@
<span v-else style="color:#999999"><span class="down_status"></span>已下架</span>
</template>
</el-table-column>
<el-table-column align="center" prop="createdTime" label="关联图书" min-width="10%" show-overflow-tooltip>
<el-table-column align="center" prop="createdTime" label="关联图书(资源码)" min-width="10%" show-overflow-tooltip>
<template slot-scope="scope">
<span v-if="scope.row.nameList && scope.row.nameList.length > 0">{{scope.row.nameList.join(',')}}</span>
</template>
</el-table-column>
<el-table-column align="center" prop="createdTime" label="关联图书ISBN" min-width="10%" show-overflow-tooltip>
<el-table-column align="center" prop="createdTime" label="关联图书ISBN(资源码)" min-width="10%" show-overflow-tooltip>
<template slot-scope="scope">
<span v-if="scope.row.isbnList && scope.row.isbnList.length > 0">{{scope.row.isbnList.join(',')}}</span>
</template>
......@@ -212,7 +213,8 @@ import searchDia from "@/components/dialog/searchTips";
label: "typeName"
},
inResize: true,
sending: null
sending: null,
currentCataLogueText:'',
}
},
mounted() {
......@@ -437,6 +439,46 @@ import searchDia from "@/components/dialog/searchTips";
});
},
handleNodeClick(data) {
let firstCode = data.code.substring(0,2)
let secondCode = data.code.substring(0,4)
let thirdCode = data.code.substring(0,6)
let forthCode = data.code.substring(0,8)
let txt = ''
this.sortList[0].list.forEach((item,index) => {
if(firstCode){
if(firstCode == item.code){
txt = item.showName
}
}
if(item.list && item.list.length > 0){
item.list.forEach((x,y) => {
if(secondCode){
if(secondCode == x.code){
txt = txt + ' > ' + x.showName
}
}
if(x.list && x.list.length > 0){
x.list.forEach((a,b) => {
if(thirdCode){
if(thirdCode == a.code){
txt = txt + ' > ' + a.showName
}
}
if(a.list && a.list.length > 0){
a.list.forEach((q,w) => {
if(forthCode){
if(forthCode == q.code){
txt = txt + ' > ' + q.showName
}
}
})
}
})
}
})
}
})
this.currentCataLogueText = txt
//点击分类--搜索
this.inResize = false;
this.$nextTick(t => {
......
......@@ -29,6 +29,7 @@
</el-tree>
</div>
</div>
<div class="currentCataLogueBox" v-if="currentCataLogueText">所属分类目录:{{currentCataLogueText}}</div>
<div class="container">
<el-form inline size="small" :model="listQuery" ref="listQuery" :label-position="labelPosition" label-width="100px">
<el-form-item label="资源名称:">
......@@ -84,12 +85,12 @@
<span v-else style="color:#999999"><span class="down_status"></span>已下架</span>
</template>
</el-table-column>
<el-table-column align="center" prop="createdTime" label="关联图书" min-width="10%" show-overflow-tooltip>
<el-table-column align="center" prop="createdTime" label="关联图书(资源码)" min-width="10%" show-overflow-tooltip>
<template slot-scope="scope">
<span v-if="scope.row.nameList && scope.row.nameList.length > 0">{{scope.row.nameList.join(',')}}</span>
</template>
</el-table-column>
<el-table-column align="center" prop="createdTime" label="关联图书ISBN" min-width="10%" show-overflow-tooltip>
<el-table-column align="center" prop="createdTime" label="关联图书ISBN(资源码)" min-width="10%" show-overflow-tooltip>
<template slot-scope="scope">
<span v-if="scope.row.isbnList && scope.row.isbnList.length > 0">{{scope.row.isbnList.join(',')}}</span>
</template>
......@@ -217,6 +218,7 @@ export default {
action: "file/upload/info",
sending: null,
centerQRDialogVisible:false,
currentCataLogueText:'',
};
},
mounted() {
......@@ -473,6 +475,46 @@ export default {
});
},
handleNodeClick(data) {
let firstCode = data.code.substring(0,2)
let secondCode = data.code.substring(0,4)
let thirdCode = data.code.substring(0,6)
let forthCode = data.code.substring(0,8)
let txt = ''
this.sortList[0].list.forEach((item,index) => {
if(firstCode){
if(firstCode == item.code){
txt = item.showName
}
}
if(item.list && item.list.length > 0){
item.list.forEach((x,y) => {
if(secondCode){
if(secondCode == x.code){
txt = txt + ' > ' + x.showName
}
}
if(x.list && x.list.length > 0){
x.list.forEach((a,b) => {
if(thirdCode){
if(thirdCode == a.code){
txt = txt + ' > ' + a.showName
}
}
if(a.list && a.list.length > 0){
a.list.forEach((q,w) => {
if(forthCode){
if(forthCode == q.code){
txt = txt + ' > ' + q.showName
}
}
})
}
})
}
})
}
})
this.currentCataLogueText = txt
//点击分类--搜索
this.inResize = false;
this.$nextTick(t => {
......
......@@ -61,7 +61,7 @@
<div class="select_box">
<select-box :list="resourceList" @change="resourceTypeChange"></select-box>
<select-box title="指标筛选" :list="dimensionList" class="dimension" @change="dimensionChange"></select-box>
<select-box title="渠道" :list="irrigationDitchList" class="dimension" @change="irrigationDitchChange"></select-box>
<!-- <select-box title="渠道" :list="irrigationDitchList" class="dimension" @change="irrigationDitchChange"></select-box> -->
</div>
<echarts1 ref="chart_three" :height="400"></echarts1>
</div>
......@@ -153,7 +153,7 @@ export default {
tableRowStyle:{height:'50px'},
dateValue:[],
tabList:[
{name:'按时',check:false,value:1},
// {name:'按时',check:false,value:1},
{name:'按日',check:true,value:2},
{name:'按周',check:false,value:3},
{name:'按月',check:false,value:4},
......@@ -317,7 +317,7 @@ export default {
getResourceStatistics(){
getNumberAPI().then(res => {
if(res.data.code == 0){
let list = res.data.data
let list = res.data.data.filter((item) => item.type != 7)
let xData = []
let list1 = []
let list2 = []
......@@ -380,7 +380,7 @@ export default {
getResourceType(){
getNumberAllAPI().then(res => {
if(res.data.code == 0){
let list = res.data.data
let list = res.data.data.filter((item) => item.type != 7)
let list1 = []
list.forEach(item => {
let arr = this.resourcStaticList.filter(e => e.value == item.type)
......@@ -472,20 +472,24 @@ export default {
})
},
getResourceTrend(){
this.trendObj.startTime = this.dateValue ? this.dateValue[0] + ' 00:00:00' : null
this.trendObj.endTime = this.dateValue ? this.dateValue[1] + ' 23:59:59' : null
getResourceTrendAPI(this.trendObj).then(res => {
if(res.data.code == 0){
let list = res.data.data
let list1 = []
let list2 = []
list.forEach(item => {
list1.push(item.date)
list2.push(item.amount)
})
this.getResourceChange(list1,list2)
}
})
if(this.dateValue){
this.trendObj.startTime = this.dateValue ? this.dateValue[0] + ' 00:00:00' : null
this.trendObj.endTime = this.dateValue ? this.dateValue[1] + ' 23:59:59' : null
getResourceTrendAPI(this.trendObj).then(res => {
if(res.data.code == 0){
let list = res.data.data
let list1 = []
let list2 = []
list.forEach(item => {
list1.push(item.date)
list2.push(item.amount)
})
this.getResourceChange(list1,list2)
}
})
}else{
this.$message.warning('请先选择统计日期')
}
},
getResourceChange(list1,list2){
let option = {
......
......@@ -64,8 +64,7 @@
</template>
<script>
import { getPhysicalCodeAPI } from '@/api/statistics/traffic'
import { bookListAPI } from "@/api/resource/paperbook";
import { getPhysicalCodeAPI, bookQrListAPI } from '@/api/statistics/traffic'
import echarts1 from '@/components/echarts/echarts.vue'
export default {
name:'traffic_module',
......@@ -96,7 +95,7 @@ export default {
methods: {
getList() {
bookListAPI(this.listQuery).then(res => {
bookQrListAPI(this.listQuery).then(res => {
if (res.data.code === 0) {
this.dataList = res.data.data.list?res.data.data.list:[];
this.total = res.data.data.total?res.data.data.total:0;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论