From 0e885d3979ff12e28026f89bb70b5504812ef579 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Tue, 03 Aug 2021 14:59:34 +0800
Subject: [PATCH] 现场检查数据对接

---
 src/views/onSiteInspection/data.js              |  278 ++++++++++
 src/views/onSiteInspection/securityStaffdata.js |  198 +++++++
 src/views/onSiteInspection/company.vue          |  283 ++++++++++
 src/api/onSiteInspection/company.js             |   39 +
 src/api/onSiteInspection/securityStaff.js       |   39 +
 src/views/onSiteInspection/company.js           |  378 ++++++++++++++
 src/views/onSiteInspection/securityStaff.vue    |  367 +++++++++++++
 7 files changed, 1,582 insertions(+), 0 deletions(-)

diff --git a/src/api/onSiteInspection/company.js b/src/api/onSiteInspection/company.js
new file mode 100644
index 0000000..e78fa39
--- /dev/null
+++ b/src/api/onSiteInspection/company.js
@@ -0,0 +1,39 @@
+import request from '@/router/axios';
+
+export const getdata = (current, size, params) => {
+    return request({
+        url: '/api/coinspect/list',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+export const adddata = (row) => {
+    return request({
+        url: '/api/coinspect/save',
+        method: 'post',
+        data: row
+    })
+}
+
+export const update = (row) => {
+    return request({
+        url: '/api/coinspect/update',
+        method: 'post',
+        data: row
+    })
+}
+
+export const remove = (ids) => {
+    return request({
+        url: '/api/coinspect/remove',
+        method: 'post',
+        params: {
+            ids,
+        }
+    })
+}
\ No newline at end of file
diff --git a/src/api/onSiteInspection/securityStaff.js b/src/api/onSiteInspection/securityStaff.js
new file mode 100644
index 0000000..9f7a2a0
--- /dev/null
+++ b/src/api/onSiteInspection/securityStaff.js
@@ -0,0 +1,39 @@
+import request from '@/router/axios';
+
+export const getdata = (current, size, params) => {
+    return request({
+        url: '/api/seinspect/list',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+
+export const adddata = (row) => {
+    return request({
+        url: '/api/seinspect/save',
+        method: 'post',
+        data: row
+    })
+}
+
+export const update = (row) => {
+    return request({
+        url: '/api/seinspect/update',
+        method: 'post',
+        data: row
+    })
+}
+
+export const remove = (ids) => {
+    return request({
+        url: '/api/seinspect/remove',
+        method: 'post',
+        params: {
+            ids,
+        }
+    })
+}
\ No newline at end of file
diff --git a/src/views/onSiteInspection/company.js b/src/views/onSiteInspection/company.js
new file mode 100644
index 0000000..b39d332
--- /dev/null
+++ b/src/views/onSiteInspection/company.js
@@ -0,0 +1,378 @@
+export var datasing = {
+    "code": 200,
+    "success": true,
+    "data": {
+        "records": [{
+            "id": "1415922341221867522",
+            "createUser": "1123598821738675201",
+            "createDept": "1372091709474910209",
+            "createTime": "2021-07-16 14:32:47",
+            "updateUser": "1123598821738675201",
+            "updateTime": "2021-07-19 19:34:43",
+            "status": 1,
+            "isDeleted": 0,
+            "tenantId": "000000",
+            "code": "",
+            "userType": -1,
+            "account": "13576969155",
+            "name": "王烽",
+            "realName": "王烽",
+            "avatar": "",
+            "email": "",
+            "phone": "13576969155",
+            "birthday": "",
+            "sex": 1,
+            "roleId": "1372092102682521602,1416225849858883585",
+            "deptId": "1372091709474910209,1415620707473223681,1415635607746551809",
+            "postId": "",
+            "online_status": "0",
+            "work_status": "0",
+            "examination_type": "",
+            "examination_mx": "",
+            "tenantName": "平台运维",
+            "userTypeName": "用户平台",
+            "roleName": "群防群控队伍,普通群众",
+            "deptName": "南昌市公安局,高新技术开发区分局,瑶湖派出所",
+            "postName": "",
+            "sexName": "男",
+            "userExt": "",
+            "jd": "0.0",
+            "wd": "0.0"
+        }, {
+            "id": "1415922434352193537",
+            "createUser": "1123598821738675201",
+            "createDept": "1372091709474910209",
+            "createTime": "2021-07-16 14:33:10",
+            "updateUser": "1123598821738675201",
+            "updateTime": "2021-07-16 14:33:10",
+            "status": 1,
+            "isDeleted": 0,
+            "tenantId": "000000",
+            "code": "",
+            "userType": -1,
+            "account": "014421",
+            "name": "",
+            "realName": "黎辅齐",
+            "avatar": "",
+            "email": "",
+            "phone": "13970047592",
+            "birthday": "",
+            "sex": 1,
+            "roleId": "1372092102682521602",
+            "deptId": "1372091709474910209,1415620404103409666,1415634573724786690",
+            "postId": "",
+            "online_status": "",
+            "work_status": "",
+            "examination_type": "0",
+            "examination_mx": "正常",
+            "tenantName": "平台运维",
+            "userTypeName": "",
+            "roleName": "群防群控队伍",
+            "deptName": "南昌市公安局,经济技术开发区分局,蛟桥派出所",
+            "postName": "",
+            "sexName": "男",
+            "userExt": "",
+            "jd": "",
+            "wd": ""
+        }, {
+            "id": "1415922474940473346",
+            "createUser": "1123598821738675201",
+            "createDept": "1372091709474910209",
+            "createTime": "2021-07-16 14:33:19",
+            "updateUser": "1123598821738675201",
+            "updateTime": "2021-07-17 12:31:14",
+            "status": 1,
+            "isDeleted": 0,
+            "tenantId": "000000",
+            "code": "",
+            "userType": -1,
+            "account": "六哥",
+            "name": "",
+            "realName": "罗健泰",
+            "avatar": "https://web.byisf.com/minio/jfpt/upload/depl/fc9d92dd0e9f4849bc95b20039791a77.jpg",
+            "email": "",
+            "phone": "13807059002",
+            "birthday": "",
+            "sex": 1,
+            "roleId": "1372092102682521602",
+            "deptId": "1372091709474910209,1415619917295710209,1415622346330402817",
+            "postId": "",
+            "online_status": "",
+            "work_status": "",
+            "examination_type": "0",
+            "examination_mx": "正常",
+            "tenantName": "平台运维",
+            "userTypeName": "",
+            "roleName": "群防群控队伍",
+            "deptName": "南昌市公安局,西湖分局,桃花派出所",
+            "postName": "",
+            "sexName": "男",
+            "userExt": "",
+            "jd": "",
+            "wd": ""
+        }, {
+            "id": "1415922519416872961",
+            "createUser": "1123598821738675201",
+            "createDept": "1372091709474910209",
+            "createTime": "2021-07-16 14:33:30",
+            "updateUser": "1123598821738675201",
+            "updateTime": "2021-07-16 14:33:30",
+            "status": 1,
+            "isDeleted": 0,
+            "tenantId": "000000",
+            "code": "",
+            "userType": -1,
+            "account": "014225",
+            "name": "",
+            "realName": "余春生",
+            "avatar": "",
+            "email": "",
+            "phone": "13870696110",
+            "birthday": "",
+            "sex": 1,
+            "roleId": "1372092102682521602",
+            "deptId": "1372091709474910209,1415620472965492738,1415635051854471170",
+            "postId": "",
+            "online_status": "",
+            "work_status": "",
+            "examination_type": "0",
+            "examination_mx": "正常",
+            "tenantName": "平台运维",
+            "userTypeName": "",
+            "roleName": "群防群控队伍",
+            "deptName": "南昌市公安局,红谷滩分局,九龙湖派出所",
+            "postName": "",
+            "sexName": "男",
+            "userExt": "",
+            "jd": "",
+            "wd": ""
+        }, {
+            "id": "1415922688380215297",
+            "createUser": "1123598821738675201",
+            "createDept": "1372091709474910209",
+            "createTime": "2021-07-16 14:34:10",
+            "updateUser": "1123598821738675201",
+            "updateTime": "2021-07-16 14:34:10",
+            "status": 1,
+            "isDeleted": 0,
+            "tenantId": "000000",
+            "code": "",
+            "userType": -1,
+            "account": "1121577645",
+            "name": "",
+            "realName": "张书茂",
+            "avatar": "",
+            "email": "",
+            "phone": "17607988072",
+            "birthday": "",
+            "sex": 1,
+            "roleId": "1372092102682521602",
+            "deptId": "1372091709474910209,1415620472965492738,1415635051854471170",
+            "postId": "",
+            "online_status": "",
+            "work_status": "",
+            "examination_type": "0",
+            "examination_mx": "正常",
+            "tenantName": "平台运维",
+            "userTypeName": "",
+            "roleName": "群防群控队伍",
+            "deptName": "南昌市公安局,红谷滩分局,九龙湖派出所",
+            "postName": "",
+            "sexName": "男",
+            "userExt": "",
+            "jd": "",
+            "wd": ""
+        }, {
+            "id": "1415932008828346370",
+            "createUser": "1123598821738675201",
+            "createDept": "1372091709474910209",
+            "createTime": "2021-07-16 15:11:12",
+            "updateUser": "1123598821738675201",
+            "updateTime": "2021-07-16 15:31:26",
+            "status": 1,
+            "isDeleted": 0,
+            "tenantId": "000000",
+            "code": "",
+            "userType": 1,
+            "account": "gxzl",
+            "name": "张垒",
+            "realName": "张垒",
+            "avatar": "",
+            "email": "",
+            "phone": "13870999707",
+            "birthday": "",
+            "sex": 1,
+            "roleId": "1372092102682521602",
+            "deptId": "1372091709474910209,1415620707473223681,1415635420856754177",
+            "postId": "",
+            "online_status": "0",
+            "work_status": "0",
+            "examination_type": "0",
+            "examination_mx": "正常",
+            "tenantName": "平台运维",
+            "userTypeName": "WEB",
+            "roleName": "群防群控队伍",
+            "deptName": "南昌市公安局,高新技术开发区分局,高新派出所",
+            "postName": "",
+            "sexName": "男",
+            "userExt": "",
+            "jd": "0.0",
+            "wd": "0.0"
+        }, {
+            "id": "1415932326664314881",
+            "createUser": "1123598821738675201",
+            "createDept": "1372091709474910209",
+            "createTime": "2021-07-16 15:12:28",
+            "updateUser": "1123598821738675201",
+            "updateTime": "2021-07-16 15:31:10",
+            "status": 1,
+            "isDeleted": 0,
+            "tenantId": "000000",
+            "code": "",
+            "userType": 1,
+            "account": "gxlty",
+            "name": "刘天禹",
+            "realName": "刘天禹",
+            "avatar": "",
+            "email": "",
+            "phone": "19917932381",
+            "birthday": "",
+            "sex": 1,
+            "roleId": "1372092102682521602",
+            "deptId": "1372091709474910209,1415620707473223681,1415635420856754177",
+            "postId": "",
+            "online_status": "0",
+            "work_status": "0",
+            "examination_type": "0",
+            "examination_mx": "正常",
+            "tenantName": "平台运维",
+            "userTypeName": "WEB",
+            "roleName": "群防群控队伍",
+            "deptName": "南昌市公安局,高新技术开发区分局,高新派出所",
+            "postName": "",
+            "sexName": "男",
+            "userExt": "",
+            "jd": "0.0",
+            "wd": "0.0"
+        }, {
+            "id": "1415932534273974274",
+            "createUser": "1123598821738675201",
+            "createDept": "1372091709474910209",
+            "createTime": "2021-07-16 15:13:18",
+            "updateUser": "1123598821738675201",
+            "updateTime": "2021-07-16 15:30:49",
+            "status": 1,
+            "isDeleted": 0,
+            "tenantId": "000000",
+            "code": "",
+            "userType": 1,
+            "account": "gxlt",
+            "name": "张涛",
+            "realName": "张涛",
+            "avatar": "",
+            "email": "",
+            "phone": "13617091698",
+            "birthday": "",
+            "sex": 1,
+            "roleId": "1372092102682521602",
+            "deptId": "1372091709474910209,1415620707473223681,1415635420856754177",
+            "postId": "",
+            "online_status": "0",
+            "work_status": "0",
+            "examination_type": "0",
+            "examination_mx": "正常",
+            "tenantName": "平台运维",
+            "userTypeName": "WEB",
+            "roleName": "群防群控队伍",
+            "deptName": "南昌市公安局,高新技术开发区分局,高新派出所",
+            "postName": "",
+            "sexName": "男",
+            "userExt": "",
+            "jd": "0.0",
+            "wd": "0.0"
+        }, {
+            "id": "1416224269130563585",
+            "createUser": "1123598821738675201",
+            "createDept": "1372091709474910209",
+            "createTime": "2021-07-17 10:32:33",
+            "updateUser": "1123598821738675201",
+            "updateTime": "2021-07-17 10:32:33",
+            "status": 1,
+            "isDeleted": 0,
+            "tenantId": "000000",
+            "code": "",
+            "userType": -1,
+            "account": "gspcs",
+            "name": "",
+            "realName": "吴兵",
+            "avatar": "",
+            "email": "",
+            "phone": "18979133669",
+            "birthday": "",
+            "sex": 1,
+            "roleId": "1372092102682521602",
+            "deptId": "1372091709474910209,1415620404103409666,1415634727257284609",
+            "postId": "",
+            "online_status": "",
+            "work_status": "",
+            "examination_type": "0",
+            "examination_mx": "正常",
+            "tenantName": "平台运维",
+            "userTypeName": "",
+            "roleName": "群防群控队伍",
+            "deptName": "南昌市公安局,经济技术开发区分局,冠山派出所",
+            "postName": "",
+            "sexName": "男",
+            "userExt": "",
+            "jd": "",
+            "wd": ""
+        }, {
+            "id": "1416224308401831937",
+            "createUser": "1123598821738675201",
+            "createDept": "1372091709474910209",
+            "createTime": "2021-07-17 10:32:42",
+            "updateUser": "1123598821738675201",
+            "updateTime": "2021-07-17 10:32:42",
+            "status": 1,
+            "isDeleted": 0,
+            "tenantId": "000000",
+            "code": "",
+            "userType": -1,
+            "account": "lcy",
+            "name": "",
+            "realName": "刘晨昱",
+            "avatar": "",
+            "email": "",
+            "phone": "15797855096",
+            "birthday": "",
+            "sex": 1,
+            "roleId": "1372092102682521602",
+            "deptId": "1372091709474910209,1415619917295710209,1415622899219361793",
+            "postId": "",
+            "online_status": "",
+            "work_status": "",
+            "examination_type": "0",
+            "examination_mx": "正常",
+            "tenantName": "平台运维",
+            "userTypeName": "",
+            "roleName": "群防群控队伍",
+            "deptName": "南昌市公安局,西湖分局,广润门派出所",
+            "postName": "",
+            "sexName": "男",
+            "userExt": "",
+            "jd": "",
+            "wd": ""
+        }],
+        "total": 152,
+        "size": 10,
+        "current": 1,
+        "orders": [],
+        "optimizeCountSql": true,
+        "hitCount": false,
+        "countId": "",
+        "maxLimit": -1,
+        "searchCount": true,
+        "pages": 16
+    },
+    "msg": "操作成功"
+}
\ No newline at end of file
diff --git a/src/views/onSiteInspection/company.vue b/src/views/onSiteInspection/company.vue
new file mode 100644
index 0000000..a1732aa
--- /dev/null
+++ b/src/views/onSiteInspection/company.vue
@@ -0,0 +1,283 @@
+<template>
+  <div class="company">
+    <avue-crud
+      :option="option"
+      :data="data"
+      :page.sync="page"
+      ref="crudrec"
+      @on-load="onLoad"
+      :table-loading="loading"
+      @row-save="rowSave"
+      @search-change="searchChange"
+      @search-reset="searchReset"
+      @row-update="rowUpdate"
+      @row-del="rowDel"
+      @selection-change="selectionChange"
+      @refresh-change="refreshChange"
+    >
+      <template slot="menuLeft">
+        <el-button
+          type="danger"
+          size="small"
+          plain
+          icon="el-icon-delete"
+          @click="handleDelete"
+          >删 除
+        </el-button>
+      </template>
+    </avue-crud>
+  </div>
+</template>
+
+<script>
+import {
+  getdata,
+  adddata,
+  update,
+  remove,
+} from "@/api/onSiteInspection/company";
+
+export default {
+  data() {
+    return {
+      loading: true,
+      selectionList: [],
+      page: {
+        pageSize: 10,
+        currentPage: 1,
+        total: 0,
+      },
+      query: {},
+      data: [],
+      option: {
+        // card: true,
+        tip: false,
+        searchSize: "mini",
+        searchMenuSpan: 6,
+        height: 693,
+        index: true,
+        menuWidth: 160,
+        align: "center",
+        selection: true,
+        column: [
+          {
+            label: "检查人姓名",
+            prop: "name",
+            // labelWi
+          },
+          //
+          {
+            label: "被检查单位名称",
+            prop: "sname",
+            overHidden: true,
+            // display: false,
+            // labelWidth: 120,
+            // width: 200,
+          },
+          {
+            label: "检查人单位",
+            prop: "deptname",
+            overHidden: true,
+            // // display: false,
+            // width: 200,
+            // labelWidth: 120,
+            // overHidden: true,
+          },
+          //   {
+
+          {
+            label: "检查日期",
+            prop: "reviewtime",
+            type: "date",
+            format: "yyyy-MM-dd",
+            valueFormat: "yyyy-MM-dd",
+            mock: {
+              type: "datetime",
+              labelWidth: 120,
+              format: "yyyy-MM-dd",
+            },
+            // search: true,
+            searchSpan: 4,
+            // display: false,
+            width: 180,
+          },
+          {
+            label: "检查内容",
+            prop: "insid",
+            // type: "date"
+          },
+          // {
+          //   },
+          {
+            label: "检查结果",
+            prop: "results",
+            // // display: false,
+            // width: 200,
+            // labelWidth: 120,
+            // overHidden: true,
+          },
+        ],
+      },
+    };
+  },
+  computed: {
+    ids() {
+      let ids = [];
+      this.selectionList.forEach((ele) => {
+        ids.push(ele.id);
+      });
+      return ids.join(",");
+    },
+  },
+  methods: {
+    sizeChange(val) {
+      this.page1.currentPage = 1;
+      this.page1.pageSize = val;
+      this.getData();
+      //   this.$message.success("行数" + val);
+    },
+    currentChange(val) {
+      this.page1.currentPage = val;
+      this.getData();
+      //   this.$message.success("页码" + val);
+    },
+    rowSave(form, done, loading) {
+      var that = this;
+      //   var form = this.data[0];
+      //   delete form.id;
+      //   for (var k = 0; k < 13; k++) {
+      form["deptId"] = form.tenantName;
+      delete form.tenantName;
+      adddata(form).then(
+        (res) => {
+          this.onLoad(this.page);
+          this.$message({
+            type: "success",
+            message: "操作成功!",
+          });
+          done();
+        },
+        (error) => {
+          window.console.log(error);
+          loading();
+        }
+      );
+      //   }
+    },
+    searchChange(params, done) {
+      this.query = params;
+      this.page.currentPage = 1;
+      this.onLoad(this.page, params);
+      done();
+    },
+    searchReset() {
+      this.query = {};
+      this.onLoad(this.page);
+    },
+    rowUpdate(row, index, done, loading) {
+      // console.log(row);
+      row["deptId"] = row.tenantName;
+      delete row.tenantName;
+      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: "操作成功!",
+          });
+        });
+    },
+    selectionChange(list) {
+      this.selectionList = list;
+    },
+    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.crudrec.toggleSelection();
+        });
+    },
+    refreshChange() {
+      this.onLoad(this.page, this.query);
+    },
+    onLoad(page, params = {}) {
+      this.loading = true;
+      getdata(
+        page.currentPage,
+        page.pageSize,
+        Object.assign(params, this.query)
+      ).then((res) => {
+        // console.log(res);
+        const data = res.data.data;
+        this.page.total = data.total;
+        this.data = data.records;
+        console.log(this.data);
+        this.loading = false;
+      });
+    },
+  },
+  mounted() {
+    // this.Ourdata = data;
+    // this.getData();
+    // this.onLoad(this.page);
+    // var dept_id = JSON.parse(
+    //   window.localStorage.getItem("saber-userInfo")
+    // ).content.dept_id;
+  },
+};
+</script>
+
+<style lang="scss">
+.equipments {
+  width: 100%;
+  height: 100%;
+  //   border: 1px solid #000;
+  box-sizing: border-box;
+}
+// .el-card__body {
+//   padding-bottom: 5px !important;
+// }
+// .avue-crud__tip,
+// .el-tag,
+// .el-tag--light {
+//   padding: 0 !important;
+// }
+</style>
\ No newline at end of file
diff --git a/src/views/onSiteInspection/data.js b/src/views/onSiteInspection/data.js
new file mode 100644
index 0000000..21bf4ad
--- /dev/null
+++ b/src/views/onSiteInspection/data.js
@@ -0,0 +1,278 @@
+var DIC = [
+    {
+        label: '招聘中',
+        value: 1,
+    }, {
+        label: '停止招聘',
+        value: 2,
+    }
+]
+var DIC1 = [
+    {
+        label: '拥有',
+        value: 1,
+    }, {
+        label: '未拥有',
+        value: 2,
+    }
+]
+
+var w = 160
+    , s = 12;
+export var column = [
+    {
+        label: "id",
+        prop: "id",
+        hide: true,
+        editDisplay: false,
+        addDisplay: false,
+        viewDisplay: false,
+    },
+    // {
+    //     label: "保安单位",
+    //     prop: "tenantName",
+    //     hide: true,
+    //     editDisplay: false,
+    //     addDisplay: false
+    // },
+    // {
+    //     label: "保安id",
+    //     prop: "deptId",
+    //     hide: true,
+    //     editDisplay: false,
+    //     addDisplay: false,
+    //     value: JSON.parse(window.localStorage.getItem("saber-userInfo")).content.dept_id
+    // },//上面不显示
+    {
+        label: "保安姓名",
+        prop: "tenantName",
+        //     hide: true,
+        //     editDisplay: false,
+        //     addDisplay: false
+    },
+    {
+        label: "保安公司",
+        prop: "deptId",
+        rules: [{
+            required: true,
+            message: "请输入保安公司",
+            trigger: "blur"
+        }],
+        // addDisplay: true,
+        // editDisplay: true,
+        // viewDisplay: true,
+        overHidden: true,
+        searchSpan: 4,
+        dicUrl: "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
+        props: {
+            label: "title",
+            value: "id"
+        },
+        hide: true,
+        // search: true,
+        type: "select",
+    },
+    {
+        label: "招聘岗位",
+        prop: "name",
+        hide: true,
+        // search: true,
+    },
+    {
+        label: "招聘人数",
+        prop: "number",
+        width: 70,
+        hide: true,
+        // search: true,
+    },
+    {
+        label: "保安证",
+        prop: "permit",
+        // addDisplay: true,
+        // editDisplay: true,
+        // viewDisplay: true,
+        filter: false,
+        type: 'tree',
+        dicData: DIC1,
+        searchSpan: 4,
+        hide: true,
+        // dicUrl: "/api/blade-system/dict-biz/dictionary?code=equipage",
+        // props: {
+        //     label: "dictValue",
+        //     value: "dictKey"
+        // },
+        // search: true,
+        // type: "select",
+    },
+    {
+        label: "学历要求",
+        prop: "education",
+        addDisplay: true,
+        editDisplay: true,
+        viewDisplay: true,
+        searchSpan: 4,
+        dicUrl: "/api/blade-system/dict-biz/dictionary?code=educationType",
+        props: {
+            label: "dictValue",
+            value: "dictKey"
+        },
+        hide: true,
+        // search: true,
+        type: "select",
+        // rules: [{
+        //     required: true,
+        //     message: "请选择学历",
+        //     trigger: "blur"
+        // }],
+    },
+    {
+        label: "工作经验",
+        prop: "experience",
+        addDisplay: true,
+        editDisplay: true,
+        viewDisplay: true,
+        hide: true,
+        searchSpan: 4,
+        dicUrl: "/api/blade-system/dict-biz/dictionary?code=experienceType",
+        props: {
+            label: "dictValue",
+            value: "dictKey"
+        },
+        // search: true,
+        type: "select",
+        // rules: [{
+        //     required: true,
+        //     message: "请选择工作经验",
+        //     trigger: "blur"
+        // }],
+    },
+    {
+        label: "工作任务",
+        prop: "workDesc",
+        // search: true,
+        // width: 110,
+        overHidden: true
+    },
+    {
+        label: "福利",
+        prop: "welfare",
+        search: true,
+        searchSpan: 5,
+        overHidden: true
+    },
+    {
+        label: "最低薪资",
+        prop: "minSalary",
+        width: 100,
+        // search: true,
+        searchSpan: 4,
+    },
+    {
+        label: "最高薪资",
+        prop: "maxSalary",
+        width: 100,
+        // search: true,
+        searchSpan: 4,
+    },
+    {
+        label: "单位性质",
+        prop: "unitsNature",
+        width: 70,
+        addDisplay: true,
+        editDisplay: true,
+        viewDisplay: true,
+        searchSpan: 4,
+        dicUrl: "/api/blade-system/dict-biz/dictionary?code=unitsNatureType",
+        props: {
+            label: "dictValue",
+            value: "dictKey"
+        },
+        // search: true,
+        type: "select",
+        // rules: [{
+        //     required: false,
+        //     message: "请选择单位规模",
+        //     trigger: "blur"
+        // }],
+    },
+    {
+        label: "单位规模",
+        prop: "unitsScale",
+        addDisplay: true,
+        editDisplay: true,
+        viewDisplay: true,
+        width: 150,
+        searchSpan: 4,
+        dicUrl: "/api/blade-system/dict-biz/dictionary?code=unitsScaleType",
+        props: {
+            label: "dictValue",
+            value: "dictKey"
+        },
+        search: true,
+        type: "select",
+        // rules: [{
+        //     required: true,
+        //     message: "请选择单位规模",
+        //     trigger: "blur"
+        // }],
+    },
+    {
+        label: "联系人",
+        prop: "linkman",
+        hide: true,
+        // search: true,
+    },
+    {
+        label: "联系人电话",
+        prop: "phone",
+        hide: true,
+        // search: true,
+        width: 110,
+    },
+    {
+        label: "详细地址",
+        prop: "address",
+        width: 110,
+        // search: true,
+        hide: true,
+        overHidden: true
+    },
+    {
+        label: "开始时间",
+        prop: "startTime",
+        // search: true,
+        hide: true,
+        type: "date",
+        format: "yyyy-MM-dd hh:mm:ss",
+        valueFormat: "yyyy-MM-dd hh:mm:ss",
+        width: 88,
+    },
+
+    {
+        label: "结束时间",
+        prop: "endTime",
+        // search: true,
+        hide: true,
+        type: "date",
+        format: "yyyy-MM-dd hh:mm:ss",
+        valueFormat: "yyyy-MM-dd hh:mm:ss",
+        width: 88,
+    },
+    {
+        label: "招聘状态",
+        // prop: "status",
+        // search: true,
+        // searchSpan: 4,
+        width: 70,
+        prop: 'status',
+        hide: true,
+        filter: false,
+        type: 'tree',
+        dicData: DIC,
+        // rules: [{
+        //     required: true,
+        //     message: "请选择单位规模",
+        //     trigger: "blur"
+        // }],
+    },
+]
diff --git a/src/views/onSiteInspection/securityStaff.vue b/src/views/onSiteInspection/securityStaff.vue
new file mode 100644
index 0000000..1fdd03d
--- /dev/null
+++ b/src/views/onSiteInspection/securityStaff.vue
@@ -0,0 +1,367 @@
+<template>
+  <div class="securityStaff">
+    <avue-crud
+      :option="option"
+      :data="data"
+      :page.sync="page"
+      ref="crudrec"
+      @on-load="onLoad"
+      :table-loading="loading"
+      @row-save="rowSave"
+      @search-change="searchChange"
+      @search-reset="searchReset"
+      @row-update="rowUpdate"
+      @row-del="rowDel"
+      @selection-change="selectionChange"
+      @refresh-change="refreshChange"
+    >
+      <template slot="menuLeft">
+        <el-button
+          type="danger"
+          size="small"
+          plain
+          icon="el-icon-delete"
+          @click="handleDelete"
+          >删 除
+        </el-button>
+      </template>
+    </avue-crud>
+  </div>
+</template>
+
+<script>
+import {
+  getdata,
+  adddata,
+  update,
+  remove,
+} from "@/api/onSiteInspection/securityStaff";
+
+export default {
+  data() {
+    return {
+      loading: true,
+      selectionList: [],
+      page: {
+        pageSize: 10,
+        currentPage: 1,
+        total: 0,
+      },
+      query: {},
+      data: [],
+      option: {
+        // card: true,
+        tip: false,
+        searchSize: "mini",
+        searchMenuSpan: 6,
+        height: 693,
+        index: true,
+        menuWidth: 160,
+        align: "center",
+        selection: true,
+        column: [
+          // {
+          //   label: "保安员姓名",
+          //   prop: "deptName",
+          //   overHidden: true,
+          //   // labelWidth: 120,
+          //   // searchLabelWidth: 120,
+          //   // searchSpan: 5,
+          //   // dicUrl:
+          //   //   "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
+          //   // props: {
+          //   //   label: "title",
+          //   //   value: "id",
+          //   // },
+          //   // search: true,
+          //   // overHidden: true,
+          //   // type: "select",
+          //   // rules: [
+          //   //   {
+          //   //     required: true,
+          //   //     message: "请输入保安公司",
+          //   //     trigger: "blur",
+          //   //   },
+          //   // ],
+          // },
+          {
+            label: "保安员姓名",
+            prop: "realname",
+            //     hide: true,
+            //     editDisplay: false,
+            //     addDisplay: false
+          },
+          {
+            label: "保安员身份证号",
+            prop: "carid",
+            // type: "select",
+            // labelWidth: 120,
+            // // display: false,
+            // dicData: dic,
+            // // props: {
+            // //   label: "label",
+            // //   value: "value",
+            // // },
+            // searchSpan: 5,
+            // search: true,
+            // width: 120,
+          },
+
+          {
+            label: "保安员单位",
+            prop: "sname",
+            overHidden: true,
+            // type: "select",
+            // labelWidth: 120,
+            // // display: false,
+            // dicData: dic,
+            // // props: {
+            // //   label: "label",
+            // //   value: "value",
+            // // },
+            // searchSpan: 5,
+            // search: true,
+            // width: 120,
+          },
+
+          // {
+          //   label: "保安员证",
+          //   prop: "certificate",
+          //   // labelWidth: 120,
+          //   // display: false,
+          // },
+          {
+            label: "检查人姓名",
+            prop: "inspectman",
+            // display: false,
+            // labelWidth: 120,
+            // width: 200,
+          },
+          // {
+          //   label: "所属角色",
+          //   prop: "roleName",
+          //   // display: false,
+          //   overHidden: true,
+          //   // width: 200,
+          //   // labelWidth: 120,
+          //   // overHidden: true,
+          // },
+          {
+            label: "检查人单位",
+            overHidden: true,
+            prop: "deptname",
+            // overHidden: true,
+            // type: "date",
+            // format: "yyyy-MM-dd",
+            // valueFormat: "yyyy-MM-dd",
+            // mock: {
+            //   type: "datetime",
+            //   labelWidth: 120,
+            //   format: "yyyy-MM-dd",
+            // },
+            // // search: true,
+            // searchSpan: 4,
+            // // display: false,
+            // width: 180,
+          },
+
+          {
+            label: "检查日期",
+            prop: "reviewtime",
+            type: "date",
+            format: "yyyy-MM-dd",
+            valueFormat: "yyyy-MM-dd",
+            mock: {
+              type: "datetime",
+              labelWidth: 120,
+              format: "yyyy-MM-dd",
+            },
+            // search: true,
+            searchSpan: 4,
+            // display: false,
+            width: 180,
+          },
+          // {
+          //   label: "审查结果",
+          //   prop: "results",
+          //   // labelWidth: 120,
+          //   // display: false,
+          // },
+          {
+            label: "检查内容",
+            overHidden: true,
+            prop: "insid",
+            // labelWidth: 120,
+            // display: false,
+          },
+          {
+            label: "检查结果",
+            prop: "examinationType",
+            // labelWidth: 120,
+            // display: false,
+          },
+        ],
+      },
+    };
+  },
+  computed: {
+    ids() {
+      let ids = [];
+      this.selectionList.forEach((ele) => {
+        ids.push(ele.id);
+      });
+      return ids.join(",");
+    },
+  },
+  methods: {
+    sizeChange(val) {
+      this.page1.currentPage = 1;
+      this.page1.pageSize = val;
+      this.getData();
+      //   this.$message.success("行数" + val);
+    },
+    currentChange(val) {
+      this.page1.currentPage = val;
+      this.getData();
+      //   this.$message.success("页码" + val);
+    },
+    rowSave(form, done, loading) {
+      var that = this;
+      //   var form = this.data[0];
+      //   delete form.id;
+      //   for (var k = 0; k < 13; k++) {
+      form["deptId"] = form.tenantName;
+      delete form.tenantName;
+      adddata(form).then(
+        (res) => {
+          this.onLoad(this.page);
+          this.$message({
+            type: "success",
+            message: "操作成功!",
+          });
+          done();
+        },
+        (error) => {
+          window.console.log(error);
+          loading();
+        }
+      );
+      //   }
+    },
+    searchChange(params, done) {
+      this.query = params;
+      this.page.currentPage = 1;
+      this.onLoad(this.page, params);
+      done();
+    },
+    searchReset() {
+      this.query = {};
+      this.onLoad(this.page);
+    },
+    rowUpdate(row, index, done, loading) {
+      // console.log(row);
+      row["deptId"] = row.tenantName;
+      delete row.tenantName;
+      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: "操作成功!",
+          });
+        });
+    },
+    selectionChange(list) {
+      this.selectionList = list;
+    },
+    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.crudrec.toggleSelection();
+        });
+    },
+    refreshChange() {
+      this.onLoad(this.page, this.query);
+    },
+    onLoad(page, params = {}) {
+      this.loading = true;
+      getdata(
+        page.currentPage,
+        page.pageSize,
+        Object.assign(params, this.query)
+      ).then((res) => {
+        // console.log(res);
+        const data = res.data.data;
+        this.page.total = data.total;
+        this.data = data.records;
+        console.log(this.data);
+        this.loading = false;
+      });
+    },
+  },
+  mounted() {
+    // this.Ourdata = data;
+    // this.getData();
+    // this.onLoad(this.page);
+    // var dept_id = JSON.parse(
+    //   window.localStorage.getItem("saber-userInfo")
+    // ).content.dept_id;
+  },
+};
+</script>
+
+<style lang="scss">
+.equipments {
+  width: 100%;
+  height: 100%;
+  //   border: 1px solid #000;
+  box-sizing: border-box;
+}
+// .el-card__body {
+//   padding-bottom: 5px !important;
+// }
+// .avue-crud__tip,
+// .el-tag,
+// .el-tag--light {
+//   padding: 0 !important;
+// }
+</style>
\ No newline at end of file
diff --git a/src/views/onSiteInspection/securityStaffdata.js b/src/views/onSiteInspection/securityStaffdata.js
new file mode 100644
index 0000000..94095bf
--- /dev/null
+++ b/src/views/onSiteInspection/securityStaffdata.js
@@ -0,0 +1,198 @@
+export var datasing = {
+    "code": 200,
+    "success": true,
+    "data": {
+        "records": [{
+            "id": "1415922341221867522",
+            "createUser": "1123598821738675201",
+            "createDept": "1372091709474910209",
+            "createTime": "2021-07-16 14:32:47",
+            "updateUser": "1123598821738675201",
+            "updateTime": "2021-07-19 19:34:43",
+            "status": 1,
+            "isDeleted": 0,
+            "tenantId": "000000",
+            "code": "",
+            "userType": -1,
+            "account": "13576969155",
+            "name": "王烽",
+            "realName": "王烽",
+            "avatar": "",
+            "email": "",
+            "phone": "13576969155",
+            "birthday": "",
+            "sex": 1,
+            "roleId": "1372092102682521602,1416225849858883585",
+            "deptId": "1372091709474910209,1415620707473223681,1415635607746551809",
+            "postId": "",
+            "online_status": "0",
+            "work_status": "0",
+            "examination_type": "",
+            "examination_mx": "",
+            "tenantName": "平台运维",
+            "userTypeName": "用户平台",
+            "roleName": "群防群控队伍,普通群众",
+            "deptName": "南昌市公安局,高新技术开发区分局,瑶湖派出所",
+            "postName": "",
+            "sexName": "男",
+            "userExt": "",
+            "jd": "0.0",
+            "wd": "0.0"
+        }, {
+            "id": "1415922434352193537",
+            "createUser": "1123598821738675201",
+            "createDept": "1372091709474910209",
+            "createTime": "2021-07-16 14:33:10",
+            "updateUser": "1123598821738675201",
+            "updateTime": "2021-07-16 14:33:10",
+            "status": 1,
+            "isDeleted": 0,
+            "tenantId": "000000",
+            "code": "",
+            "userType": -1,
+            "account": "014421",
+            "name": "",
+            "realName": "黎辅齐",
+            "avatar": "",
+            "email": "",
+            "phone": "13970047592",
+            "birthday": "",
+            "sex": 1,
+            "roleId": "1372092102682521602",
+            "deptId": "1372091709474910209,1415620404103409666,1415634573724786690",
+            "postId": "",
+            "online_status": "",
+            "work_status": "",
+            "examination_type": "0",
+            "examination_mx": "正常",
+            "tenantName": "平台运维",
+            "userTypeName": "",
+            "roleName": "群防群控队伍",
+            "deptName": "南昌市公安局,经济技术开发区分局,蛟桥派出所",
+            "postName": "",
+            "sexName": "男",
+            "userExt": "",
+            "jd": "",
+            "wd": ""
+        }, {
+            "id": "1415922474940473346",
+            "createUser": "1123598821738675201",
+            "createDept": "1372091709474910209",
+            "createTime": "2021-07-16 14:33:19",
+            "updateUser": "1123598821738675201",
+            "updateTime": "2021-07-17 12:31:14",
+            "status": 1,
+            "isDeleted": 0,
+            "tenantId": "000000",
+            "code": "",
+            "userType": -1,
+            "account": "六哥",
+            "name": "",
+            "realName": "罗健泰",
+            "avatar": "https://web.byisf.com/minio/jfpt/upload/depl/fc9d92dd0e9f4849bc95b20039791a77.jpg",
+            "email": "",
+            "phone": "13807059002",
+            "birthday": "",
+            "sex": 1,
+            "roleId": "1372092102682521602",
+            "deptId": "1372091709474910209,1415619917295710209,1415622346330402817",
+            "postId": "",
+            "online_status": "",
+            "work_status": "",
+            "examination_type": "0",
+            "examination_mx": "正常",
+            "tenantName": "平台运维",
+            "userTypeName": "",
+            "roleName": "群防群控队伍",
+            "deptName": "南昌市公安局,西湖分局,桃花派出所",
+            "postName": "",
+            "sexName": "男",
+            "userExt": "",
+            "jd": "",
+            "wd": ""
+        }, {
+            "id": "1415922519416872961",
+            "createUser": "1123598821738675201",
+            "createDept": "1372091709474910209",
+            "createTime": "2021-07-16 14:33:30",
+            "updateUser": "1123598821738675201",
+            "updateTime": "2021-07-16 14:33:30",
+            "status": 1,
+            "isDeleted": 0,
+            "tenantId": "000000",
+            "code": "",
+            "userType": -1,
+            "account": "014225",
+            "name": "",
+            "realName": "余春生",
+            "avatar": "",
+            "email": "",
+            "phone": "13870696110",
+            "birthday": "",
+            "sex": 1,
+            "roleId": "1372092102682521602",
+            "deptId": "1372091709474910209,1415620472965492738,1415635051854471170",
+            "postId": "",
+            "online_status": "",
+            "work_status": "",
+            "examination_type": "0",
+            "examination_mx": "正常",
+            "tenantName": "平台运维",
+            "userTypeName": "",
+            "roleName": "群防群控队伍",
+            "deptName": "南昌市公安局,红谷滩分局,九龙湖派出所",
+            "postName": "",
+            "sexName": "男",
+            "userExt": "",
+            "jd": "",
+            "wd": ""
+        }, {
+            "id": "1415922688380215297",
+            "createUser": "1123598821738675201",
+            "createDept": "1372091709474910209",
+            "createTime": "2021-07-16 14:34:10",
+            "updateUser": "1123598821738675201",
+            "updateTime": "2021-07-16 14:34:10",
+            "status": 1,
+            "isDeleted": 0,
+            "tenantId": "000000",
+            "code": "",
+            "userType": -1,
+            "account": "1121577645",
+            "name": "",
+            "realName": "张书茂",
+            "avatar": "",
+            "email": "",
+            "phone": "17607988072",
+            "birthday": "",
+            "sex": 1,
+            "roleId": "1372092102682521602",
+            "deptId": "1372091709474910209,1415620472965492738,1415635051854471170",
+            "postId": "",
+            "online_status": "",
+            "work_status": "",
+            "examination_type": "0",
+            "examination_mx": "正常",
+            "tenantName": "平台运维",
+            "userTypeName": "",
+            "roleName": "群防群控队伍",
+            "deptName": "南昌市公安局,红谷滩分局,九龙湖派出所",
+            "postName": "",
+            "sexName": "男",
+            "userExt": "",
+            "jd": "",
+            "wd": ""
+        }],
+        "total": 152,
+        "size": 10,
+        "current": 1,
+        "orders": [],
+        "optimizeCountSql": true,
+        "hitCount": false,
+        "countId": "",
+        "maxLimit": -1,
+        "searchCount": true,
+        "pages": 16
+    },
+    "msg": "操作成功"
+}
\ No newline at end of file

--
Gitblit v1.9.3