mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 23:46:44 +08:00
nbs统计文本过长问题修改
This commit is contained in:
@@ -93,7 +93,7 @@
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
<div style="overflow-x:auto;" class="max" @scroll="scrollChange" v-else>
|
<div style="overflow-x:auto;" class="max" @scroll="scrollChange" v-else>
|
||||||
<table class="max main-table" v-if="tableData">
|
<table class="max main-table" v-if="tableData && !isLoading">
|
||||||
<tr v-for="(item, i) in tableData.list" :key="i">
|
<tr v-for="(item, i) in tableData.list" :key="i">
|
||||||
<td v-if="nbsAgentGrade >= 400">
|
<td v-if="nbsAgentGrade >= 400">
|
||||||
<div class="status">{{ item.departmentCode }}</div>
|
<div class="status">{{ item.departmentCode }}</div>
|
||||||
@@ -124,6 +124,10 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
<div class="loading" v-else>
|
||||||
|
<van-loading />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<van-popup v-model="showPiker" position="bottom">
|
<van-popup v-model="showPiker" position="bottom">
|
||||||
<van-picker
|
<van-picker
|
||||||
@@ -143,7 +147,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { Sticky, Popup, Picker, DatetimePicker, Tag, Button } from 'vant'
|
import { Sticky, Popup, Picker, DatetimePicker, Tag, Button, Loading } from 'vant'
|
||||||
import { nbsTable, makeCustomerPDF, getRankList, getGankLevel, getTableList, exportExcel } from '@/api/ebiz/nbs'
|
import { nbsTable, makeCustomerPDF, getRankList, getGankLevel, getTableList, exportExcel } from '@/api/ebiz/nbs'
|
||||||
import config from '@/config'
|
import config from '@/config'
|
||||||
import dateUtil from '@/assets/js/utils/date-utils'
|
import dateUtil from '@/assets/js/utils/date-utils'
|
||||||
@@ -154,6 +158,7 @@ export default {
|
|||||||
[Popup.name]: Popup,
|
[Popup.name]: Popup,
|
||||||
[Picker.name]: Picker,
|
[Picker.name]: Picker,
|
||||||
[DatetimePicker.name]: DatetimePicker,
|
[DatetimePicker.name]: DatetimePicker,
|
||||||
|
[Loading.name]: Loading,
|
||||||
[Tag.name]: Tag,
|
[Tag.name]: Tag,
|
||||||
[Button.name]: Button
|
[Button.name]: Button
|
||||||
},
|
},
|
||||||
@@ -204,6 +209,7 @@ export default {
|
|||||||
list: []
|
list: []
|
||||||
},
|
},
|
||||||
excelUrl: '',
|
excelUrl: '',
|
||||||
|
isLoading: '',
|
||||||
nbsAgentGrade: ''
|
nbsAgentGrade: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -225,7 +231,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async created() {
|
async created() {
|
||||||
this.nbsAgentGrade = window.localStorage.getItem('nbsAgentGrade')
|
this.nbsAgentGrade = Number(window.localStorage.getItem('nbsAgentGrade'))
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.filterBtn() // 初始化下载按钮
|
this.filterBtn() // 初始化下载按钮
|
||||||
window.appCallBack = this.appCallBack //app回调
|
window.appCallBack = this.appCallBack //app回调
|
||||||
@@ -245,6 +251,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async getTableList() {
|
async getTableList() {
|
||||||
|
this.isLoading = true
|
||||||
let condition = {
|
let condition = {
|
||||||
departmentCode: this.params.picker_1.agentgroup ? this.params.picker_1.agentgroup : '',
|
departmentCode: this.params.picker_1.agentgroup ? this.params.picker_1.agentgroup : '',
|
||||||
branchCode: this.params.picker_2.agentgroup ? this.params.picker_2.agentgroup : '',
|
branchCode: this.params.picker_2.agentgroup ? this.params.picker_2.agentgroup : '',
|
||||||
@@ -369,15 +376,19 @@ export default {
|
|||||||
},
|
},
|
||||||
async appCallBack(data) {
|
async appCallBack(data) {
|
||||||
if (data.trigger == 'right_button_click') {
|
if (data.trigger == 'right_button_click') {
|
||||||
let params = { nbsState: this.$route.params.code }
|
if (window.localStorage.getItem('nbsAgentGrade') < 200) {
|
||||||
makeCustomerPDF(params).then(res => {
|
let params = { nbsState: this.$route.params.code }
|
||||||
if (res.result == '0') {
|
makeCustomerPDF(params).then(res => {
|
||||||
if (res.content.length > 0) {
|
if (res.result == '0') {
|
||||||
this.downLoadUrl = config.imgDomain + '/returnDirectStream?imgPath=' + res.content
|
if (res.content.length > 0) {
|
||||||
}
|
this.downLoadUrl = config.imgDomain + '/returnDirectStream?imgPath=' + res.content
|
||||||
} else return this.$toast(res.resultMessage)
|
console.log('this.downLoadUrl == ', this.downLoadUrl)
|
||||||
})
|
}
|
||||||
await this.exportExcel()
|
} else return this.$toast(res.resultMessage)
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
await this.exportExcel()
|
||||||
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
// eslint-disable-next-line no-undef
|
// eslint-disable-next-line no-undef
|
||||||
EWebBridge.webCallAppInJs('download', {
|
EWebBridge.webCallAppInJs('download', {
|
||||||
@@ -452,10 +463,11 @@ div.max {
|
|||||||
.status,
|
.status,
|
||||||
.name,
|
.name,
|
||||||
.date {
|
.date {
|
||||||
height: 27px;
|
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 27px;
|
word-wrap: break-word;
|
||||||
|
word-break: normal;
|
||||||
|
line-height: 1.5em;
|
||||||
}
|
}
|
||||||
.status,
|
.status,
|
||||||
.name {
|
.name {
|
||||||
@@ -552,4 +564,13 @@ div.max {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.loading {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
padding-top: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/deep/ .van-icon {
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user