Browse Source

Revert "--情报板发布次数 算具体设备发布的切屏次数-- 加总数量统计"

This reverts commit a7a52cc441.
develop
mengff 3 weeks ago
parent
commit
65150049d4
  1. 47
      ruoyi-ui/src/views/JiHeExpressway/pages/service/publicService/components/record/index.vue

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

@ -15,16 +15,17 @@
</template>
刷新
</ButtonGradient>
<span class="sum-total">发布实际数量{{ sumtotal }}</span>
</div>
<InputSearch ref="searchComp" style="width: 480px" :formList="searchFormList"
:formConfigOptions="{ dFormData: { eventState: '0' } }" @handleSearch="handleSearch" />
</div>
<!-- 内容 -->
<div class="body">
<Table :data="tableData">
<el-table-column label="序号" type="index" :index="indexMethod" width="100" align="center"
header-align="center" />
<ElTableColumn label="发布渠道" prop="publishChannels" width="120" align="center" header-align="center">
<template slot-scope="scope">
{{ enum_channels[scope.row.publishChannels] }}
@ -51,6 +52,8 @@
</el-carousel-item>
</el-carousel>
<span v-else>{{ scope.row.contentDetails }}</span>
<!-- <span >{{ scope.row.contentDetails }}</span> -->
</template>
</ElTableColumn>
<ElTableColumn label="发布人" prop="publisher" width="100" align="center" header-align="center" />
@ -60,6 +63,11 @@
<i class="el-icon-error" style="font-size: 24px; color:#BBB;" v-else></i>
</template>
</ElTableColumn>
<!-- <ElTableColumn label="操作" prop="status" width="100" align="center" header-align="center">
<template slot-scope="scope">
<el-button type="danger" icon="el-icon-delete" size="mini" @click="onDelete(scope.row.id)">删除</el-button>
</template>
</ElTableColumn> -->
</Table>
</div>
<!-- 分页 -->
@ -83,6 +91,7 @@ import InputSearch from "@screen/components/InputSearch/index.vue";
import { searchFormList } from "./data";
import moment from "moment";
import { Loading } from 'element-ui';
import { e } from 'mathjs';
export default {
name: 'boardRecord',
@ -107,15 +116,13 @@ export default {
isShowPhrases: false,
isShowDisposal: false,
total: 20,
sumtotal: 0,
eventType: 1,
searchData: {
pageSize: 20,
pageNum: 1
},
phrasesData: [],
process: [],
sum: 0 // sum data
process: []
}
},
created() {
@ -135,7 +142,7 @@ export default {
})
.then(function () {
request({
url: `/business/manage/${id}`,
url: `/business/manage/`+id,
method: "DELETE",
data: {},
}).then((result) => {
@ -164,6 +171,8 @@ export default {
data: self.searchData,
responseType: 'blob',
}).then((res) => {
console.log(res)
const url = window.URL.createObjectURL(new Blob([res]));
let link = document.createElement("a");
link.style.display = "none";
@ -209,15 +218,14 @@ export default {
return DirectionTypes[row.direction];
},
initData() {
this.sum = 0; // sum
request({
url: `/business/manage/statisticsList?pageNum=${this.searchData.pageNum}&pageSize=${this.searchData.pageSize}`,
method: "post",
params: { pageNum: this.searchData.pageNum, pageSize: this.searchData.pageSize },
data: this.searchData,
}).then((result) => {
if (result.code != 200) return this.$message.error(result?.msg);
let sum = 0;
if (result.code != 200) return Message.error(result?.msg);
result.rows.forEach(e => {
if(e.publishChannels === 4 || e.publishChannels === 7){
const contentDetailsInfo = JSON.parse(e.contentDetails)
@ -230,9 +238,9 @@ export default {
if(parameters && parameters.length > 0){
e.contentDetailsInfo = parameters
msg = ''
sum += parameters.length - 1
}
} else if (contentDetailsInfo[0].functions.length > 0) {
}
else if(contentDetailsInfo[0].functions.length > 0){
if(contentDetailsInfo[0].functions[0].functionId && contentDetailsInfo[0].functions[0].functionId === '1B'){
msg = '一键恢复操作'
}
@ -253,8 +261,14 @@ export default {
});
this.tableData = result.rows;
setTimeout(() => {
this.tableData = result.rows;
}, 200);
// this.$nextTick(()=>{
// })
this.total = result.total;
this.sumtotal = this.total + sum; // sumtotal
});
},
@ -286,12 +300,6 @@ export default {
display: flex;
gap: 6px;
}
.sum-total {
margin-left: 10px;
font-weight: bold;
color: #f6f1f1;
}
}
.body {
@ -318,15 +326,12 @@ export default {
.board_shower{
margin: 4px;
}
::v-deep .el-carousel__indicators--horizontal{
line-height: 0;
height: 16px;
line-height: 0; height: 16px;
.el-carousel__indicator--horizontal{
padding: 7px 4px;
}
}
::v-deep .el-table__cell div.cell {
padding: 0 10px !important;
}

Loading…
Cancel
Save