|
@@ -4,48 +4,57 @@
|
|
<h1>{{ titleText }}下载余额明细</h1>
|
|
<h1>{{ titleText }}下载余额明细</h1>
|
|
</div>
|
|
</div>
|
|
<section class="box-container" v-loading="listState.loading">
|
|
<section class="box-container" v-loading="listState.loading">
|
|
- <el-table
|
|
|
|
- :data="listState.list"
|
|
|
|
- empty-text=""
|
|
|
|
- v-show="!showEmpty"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-table :data="listState.list" empty-text="" v-show="!showEmpty">
|
|
<el-table-column label="时间" width="170">
|
|
<el-table-column label="时间" width="170">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span class="max-line-3">
|
|
<span class="max-line-3">
|
|
- {{(scope.row.createTime * 1000) | formatTime('yyyy-MM-dd HH:mm') }}
|
|
|
|
|
|
+ {{
|
|
|
|
+ (scope.row.createTime * 1000) | formatTime('yyyy-MM-dd HH:mm')
|
|
|
|
+ }}
|
|
</span>
|
|
</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="类型">
|
|
<el-table-column label="类型">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- {{scope.row.userType | formatType }}
|
|
|
|
|
|
+ {{ scope.row.userType | formatType }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="余额变化(份)" >
|
|
|
|
|
|
+ <el-table-column label="余额变化(份)">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <span v-if="scope.row.userType === 0 || scope.row.userType === 5 || scope.row.userType === 7">-{{scope.row.number}}</span>
|
|
|
|
- <span class="highlight" v-else>+{{scope.row.number}}</span>
|
|
|
|
|
|
+ <span
|
|
|
|
+ v-if="
|
|
|
|
+ scope.row.userType === 0 ||
|
|
|
|
+ scope.row.userType === 5 ||
|
|
|
|
+ scope.row.userType === 7
|
|
|
|
+ "
|
|
|
|
+ >-{{ scope.row.number }}</span
|
|
|
|
+ >
|
|
|
|
+ <span class="highlight" v-else>+{{ scope.row.number }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="原因描述" min-width="230" align="center">
|
|
<el-table-column label="原因描述" min-width="230" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div v-if="scope.row.remarks">
|
|
<div v-if="scope.row.remarks">
|
|
<div v-if="scope.row.userType === 1">
|
|
<div v-if="scope.row.userType === 1">
|
|
- <div>{{scope.row.remarks.source}}</div>
|
|
|
|
- <div v-if="scope.row.remarks.endTime">有效期至:<span class="highlight">{{ scope.row.remarks.endTime }}</span></div>
|
|
|
|
|
|
+ <div>{{ scope.row.remarks.source }}</div>
|
|
|
|
+ <div v-if="scope.row.remarks.endTime">
|
|
|
|
+ 有效期至:<span class="highlight">{{
|
|
|
|
+ scope.row.remarks.endTime
|
|
|
|
+ }}</span>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<div v-else-if="scope.row.userType === 0">
|
|
<div v-else-if="scope.row.userType === 0">
|
|
<span>下载报告</span>
|
|
<span>下载报告</span>
|
|
</div>
|
|
</div>
|
|
<div v-else>
|
|
<div v-else>
|
|
- <span>{{scope.row.remarks.describe}}</span>
|
|
|
|
|
|
+ <span>{{ scope.row.remarks.describe }}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div v-else>--</div>
|
|
<div v-else>--</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
- <empty style="margin-top:0;" v-show="showEmpty">
|
|
|
|
|
|
+ <empty style="margin-top: 0" v-show="showEmpty">
|
|
<div class="flex-c-c center">
|
|
<div class="flex-c-c center">
|
|
<div>暂无数据</div>
|
|
<div>暂无数据</div>
|
|
</div>
|
|
</div>
|
|
@@ -76,12 +85,13 @@ export default {
|
|
components: {
|
|
components: {
|
|
Empty
|
|
Empty
|
|
},
|
|
},
|
|
- data () {
|
|
|
|
|
|
+ data() {
|
|
return {
|
|
return {
|
|
typeObj: {
|
|
typeObj: {
|
|
ent: '企业中标分析报告',
|
|
ent: '企业中标分析报告',
|
|
prop: '业主采购分析报告',
|
|
prop: '业主采购分析报告',
|
|
- market: '市场分析定制报告'
|
|
|
|
|
|
+ market: '市场分析定制报告',
|
|
|
|
+ analysis: '芝麻信用共建分析报告'
|
|
},
|
|
},
|
|
listState: {
|
|
listState: {
|
|
loaded: false, // 是否已经搜索过
|
|
loaded: false, // 是否已经搜索过
|
|
@@ -131,15 +141,15 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
- pageType () {
|
|
|
|
|
|
+ pageType() {
|
|
let type = 'market'
|
|
let type = 'market'
|
|
- const { active } = this.$route.query
|
|
|
|
- if( active && active.indexOf('balance') > -1) {
|
|
|
|
|
|
+ const { active } = this.$route.query
|
|
|
|
+ if (active && active.indexOf('balance') > -1) {
|
|
type = active.split('_')[1] || 'market'
|
|
type = active.split('_')[1] || 'market'
|
|
}
|
|
}
|
|
return type
|
|
return type
|
|
},
|
|
},
|
|
- titleText () {
|
|
|
|
|
|
+ titleText() {
|
|
return this.typeObj[this.pageType]
|
|
return this.typeObj[this.pageType]
|
|
},
|
|
},
|
|
showEmpty() {
|
|
showEmpty() {
|
|
@@ -150,22 +160,23 @@ export default {
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- async getList () {
|
|
|
|
|
|
+ async getList() {
|
|
const query = {
|
|
const query = {
|
|
productCode: this.$route.query.id || 1,
|
|
productCode: this.$route.query.id || 1,
|
|
pageNum: this.listState.pageNum, // 当前页
|
|
pageNum: this.listState.pageNum, // 当前页
|
|
- pageSize: this.listState.pageSize, // 每页多少条数据
|
|
|
|
|
|
+ pageSize: this.listState.pageSize // 每页多少条数据
|
|
}
|
|
}
|
|
this.listState.loading = true
|
|
this.listState.loading = true
|
|
this.listState.loaded = false
|
|
this.listState.loaded = false
|
|
const { data, error_code: code } = await getPDFPackDetail(query)
|
|
const { data, error_code: code } = await getPDFPackDetail(query)
|
|
- if(code === 0 && data) {
|
|
|
|
|
|
+ if (code === 0 && data) {
|
|
this.listState.loading = false
|
|
this.listState.loading = false
|
|
this.listState.loaded = true
|
|
this.listState.loaded = true
|
|
- this.listState.list = data.list?.map(item => {
|
|
|
|
- item.remarks = JSON.parse(item.remarks)
|
|
|
|
- return item
|
|
|
|
- }) || []
|
|
|
|
|
|
+ this.listState.list =
|
|
|
|
+ data.list?.map((item) => {
|
|
|
|
+ item.remarks = JSON.parse(item.remarks)
|
|
|
|
+ return item
|
|
|
|
+ }) || []
|
|
this.listState.total = data.total || 0
|
|
this.listState.total = data.total || 0
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -177,7 +188,7 @@ export default {
|
|
this.listState.pageNum = 1
|
|
this.listState.pageNum = 1
|
|
this.listState.pageSize = size
|
|
this.listState.pageSize = size
|
|
this.getList()
|
|
this.getList()
|
|
- },
|
|
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
@@ -189,29 +200,29 @@ $char_color: #1d1d1d;
|
|
padding: 24px;
|
|
padding: 24px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-.report-download-balance{
|
|
|
|
|
|
+.report-download-balance {
|
|
margin: 0 auto;
|
|
margin: 0 auto;
|
|
- .page-header{
|
|
|
|
|
|
+ .page-header {
|
|
height: 40px;
|
|
height: 40px;
|
|
- line-height:40px;
|
|
|
|
|
|
+ line-height: 40px;
|
|
vertical-align: text-bottom;
|
|
vertical-align: text-bottom;
|
|
- h1{
|
|
|
|
|
|
+ h1 {
|
|
display: inline-block;
|
|
display: inline-block;
|
|
font-size: 24px;
|
|
font-size: 24px;
|
|
- line-height:38px;
|
|
|
|
|
|
+ line-height: 38px;
|
|
color: $char_color;
|
|
color: $char_color;
|
|
margin-right: 12px;
|
|
margin-right: 12px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- .box-container{
|
|
|
|
|
|
+ .box-container {
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
background: #fff;
|
|
background: #fff;
|
|
- padding:20px;
|
|
|
|
- .box-title{
|
|
|
|
- font-size:16px;
|
|
|
|
|
|
+ padding: 20px;
|
|
|
|
+ .box-title {
|
|
|
|
+ font-size: 16px;
|
|
color: $char_color;
|
|
color: $char_color;
|
|
- line-height:24px;
|
|
|
|
|
|
+ line-height: 24px;
|
|
margin-bottom: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -220,7 +231,7 @@ $char_color: #1d1d1d;
|
|
}
|
|
}
|
|
.el-pagination-container {
|
|
.el-pagination-container {
|
|
margin-right: 0;
|
|
margin-right: 0;
|
|
- margin-top:38px;
|
|
|
|
|
|
+ margin-top: 38px;
|
|
padding-bottom: 18px;
|
|
padding-bottom: 18px;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -239,7 +250,7 @@ $char_color: #1d1d1d;
|
|
border-bottom-color: transparent;
|
|
border-bottom-color: transparent;
|
|
}
|
|
}
|
|
.empty-content-position .empty-main {
|
|
.empty-content-position .empty-main {
|
|
- margin-top:0;
|
|
|
|
|
|
+ margin-top: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|