|
@@ -0,0 +1,241 @@
|
|
|
+<template>
|
|
|
+ <fullscreen :fullscreen.sync="fullscreen" class="container" style="margin: 0;">
|
|
|
+ <div class="container-box">
|
|
|
+ <div class="search">
|
|
|
+ <mySearch :searchList="searchList" @searchInfo="searchInfo"></mySearch>
|
|
|
+ <el-button class="btn-check" size="medium" type="primary" @click="outlist">导出
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ <div class="tabbox">
|
|
|
+ <el-table height="100%" class="com-table" ref="multipleTable" :data="tableData"
|
|
|
+ tooltip-effect="dark" size="small" border style="width: 100%" :header-cell-style="headerStyleFun" :cell-style="cellStyle">
|
|
|
+ <el-table-column prop="recordRegionName" align="center" fixed="left" label="地市"></el-table-column>
|
|
|
+ <el-table-column align="center" width="800px" :label="tooltit">
|
|
|
+ <el-table-column align="center" label="区县">
|
|
|
+ <el-table-column prop="fkzbs" align="center" label="区县个数" ></el-table-column>
|
|
|
+ <el-table-column prop="fkjh" align="center" label="扣罚次数"></el-table-column>
|
|
|
+ <el-table-column prop="fkzbs" align="center" label="扣分" ></el-table-column>
|
|
|
+ <el-table-column prop="fkjh" align="center" label="约谈"></el-table-column>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="center" label="人员">
|
|
|
+ <el-table-column prop="fkzbs" align="center" label="扣罚人数" ></el-table-column>
|
|
|
+ <el-table-column prop="fkzbs" align="center" label="扣罚人次" ></el-table-column>
|
|
|
+ <el-table-column prop="fkzbs" align="center" label="扣分" ></el-table-column>
|
|
|
+ <el-table-column prop="fkzbs" align="center" label="罚款" ></el-table-column>
|
|
|
+ <el-table-column prop="fkjh" align="center" label="通报"></el-table-column>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="center" label="渠道">
|
|
|
+ <el-table-column prop="fkzbs" align="center" label="渠道个数" ></el-table-column>
|
|
|
+ <el-table-column prop="fkzbs" align="center" label="扣罚次数" ></el-table-column>
|
|
|
+ <el-table-column prop="fkzbs" align="center" label="扣罚金额" ></el-table-column>
|
|
|
+ <el-table-column prop="fkzbs" align="center" label="关停工号(1个月、3个月)" ></el-table-column>
|
|
|
+ <el-table-column prop="fkzbs" align="center" label="6个月不允许开户" ></el-table-column>
|
|
|
+ <el-table-column prop="fkzbs" align="center" label="取消合作" ></el-table-column>
|
|
|
+ <el-table-column prop="fkzbs" align="center" label="警示教育(约谈、通报)" ></el-table-column>
|
|
|
+ <el-table-column prop="fkzbs" align="center" label="末梢渠道6个月不允许开户" ></el-table-column>
|
|
|
+ <el-table-column prop="fkzbs" align="center" label="末梢渠道取消合作" ></el-table-column>
|
|
|
+ <el-table-column prop="fkzbs" align="center" label="末梢渠道警示教育" ></el-table-column>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="center" fixed="right" label="操作">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button @click="handleClick(scope.row)" type="text" size="small">详情</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </fullscreen>
|
|
|
+</template>
|
|
|
+<script>
|
|
|
+ import mySearch from "../../../components/search.vue";
|
|
|
+ import toolList from "../../../components/toolList.vue";
|
|
|
+
|
|
|
+ export default {
|
|
|
+ components: {
|
|
|
+ mySearch,
|
|
|
+ toolList
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+
|
|
|
+ return {
|
|
|
+ tooltit: '处罚台账',
|
|
|
+ searchList: [{
|
|
|
+ type: 'month',
|
|
|
+ tit: '开始月份',
|
|
|
+ value: new Date(),
|
|
|
+ width: '49%',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: 'month',
|
|
|
+ tit: '结束月份',
|
|
|
+ value: new Date(),
|
|
|
+ width: '49%',
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ fullscreen: false,
|
|
|
+ total: 0,
|
|
|
+ pageSize: 1,
|
|
|
+ tableData: [],
|
|
|
+ params: {},
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ cellStyle(){
|
|
|
+ return "borderColor:black"
|
|
|
+ },
|
|
|
+ headerStyleFun({row, column, rowIndex, columnIndex}){
|
|
|
+ if (rowIndex === 0){
|
|
|
+ return "background-color:#d8e4bc;font-size:18px;font-weight:bold;color:black;borderColor:black"
|
|
|
+ }else {
|
|
|
+ return "background-color:#d8e4bc;font-size:14px;font-weight:bold;color:black;borderColor:black"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ handleClick(row){
|
|
|
+ window.sessionStorage.setItem("antiSpoofingSearchParams", JSON.stringify({
|
|
|
+ queryTime:[this.$formatDate(this.searchList[0].value, "YYYY-MM"), this.$formatDate(this.searchList[1].value, "YYYY-MM")],
|
|
|
+ city:row.city
|
|
|
+ }))
|
|
|
+ this.$router.push({
|
|
|
+ path: "/districtCounty"
|
|
|
+ });
|
|
|
+ },
|
|
|
+ //搜索数据
|
|
|
+ searchInfo(v) {
|
|
|
+ this.params = {};
|
|
|
+ v[0] ? this.params.opTimeFrom = this.$formatDate(v[0], "YYYY-MM") : '';
|
|
|
+ v[1] ? this.params.opTimeTo = this.$formatDate(v[1], "YYYY-MM") : '';
|
|
|
+ this.getList(this.params, this.pageSize);
|
|
|
+ },
|
|
|
+ //获取列表
|
|
|
+ getList(v, n) {
|
|
|
+ this.pageSize = n;
|
|
|
+ let _this = this;
|
|
|
+ this.$http({
|
|
|
+ url: "/market/cwcompetitor/queryTotalPage",
|
|
|
+ method: "post",
|
|
|
+ headers: {
|
|
|
+ "Content-Type": "application/json",
|
|
|
+ "page": '{"pageNo":"' + n + '","pageSize":"10"}'
|
|
|
+ },
|
|
|
+ data: v,
|
|
|
+ }).then((res) => {
|
|
|
+ this.tableData = res.data.data;
|
|
|
+ this.total = res.data.totalRecord;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // =======================
|
|
|
+ outlist() {
|
|
|
+ let data = {}
|
|
|
+ // data.tital = JSON.stringify(data.tital)
|
|
|
+ console.log(data);
|
|
|
+ // return
|
|
|
+ this.$http({
|
|
|
+ url: "/market/cwcompetitor/excelExport",
|
|
|
+ method: "post",
|
|
|
+ headers: {
|
|
|
+ "Content-Type": "application/json",
|
|
|
+ },
|
|
|
+ responseType: "blob",
|
|
|
+ data: data,
|
|
|
+ }).then((response) => {
|
|
|
+ if (window.navigator && window.navigator.msSaveOrOpenBlob) {
|
|
|
+ let blob = new Blob([response.data], {
|
|
|
+ type: 'application/vnd.ms-excel'
|
|
|
+ })
|
|
|
+ window.navigator.msSaveOrOpenBlob(blob,
|
|
|
+ new Date().getTime() + '.xlsx')
|
|
|
+ } else {
|
|
|
+ /* 火狐谷歌的文件下载方式 */
|
|
|
+ var blob = new Blob([response.data])
|
|
|
+ var downloadElement = document.createElement('a')
|
|
|
+ var href = window.URL.createObjectURL(blob)
|
|
|
+ downloadElement.href = href
|
|
|
+ downloadElement.download = new Date().getTime() + '.xlsx'
|
|
|
+ document.body.appendChild(downloadElement)
|
|
|
+ downloadElement.click()
|
|
|
+ document.body.removeChild(downloadElement)
|
|
|
+ window.URL.revokeObjectURL(href)
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ this.getList([this.searchList[0].value, this.searchList[1].value], 1);
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+</script>
|
|
|
+<style scoped lang="scss">
|
|
|
+ .onetab {
|
|
|
+ margin-bottom: 20px;
|
|
|
+ padding: 0 20px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .titbox {
|
|
|
+ div {
|
|
|
+ float: right;
|
|
|
+
|
|
|
+ i {
|
|
|
+ font-size: 22px;
|
|
|
+ margin-left: 20px;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .tabbox {
|
|
|
+ margin-top: 15px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .pageBox {
|
|
|
+ text-align: right;
|
|
|
+ margin-top: 10px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .info-line {
|
|
|
+ width: 100%;
|
|
|
+ display: block;
|
|
|
+ padding-left: 20px;
|
|
|
+
|
|
|
+ div {
|
|
|
+ width: 50%;
|
|
|
+ display: inline-block;
|
|
|
+ }
|
|
|
+
|
|
|
+ span {
|
|
|
+ width: 80px;
|
|
|
+ display: inline-block;
|
|
|
+ text-align: left;
|
|
|
+
|
|
|
+ i {
|
|
|
+ color: red;
|
|
|
+ display: inline-block;
|
|
|
+ padding-right: 5px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-select,
|
|
|
+ .el-input {
|
|
|
+ width: calc(100% - 100px);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .online {
|
|
|
+ width: 100%;
|
|
|
+
|
|
|
+ .el-select {
|
|
|
+ width: calc(100% - 100px);
|
|
|
+ }
|
|
|
+
|
|
|
+ span {
|
|
|
+ vertical-align: top;
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-textarea {
|
|
|
+ width: calc(100% - 100px);
|
|
|
+ }
|
|
|
+ }
|
|
|
+</style>
|