From a421125e59ff405b334026383bd4f4f354fa16b1 Mon Sep 17 00:00:00 2001
From: lin <sbla5888@163.com>
Date: Mon, 25 Mar 2024 17:46:41 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/api/disputeRecord/disputeRecord.js            |   49 +
 src/api/article/articleIntegral.js                |   13 
 src/views/backblask/BackblastArticle.vue          |  772 ++++++++++++++++++++++
 src/views/backblask/BackblastWarnHanRec.vue       |    1 
 src/views/backblask/BackblastPubRecord.vue        |    1 
 src/views/disputeRecord/disputeRecord.vue         |  812 +++++++++++++++++++++++
 src/views/backblask/components/deitDiscussion.vue |  336 +++++++++
 7 files changed, 1,984 insertions(+), 0 deletions(-)

diff --git a/src/api/article/articleIntegral.js b/src/api/article/articleIntegral.js
new file mode 100644
index 0000000..e6b06f6
--- /dev/null
+++ b/src/api/article/articleIntegral.js
@@ -0,0 +1,13 @@
+import request from '@/router/axios';
+
+export const getList = (current, size, params) => {
+  return request({
+    url: '/api/blade-articleIntegral/articleIntegral/page',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
\ No newline at end of file
diff --git a/src/api/disputeRecord/disputeRecord.js b/src/api/disputeRecord/disputeRecord.js
new file mode 100644
index 0000000..cbda36e
--- /dev/null
+++ b/src/api/disputeRecord/disputeRecord.js
@@ -0,0 +1,49 @@
+import request from '@/router/axios';
+
+export const getList = (current, size, params) => {
+  return request({
+    url: '/api/blade-disputeRecord/disputeRecord/page',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+
+export const remove = (ids) => {
+  return request({
+    url: '/api/blade-disputeRecord/disputeRecord/remove',
+    method: 'post',
+    params: {
+      ids,
+    }
+  })
+}
+
+export const add = (row) => {
+  return request({
+    url: '/api/blade-disputeRecord/disputeRecord/saveOrUpdate',
+    method: 'post',
+    data: row
+  })
+}
+
+export const update = (row) => {
+  return request({
+    url: '/api/blade-disputeRecord/disputeRecord/saveOrUpdate',
+    method: 'post',
+    data: row
+  })
+}
+
+export const getDetail = (id) => {
+  return request({
+    url: '/api/blade-disputeRecord/disputeRecord/getDetail',
+    method: 'get',
+    params: {
+      id
+    }
+  })
+}
diff --git a/src/views/backblask/BackblastArticle.vue b/src/views/backblask/BackblastArticle.vue
new file mode 100644
index 0000000..41177fb
--- /dev/null
+++ b/src/views/backblask/BackblastArticle.vue
@@ -0,0 +1,772 @@
+<template>
+  <basic-container>
+    <avue-crud :option="option" :table-loading="loading" :data="data" :page.sync="page" ref="crud" @row-del="rowDel"
+      v-model="form" :permission="permissionList" @row-update="rowUpdate" @row-save="rowSave" :before-open="beforeOpen"
+      @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange"
+      @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
+      <template slot="menuLeft">
+        <el-button size="small" icon="el-icon-delete" plain v-if="permission.article_delete" @click="handleDelete">删
+          除
+        </el-button>
+      </template>
+
+      <template slot-scope="{type,size,row }" slot="menu">
+
+        <el-button icon="el-icon-user" :size="size" :type="type" @click.stop="openUserPopup(row, 1)">
+          浏览人员
+        </el-button>
+
+        <el-button v-if="row.publish == '1'" icon="el-icon-close" :size="size" :type="type" @click.stop="updateFb(row)">
+          撤销
+        </el-button>
+
+        <el-button v-if="row.publish == '0'" icon="el-icon-check" :size="size" :type="type" @click.stop="updateFb(row)">
+          发布
+        </el-button>
+      </template>
+
+      <template slot-scope="{ row, size }" slot="publish">
+        <el-tag :size="size" :type="showStatus(row.publish, 1).type" v-text="showStatus(row.publish, 1).text">
+        </el-tag>
+      </template>
+
+      <template slot-scope="{ row, size }" slot="iscomment">
+        <el-switch @change="iscommentInput($event, row)" v-model="row.iscomment" :active-value="'1'"
+          :inactive-value="'0'" active-color="#13ce66" inactive-color="#ccc">
+        </el-switch>
+      </template>
+    </avue-crud>
+
+    <deitDiscussion ref="DeitDiscussion">
+    </deitDiscussion>
+  </basic-container>
+</template>
+
+<script>
+  import {
+    getList,
+    remove,
+    update,
+    add,
+    getNotice,
+    upcomment
+  } from "@/api/article/article"
+
+  import website from '@/config/website'
+  import deitDiscussion from "./components/deitDiscussion"
+  import {
+    mapGetters
+  } from "vuex"
+  export default {
+    components: {
+      deitDiscussion,
+    },
+    data() {
+      return {
+        discussForm: {
+          ontitle: '',
+          title: '',
+          openFlag: 0,
+          numberRestrictions: 0,
+          voteRestrictions: 0,
+          userRestrictions: 0,
+          signatureFlag: 0,
+          endTime: '',
+          articleId: '',
+          createTime: '',
+          updateTime: '',
+          deleteFlag: '',
+          repeatVote: 0,
+          voteNumberPublic: 0,
+          appointUser: 0,
+          userIds: '',
+          eventType: 1,
+        },
+        form: {},
+        query: {},
+        loading: true,
+        page: {
+          pageSize: 10,
+          currentPage: 1,
+          total: 0,
+        },
+        datetime: "",
+        selectionList: [],
+        option: {
+          labelWidth: 96,
+          searchLabelWidth: 96,
+          searchShow: true,
+          searchMenuSpan: 3,
+          menuWidth: 280,
+
+          height: "auto",
+          calcHeight: 54,
+          dialogWidth: 950,
+          tip: false,
+          border: true,
+          //stripe:true,
+          index: true,
+          viewBtn: false,
+          selection: true,
+          excelBtn: true,
+          dialogClickModal: false,
+          column: [{
+              overHidden: true,
+              label: "宣传标题",
+              prop: "title",
+              span: 24,
+              row: true,
+              searchSpan: 4,
+              search: true,
+              searchLabelWidth: 76,
+              rules: [{
+                required: true,
+                message: "请输入宣传标题",
+                trigger: "blur",
+              }, ],
+            },
+            {
+              label: "范围",
+              prop: "articleRange",
+              span: 24,
+              minRows: 2,
+              tags: true,
+              type: "tree",
+              multiple: true,
+              dicUrl:"/api/blade-district/district/getDistrictTree?filterFlag=1",
+              dataType:"string",
+              rules: [{
+                required: true,
+                message: "请选择范围",
+                trigger: "blur",
+              }, ],
+              props: {
+                label: "name",
+                value: 'id'
+              },
+              // hide: true,
+            },
+            {
+              width: 110,
+              label: "封面",
+              prop: "url",
+              // align:'center',
+              type: "upload",
+              listType: "picture-img",
+              action: "/api/blade-resource/oss/endpoint/put-file",
+              propsHttp: {
+                res: "data",
+                url: "link",
+              },
+              // hide: true,
+              span: 24,
+            },
+            // {
+            //   width: 110,
+            //   label: "宣传类型",
+            //   prop: "articleType",
+            //   addDisplay: true,
+            //   editDisplay: true,
+            //   viewDisplay: true,
+            //   searchSpan: 4,
+            //   checkStrictly: true,
+            //   dicUrl: "/api/blade-system/dict-biz/dictionary?code=investigateType",
+            //   props: {
+            //     label: "dictValue",
+            //     value: "dictKey",
+            //   },
+            //   search: true,
+            //   type: "tree",
+            //   rules: [{
+            //     required: true,
+            //     message: "请选择宣传类型",
+            //     trigger: "blur",
+            //   }, ],
+            // },
+            {
+              width: 110,
+              label: "观看得分",
+              prop: "score",
+              type: "number",
+              align:"center",
+              value:2,
+              rules: [{
+                required: true,
+                message: "请输入观看得分",
+                trigger: "blur",
+              }, ],
+            },
+            {
+              width: 100,
+              label: "发布时间",
+              prop: "createTime",
+              type: "date",
+              format: "yyyy-MM-dd",
+              valueFormat: "yyyy-MM-dd HH:mm:ss",
+              search: true,
+              addDisplay: false,
+              editDisplay: false,
+              viewDisplay: false,
+            },
+            {
+              width: 100,
+              label: "发布状态",
+              prop: "publish",
+              searchSpan: 4,
+              value: "0",
+              slot: true,
+              search: true,
+              type: "select",
+              rules: [{
+                required: true,
+                message: "请选择发布状态",
+                trigger: "blur",
+              }, ],
+              dicData: [{
+                  label: "未发布",
+                  value: "0",
+                },
+                {
+                  label: "已发布",
+                  value: "1",
+                }
+              ],
+            },
+            {
+              span: 24,
+              label: "评论区",
+              prop: "iscomment",
+              width: 80,
+              slot: true,
+              type: "switch",
+              activeColor: "#13ce66",
+              inactiveColor: "#ccc",
+              value: '1',
+              dicData: [{
+                  label: "关闭",
+                  value: "0",
+                },
+                {
+                  label: "开启",
+                  value: "1",
+                }
+              ],
+            },
+            {
+              label: "视频",
+              prop: "videoUrl",
+              type: "upload",
+              accept: "video/mp4",
+              display: false,
+              hide: true,
+              span: 24,
+              listType: "picture-img",
+              action: "/api/depl/put-depl",
+              propsHttp: {
+                url: "data",
+              },
+            },
+            {
+              label: "宣传内容",
+              prop: "content",
+              component: "AvueUeditor",
+              options: {
+                action: "/api/blade-resource/oss/endpoint/put-file",
+                // customConfig: {
+                //   lineHeights: ['1', '1.15', '1.6', '2', '2.5', '3']
+                // },//wangEditor编辑的配置
+                props: {
+                  res: "data",
+                  url: "link",
+                },
+              },
+              hide: true,
+              minRows: 6,
+              span: 24,
+            },
+          ],
+        },
+        data: [],
+        optionDiscuss: {
+          column: [{
+              label: "",
+              type: 'title',
+              prop: "title",
+              span: 24,
+              row: true,
+              offset: 2,
+              styles: {
+                fontSize: '24px'
+              }
+            }, {
+              labelWidth: 100,
+              label: '开启投票',
+              prop: 'openFlag',
+              type: 'radio',
+              button: true,
+              row: true,
+              offset: 6,
+              dicData: [{
+                label: '开启',
+                value: 0
+              }, {
+                label: '不开启',
+                value: 1
+              }],
+              rules: [{
+                required: true,
+                message: "请选择开启状态",
+                trigger: "blur",
+              }, ],
+            }, {
+              labelWidth: 100,
+              label: '投票限制',
+              prop: 'voteRestrictions',
+              type: 'radio',
+              button: true,
+              row: true,
+              offset: 6,
+              dicData: [{
+                label: '一人一票',
+                value: 0
+              }, {
+                label: '一户一票',
+                value: 1
+              }],
+              rules: [{
+                required: true,
+                message: "请选择投票限制",
+                trigger: "blur",
+              }, ],
+            }, {
+              labelWidth: 100,
+              label: '签名',
+              prop: 'signatureFlag',
+              type: 'radio',
+              button: true,
+              row: true,
+              offset: 6,
+              dicData: [{
+                label: '不需要',
+                value: 0
+              }, {
+                label: '需要',
+                value: 1
+              }],
+              rules: [{
+                required: true,
+                message: "请选择是否签名",
+                trigger: "blur",
+              }, ],
+            }, {
+              labelWidth: 100,
+              label: '指定用户',
+              prop: 'appointUser',
+              type: 'radio',
+              button: true,
+              row: true,
+              offset: 6,
+              dicData: [{
+                label: '不限制',
+                value: 0
+              }, {
+                label: '指定用户',
+                value: 1
+              }],
+              rules: [{
+                required: true,
+                message: "请选择是否指定用户",
+                trigger: "blur",
+              }, ],
+            },
+            {
+              label: "截止时间",
+              row: true,
+              offset: 6,
+              prop: "endTime",
+              type: "datetime",
+              format: "yyyy-MM-dd hh:mm:ss",
+              valueFormat: "timestamp",
+              rules: [{
+                required: true,
+                message: "请选择截止时间",
+                trigger: "blur",
+              }, ],
+            },
+          ]
+        },
+        districtTree: [],
+      }
+    },
+    watch: {
+      "form.articleType": {
+        handler(val) {
+          if (val) {
+            var videoUrl = this.findObject(this.option.column, "videoUrl")
+            var content = this.findObject(this.option.column, "content")
+            if (val.indexOf('ksp') != -1) {
+              videoUrl.display = true
+              content.display = false
+              videoUrl.rules = [{
+                required: false,
+                message: "请选择视频",
+                trigger: "blur",
+              }, ]
+            } else {
+              videoUrl.display = false
+              content.display = true
+              videoUrl.rules = ""
+            }
+          }
+        },
+        immediate: true,
+      }
+    },
+    computed: {
+      ...mapGetters(["permission", "userInfo"]),
+      permissionList() {
+        return {
+          addBtn: this.vaildData(this.permission.article_add, true),
+          viewBtn: this.vaildData(this.permission.article_view, true),
+          delBtn: this.vaildData(this.permission.article_delete, true),
+          editBtn: this.vaildData(this.permission.article_edit, true),
+        }
+      },
+
+      ids() {
+        let ids = []
+        this.selectionList.forEach((ele) => {
+          ids.push(ele.id)
+        })
+        return ids.join(",")
+      },
+
+      showStatus() {
+        return (data, type) => {
+          if (data == 0) {
+            return {
+              text: type == 1 ? '未发布' : '关闭',
+              type: 'info'
+            }
+          } else if (data == 1) {
+            return {
+              text: type == 1 ? '已发布' : '开启',
+              type: 'success'
+            }
+          }
+        }
+      }
+    },
+    methods: {
+      iscommentInput(e, data) {
+        upcomment(data.id, e).then(() => {
+          this.$message({
+            type: "success",
+            message: "操作成功!",
+          })
+        })
+      },
+
+      openEditPopup(row) {
+        getListPd(1, 10, {
+          eventType: 1,
+          articleId: row.id
+        }).then(res => {
+          if (res.data.data.records.length == 0) {
+            this.$message.warning('请先设置宣传规则!')
+            setTimeout(() => {
+              this.openDilog(row, 1)
+            }, 200)
+          } else {
+            this.$refs.DeitDiscussion.initData(row)
+          }
+        })
+      },
+
+      openUserPopup(row) {
+        this.$refs.DeitDiscussion.openUser(row)
+      },
+
+      openDilog(row, type) {
+        var that = this
+        this.$nextTick(() => {
+          that.$refs.discussionManageChild.init(row)
+        })
+      },
+
+      rowSave(row, done, loading) {
+        if (row.videoUrl.length == 0) {
+          row.videoUrl = ""
+        }
+        row.userid = this.userInfo.user_id
+        // row.articleRange = JSON.stringify(row.articleList)
+        if (row.url.length > 0) {
+          var urls = []
+          var split = row.url.split(",")
+          split.forEach(url => {
+            var names = url.split("jczz/")
+            urls.push(names[1])
+          })
+          row.url = urls.join(",")
+        }
+        // 类型  0:文章 1经营性收支,2:物业招标 3:公益报名 4:选举调查 5: 业主大会 6:反诈宣传
+        row.type = 6
+        add(row).then(
+          () => {
+            this.onLoad(this.page)
+            this.$message({
+              type: "success",
+              message: "操作成功!",
+            })
+            done()
+          },
+          (error) => {
+            window.console.log(error)
+            loading()
+          }
+        )
+      },
+      rowUpdate(row, index, done, loading) {
+        // row.articleRange = JSON.stringify(row.articleList)
+        if (row.url.length > 0) {
+          var urls = []
+          var split = row.url.split(",")
+          split.forEach(url => {
+            var names = url.split("jczz/")
+            urls.push(names[1])
+          })
+          row.url = urls.join(",")
+        }
+
+        update(row).then(
+          () => {
+            this.onLoad(this.page)
+            this.$message({
+              type: "success",
+              message: "操作成功!",
+            })
+            done()
+          },
+          (error) => {
+            window.console.log(error)
+            loading()
+          }
+        )
+      },
+      rowDel(row) {
+        this.$confirm("确定将选择数据删除?", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+          })
+          .then(() => {
+            return remove(row.id)
+          })
+          .then(() => {
+            this.onLoad(this.page)
+            this.$message({
+              type: "success",
+              message: "操作成功!",
+            })
+          })
+      },
+      searchReset() {
+        this.query = {}
+        this.onLoad(this.page)
+      },
+      searchChange(params, done) {
+        this.query = params
+        this.page.currentPage = 1
+        this.onLoad(this.page, params)
+        done()
+      },
+      selectionChange(list) {
+        this.selectionList = list
+      },
+      selectionClear() {
+        this.selectionList = []
+        this.$refs.crud.toggleSelection()
+      },
+      handleDelete() {
+        if (this.selectionList.length === 0) {
+          this.$message.warning("请选择至少一条数据")
+          return
+        }
+        this.$confirm("确定将选择数据删除?", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+          })
+          .then(() => {
+            return remove(this.ids)
+          })
+          .then(() => {
+            this.onLoad(this.page)
+            this.$message({
+              type: "success",
+              message: "操作成功!",
+            })
+            this.$refs.crud.toggleSelection()
+          })
+      },
+      beforeOpen(done, type) {
+        if (["edit", "view"].includes(type)) {
+          getNotice(this.form.id).then((res) => {
+            let data = res.data.data
+            // data.forEach(item=>{
+            if (data.url.length > 0) {
+              var urls = []
+              var names = data.url.split(",")
+              names.forEach(name => {
+                urls.push(website.minioUrl + name)
+              })
+              data.url = urls.join(",")
+            }
+            // })
+            // this.form = {
+            //   ...data,
+            //   articleList: JSON.parse(data.articleRange)
+            // }
+          })
+        }
+        // con
+        done()
+      },
+      currentChange(currentPage) {
+        this.page.currentPage = currentPage
+      },
+      sizeChange(pageSize) {
+        this.page.pageSize = pageSize
+      },
+      refreshChange() {
+        this.onLoad(this.page, this.query)
+      },
+      onLoad(page, params = {}) {
+        const {
+          dateTime
+        } = this.query
+        let values = {
+          ...params,
+        }
+        if (dateTime) {
+          values = {
+            ...params,
+            startTime: dateTime[0],
+            endTime: dateTime[1],
+            ...this.query,
+          }
+          values.dateTime = null
+        }
+        // 类型为反诈宣传的
+        values.type = 6
+        this.loading = true
+        console.log(values)
+        getList(page.currentPage, page.pageSize, values).then((res) => {
+          const data = res.data.data
+          this.page.total = data.total
+          this.data = data.records
+          this.data.forEach(item => {
+            // item.articleRange = JSON.parse(item.articleRange)
+            if (item.url.length > 0) {
+              var urls = []
+              var names = item.url.split(",")
+              names.forEach(name => {
+                urls.push(website.minioUrl + name)
+              })
+              item.url = urls.join(",")
+            }
+          })
+          this.loading = false
+          this.selectionClear()
+        })
+        // getDistrictTree(params = {
+        //   filterFlag: 1
+        // }).then((res) => {
+        //   const data = res.data.data
+        //   this.districtTree = data
+        //   const column = this.findObject(this.option.column, "articleList")
+        //   column.dicData = res.data.data
+        //   this.loading = false
+        // })
+      },
+      updateFb(row) {
+        if (row.publish == "0") {
+          row.publish = "1"
+        } else {
+          row.publish = "0"
+        }
+        if (row.url.length > 0) {
+          var urls = []
+          var split = row.url.split(",")
+          split.forEach(url => {
+            var names = url.split("jczz/")
+            urls.push(names[1])
+          })
+          row.url = urls.join(",")
+        }
+        update(row).then(
+          () => {
+            this.onLoad(this.page)
+            this.$message({
+              type: "success",
+              message: "操作成功!",
+            })
+            done()
+          },
+          (error) => {
+            window.console.log(error)
+            loading()
+          }
+        )
+      },
+      kqcomment() {
+        if (this.selectionList.length === 0) {
+          this.$message.warning("请选择至少一条数据")
+          return
+        }
+        this.$confirm("确定将选择数据开启评论?", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+          }).then(() => {
+            return upcomment(this.ids, "1")
+          })
+          .then(() => {
+            this.onLoad(this.page)
+            this.$message({
+              type: "success",
+              message: "操作成功!",
+            })
+            this.$refs.crud.toggleSelection()
+          })
+      },
+      gbcomment() {
+        if (this.selectionList.length === 0) {
+          this.$message.warning("请选择至少一条数据")
+          return
+        }
+        this.$confirm("确定将选择数据开启评论?", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+          }).then(() => {
+            return upcomment(this.ids, "0")
+          })
+          .then(() => {
+            this.onLoad(this.page)
+            this.$message({
+              type: "success",
+              message: "操作成功!",
+            })
+            this.$refs.crud.toggleSelection()
+          })
+      }
+    },
+  }
+</script>
+
+<style>
+  .avue-upload__icon {
+    line-height: 6;
+  }
+</style>
\ No newline at end of file
diff --git a/src/views/backblask/BackblastPubRecord.vue b/src/views/backblask/BackblastPubRecord.vue
index 9f36495..82751f4 100644
--- a/src/views/backblask/BackblastPubRecord.vue
+++ b/src/views/backblask/BackblastPubRecord.vue
@@ -395,6 +395,7 @@
                 this.page.total = data.total
                 this.data = data.records
                 this.data.forEach(item => {
+                    this.$set(item, 'policemanPhoneflag', false)
                     if (item.pubUrls && item.pubUrls != '' && item.pubUrls != null && item.pubUrls.length) {
                         var urls = []
                         var names = item.pubUrls.split(",").filter(item => item != '')
diff --git a/src/views/backblask/BackblastWarnHanRec.vue b/src/views/backblask/BackblastWarnHanRec.vue
index 721eff8..1efd5a5 100644
--- a/src/views/backblask/BackblastWarnHanRec.vue
+++ b/src/views/backblask/BackblastWarnHanRec.vue
@@ -397,6 +397,7 @@
                 this.page.total = data.total
                 this.data = data.records
                 this.data.forEach(item => {
+                    this.$set(item, 'policemanPhoneflag', false)
                     if (item.sceUrls && item.sceUrls != '' && item.sceUrls != null && item.sceUrls.length) {
                         var urls = []
                         var names = item.sceUrls.split(",").filter(item => item != '')
diff --git a/src/views/backblask/components/deitDiscussion.vue b/src/views/backblask/components/deitDiscussion.vue
new file mode 100644
index 0000000..e936972
--- /dev/null
+++ b/src/views/backblask/components/deitDiscussion.vue
@@ -0,0 +1,336 @@
+<template>
+  <div>
+    <el-dialog :title="title" append-to-body :visible.sync="popupTableUserShow" width="80%" :before-close="userHandleClose">
+      <basic-container>
+        <avue-crud :data="userData" :page="userPage" :option="userOption" @search-change="searchChange"
+          @search-reset="searchReset">
+          <!-- <template slot-scope="{type,size,row }" slot="menuLeft">
+            <el-button type="warning" size="small" plain icon="el-icon-download" @click="handleExport">导出
+            </el-button>
+          </template> -->
+        </avue-crud>
+      </basic-container>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+import {
+  addPd,
+  updatePd
+} from "@/api/discuss/publicDiscuss"
+
+import {
+  getList as getPage
+} from "@/api/article/articleIntegral"
+import 'nprogress/nprogress.css'
+import website from '@/config/website'
+
+
+import {
+  getLists,
+  getList,
+  getDetail,
+  add,
+  update,
+  remove
+} from "@/api/discuss/topics"
+
+export default {
+  data() {
+    return {
+      popupTableShow: false,
+      popupTableUserShow: false,
+
+      loading: true,
+
+      title: '浏览人员信息',
+      editFlag: false,
+      disCussFromListClone: {},
+      disCussFrom: {
+        discussContent: '',
+        optionRange: 0,
+        sort: 1,
+        optionContent: '',
+        optionDetail: '',
+        number: '',
+        createTime: '',
+        updateTime: '',
+        deleteFlag: '',
+        articleId: '',
+        parentId: '',
+        level: '',
+        children: [{
+          optionContent: '',
+          optionDetail: '',
+          number: '',
+          createTime: '',
+          updateTime: '',
+          deleteFlag: '',
+          articleId: '',
+          parentId: '',
+          level: '',
+        }]
+      },
+      // 表单数据
+      form: {
+        optionRange: 0,
+      },
+      data: [],
+      articleId: '',
+      userData: [],
+      userOption: {
+        labelWidth: 96,
+        searchLabelWidth: 96,
+        searchShow: true,
+        searchMenuSpan: 3,
+        // menuWidth: 500,
+        menu: false,
+        height: "400px",
+        calcHeight: 54,
+        dialogWidth: 950,
+        tip: false,
+        border: true,
+        //stripe:true,
+        index: true,
+        editBtn: false,
+        addBtn: false,
+        viewBtn: false,
+        selection: true,
+        delBtn: false,
+        excelBtn: true,
+        dialogClickModal: false,
+        header: true,
+        column: [{
+          label: '姓名',
+          prop: 'realName',
+          searchSpan: 4,
+          search: true,
+          searchLabelWidth: 46,
+          width:100,
+        }, {
+          label: '头像',
+          type: 'upload',
+          listType: "picture-img",
+          prop: 'avatar',
+          width:100,
+        }, {
+          label: '手机',
+          prop: 'phone',
+          searchSpan: 4,
+          searchLabelWidth: 60,
+          search: true,
+          width:100,
+
+        }, {
+          label: '小区',
+          prop: 'aoiName',
+          width:180,
+          overHidden:true,
+        }, {
+          label: '地址',
+          prop: 'address',
+          minWidth:100,
+          overHidden:true,
+
+        }, {
+          label: '浏览时间',
+          prop: 'createTime',
+          width:160,
+        },
+        {
+          label: '获得积分',
+          prop: 'score',
+          width:160,
+          width:80,
+          align:"center",
+        }
+      ]
+      },
+      // 分页信息
+      userPage: {
+        pageSize: 10,
+        pageSizes: [10, 20, 30, 50, 100],
+        currentPage: 1,
+        total: 0
+      },
+      query: {},
+      type: '',
+      newData: {},
+      articleRange: {},
+      tops: {},
+    }
+  },
+
+  watch: {
+    'disCussFrom.optionRange': {
+      handler(newData) {
+        // console.log('** ** ** ** ** ** **', newData)
+        const column = this.findObject(this.optionDiscuss.column, "optionNumber")
+        if (newData == 1) {
+          column.display = true
+        } else {
+          column.display = false
+        }
+      },
+    },
+  },
+
+  methods: {
+    userHandleClose() {
+      this.popupTableUserShow = false
+    },
+    searchReset() {
+      this.query ={}
+      this.getUserPage(this.userPage, this.query)
+    },
+
+    searchChange(params, done) {
+      this.query = params
+      this.query.districtId = this.newData.articleRange
+      if (this.type == 0) {
+        this.query.articleId = this.articleId
+      } else {
+        this.query.topicsId = this.tops.id
+      }
+      this.userPage.currentPage = 1
+      this.getUserPage(this.userPage, this.query)
+      done()
+    },
+
+    openUser(row, type = 0) {
+      this.type = type
+      this.popupTableUserShow = true
+      this.query = {}
+      this.articleId = row.id
+      this.getUserPage(this.userPage, this.userParams)
+    },
+
+    initData(newData) {
+      console.log("======>",  newData);
+      this.editFlag = false
+      this.popupTableShow = true
+      this.articleId = newData.id
+      this.query.level = 1
+      this.query.articleId = this.articleId
+      this.newData = newData
+      this.query.districtId = newData.articleRange
+      this.onLoad(this.userPage, this.query)
+    },
+
+    handleClose() {
+      this.popupTableShow = false
+      this.disCussFrom = {}
+    },
+
+    handleReset() {
+      this.editFlag = false
+    },
+
+    // 提交修改
+    rowUpdate(row, index, done, loading) {
+      done()
+
+      if (row.attachment.length > 0) {
+        var urls = []
+        var split = row.attachment.split(",")
+        split.forEach(url => {
+          var names = url.split("jczz/")
+          urls.push(names[1])
+        })
+        row.attachment = urls.join(",")
+      }
+
+      if (!row.id) {
+        addPd(row).then(() => {
+          this.onLoad()
+
+          this.$message({
+            type: "success",
+            message: "操作成功!"
+          })
+        })
+      } else {
+        updatePd(row).then(() => {
+          this.onLoad()
+
+          this.$message({
+            type: "success",
+            message: "操作成功!"
+          })
+        })
+      }
+    },
+
+    rowDel(row) {
+      this.$confirm("确定将选择数据删除?", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning"
+      })
+        .then(() => {
+          return remove(row.id)
+        })
+        .then(() => {
+          this.getUserPage(this.userPage)
+
+          this.$message({
+            type: "success",
+            message: "操作成功!"
+          })
+        })
+    },
+
+    add() {
+      this.editFlag = true
+    },
+
+    edit(row) {
+      this.disCussFrom = row
+      this.disCussFromListClone = [].concat(row.children)
+      this.editFlag = true
+    },
+
+    deletes(row) {
+      this.$confirm("确定将选择数据删除?", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning"
+      }).then(() => {
+        return remove(row.id)
+      }).then(() => {
+        let param = {}
+        this.onLoad(this.userPage, param)
+        this.$message({
+          type: "success",
+          message: "操作成功!"
+        })
+      })
+    },
+    getUserPage(page, params = {}) {
+      params['articleId'] = this.articleId
+      getPage(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
+        const data = res.data.data
+        this.userPage.total = data.total
+        this.userData = data.records
+        this.userData.forEach(item => {
+          if (item.avatar.length > 0) {
+            item.avatar = website.minioUrl + item.avatar
+          }
+        })
+      })
+    },
+
+    onLoad(page, params = {}) {
+      this.loading = true
+      getLists(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
+        const data = res.data.data
+        this.data = data
+        this.loading = false
+      })
+    }
+  },
+}
+</script>
+
+<style lang="scss" scoped></style>
\ No newline at end of file
diff --git a/src/views/disputeRecord/disputeRecord.vue b/src/views/disputeRecord/disputeRecord.vue
new file mode 100644
index 0000000..1509fcb
--- /dev/null
+++ b/src/views/disputeRecord/disputeRecord.vue
@@ -0,0 +1,812 @@
+<template>
+    <basic-container>
+        <avue-crud :option="option" :table-loading="loading" :data="data" :page.sync="page" ref="crud" @row-del="rowDel"
+            v-model="form" :permission="permissionList" @row-update="rowUpdate" @row-save="rowSave"
+            :before-open="beforeOpen" @search-change="searchChange" @search-reset="searchReset"
+            @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange"
+            @refresh-change="refreshChange" @on-load="onLoad">
+            <template slot-scope="{row, size}" slot="phoneOne">
+                <el-button :size="size" type="text" @click="showStringDispose(row, 'phoneOneflag')"
+                    v-text="textDispose(row, 'phoneOneflag', 'phoneOne')">
+                </el-button>
+            </template>
+            <template slot-scope="{row, size}" slot="idCardOne">
+                <el-button :size="size" type="text" @click="showStringDispose(row, 'idCardOneflag')"
+                    v-text="textDispose(row, 'idCardOneflag', 'idCardOne')">
+                </el-button>
+            </template>
+
+
+            <template slot="menuLeft">
+                <el-button type="success" size="small" plain v-if="permission.dispute_record_import"
+                    icon="el-icon-upload2" @click="handleImport">导入
+                </el-button>
+                <el-button type="warning" size="small" plain v-if="permission.dispute_record_export"
+                    icon="el-icon-download" @click="handleExport">导出
+                </el-button>
+            </template>
+        </avue-crud>
+        <el-dialog title="矛盾纠纷事件数据导入" append-to-body :visible.sync="excelBox" width="555px">
+            <avue-form :option="excelOption" v-model="excelForm" :upload-after="uploadAfter">
+                <template slot="excelTemplate">
+                    <el-button size="small" type="primary" @click="handleTemplate">
+                        点击下载<i class="el-icon-download el-icon--right"></i>
+                    </el-button>
+                </template>
+            </avue-form>
+        </el-dialog>
+    </basic-container>
+</template>
+
+<script>
+import {
+    mapGetters
+} from "vuex"
+import {
+    getList,
+    add,
+    update,
+    remove,
+    getDetail
+} from "@/api/disputeRecord/disputeRecord"
+import NProgress from 'nprogress'
+import 'nprogress/nprogress.css'
+import Qs from "qs"
+import {
+    exportBlob
+} from "@/api/common"
+import {
+    getToken
+} from '@/util/auth'
+import {
+    downloadXls
+} from "@/util/util"
+import {
+    dateNow
+} from "@/util/date"
+import website from '@/config/website'
+export default {
+    data() {
+        let isCardId = function (rule, value, callback) {
+            // 15位和18位身份证号码的正则表达式
+            var regIdCard =
+                /^(^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$)|(^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])((\d{4})|\d{3}[Xx])$)$/
+
+            // 如果通过该验证,说明身份证格式正确,但准确性还需计算
+            if (regIdCard.test(value) || value == '') {
+                if (value.length == 18) {
+                    var idCardWi = new Array(7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10,
+                        5, 8, 4, 2) // 将前17位加权因子保存在数组里
+                    var idCardY = new Array(1, 0, 10, 9, 8, 7, 6, 5, 4, 3, 2) // 这是除以11后,可能产生的11位余数、验证码,也保存成数组
+                    var idCardWiSum = 0 // 用来保存前17位各自乖以加权因子后的总和
+                    for (var i = 0; i < 17; i++) {
+                        idCardWiSum += value.substring(i, i + 1) * idCardWi[i]
+                    }
+
+                    var idCardMod = idCardWiSum % 11 // 计算出校验码所在数组的位置
+                    var idCardLast = value.substring(17) // 得到最后一位身份证号码
+
+                    // 如果等于2,则说明校验码是10,身份证号码最后一位应该是X
+                    if (idCardMod == 2) {
+                        if (idCardLast == "X" || idCardLast == "x") {
+                            callback()
+                        } else {
+                            callback(new Error("身份证号格式有误!"))
+                        }
+                    } else {
+                        // 用计算出的验证码与最后一位身份证号码匹配,如果一致,说明通过,否则是无效的身份证号码
+                        if (idCardLast == idCardY[idCardMod]) {
+                            callback()
+                        } else {
+                            callback(new Error("身份证号格式有误!"))
+                        }
+                    }
+                } else {
+                    callback()
+                }
+            } else {
+                //alert("身份证格式不正确!");
+                callback(new Error("身份证号格式有误!"))
+            }
+
+            callback()
+        }
+
+        //手机号格式校验
+        let validatorPhone = function (rule, value, callback) {
+            if (value) {
+                if (!/^1[3456789]\d{9}$/.test(value)) {
+                    callback(new Error('手机号格式有误!'))
+                } else {
+                    callback()
+                }
+            }
+            callback()
+        }
+        return {
+            excelForm: {},
+            excelBox: false,
+            excelOption: {
+                submitBtn: false,
+                emptyBtn: false,
+                column: [{
+                    label: '模板上传',
+                    prop: 'excelFile',
+                    type: 'upload',
+                    drag: true,
+                    loadText: '模板上传中,请稍等',
+                    span: 24,
+                    propsHttp: {
+                        res: 'data'
+                    },
+                    tip: '请上传 .xls,.xlsx 标准格式文件',
+                    action: "/api/blade-disputeRecord/disputeRecord/import-disputeRecord"
+                },
+                // {
+                //     label: "数据覆盖",
+                //     prop: "isCovered",
+                //     type: "switch",
+                //     align: "center",
+                //     width: 80,
+                //     dicData: [{
+                //         label: "否",
+                //         value: 0
+                //     },
+                //     {
+                //         label: "是",
+                //         value: 1
+                //     }
+                //     ],
+                //     value: 0,
+                //     slot: true,
+                //     rules: [{
+                //         required: true,
+                //         message: "请选择是否覆盖",
+                //         trigger: "blur"
+                //     }]
+                // },
+                {
+                    label: '模板下载',
+                    prop: 'excelTemplate',
+                    formslot: true,
+                    span: 24,
+                }
+                ]
+            },
+            form: {},
+            query: {},
+            loading: true,
+
+            page: {
+                pageSize: 10,
+                currentPage: 1,
+                total: 0,
+            },
+            datetime: "",
+            selectionList: [],
+            option: {
+                height: "auto",
+                calcHeight: 54,
+                dialogWidth: 950,
+                menuWidth: 210,
+                tip: false,
+                searchShow: true,
+                searchMenuSpan: 3,
+                border: true,
+                index: true,
+                editBtn: true,
+                delBtn: true,
+                addBtn: true,
+                viewBtn: true,
+                refreshBtn: true,
+                searchShowBtn: true,
+                columnBtn: true,
+                dialogClickModal: false,
+                column: [
+                    {
+                        label: "事发地址",
+                        prop: "address",
+                        align: 'center',
+                        minWidth: 210,
+                        search: true,
+                        searchSpan: 5,
+                        display: false,
+                        overHidden: true,
+                    },
+                    {
+                        label: "事发地址",
+                        prop: "location",
+                        align: 'center',
+                        minWidth: 210,
+                        span: 12,
+                        hide: true,
+                        overHidden: true,
+                        labelWidth: 150,
+                        // row: true,
+                        type: 'map',
+                        dataType: "string",
+                        value: [117.966460, 28.431002, ""],
+                        rules: [
+                            {
+                                required: true,
+                                message: "请选择巡查地址",
+                                trigger: "blur",
+                            },
+                        ],
+                    }, {
+                        width: 150,
+                        label: "事发时间",
+                        prop: "eventTime",
+                        type: "datetime",
+                        labelWidth: 150,
+                        format: "yyyy-MM-dd HH:mm:ss",
+                        valueFormat: "yyyy-MM-dd HH:mm:ss",
+                        rules: [
+                            {
+                                required: true,
+                                message: "请选择事发时间",
+                                trigger: "blur",
+                            },
+                        ],
+                    }, {
+                        label: "事发时间",
+                        prop: "dateTime",
+                        type: "daterange",
+                        format: "yyyy-MM-dd",
+                        valueFormat: "yyyy-MM-dd",
+                        searchSpan: 6,
+                        searchRange: true,
+                        hide: true,
+                        addDisplay: false,
+                        editDisplay: false,
+                        viewDisplay: false,
+                        search: true,
+                        rules: [{
+                            required: true,
+                            message: "请选择事发时间",
+                            trigger: "blur",
+                        },],
+                    }, {
+                        label: "纠纷内容",
+                        prop: "disputeContent",
+                        align: 'center',
+                        minWidth: 150,
+                        labelWidth: 150,
+                        type: "textarea",
+                        row: true,
+                        span: 24,
+                        overHidden: true,
+                        rules: [
+                            {
+                                required: true,
+                                message: "请输入纠纷内容",
+                                trigger: "blur",
+                            },
+                        ],
+                    },
+                    {
+                        label: "纠纷类型",
+                        prop: "disputeType",
+                        align: 'center',
+                        minWidth: 150,
+                        labelWidth: 150,
+                        search: true,
+                        searchSpan: 4,
+                        dataType: "number",
+                        type: "select",
+                        dicUrl: "/api/blade-system/dict-biz/dictionary?code=disputeType",
+                        props: {
+                            label: "dictValue",
+                            value: "dictKey",
+                        },
+                        rules: [{
+                            required: true,
+                            message: "请选择纠纷类型",
+                            trigger: "blur",
+                        },],
+                    },
+                    {
+                        label: "是否受伤",
+                        prop: "injuryFlag",
+                        align: 'center',
+                        width: 80,
+                        search: true,
+                        searchSpan: 3,
+                        labelWidth: 150,
+                        type: "select",
+                        dicData: [
+                            {
+                                label: "是",
+                                value: 1
+                            },
+                            {
+                                label: "否",
+                                value: 0
+                            }
+                        ],
+                        rules: [
+                            {
+                                required: true,
+                                message: "请选择是否受伤",
+                                trigger: "blur",
+                            },
+                        ],
+                    },
+                    {
+                        label: "受伤情况描述",
+                        prop: "injuryDesc",
+                        align: 'center',
+                        minWidth: 150,
+                        labelWidth: 150,
+                        display: false,
+                        hide: true,
+                        row: true,
+                        span: 24,
+                        overHidden: true,
+                        rules: [
+                            {
+                                required: false,
+                                message: "请输入受伤情况描述",
+                                trigger: "blur",
+                            },
+                        ],
+                    },
+                    {
+                        label: "报警次数",
+                        prop: "alarmNum",
+                        align: 'center',
+                        type: "number",
+                        labelWidth: 150,
+                    },
+                    {
+                        label: "信息来源",
+                        prop: "source",
+                        labelWidth: 150,
+                        align: 'center',
+                        width: 156,
+                        dataType: "number",
+                        type: "select",
+                        dicUrl: "/api/blade-system/dict-biz/dictionary?code=disputeSource",
+                        props: {
+                            label: "dictValue",
+                            value: "dictKey",
+                        },
+                        rules: [{
+                            required: true,
+                            message: "请选择信息来源",
+                            trigger: "blur",
+                        },],
+                    }, {
+                        label: "纠纷人1姓名",
+                        prop: "nameOne",
+                        align: 'center',
+                        slot: true,
+                        labelWidth: 150,
+                        search: true,
+                        searchLabelWidth: 110,
+                        searchSpan: 4,
+                        width: 100,
+                        rules: [
+                            {
+                                required: true,
+                                message: "请输入纠纷人1姓名",
+                                trigger: "blur",
+                            },
+                        ],
+                    }, {
+                        label: "纠纷人1电话",
+                        prop: "phoneOne",
+                        align: 'center',
+                        slot: true,
+                        labelWidth: 150,
+                        search: true,
+                        searchLabelWidth: 110,
+                        searchSpan: 4,
+                        width: 100,
+                        rules: [
+                            {
+                                required: true,
+                                message: "请输入纠纷人1电话",
+                                trigger: "blur",
+                            },
+                            {
+                                validator: validatorPhone,
+                                trigger: 'blur'
+                            }
+                        ],
+                    },
+                    {
+                        label: "纠纷人1身份证号",
+                        prop: "idCardOne",
+                        align: 'center',
+                        slot: true,
+                        labelWidth: 150,
+                        // search: true,
+                        searchLabelWidth: 150,
+                        searchSpan: 5,
+                        width: 150,
+                        row: true,
+                        rules: [
+                            {
+                                required: true,
+                                message: "请输入纠纷人1身份证号",
+                                trigger: "blur",
+                            }, {
+                                validator: isCardId,
+                                trigger: 'blur'
+                            }
+                        ],
+                    },
+                    {
+                        label: "纠纷人2姓名",
+                        prop: "nameTwo",
+                        align: 'center',
+                        slot: true,
+                        hide: true,
+                        labelWidth: 150,
+                        searchLabelWidth: 110,
+                        searchSpan: 4,
+                        width: 120,
+                        rules: [
+                            {
+                                required: true,
+                                message: "请输入纠纷人2姓名",
+                                trigger: "blur",
+                            },
+                        ],
+                    }, {
+                        label: "纠纷人2电话",
+                        prop: "phoneTwo",
+                        align: 'center',
+                        slot: true,
+                        hide: true,
+                        labelWidth: 150,
+                        searchLabelWidth: 110,
+                        searchSpan: 4,
+                        width: 120,
+                        rules: [
+                            {
+                                required: true,
+                                message: "请输入纠纷人2电话",
+                                trigger: "blur",
+                            },
+                            {
+                                validator: validatorPhone,
+                                trigger: 'blur'
+                            }
+                        ],
+                    },
+                    {
+                        label: "纠纷人2身份证号",
+                        prop: "idCardTwo",
+                        align: 'center',
+                        slot: true,
+                        hide: true,
+                        labelWidth: 150,
+                        searchLabelWidth: 110,
+                        searchSpan: 4,
+                        width: 120,
+                        rules: [
+                            {
+                                required: true,
+                                message: "请输入纠纷人2身份证号",
+                                trigger: "blur",
+                            }, {
+                                validator: isCardId,
+                                trigger: 'blur'
+                            }
+                        ],
+                    },
+                    {
+                        label: "地区",
+                        prop: "townName",
+                        align: 'center',
+                        search: true,
+                        addDisplay: false,
+                        editDisplay: false,
+                        searchSpan: 3,
+                        searchLabelWidth: 60,
+                        labelWidth: 150,
+                        width: 120,
+                        searchPlaceholder: '请输入地区'
+                    }, {
+                        label: "辖区派出所",
+                        prop: "pcsName",
+                        align: 'center',
+                        search: true,
+                        addDisplay: false,
+                        editDisplay: false,
+                        searchSpan: 4,
+                        labelWidth: 150,
+                        width: 120,
+                        searchLabelWidth: 96,
+                        searchPlaceholder: '请输入辖区派出所'
+                    }, {
+                        label: "处理结果",
+                        prop: "handleResult",
+                        align: 'center',
+                        search: true,
+                        labelWidth: 150,
+                        searchSpan: 4,
+                        width: 110,
+                        type: "select",
+                        dicData: [
+                            {
+                                label: "已化解",
+                                value: 1
+                            },
+                            {
+                                label: "未化解",
+                                value: 2
+                            },
+                            {
+                                label: "移送e呼即办",
+                                value: 3
+                            }
+                        ],
+                        rules: [
+                            {
+                                required: true,
+                                message: "请选择处理结果",
+                                trigger: "blur",
+                            },
+                        ],
+                    }],
+            },
+            data: []
+        }
+    },
+
+    computed: {
+        ...mapGetters(["permission", "userInfo"]),
+        permissionList() {
+            return {
+                addBtn: this.vaildData(this.permission.dispute_record_add, true),
+                viewBtn: this.vaildData(this.permission.dispute_record_view, true),
+                delBtn: this.vaildData(this.permission.dispute_record_delete, true),
+                editBtn: this.vaildData(this.permission.dispute_record_edit, true),
+            }
+        },
+        ids() {
+            let ids = []
+            this.selectionList.forEach((ele) => {
+                ids.push(ele.id)
+            })
+            return ids.join(",")
+        },
+
+        textDispose() {
+            return (row, flag, type) => {
+                if (row[flag] || row[type] == null) {
+                    return row[type]
+                } else {
+                    if (type == 'principalIdCard') {
+                        return row[type].replace(/^(.{6})(?:\d+)(.{4})$/, "$1******$2")
+                    } else {
+                        return row[type].replace(/^(.{3})(?:\d+)(.{4})$/, "$1****$2")
+                    }
+                }
+            }
+        }
+    },
+    watch: {
+        "form.injuryFlag": {
+            // form是表单或者表格绑定的数据集,v-model='form'
+            handler(val) {
+                let injuryDescColumn = this.findObject(
+                    this.option.column,
+                    'injuryDesc'
+                )
+                if (val == 1) {
+                    injuryDescColumn.rules[0].required = true
+                    injuryDescColumn.display = true
+                } else {
+                    injuryDescColumn.rules[0].required = false
+                    injuryDescColumn.display = false
+                }
+            },
+            immediate: true,
+        },
+    },
+    methods: {
+        locationDispose(data) {
+            data = data.split(',')
+
+            return {
+                lng: data[0],
+                lat: data[1],
+                address: data[2]
+            }
+        },
+        handleTemplate() {
+            exportBlob(`/api/blade-disputeRecord/disputeRecord/export-template?${this.website.tokenHeader}=${getToken()}`).then(res => {
+                downloadXls(res.data, "矛盾纠纷事件数据模板.xlsx")
+            })
+        },
+        handleImport() {
+            this.excelBox = true
+        },
+        uploadAfter(res, done, loading, column) {
+            this.excelBox = false
+            this.refreshChange()
+            done()
+        },
+        handleExport() {
+            this.$confirm("是否导出矛盾纠纷事件数据?", "提示", {
+                confirmButtonText: "确定",
+                cancelButtonText: "取消",
+                type: "warning"
+            }).then(() => {
+                NProgress.start()
+                var data = {
+                    ...this.query
+                }
+                data.isNine = 1
+                data = Qs.stringify(data)
+                exportBlob(
+                    `/api/blade-disputeRecord/disputeRecord/export-disputeRecord?${this.website.tokenHeader}=${getToken()}&` + data
+                ).then(res => {
+                    console.log('exportBlob', res)
+                    downloadXls(res.data, `矛盾纠纷事件${dateNow()}.xlsx`)
+                    NProgress.done()
+                })
+            })
+        },
+
+        showStringDispose(row, type) {
+            row[type] = !row[type]
+        },
+
+        rowSave(row, done, loading) {
+            add({
+                ...row,
+                ...this.locationDispose(row.location)
+            }).then(
+                () => {
+                    this.onLoad(this.page)
+                    this.$message({
+                        type: "success",
+                        message: "操作成功!",
+                    })
+                    done()
+                },
+                (error) => {
+                    window.console.log(error)
+                    loading()
+                }
+            )
+        },
+        rowUpdate(row, index, done, loading) {
+            update({
+                ...row,
+                ...this.locationDispose(row.location)
+            }).then(
+                () => {
+                    this.onLoad(this.page)
+                    this.$message({
+                        type: "success",
+                        message: "操作成功!",
+                    })
+                    done()
+                },
+                (error) => {
+                    window.console.log(error)
+                    loading()
+                }
+            )
+        },
+        rowDel(row) {
+            this.$confirm("确定将选择数据删除?", {
+                confirmButtonText: "确定",
+                cancelButtonText: "取消",
+                type: "warning",
+            })
+                .then(() => {
+                    return remove(row.id)
+                })
+                .then(() => {
+                    this.onLoad(this.page)
+
+                    this.$message({
+                        type: "success",
+                        message: "操作成功!",
+                    })
+                })
+        },
+
+        searchReset() {
+            this.query = {}
+            this.onLoad(this.page)
+        },
+
+        searchChange(params, done) {
+            this.query = params
+            this.page.currentPage = 1
+            this.onLoad(this.page, params)
+            done()
+        },
+
+        selectionChange(list) {
+            this.selectionList = list
+        },
+
+        selectionClear() {
+            this.selectionList = []
+            this.$nextTick(() => {
+                this.$refs.crud && this.$refs.crud.toggleSelection()
+            })
+        },
+
+        handleDelete() {
+            if (this.selectionList.length === 0) {
+                this.$message.warning("请选择至少一条数据")
+                return
+            }
+            this.$confirm("确定将选择数据删除?", {
+                confirmButtonText: "确定",
+                cancelButtonText: "取消",
+                type: "warning",
+            })
+                .then(() => {
+                    return remove(this.ids)
+                })
+                .then(() => {
+                    this.onLoad(this.page)
+                    this.$message({
+                        type: "success",
+                        message: "操作成功!",
+                    })
+                    this.$refs.crud.toggleSelection()
+                })
+        },
+
+        beforeOpen(done, type) {
+            if (["edit", "view"].includes(type)) {
+                getDetail(this.form.id).then(res => {
+                    this.form = res.data.data
+                    this.form.location = [this.form.lng, this.form.lat, this.form.address].join(',')
+                })
+                done()
+            } else {
+                done()
+            }
+        },
+        currentChange(currentPage) {
+            this.page.currentPage = currentPage
+        },
+        sizeChange(pageSize) {
+            this.page.pageSize = pageSize
+        },
+        refreshChange() {
+            this.onLoad(this.page, this.query)
+        },
+        onLoad(page, params = {}) {
+            const {
+                dateTime
+            } = this.query
+            if (dateTime) {
+                params['startTime'] = dateTime[0]
+                params['endTime'] = dateTime[1]
+            }
+            this.loading = true
+            getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
+                const data = res.data.data;
+                this.page.total = data.total
+                this.data = data.records
+                this.data.forEach(item => {
+                    this.$set(item, 'phoneOneflag', false)
+                    this.$set(item, 'idCardOneflag', false)
+                })
+                this.loading = false
+                this.selectionClear()
+            })
+        }
+    }
+}
+</script>
+
+<style lang="scss" scoped>
+.avue-upload__icon {
+    line-height: 6;
+}
+</style>

--
Gitblit v1.9.3