Compare commits

...

2 Commits

  1. 26
      ruoyi-ui/src/views/JiHeExpressway/pages/service/publicService/components/record/index.vue

26
ruoyi-ui/src/views/JiHeExpressway/pages/service/publicService/components/record/index.vue

@ -217,7 +217,6 @@ export default {
data: this.searchData,
}).then((result) => {
if (result.code != 200) return this.$message.error(result?.msg);
let sum = 0;
result.rows.forEach(e => {
if (e.publishChannels === 4 || e.publishChannels === 7) {
const contentDetailsInfo = JSON.parse(e.contentDetails)
@ -230,7 +229,6 @@ export default {
if (parameters && parameters.length > 0) {
e.contentDetailsInfo = parameters
msg = ''
sum += parameters.length - 1
}
} else if (contentDetailsInfo[0].functions.length > 0) {
if (contentDetailsInfo[0].functions[0].functionId && contentDetailsInfo[0].functions[0].functionId === '1B') {
@ -254,7 +252,29 @@ export default {
this.tableData = result.rows;
this.total = result.total;
this.sumtotal = this.total + sum; // sumtotal
});
return request({
url: '/business/manage/statisticsListNoPage',
method: "post",
data: this.searchData,
}).then((result) => {
if (result.code != 200) return this.$message.error(result?.msg);
let sum = 0;
result.data.forEach(e => {
if (e.publishChannels === 4) {
const contentDetailsInfo = JSON.parse(e.contentDetails)
if (contentDetailsInfo.length > 0) {
if (contentDetailsInfo[0].functions.length > 1) {
const parameters = contentDetailsInfo[0].functions[1]?.params?.parameters
if (parameters && parameters.length > 0) {
e.contentDetailsInfo = parameters
sum += parameters.length - 1
}
}
}
}
});
this.sumtotal = result.data.length + sum; // sumtotal
});
},

Loading…
Cancel
Save