From e2c1995f2e135b8a7433b2bdbed2f7758261ace8 Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Tue, 09 Jul 2024 15:20:39 +0800
Subject: [PATCH] 公安模块添加时间查询

---
 src/views/place/practitioner.vue                                    |   46 
 src/views/publicSecurity/place.vue                                  |   42 
 src/views/publicSecurity/keynotePlaceManage.vue                     |   48 +
 src/views/publicSecurity/ninePlaceManage/patrolRecord.vue           |   48 +
 src/views/community/index.vue                                       |  682 ++++++++++----------
 src/views/place/residencePermitApply.vue                            |    5 
 src/views/publicSecurity/ninePlaceManage/archivesManage.vue         |   26 
 src/views/publicSecurity/positionManage/TransactRegist.vue          |   56 +
 src/views/publicSecurity/bailReporting.vue                          |   29 
 src/views/publicSecurity/ninePlaceManage/situationRectification.vue |   54 +
 src/views/publicSecurity/noExplosionManage.vue                      |   51 
 src/views/publicSecurity/positionManage/fileManage.vue              |  825 ++++++++++++-----------
 src/views/backblask/BackblastPubRecord.vue                          |   22 
 src/views/publicSecurity/SchoolCheckManage.vue                      |   49 +
 14 files changed, 1,065 insertions(+), 918 deletions(-)

diff --git a/src/views/backblask/BackblastPubRecord.vue b/src/views/backblask/BackblastPubRecord.vue
index ca1d34d..c9b745b 100644
--- a/src/views/backblask/BackblastPubRecord.vue
+++ b/src/views/backblask/BackblastPubRecord.vue
@@ -211,15 +211,23 @@
             },
             {
               label: "所属街道",
-              prop: "townName",
-              align: 'center',
+              parent: false,
               search: true,
               searchSpan: 4,
-              searchLabelWidth: 96,
-              labelWidth: 120,
-              width: 156,
-              searchPlaceholder: '请输入街道'
-            }, {
+              prop: "townName",
+              type: "tree",
+              dicUrl: "/api/blade-system/region/getTownTree",
+              props: {
+                label: "name",
+                value: "name"
+              },
+              rules: [{
+                required: true,
+                message: "请选择所属街道",
+                trigger: "blur",
+              }, ],
+            },
+            {
               label: "宣防单位",
               prop: "deptName",
               align: 'center',
diff --git a/src/views/community/index.vue b/src/views/community/index.vue
index b5d6bf4..a0094f4 100644
--- a/src/views/community/index.vue
+++ b/src/views/community/index.vue
@@ -1,366 +1,364 @@
 <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.community_delete"
-                    @click="handleDelete">删 除
-                </el-button>
-            </template>
-        </avue-crud>
-    </basic-container>
+  <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.community_delete" @click="handleDelete">删 除
+        </el-button>
+      </template>
+    </avue-crud>
+  </basic-container>
 </template>
 
 <script>
-import {
+  import {
     getList,
     remove,
     update,
     add,
     getCommunity
-} from "@/api/community/index"
-import {
+  } from "@/api/community/index"
+  import {
     mapGetters
-} from "vuex"
-import website from '@/config/website'
-export default {
-    data () {
-        return {
-            form: {},
-            query: {},
-            loading: true,
-            page: {
-                pageSize: 10,
-                currentPage: 1,
-                total: 0,
+  } from "vuex"
+  import website from '@/config/website'
+  export default {
+    data() {
+      return {
+        form: {},
+        query: {},
+        loading: true,
+        page: {
+          pageSize: 10,
+          currentPage: 1,
+          total: 0,
+        },
+        datetime: "",
+        selectionList: [],
+        option: {
+          labelWidth: 96,
+          searchLabelWidth: 96,
+          searchShow: true,
+          searchMenuSpan: 3,
+          menuWidth: 210,
+
+          height: "auto",
+          calcHeight: 54,
+          dialogWidth: 950,
+          tip: false,
+          border: true,
+          //stripe:true,
+          index: true,
+          viewBtn: true,
+          selection: true,
+          dialogClickModal: false,
+          column: [{
+              // width: 156,
+              overHidden: true,
+              label: "社区名称",
+              prop: "name",
+              searchSpan: 4,
+              search: true,
+              searchLabelWidth: 76,
+              span: 12,
+              rules: [{
+                required: true,
+                message: "请输入社区名称",
+                trigger: "blur",
+              }, ],
             },
-            datetime: "",
-            selectionList: [],
-            option: {
-                labelWidth: 96,
-                searchLabelWidth: 96,
-                searchShow: true,
-                searchMenuSpan: 3,
-                menuWidth: 210,
-
-                height: "auto",
-                calcHeight: 54,
-                dialogWidth: 950,
-                tip: false,
-                border: true,
-                //stripe:true,
-                index: true,
-                viewBtn: true,
-                selection: true,
-                dialogClickModal: false,
-                column: [{
-                    // width: 156,
-                    overHidden: true,
-                    label: "社区名称",
-                    prop: "name",
-                    searchSpan: 4,
-                    search: true,
-                    searchLabelWidth: 76,
-                    span: 12,
-                    rules: [{
-                        required: true,
-                        message: "请输入社区名称",
-                        trigger: "blur",
-                    },],
-                },
-                {
-                    // width: 110,
-                    overHidden: true,
-                    label: "社区编号",
-                    prop: "code",
-                    searchSpan: 4,
-                    search: true,
-                    span: 12,
-                    rules: [{
-                        required: true,
-                        message: "请输入社区编号",
-                        trigger: "blur",
-                    },],
-                },
-
-                {
-                    // width: 110,
-                    label: "所属街道",
-                    parent: false,
-                    addDisplay: false,
-                    editDisplay: false,
-                    viewDisplay: false,
-                    prop: "townName",
-                    search: true,
-                    searchSpan: 4
-                },
-
-                {
-                    label: "所属街道",
-                    hide: true,
-                    parent: false,
-                    prop: "streetCode",
-                    type: "tree",
-                    dicUrl: "/api/blade-system/region/getTownTree",
-                    props: {
-                        label: "name",
-                        value: "id"
-                    },
-                    rules: [{
-                        required: true,
-                        message: "请选择所属街道",
-                        trigger: "blur",
-                    },],
-                },
-
-                // {
-                //     width: 110,
-                //     label: "社区民警",
-                //     prop: "resPoliceUserId",
-                //     type: "tree",
-                //     multiple: true,
-                //     dicUrl: "/api/blade-system/user/getUserListByParam?roleName=民警",
-                //     props: {
-                //         label: "name",
-                //         value: "id"
-                //     },
-                //     rules: [{
-                //         required: true,
-                //         message: "请选择社区民警",
-                //         trigger: "blur",
-                //     },],
-                // },
-                {
-                    // width: 110,
-                    label: "社区图片",
-                    prop: "picUrl",
-                    type: "upload",
-                    listType: "picture-img",
-                    action: "/api/blade-resource/oss/endpoint/put-file",
-                    propsHttp: {
-                        res: "data",
-                        url: "link",
-                    },
-                    span: 24,
-                },
-
-                {
-                    overHidden: true,
-                    label: "地址",
-                    prop: "address",
-                    span: 24,
-                    rules: [{
-                        required: false,
-                        message: "请输入地址",
-                        trigger: "blur",
-                    },],
-                },
-                {
-                    label: "社区简介",
-                    prop: "remark",
-                    component: "AvueUeditor",
-                    options: {
-                        action: "/api/blade-resource/oss/endpoint/put-file",
-                        props: {
-                            res: "data",
-                            url: "link",
-                        },
-                    },
-                    hide: true,
-                    minRows: 6,
-                    span: 24,
-                },
-
-                ],
+            {
+              // width: 110,
+              overHidden: true,
+              label: "社区编号",
+              prop: "code",
+              searchSpan: 4,
+              search: true,
+              span: 12,
+              rules: [{
+                required: true,
+                message: "请输入社区编号",
+                trigger: "blur",
+              }, ],
             },
-            data: [],
-        }
+
+            {
+              // width: 110,
+              label: "所属街道",
+              parent: false,
+              addDisplay: false,
+              editDisplay: false,
+              viewDisplay: false,
+              prop: "townName",
+              search: true,
+              searchSpan: 4
+            },
+
+            {
+              label: "所属街道",
+              hide: true,
+              parent: false,
+              prop: "streetCode",
+              type: "tree",
+              dicUrl: "/api/blade-system/region/getTownTree",
+              props: {
+                label: "name",
+                value: "id"
+              },
+              rules: [{
+                required: true,
+                message: "请选择所属街道",
+                trigger: "blur",
+              }, ],
+            },
+
+            // {
+            //     width: 110,
+            //     label: "社区民警",
+            //     prop: "resPoliceUserId",
+            //     type: "tree",
+            //     multiple: true,
+            //     dicUrl: "/api/blade-system/user/getUserListByParam?roleName=民警",
+            //     props: {
+            //         label: "name",
+            //         value: "id"
+            //     },
+            //     rules: [{
+            //         required: true,
+            //         message: "请选择社区民警",
+            //         trigger: "blur",
+            //     },],
+            // },
+            {
+              // width: 110,
+              label: "社区图片",
+              prop: "picUrl",
+              type: "upload",
+              listType: "picture-img",
+              action: "/api/blade-resource/oss/endpoint/put-file",
+              propsHttp: {
+                res: "data",
+                url: "link",
+              },
+              span: 24,
+            },
+
+            {
+              overHidden: true,
+              label: "地址",
+              prop: "address",
+              span: 24,
+              rules: [{
+                required: false,
+                message: "请输入地址",
+                trigger: "blur",
+              }, ],
+            },
+            {
+              label: "社区简介",
+              prop: "remark",
+              component: "AvueUeditor",
+              options: {
+                action: "/api/blade-resource/oss/endpoint/put-file",
+                props: {
+                  res: "data",
+                  url: "link",
+                },
+              },
+              hide: true,
+              minRows: 6,
+              span: 24,
+            },
+
+          ],
+        },
+        data: [],
+      }
     },
     watch: {},
     computed: {
-        ...mapGetters(["permission", "userInfo"]),
-        permissionList () {
-            return {
-                addBtn: this.vaildData(this.permission.community_add, true),
-                viewBtn: this.vaildData(this.permission.community_view, true),
-                delBtn: this.vaildData(this.permission.community_delete, true),
-                editBtn: this.vaildData(this.permission.community_edit, true),
-            }
-        },
-        ids () {
-            let ids = []
-            this.selectionList.forEach((ele) => {
-                ids.push(ele.id)
-            })
-            return ids.join(",")
-        },
+      ...mapGetters(["permission", "userInfo"]),
+      permissionList() {
+        return {
+          addBtn: this.vaildData(this.permission.community_add, true),
+          viewBtn: this.vaildData(this.permission.community_view, true),
+          delBtn: this.vaildData(this.permission.community_delete, true),
+          editBtn: this.vaildData(this.permission.community_edit, true),
+        }
+      },
+      ids() {
+        let ids = []
+        this.selectionList.forEach((ele) => {
+          ids.push(ele.id)
+        })
+        return ids.join(",")
+      },
     },
     methods: {
-        rowSave (row, done, loading) {
-            if (row.picUrl.length > 0) {
-                var urls = []
-                var split = row.picUrl.split(",")
-                split.forEach(url => {
-                    var names = url.split("jczz/")
-                    urls.push(names[1])
-                })
-                row.picUrl = urls.join(",")
-            }
-            row.userid = this.userInfo.user_id
-            add(row).then(
-                () => {
-                    this.onLoad(this.page)
-                    this.$message({
-                        type: "success",
-                        message: "操作成功!",
-                    })
-                    done()
-                },
-                (error) => {
-                    window.console.log(error)
-                    loading()
-                }
-            )
-        },
-        rowUpdate (row, index, done, loading) {
-            if (row.picUrl.length > 0) {
-                var urls = []
-                var split = row.picUrl.split(",")
-                split.forEach(url => {
-                    var names = url.split("jczz/")
-                    urls.push(names[1])
-                })
-                row.picUrl = 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)) {
-                getCommunity(this.form.id).then((res) => {
-                    this.form = res.data.data
-                    if (this.form.picUrl.length > 0) {
-                        var urls = []
-                        var names = this.form.picUrl.split(",")
-                        names.forEach(name => {
-                            urls.push(website.minioUrl + name)
-                        })
-                        this.form.picUrl = urls.join(",")
-                    }
-                })
-            }
-            // con
-            done()
-        },
-        currentChange (currentPage) {
-            this.page.currentPage = currentPage
-        },
-        sizeChange (pageSize) {
-            this.page.pageSize = pageSize
-        },
-        refreshChange () {
-            this.onLoad(this.page, this.query)
-        },
-        onLoad (page, params = {}) {
-            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 => {
-                    if (item.picUrl) {
-                        if (item.picUrl.length > 0) {
-                            var urls = []
-                            var names = item.picUrl.split(",")
-                            names.forEach(name => {
-                                urls.push(website.minioUrl + name)
-                            })
-                            item.picUrl = urls.join(",")
-                        }
-                    }
-                })
-                this.loading = false
-                this.selectionClear()
-            })
+      rowSave(row, done, loading) {
+        if (row.picUrl.length > 0) {
+          var urls = []
+          var split = row.picUrl.split(",")
+          split.forEach(url => {
+            var names = url.split("jczz/")
+            urls.push(names[1])
+          })
+          row.picUrl = urls.join(",")
         }
+        row.userid = this.userInfo.user_id
+        add(row).then(
+          () => {
+            this.onLoad(this.page)
+            this.$message({
+              type: "success",
+              message: "操作成功!",
+            })
+            done()
+          },
+          (error) => {
+            window.console.log(error)
+            loading()
+          }
+        )
+      },
+      rowUpdate(row, index, done, loading) {
+        if (row.picUrl.length > 0) {
+          var urls = []
+          var split = row.picUrl.split(",")
+          split.forEach(url => {
+            var names = url.split("jczz/")
+            urls.push(names[1])
+          })
+          row.picUrl = 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)) {
+          getCommunity(this.form.id).then((res) => {
+            this.form = res.data.data
+            if (this.form.picUrl.length > 0) {
+              var urls = []
+              var names = this.form.picUrl.split(",")
+              names.forEach(name => {
+                urls.push(website.minioUrl + name)
+              })
+              this.form.picUrl = urls.join(",")
+            }
+          })
+        }
+        // con
+        done()
+      },
+      currentChange(currentPage) {
+        this.page.currentPage = currentPage
+      },
+      sizeChange(pageSize) {
+        this.page.pageSize = pageSize
+      },
+      refreshChange() {
+        this.onLoad(this.page, this.query)
+      },
+      onLoad(page, params = {}) {
+        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 => {
+            if (item.picUrl) {
+              if (item.picUrl.length > 0) {
+                var urls = []
+                var names = item.picUrl.split(",")
+                names.forEach(name => {
+                  urls.push(website.minioUrl + name)
+                })
+                item.picUrl = urls.join(",")
+              }
+            }
+          })
+          this.loading = false
+          this.selectionClear()
+        })
+      }
     }
-}
+  }
 </script>
 
 <style>
-.avue-upload__icon {
+  .avue-upload__icon {
     line-height: 6;
-}
+  }
 </style>
\ No newline at end of file
diff --git a/src/views/place/practitioner.vue b/src/views/place/practitioner.vue
index 506b181..db0871b 100644
--- a/src/views/place/practitioner.vue
+++ b/src/views/place/practitioner.vue
@@ -135,37 +135,50 @@
           delBtn: true,
           dialogClickModal: false,
           column: [{
-              width: 110,
               label: "所属街道",
-              addDisplay: false,
-              editDisplay: false,
-              viewDisplay: false,
-              prop: "townStreetName",
+              parent: false,
               search: true,
-              searchSpan: 4
+              searchSpan: 4,
+              prop: "townStreetName",
+              type: "tree",
+              dicUrl: "/api/blade-system/region/getTownTree",
+              props: {
+                label: "name",
+                value: "name"
+              },
+              rules: [{
+                required: true,
+                message: "请选择所属街道",
+                trigger: "blur",
+              }, ],
             },
 
             {
-              width: 156,
-              overHidden: true,
+              parent: false,
               label: "所属社区",
-              addDisplay: false,
-              editDisplay: false,
-              viewDisplay: false,
               prop: "neiName",
+              width: 150,
               search: true,
+              type: "tree",
               searchSpan: 4,
+              dicUrl: "/api/blade-system/region/treeToCommunity",
+              props: {
+                label: "name",
+                value: "name",
+              },
+              cascader: ["gridCode"],
               rules: [{
                 required: true,
                 message: "请选择所属社区",
                 trigger: "blur",
-              }],
-            }, {
+              }, ],
+            },
+            {
               overHidden: true,
               label: "姓名",
               span: 12,
               prop: "name",
-              searchSpan: 4,
+              searchSpan: 3,
               search: true,
               searchLabelWidth: 76,
 
@@ -255,9 +268,10 @@
             },
             {
               label: "状态",
+              searchLabelWidth: 60,
               prop: "resignationFlag",
               align: 'center',
-              searchSpan: 4,
+              searchSpan: 3,
               search: true,
               type: "select",
               dicData: [{
@@ -286,7 +300,7 @@
               editDisplay: false,
               viewDisplay: false,
               prop: "type",
-              searchSpan: 4,
+              searchSpan: 3,
               hide: true,
               type: "select",
               search: true,
diff --git a/src/views/place/residencePermitApply.vue b/src/views/place/residencePermitApply.vue
index 29cfd95..8add302 100644
--- a/src/views/place/residencePermitApply.vue
+++ b/src/views/place/residencePermitApply.vue
@@ -164,12 +164,13 @@
               hide: true,
               searchSpan: 5,
               searchLabelWidth: 76,
-            }, {
+            },
+            {
               width: 110,
               span: 12,
               label: "姓名",
               prop: "name",
-              searchSpan: 4,
+              searchSpan: 3,
               searchLabelWidth: 60,
               search: true,
               align: 'center',
diff --git a/src/views/publicSecurity/SchoolCheckManage.vue b/src/views/publicSecurity/SchoolCheckManage.vue
index d9f07d5..df74d9f 100644
--- a/src/views/publicSecurity/SchoolCheckManage.vue
+++ b/src/views/publicSecurity/SchoolCheckManage.vue
@@ -254,26 +254,47 @@
               searchLabelWidth: 46,
               overHidden: true,
               align: 'center'
-            }, {
-              label: "所属街道",
-              prop: "streetName",
-              span: 24,
-              row: true,
-              searchSpan: 4,
-              search: true,
-              align: 'center'
             },
             {
+              label: "所属街道",
+              parent: false,
+              search: true,
+              searchSpan: 4,
+              prop: "streetName",
+              type: "tree",
+              dicUrl: "/api/blade-system/region/getTownTree",
+              props: {
+                label: "name",
+                value: "name"
+              },
+              rules: [{
+                required: true,
+                message: "请选择所属街道",
+                trigger: "blur",
+              }, ],
+            },
+
+            {
+              parent: false,
               label: "所属社区",
               prop: "communityName",
-              span: 24,
-              row: true,
-              searchSpan: 4,
               search: true,
-              width: 160,
-              overHidden: true,
-              align: 'center'
+              searchSpan: 4,
+              width: 150,
+              type: "tree",
+              dicUrl: "/api/blade-system/region/treeToCommunity",
+              props: {
+                label: "name",
+                value: "name",
+              },
+              cascader: ["gridCode"],
+              rules: [{
+                required: true,
+                message: "请选择所属社区",
+                trigger: "blur",
+              }, ],
             },
+
             {
               label: "所属网格",
               prop: "gridName",
diff --git a/src/views/publicSecurity/bailReporting.vue b/src/views/publicSecurity/bailReporting.vue
index ab41b5a..5456fe8 100644
--- a/src/views/publicSecurity/bailReporting.vue
+++ b/src/views/publicSecurity/bailReporting.vue
@@ -121,21 +121,13 @@
               hide: true,
               searchSpan: 5,
               searchLabelWidth: 76,
-            }, {
-              span: 12,
-              label: "社区",
-              prop: "communityName",
-              searchSpan: 4,
-              searchLabelWidth: 46,
-              search: true,
-              hide: true,
             },
             {
               span: 12,
-              label: "小区",
+              label: "小区名称",
               prop: "districtName",
               searchSpan: 4,
-              searchLabelWidth: 66,
+              searchLabelWidth: 76,
               search: true,
               hide: true,
             },
@@ -169,9 +161,8 @@
             {
               width: 110,
               label: "所属街道",
-              // hide: true,
+              search: true,
               searchSpan: 4,
-              // search: true,
               parent: false,
               prop: "streetCode",
               type: "tree",
@@ -185,21 +176,21 @@
                 message: "请选择所属街道",
                 trigger: "blur",
               }, ],
-            }, {
-              width: 156,
-              // hide: true,
+            },
+            {
               parent: false,
-              searchSpan: 4,
               label: "所属社区",
               prop: "neiCode",
-              // search: true,
+              search: true,
+              searchSpan: 4,
+              width: 150,
               type: "tree",
-              dicUrl: "/api/blade-system/region/tree",
+              dicUrl: "/api/blade-system/region/treeToCommunity",
               props: {
                 label: "name",
                 value: "id",
               },
-              cascader: ["gridId"],
+              cascader: ["gridCode"],
               rules: [{
                 required: true,
                 message: "请选择所属社区",
diff --git a/src/views/publicSecurity/keynotePlaceManage.vue b/src/views/publicSecurity/keynotePlaceManage.vue
index b0000a2..a6ada47 100644
--- a/src/views/publicSecurity/keynotePlaceManage.vue
+++ b/src/views/publicSecurity/keynotePlaceManage.vue
@@ -285,25 +285,45 @@
               searchSpan: 4,
               searchLabelWidth: 96,
               align: 'center'
-            }, {
-              label: "所属街道",
-              prop: "streetName",
-              span: 24,
-              row: true,
-              searchSpan: 4,
-              search: true,
-              align: 'center'
             },
             {
+              label: "所属街道",
+              parent: false,
+              search: true,
+              searchSpan: 4,
+              prop: "streetName",
+              type: "tree",
+              dicUrl: "/api/blade-system/region/getTownTree",
+              props: {
+                label: "name",
+                value: "name"
+              },
+              rules: [{
+                required: true,
+                message: "请选择所属街道",
+                trigger: "blur",
+              }, ],
+            },
+
+            {
+              parent: false,
               label: "所属社区",
               prop: "communityName",
-              span: 24,
-              row: true,
-              searchSpan: 4,
               search: true,
-              width: 160,
-              overHidden: true,
-              align: 'center'
+              searchSpan: 4,
+              width: 150,
+              type: "tree",
+              dicUrl: "/api/blade-system/region/treeToCommunity",
+              props: {
+                label: "name",
+                value: "name",
+              },
+              cascader: ["gridCode"],
+              rules: [{
+                required: true,
+                message: "请选择所属社区",
+                trigger: "blur",
+              }, ],
             },
             {
               label: "所属网格",
diff --git a/src/views/publicSecurity/ninePlaceManage/archivesManage.vue b/src/views/publicSecurity/ninePlaceManage/archivesManage.vue
index dfffd75..7fe2284 100644
--- a/src/views/publicSecurity/ninePlaceManage/archivesManage.vue
+++ b/src/views/publicSecurity/ninePlaceManage/archivesManage.vue
@@ -154,17 +154,29 @@
               labelWidth: 120,
               width: 120,
               searchPlaceholder: '请输入地区'
-            }, {
+            },
+            {
+              // hide: true,
+              parent: false,
               label: "所属社区",
               prop: "neiName",
-              align: 'center',
               search: true,
               searchSpan: 4,
-              searchLabelWidth: 84,
-              labelWidth: 120,
-              width: 156,
-              searchPlaceholder: '请输入所属社区'
-            }, {
+              width: 150,
+              type: "tree",
+              dicUrl: "/api/blade-system/region/treeToCommunity",
+              props: {
+                label: "name",
+                value: "name",
+              },
+              cascader: ["gridCode"],
+              rules: [{
+                required: true,
+                message: "请选择所属社区",
+                trigger: "blur",
+              }, ],
+            },
+            {
               label: "辖区派出所",
               prop: "deptName",
               align: 'center',
diff --git a/src/views/publicSecurity/ninePlaceManage/patrolRecord.vue b/src/views/publicSecurity/ninePlaceManage/patrolRecord.vue
index 048374e..218ae59 100644
--- a/src/views/publicSecurity/ninePlaceManage/patrolRecord.vue
+++ b/src/views/publicSecurity/ninePlaceManage/patrolRecord.vue
@@ -231,25 +231,45 @@
               searchSpan: 4,
               searchLabelWidth: 96,
               align: 'center'
-            }, {
-              label: "所属街道",
-              prop: "streetName",
-              span: 24,
-              row: true,
-              searchSpan: 4,
-              search: true,
-              align: 'center'
             },
             {
+              label: "所属街道",
+              parent: false,
+              search: true,
+              searchSpan: 4,
+              prop: "streetName",
+              type: "tree",
+              dicUrl: "/api/blade-system/region/getTownTree",
+              props: {
+                label: "name",
+                value: "name"
+              },
+              rules: [{
+                required: true,
+                message: "请选择所属街道",
+                trigger: "blur",
+              }, ],
+            },
+
+            {
+              parent: false,
               label: "所属社区",
               prop: "communityName",
-              span: 24,
-              row: true,
-              searchSpan: 4,
               search: true,
-              width: 160,
-              overHidden: true,
-              align: 'center'
+              searchSpan: 4,
+              width: 150,
+              type: "tree",
+              dicUrl: "/api/blade-system/region/treeToCommunity",
+              props: {
+                label: "name",
+                value: "name",
+              },
+              cascader: ["gridCode"],
+              rules: [{
+                required: true,
+                message: "请选择所属社区",
+                trigger: "blur",
+              }, ],
             },
             {
               label: "所属网格",
diff --git a/src/views/publicSecurity/ninePlaceManage/situationRectification.vue b/src/views/publicSecurity/ninePlaceManage/situationRectification.vue
index d9dbc27..c6b0659 100644
--- a/src/views/publicSecurity/ninePlaceManage/situationRectification.vue
+++ b/src/views/publicSecurity/ninePlaceManage/situationRectification.vue
@@ -199,26 +199,46 @@
           columnBtn: false,
           dialogClickModal: false,
           column: [{
-              width: 110,
-              span: 12,
-              label: "街道名称",
+              label: "所属街道",
+              parent: false,
+              search: true,
+              searchSpan: 4,
               prop: "streetName",
-              searchSpan: 4,
-              searchLabelWidth: 100,
-              search: true,
-              align: 'center',
-              labelWidth: 110,
-            }, {
-              width: 110,
-              span: 12,
-              label: "社区名称",
+              type: "tree",
+              dicUrl: "/api/blade-system/region/getTownTree",
+              props: {
+                label: "name",
+                value: "name"
+              },
+              rules: [{
+                required: true,
+                message: "请选择所属街道",
+                trigger: "blur",
+              }, ],
+            },
+
+            {
+              // hide: true,
+              parent: false,
+              label: "所属社区",
               prop: "communityName",
-              searchSpan: 4,
-              searchLabelWidth: 100,
               search: true,
-              align: 'center',
-              labelWidth: 110,
-            }, {
+              searchSpan: 4,
+              width: 150,
+              type: "tree",
+              dicUrl: "/api/blade-system/region/treeToCommunity",
+              props: {
+                label: "name",
+                value: "name",
+              },
+              cascader: ["gridCode"],
+              rules: [{
+                required: true,
+                message: "请选择所属社区",
+                trigger: "blur",
+              }, ],
+            },
+            {
               label: "场所名称",
               prop: "placeName",
               align: 'center',
diff --git a/src/views/publicSecurity/noExplosionManage.vue b/src/views/publicSecurity/noExplosionManage.vue
index 4537628..bf839ab 100644
--- a/src/views/publicSecurity/noExplosionManage.vue
+++ b/src/views/publicSecurity/noExplosionManage.vue
@@ -68,7 +68,12 @@
         </div>
         <div class="info-item">
           <div class="info-name">门牌二维码</div>
-          <div class="info-value"><img style="width: 60px;height: 60px;" :src="rowDetail.qrImg" alt="" /></div>
+          <div class="info-value">
+            <!-- <img style="width: 60px;height: 60px;" :src="rowDetail.qrImg" alt="" /> -->
+            <el-image v-if="rowDetail.qrImg" style="width: 60px; height: 60px" :src="rowDetail.qrImg"
+              @click="loockImag(rowDetail.qrImg)" :preview-src-list="srcList">
+            </el-image>
+          </div>
         </div>
       </div>
       <div class="title">
@@ -172,6 +177,7 @@
         isDetail: false,
         refreshNum: 1,
         rowDetail: [],
+        srcList: [],
         auditRules: {
           status: [{
             required: true,
@@ -266,26 +272,38 @@
               search: true,
               searchSpan: 4,
               searchLabelWidth: 96,
-            }, {
+            },
+
+            {
               label: "所属街道",
               prop: "streetName",
               span: 24,
               row: true,
               searchSpan: 4,
-              search: true,
+              // search: true,
               align: 'center'
             },
             {
+              parent: false,
               label: "所属社区",
               prop: "communityName",
-              span: 24,
-              row: true,
-              searchSpan: 4,
+              width: 150,
               search: true,
-              width: 160,
-              overHidden: true,
-              align: 'center'
+              type: "tree",
+              searchSpan: 4,
+              dicUrl: "/api/blade-system/region/treeToCommunity",
+              props: {
+                label: "name",
+                value: "name",
+              },
+              cascader: ["gridCode"],
+              rules: [{
+                required: true,
+                message: "请选择所属社区",
+                trigger: "blur",
+              }, ],
             },
+
             {
               label: "派出所",
               prop: "pcsName",
@@ -314,15 +332,7 @@
               searchSpan: 4,
               align: 'center'
             },
-            // {
-            //   label: "无诈上报数量",
-            //   prop: "number",
-            //   span: 24,
-            //   row: true,
-            //   slot: true,
-            //   searchSpan: 4,
-            //   align: 'center'
-            // },
+
             {
               width: 110,
               label: "审核状态",
@@ -435,6 +445,11 @@
 
 
     methods: {
+      loockImag(img) {
+        console.log("**************", img)
+        this.srcList = []
+        this.srcList.push(img)
+      },
 
       downloadFile(url) {
         window.location.href = url
diff --git a/src/views/publicSecurity/place.vue b/src/views/publicSecurity/place.vue
index 261f60d..66c1c30 100644
--- a/src/views/publicSecurity/place.vue
+++ b/src/views/publicSecurity/place.vue
@@ -258,7 +258,7 @@
               label: "场所名称",
               span: 12,
               prop: "placeName",
-              searchSpan: 5,
+              searchSpan: 3,
               search: true,
               searchLabelWidth: 76,
               rules: [{
@@ -271,8 +271,8 @@
               width: 110,
               label: "场所负责人",
               prop: "principal",
-              searchSpan: 5,
-              searchLabelWidth: 110,
+              searchSpan: 3,
+              searchLabelWidth: 90,
               search: true,
               rules: [{
                 required: false,
@@ -308,43 +308,35 @@
               }],
             },
             {
-              width: 110,
               label: "所属街道",
-              addDisplay: false,
-              editDisplay: false,
-              viewDisplay: false,
-              prop: "townStreetName",
-              search: true,
-              searchSpan: 4
-            },
-            {
-              width: 156,
-              overHidden: true,
-              label: "所属社区",
-              addDisplay: false,
-              editDisplay: false,
-              viewDisplay: false,
-              prop: "neiName",
+              parent: false,
               search: true,
               searchSpan: 4,
+              prop: "townStreetName",
+              type: "tree",
+              dicUrl: "/api/blade-system/region/getTownTree",
+              props: {
+                label: "name",
+                value: "name"
+              },
               rules: [{
                 required: true,
-                message: "请选择所属社区",
+                message: "请选择所属街道",
                 trigger: "blur",
               }, ],
             },
             {
-              hide: true,
               parent: false,
               label: "所属社区",
-              prop: "neiCode",
-              search: false,
+              prop: "neiName",
+              search: true,
+              searchSpan: 4,
               width: 150,
               type: "tree",
               dicUrl: "/api/blade-system/region/treeToCommunity",
               props: {
                 label: "name",
-                value: "id",
+                value: "name",
               },
               cascader: ["gridCode"],
               rules: [{
@@ -624,7 +616,7 @@
               prop: 'source',
               type: "select",
               search: true,
-              searchSpan: 5,
+              searchSpan: 3,
               slot: true,
               dicData: [{
                 label: '是',
diff --git a/src/views/publicSecurity/positionManage/TransactRegist.vue b/src/views/publicSecurity/positionManage/TransactRegist.vue
index 3d8f6b7..7b7cef3 100644
--- a/src/views/publicSecurity/positionManage/TransactRegist.vue
+++ b/src/views/publicSecurity/positionManage/TransactRegist.vue
@@ -172,27 +172,47 @@
               hide: true,
               searchSpan: 5,
               searchLabelWidth: 76,
-            }, {
-              width: 110,
-              span: 12,
-              label: "街道名称",
+            },
+            {
+              label: "所属街道",
+              parent: false,
+              search: true,
+              searchSpan: 4,
               prop: "streetName",
-              searchSpan: 4,
-              searchLabelWidth: 100,
-              search: true,
-              align: 'center',
-              labelWidth: 110,
-            }, {
-              width: 110,
-              span: 12,
-              label: "社区名称",
+              type: "tree",
+              dicUrl: "/api/blade-system/region/getTownTree",
+              props: {
+                label: "name",
+                value: "name"
+              },
+              rules: [{
+                required: true,
+                message: "请选择所属街道",
+                trigger: "blur",
+              }, ],
+            },
+
+            {
+              parent: false,
+              label: "所属社区",
               prop: "communityName",
-              searchSpan: 4,
-              searchLabelWidth: 100,
               search: true,
-              align: 'center',
-              labelWidth: 110,
-            }, {
+              searchSpan: 4,
+              width: 150,
+              type: "tree",
+              dicUrl: "/api/blade-system/region/treeToCommunity",
+              props: {
+                label: "name",
+                value: "name",
+              },
+              cascader: ["gridCode"],
+              rules: [{
+                required: true,
+                message: "请选择所属社区",
+                trigger: "blur",
+              }, ],
+            },
+            {
               width: 110,
               span: 12,
               label: "场所名称",
diff --git a/src/views/publicSecurity/positionManage/fileManage.vue b/src/views/publicSecurity/positionManage/fileManage.vue
index 00a2f81..d844f20 100644
--- a/src/views/publicSecurity/positionManage/fileManage.vue
+++ b/src/views/publicSecurity/positionManage/fileManage.vue
@@ -1,435 +1,450 @@
 <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="principalIdCard">
-                <el-button :size="size" type="text" @click="showStringDispose(row, 'principalIdCardflag')">
-                    {{ textDispose(row, 'principalIdCardflag', 'principalIdCard') }}
-                </el-button>
-            </template>
-            <template slot-scope="{row, size}" slot="principalPhone">
-                <el-button :size="size" type="text" @click="showStringDispose(row, 'principalPhoneflag')"
-                    v-text="textDispose(row, 'principalPhoneflag', 'principalPhone')">
-                </el-button>
-            </template>
-            <template slot-scope="{row, size}" slot="policePhone">
-                <el-button :size="size" type="text" @click="showStringDispose(row, 'policePhoneflag')"
-                    v-text="textDispose(row, 'policePhoneflag', 'policePhone')">
-                </el-button>
-            </template>
-            <template slot="menuLeft">
-                <el-button type="warning" size="small" plain icon="el-icon-download" @click="handleExport">导出
-                </el-button>
-            </template>
-        </avue-crud>
-    </basic-container>
+  <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="principalIdCard">
+        <el-button :size="size" type="text" @click="showStringDispose(row, 'principalIdCardflag')">
+          {{ textDispose(row, 'principalIdCardflag', 'principalIdCard') }}
+        </el-button>
+      </template>
+      <template slot-scope="{row, size}" slot="principalPhone">
+        <el-button :size="size" type="text" @click="showStringDispose(row, 'principalPhoneflag')"
+          v-text="textDispose(row, 'principalPhoneflag', 'principalPhone')">
+        </el-button>
+      </template>
+      <template slot-scope="{row, size}" slot="policePhone">
+        <el-button :size="size" type="text" @click="showStringDispose(row, 'policePhoneflag')"
+          v-text="textDispose(row, 'policePhoneflag', 'policePhone')">
+        </el-button>
+      </template>
+      <template slot="menuLeft">
+        <el-button type="warning" size="small" plain icon="el-icon-download" @click="handleExport">导出
+        </el-button>
+      </template>
+    </avue-crud>
+  </basic-container>
 </template>
 
 <script>
-import {
+  import {
     mapGetters
-} from "vuex"
-import {
+  } from "vuex"
+  import {
     getDAGLList
-} from "@/api/publicSecurity/ninePlaceManage"
-import NProgress from 'nprogress'
-import 'nprogress/nprogress.css'
-import Qs from "qs"
-import {
+  } from "@/api/publicSecurity/ninePlaceManage"
+  import NProgress from 'nprogress'
+  import 'nprogress/nprogress.css'
+  import Qs from "qs"
+  import {
     exportBlob
-} from "@/api/common"
-import {
+  } from "@/api/common"
+  import {
     getToken
-} from '@/util/auth'
-import {
+  } from '@/util/auth'
+  import {
     downloadXls
-} from "@/util/util"
-import {
+  } from "@/util/util"
+  import {
     dateNow
-} from "@/util/date"
+  } from "@/util/date"
 
-export default {
-    data () {
-        return {
-            form: {},
-            query: {},
-            loading: true,
+  export default {
+    data() {
+      return {
+        form: {},
+        query: {},
+        loading: true,
 
-            page: {
-                pageSize: 10,
-                currentPage: 1,
-                total: 0,
+        page: {
+          pageSize: 10,
+          currentPage: 1,
+          total: 0,
+        },
+        datetime: "",
+        selectionList: [],
+        option: {
+          height: "auto",
+          calcHeight: 54,
+          dialogWidth: 950,
+          tip: false,
+          searchShow: true,
+          searchMenuSpan: 3,
+          menu: false,
+          border: true,
+          index: true,
+          editBtn: false,
+          delBtn: false,
+          addBtn: false,
+          refreshBtn: false,
+          searchShowBtn: false,
+          columnBtn: false,
+          dialogClickModal: false,
+          column: [{
+              label: "场所名称",
+              prop: "placeName",
+              align: 'center',
+              search: true,
+              searchSpan: 4,
+              // searchLabelWidth: 96,
+              width: 156
+            }, {
+              label: "场所地址",
+              prop: "location",
+              align: 'center',
             },
-            datetime: "",
-            selectionList: [],
-            option: {
-                height: "auto",
-                calcHeight: 54,
-                dialogWidth: 950,
-                tip: false,
-                searchShow: true,
-                searchMenuSpan: 3,
-                menu: false,
-                border: true,
-                index: true,
-                editBtn: false,
-                delBtn: false,
-                addBtn: false,
-                refreshBtn: false,
-                searchShowBtn: false,
-                columnBtn: false,
-                dialogClickModal: false,
-                column: [{
-                    label: "场所名称",
-                    prop: "placeName",
-                    align: 'center',
-                    search: true,
-                    searchSpan: 4,
-                    // searchLabelWidth: 96,
-                    width: 156
-                }, {
-                    label: "场所地址",
-                    prop: "location",
-                    align: 'center',
-                },
-                {
-                    label: "阵地类别",
-                    prop: "frontType",
-                    align: 'center',
-                    dicUrl: "/api/blade-system/dict-biz/tree?code=frontType",
-                    props: {
-                        label: "title",
-                        value: "key",
-                    },
-                    type: 'select',
-                    search: true,
-                    searchSpan: 4,
-                    // searchLabelWidth: 96
-                }, {
-                    label: "场所负责人",
-                    prop: "principal",
-                    align: 'center',
-                    search: true,
-                    searchSpan: 4,
-                    searchLabelWidth: 96,
-                    width: 110
-                }, {
-                    label: "身份证信息",
-                    prop: "principalIdCard",
-                    align: 'center',
-                    slot: true,
-                    width: 160
-                }, {
-                    label: "联系方式",
-                    prop: "principalPhone",
-                    align: 'center',
-                    slot: true,
-                    width: 120
-                }, {
-                    label: "辖区派出所",
-                    prop: "deptName",
-                    align: 'center',
-                    search: true,
-                    searchSpan: 4,
-                    width:120,
-                    searchLabelWidth: 96
-                }, {
-                    label: "地区",
-                    prop: "townStreetName",
-                    align: 'center',
-                    search: true,
-                    searchSpan: 3,
-                    searchLabelWidth: 60,
-                    labelWidth: 120,
-                    width: 120
-                }, {
-                    label: "所属社区",
-                    prop: "neiName",
-                    align: 'center',
-                    search: true,
-                    searchSpan: 4,
-                    searchLabelWidth: 84,
-                    labelWidth: 120,
-                    width: 156,
-                    searchPlaceholder: '请输入所属社区'
-                }, {
-                    label: "责任民警",
-                    prop: "policeName",
-                    align: 'center',
-                    search: true,
-                    searchSpan: 4,
-                    // searchLabelWidth: 96,
-                    width: 110
-                }, {
-                    label: "责任民警联系方式",
-                    prop: "policePhone",
-                    align: 'center',
-                    slot: true,
-                    width: 120
-                }],
+            {
+              label: "阵地类别",
+              prop: "frontType",
+              align: 'center',
+              dicUrl: "/api/blade-system/dict-biz/tree?code=frontType",
+              props: {
+                label: "title",
+                value: "key",
+              },
+              type: 'select',
+              search: true,
+              searchSpan: 4,
+              // searchLabelWidth: 96
+            }, {
+              label: "场所负责人",
+              prop: "principal",
+              align: 'center',
+              search: true,
+              searchSpan: 4,
+              searchLabelWidth: 96,
+              width: 110
+            }, {
+              label: "身份证信息",
+              prop: "principalIdCard",
+              align: 'center',
+              slot: true,
+              width: 160
+            }, {
+              label: "联系方式",
+              prop: "principalPhone",
+              align: 'center',
+              slot: true,
+              width: 120
+            }, {
+              label: "辖区派出所",
+              prop: "deptName",
+              align: 'center',
+              search: true,
+              searchSpan: 4,
+              width: 120,
+              searchLabelWidth: 96
+            }, {
+              label: "地区",
+              prop: "townStreetName",
+              align: 'center',
+              search: true,
+              searchSpan: 3,
+              searchLabelWidth: 60,
+              labelWidth: 120,
+              width: 120
             },
-            data: []
-        }
+            {
+              // hide: true,
+              parent: false,
+              label: "所属社区",
+              prop: "neiName",
+              search: true,
+              searchSpan: 4,
+              width: 150,
+              type: "tree",
+              dicUrl: "/api/blade-system/region/treeToCommunity",
+              props: {
+                label: "name",
+                value: "name",
+              },
+              cascader: ["gridCode"],
+              rules: [{
+                required: true,
+                message: "请选择所属社区",
+                trigger: "blur",
+              }, ],
+            },
+            {
+              label: "责任民警",
+              prop: "policeName",
+              align: 'center',
+              search: true,
+              searchSpan: 4,
+              // searchLabelWidth: 96,
+              width: 110
+            }, {
+              label: "责任民警联系方式",
+              prop: "policePhone",
+              align: 'center',
+              slot: true,
+              width: 120
+            }
+          ],
+        },
+        data: []
+      }
     },
 
     computed: {
-        ...mapGetters(["permission", "userInfo"]),
-        permissionList () {
-            return {
-                addBtn: this.vaildData(this.permission.place_add, true),
-                viewBtn: this.vaildData(this.permission.place_view, true),
-                delBtn: this.vaildData(this.permission.place_delete, true),
-                editBtn: this.vaildData(this.permission.place_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")
-                    }
-                }
-            }
+      ...mapGetters(["permission", "userInfo"]),
+      permissionList() {
+        return {
+          addBtn: this.vaildData(this.permission.place_add, true),
+          viewBtn: this.vaildData(this.permission.place_view, true),
+          delBtn: this.vaildData(this.permission.place_delete, true),
+          editBtn: this.vaildData(this.permission.place_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")
+            }
+          }
+        }
+      }
     },
     methods: {
-        handleExport () {
-            this.$confirm("是否导出档案管理数据?", "提示", {
-                confirmButtonText: "确定",
-                cancelButtonText: "取消",
-                type: "warning"
-            }).then(() => {
-                NProgress.start()
-                var data = {
-                    ...this.query
-                }
-                data.isFront = 1
-                data = Qs.stringify(data)
-                exportBlob(
-                    `/api/blade-place/place/exportNineType?${this.website.tokenHeader}=${getToken()}&` + data
-                ).then(res => {
-                    downloadXls(res.data, `档案管理${dateNow()}.xlsx`)
-                    NProgress.done()
-                })
-            })
-        },
+      handleExport() {
+        this.$confirm("是否导出档案管理数据?", "提示", {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning"
+        }).then(() => {
+          NProgress.start()
+          var data = {
+            ...this.query
+          }
+          data.isFront = 1
+          data = Qs.stringify(data)
+          exportBlob(
+            `/api/blade-place/place/exportNineType?${this.website.tokenHeader}=${getToken()}&` + data
+          ).then(res => {
+            downloadXls(res.data, `档案管理${dateNow()}.xlsx`)
+            NProgress.done()
+          })
+        })
+      },
 
-        showStringDispose (row, type) {
-            row[type] = !row[type]
-        },
+      showStringDispose(row, type) {
+        row[type] = !row[type]
+      },
 
-        rowSave (row, done, loading) {
-            if (row.imageUrls.length > 0) {
-                var urls = []
-                var split = row.imageUrls.split(",").filter(item => item != '')
-                split.forEach(url => {
-                    var names = url.split("jczz/")
-                    urls.push(names[1])
-                })
-                row.imageUrls = urls.join(",")
-            }
-
-            let label = row.label
-
-            if (row.smallLabel != '') {
-                label = label + ',' + row.smallLabel
-            }
-
-            delete row.smallLabel
-
-            add({
-                ...row,
-                label
-            }).then(
-                () => {
-                    this.onLoad(this.page)
-                    this.$message({
-                        type: "success",
-                        message: "操作成功!",
-                    })
-                    done()
-                },
-                (error) => {
-                    window.console.log(error)
-                    loading()
-                }
-            )
-        },
-
-        rowUpdate (row, index, done, loading) {
-            if (row.imageUrls.length > 0) {
-                var urls = []
-                var split = row.imageUrls.split(",").filter(item => item != '')
-                split.forEach(url => {
-                    var names = url.split("jczz/")
-                    urls.push(names[1])
-                })
-                row.imageUrls = urls.join(",")
-            }
-
-            let label = row.label
-
-            if (row.smallLabel != '') {
-                label = label + ',' + row.smallLabel
-            }
-
-            delete row.smallLabel
-
-            update({
-                ...row,
-                label
-            }).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(() => {
-                    row.isDeleted = 1
-                    return removeTask(row)
-                })
-                .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)) {
-
-            // } else {
-            //     done()
-            // }
-        },
-
-        currentChange (currentPage) {
-            this.page.currentPage = currentPage
-        },
-
-        sizeChange (pageSize) {
-            this.page.pageSize = pageSize
-        },
-
-        refreshChange () {
-            // this.onLoad(this.page, this.query)
-        },
-
-        onLoad (page, params = {}) {
-            this.loading = true
-            getDAGLList(page.currentPage, page.pageSize, { ...Object.assign(params, this.query), isFront: 1 }).then(res => {
-                console.log('getDAGLList', res.data.data.records)
-                const data = {
-                    ...res.data.data,
-                    records: res.data.data.records.map(item => {
-                        return {
-                            ...item,
-                            'principalIdCardflag': false,
-                            'principalPhoneflag': false,
-                            'policePhoneflag': false
-                        }
-                    })
-                }
-                this.page.total = data.total
-                this.data = data.records
-                this.loading = false
-                this.selectionClear()
-            })
+      rowSave(row, done, loading) {
+        if (row.imageUrls.length > 0) {
+          var urls = []
+          var split = row.imageUrls.split(",").filter(item => item != '')
+          split.forEach(url => {
+            var names = url.split("jczz/")
+            urls.push(names[1])
+          })
+          row.imageUrls = urls.join(",")
         }
+
+        let label = row.label
+
+        if (row.smallLabel != '') {
+          label = label + ',' + row.smallLabel
+        }
+
+        delete row.smallLabel
+
+        add({
+          ...row,
+          label
+        }).then(
+          () => {
+            this.onLoad(this.page)
+            this.$message({
+              type: "success",
+              message: "操作成功!",
+            })
+            done()
+          },
+          (error) => {
+            window.console.log(error)
+            loading()
+          }
+        )
+      },
+
+      rowUpdate(row, index, done, loading) {
+        if (row.imageUrls.length > 0) {
+          var urls = []
+          var split = row.imageUrls.split(",").filter(item => item != '')
+          split.forEach(url => {
+            var names = url.split("jczz/")
+            urls.push(names[1])
+          })
+          row.imageUrls = urls.join(",")
+        }
+
+        let label = row.label
+
+        if (row.smallLabel != '') {
+          label = label + ',' + row.smallLabel
+        }
+
+        delete row.smallLabel
+
+        update({
+          ...row,
+          label
+        }).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(() => {
+            row.isDeleted = 1
+            return removeTask(row)
+          })
+          .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)) {
+
+        // } else {
+        //     done()
+        // }
+      },
+
+      currentChange(currentPage) {
+        this.page.currentPage = currentPage
+      },
+
+      sizeChange(pageSize) {
+        this.page.pageSize = pageSize
+      },
+
+      refreshChange() {
+        // this.onLoad(this.page, this.query)
+      },
+
+      onLoad(page, params = {}) {
+        this.loading = true
+        getDAGLList(page.currentPage, page.pageSize, {
+          ...Object.assign(params, this.query),
+          isFront: 1
+        }).then(res => {
+          console.log('getDAGLList', res.data.data.records)
+          const data = {
+            ...res.data.data,
+            records: res.data.data.records.map(item => {
+              return {
+                ...item,
+                'principalIdCardflag': false,
+                'principalPhoneflag': false,
+                'policePhoneflag': false
+              }
+            })
+          }
+          this.page.total = data.total
+          this.data = data.records
+          this.loading = false
+          this.selectionClear()
+        })
+      }
     }
-}
+  }
 </script>
 
 <style lang="scss" scoped>
-.avue-upload__icon {
+  .avue-upload__icon {
     line-height: 6;
-}
+  }
 
-// :deep(.el-form-item__content) {
-//     text-align: left !important;
-// }
+  // :deep(.el-form-item__content) {
+  //     text-align: left !important;
+  // }
 
-// :deep(.avue-form__menu--center .el-button) {
-//     margin: 0 5px 0 0;
-// }
-</style>
+  // :deep(.avue-form__menu--center .el-button) {
+  //     margin: 0 5px 0 0;
+  // }
+</style>
\ No newline at end of file

--
Gitblit v1.9.3