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