234 次代碼提交 3025dbd4dd ... f147146dc8

作者 SHA1 備註 提交日期
  xiayu3 f147146dc8 Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc 4 年之前
  xiayu3 bd1c28cc0c [FE]:提交用户管理界面弹窗内容以及接口更新 4 年之前
  chenxr3 4b37da7ef4 [FE]首页人脸识别 视频监控布局 4 年之前
  xiayu3 6b00af3f88 [FE]修改视频监控组件样式&新增用户管理弹出框 4 年之前
  xiayu3 7a90e5d7ad Merge branch 'dev-security' of http://10.1.235.20:3000/asiainfo/ebc into dev-security 4 年之前
  xiayu3 fddda04ed2 [FE]新增用户管理弹出框&更改视频监控组件样式 4 年之前
  xiayu3 264c3ba3d5 Merge branch 'dev-security' of http://10.1.235.20:3000/asiainfo/ebc into dev-security 4 年之前
  xiayu3 5cb880c67a [FE]更改视频监控组件以及用户管理界面新增用户弹出框 4 年之前
  liuwenxun 9886a6c12e [FE]整合人脸审核页面到用户管理 4 年之前
  liuwenxun 6b710a982f Merge remote-tracking branch 'origin/dev-security' into dev-security 4 年之前
  liuwenxun b9c49e6225 [FE]统计AI报警未处理的数据 4 年之前
  liuwenxun b700661ec4 [FE]AI报警表格调整 4 年之前
  liuwenxun c70214f3d4 [FE]AI报警徽标调整 4 年之前
  liuwenxun f85324acbe Merge remote-tracking branch 'origin/dev-security' into dev-security 4 年之前
  liuwenxun 6571f93fd9 [FE]AI报警处理,AI报警角标,进出记录查询修改 4 年之前
  liuwenxun 8f4b50aca9 [FE]处理AL报警详情无法点开的问题 4 年之前
  liuwenxun 5b51d9d4bd [FE]处理videoInfo为空时,详情页面无法点击的问题 4 年之前
  xiayu3 b53ad37d3c [FE]:修改目录 4 年之前
  xiayu3 cb769b3992 Merge branch 'dev-security' of http://10.1.235.20:3000/asiainfo/ebc into dev-security 4 年之前
  xiayu3 2233772536 [FE]:修改视频监控样式 4 年之前
  xiayu3 3cbe6f2c39 Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc 4 年之前
  xiayu3 67f5214a9a Merge branch 'dev-security' 4 年之前
  wangchao 12572cf5a1 考勤详情显示格式修改bug 4 年之前
  chenxr3 d78b7bdffa 删除debugger 4 年之前
  konghl 9f50c9fa97 修改问题 4 年之前
  wangdong6 0c298d1922 修改AI识别处理服务 4 年之前
  konghl 475afbbf9c 修改问题 4 年之前
  konghl e31740f33e 新增报警详情的接口 4 年之前
  wangdong6 e477401879 Merge remote-tracking branch 'origin/master' 4 年之前
  wangdong6 dc68bfa2ea 修改AI识别处理服务 4 年之前
  wangdong6 29063f2405 增加场景设备分页查询服务 4 年之前
  wangchao 6a9e5a5391 修改进出记录bug 4 年之前
  konghl b853fa9490 修改考勤类型必填的问题 4 年之前
  konghl 902b99be6a 修改问题 4 年之前
  konghl eed12970cd 新增AI报警kafka消费 4 年之前
  wangdong6 83a580112c 修改AI处理结果 4 年之前
  wangdong6 296d4992b4 Merge remote-tracking branch 'origin/master' 4 年之前
  wangdong6 526e01161f 增加考勤打卡服务 4 年之前
  wangdong6 2274a0b5a3 Merge remote-tracking branch 'origin/master' 4 年之前
  wangdong6 366cc07942 修改AI识别功能 4 年之前
  wangdong6 f437841399 修改AI识别功能 4 年之前
  wangchao 1a8e2463b5 Merge remote-tracking branch 'origin/master' 4 年之前
  wangchao 6fb2eb5da1 AI报警接口增加处理人返回值与报警类型name返回值 4 年之前
  wangchao 173425e9aa Merge remote-tracking branch 'origin/master' 4 年之前
  wangchao cc86f342c0 进出记录返回参数查询修改 4 年之前
  wangchao 392d7269c4 进出记录、详情 查询修改 4 年之前
  wangchao 9720d09362 Merge remote-tracking branch 'origin/master' 4 年之前
  wangchao 19896d67fd 进出记录、详情 查询 4 年之前
  wangchao 3c8ced1379 进出记录、详情 查询 4 年之前
  konghl 0f7ad3266b 新增批量获取文件的路径 4 年之前
  wangchao b57d80b691 Merge remote-tracking branch 'origin/master' 4 年之前
  wangchao 83af37e1b4 考勤管理 4 年之前
  wangchao c1a17c529b Merge remote-tracking branch 'origin/master' 4 年之前
  wangchao 9025dc6284 修改日报bug 4 年之前
  wangchao 0bf75d3a8d Merge remote-tracking branch 'origin/master' 4 年之前
  wangchao cf7b6cdfa4 AI接口提交 4 年之前
  wangchao cf93c13cfe Merge remote-tracking branch 'origin/master' 4 年之前
  wangchao c539efc81a 导出excel 4 年之前
  chenxr3 c5de3eedce 月考勤数据查询接口修改bug 4 年之前
  konghl d1691caa94 工单申请修改用户和部门 4 年之前
  wangchao 1690e0e21b 修改考勤查询日报bug 4 年之前
  wangdong6 0584159bd1 Merge remote-tracking branch 'origin/master' 4 年之前
  wangdong6 f02a5c9889 修改考勤规则查询接口 4 年之前
  wangdong6 013e377cef 修改考勤规则查询接口 4 年之前
  konghl 2ac7393605 重构人员轨迹查询 4 年之前
  konghl 190e8a2ec0 新增工单申请及审批接口 4 年之前
  wangdong6 a0a75ce1c6 修改考勤规则保存接口 4 年之前
  wangchao 208cc9c6ed Merge remote-tracking branch 'origin/master' 4 年之前
  wangchao eb0f593fc9 查询报表修改参数 4 年之前
  wangchao 78caba4d27 考勤详情修改 4 年之前
  wangchao 69f40fa73d Merge remote-tracking branch 'origin/master' 4 年之前
  wangchao 6ff5fe626a 考勤报告接收前台参数方式修改 4 年之前
  wangdong6 5151d2fea9 Merge remote-tracking branch 'origin/master' 4 年之前
  wangdong6 9a5dcf3200 封装考勤规则管理接口 4 年之前
  zhaolx5 84e32ed3ca 解决打包失败的问题 4 年之前
  zhaolx5 ac019a0444 Merge remote-tracking branch 'origin/master' 4 年之前
  zhaolx5 d80c144412 变更ipu-cache的版本号 4 年之前
  konghl 5c299da82a 问题修改 4 年之前
  chenxr3 c65072f9be 定位提交 4 年之前
  konghl 9d8fd7b88a 增加设备和围栏的判断字段 4 年之前
  wangchao 9773787bd2 Merge remote-tracking branch 'origin/master' 4 年之前
  wangchao 0c3414ba5f 配置文件增加注释 4 年之前
  wangchao 62a630e635 Merge remote-tracking branch 'origin/master' 4 年之前
  wangchao 59071e3124 增加空格 4 年之前
  konghl 4b9cfc964f 新增mock工程 4 年之前
  konghl 8ff2333bdb 修改配置文件,用于上传服务器 4 年之前
  konghl 35e8568374 修改项目名称,用于上传服务器 4 年之前
  konghl 296cdba193 重构后台系统,仅用于上传服务器 4 年之前
  konghl 0122efbabc 重构后台系统,仅用于上传服务器 4 年之前
  konghl 9a39799cc0 部署服务器,修改配置文件 4 年之前
  konghl ddf35fd300 暂时不启用非实体对象的判断 4 年之前
  chenxr3 7939fc8ace 首页修改提交 4 年之前
  konghl db678770b9 Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc.git 4 年之前
  konghl bebb2b89fe 人员定位问题修改 4 年之前
  konghl 04ada0e6f8 实时救援问题修改 4 年之前
  wangkang3 33bb67ddb7 提交 4 年之前
  chenxr3 b15b5e27ad 首页修改提交 4 年之前
  konghl 8b281e8053 修改pom,排除登录验证 4 年之前
  konghl cb0c0e8182 Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc.git 4 年之前
  konghl 53804e97f6 修改镜屏推送信息 4 年之前
  konghl 6809ddead2 重构实时报警和历史报警 4 年之前
  konghl 2363abc631 修改镜屏topic 4 年之前
  konghl 6c328c4398 轨迹查询重构 4 年之前
  konghl b0ee3a41b4 历史轨迹回放重构,增加定时任务判断设备离线 4 年之前
  chenxr3 622b446cee 首页修改提交 4 年之前
  chenxr3 4756df9027 修改提交 4 年之前
  konghl 67e75e92ff 删除枚举等,重构人员定位 4 年之前
  chenxr3 563af28335 修改提交 4 年之前
  konghl 08a6631852 修改设备类型 4 年之前
  konghl c183618ccb Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc.git 4 年之前
  konghl 2387b3f8e5 修改设备 4 年之前
  konghl 7712978aac 修改地图标记类型和设备类型 4 年之前
  konghl 97a96a8da4 中台服务的版本从2.1升级为2.1.5 4 年之前
  chenxr3 626a7699ce 修改提交 4 年之前
  konghl cbbdfa675d 修改北向接口缓存方式 4 年之前
  konghl 387e92633d Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc into master 4 年之前
  konghl 9ec6ffcd72 统一设备管理返回格式 4 年之前
  konghl 46d45bf56c Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc into master 4 年之前
  konghl b61fa21c4f 修改kafka配置文件 4 年之前
  konghl 24f03b82fc 统一设备管理的返回格式 4 年之前
  konghl 8c1bd0a40d Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc.git 4 年之前
  konghl d6c9ee7ac9 统一用户管理返回值 4 年之前
  konghl 2667543ebe 修改人员信息返回值 4 年之前
  konghl 33f605d78d Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc into master 4 年之前
  konghl 8c6e6b34db 统一地图标记和终端管理的返回格式 4 年之前
  konghl 6f5679bb9b 修改pom 4 年之前
  konghl f8ec732c5e 配置kafka 4 年之前
  wangchao 91cb23750d Merge remote-tracking branch 'origin/master' 4 年之前
  wangchao 7a19aa2489 加入uspa拦截器token验证 4 年之前
  wangchao 605bfe142d Merge remote-tracking branch 'origin/master' 4 年之前
  wangchao 0307a3595b 用户管理删除和新增 4 年之前
  wangchao 42c9ce12f2 Merge remote-tracking branch 'origin/master' 4 年之前
  wangchao 2f12fb16fb 终端绑定 4 年之前
  wangchao a4780fea36 后台项目初始化 4 年之前
  wangchao 1d225203e0 Merge remote-tracking branch 'origin/master' 4 年之前
  wangchao 7b5bd7fc8f 解绑查询关联关系 4 年之前
  wangchao 5b7ada9d09 Merge remote-tracking branch 'origin/master' 4 年之前
  wangchao 3abd9ac159 测试 4 年之前
  wangchao 5c2edbe8f2 Merge remote-tracking branch 'origin/master' 4 年之前
  wangchao 701921f2c7 设备管理分页查询的修改 4 年之前
  wangchao d1e6198a6c 设备管理报错修改 4 年之前
  wangchao cd2a9a0807 Merge remote-tracking branch 'origin/master' 4 年之前
  wangchao 42136256e1 设备管理模块后台修改 4 年之前
  konghl e5ac90e3cc 修改git忽略文件配置 4 年之前
  konghl 173629f8c7 修改用户管理 4 年之前
  konghl 8b50ef3257 Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc.git 4 年之前
  konghl 15425d68aa 用户管理功能修改 4 年之前
  wangchao f4c0dc51b9 后台项目安防一体化系统初始化 4 年之前
  konghl e9eb1c63df 修改工程,无错误 4 年之前
  zhaolx5 12e2261ca9 初始化工程 4 年之前
  wangchao 21a1d106ba Merge remote-tracking branch 'origin/master' 4 年之前
  wangchao d53bf64414 修改项目结构 4 年之前
  wangchao 10d36573b9 修改项目结构 4 年之前
  wangkang3 657320fadd 提交 4 年之前
  wangchao 993f22008d Merge remote-tracking branch 'origin/master' 4 年之前
  wangchao 1e6aae2459 修改设备添加数据库时间 4 年之前
  konghl aa3a0f690d 实际报警初始化查询 4 年之前
  konghl 3640ccd134 拆分properties配置文件 4 年之前
  konghl 9afed3d1cd 修改镜屏名称、新增查询历史报警救援等 4 年之前
  konghl 52a85f945f 修改日期工具类 4 年之前
  wanyao ee205bc24c 回退 4 年之前
  wanyao 16d1d23fee 主机启动慢的原因测试1 4 年之前
  wangkang3 d34871ad0c Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc 4 年之前
  wangkang3 57e2b527f0 修改镜屏uuid 4 年之前
  wangkang3 a4f2b748b2 提交 4 年之前
  wangkang3 07f3e9bb23 修改提交 4 年之前
  konghl 499e7a7d94 合并海图参数 4 年之前
  konghl fe61027787 Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc.git 4 年之前
  konghl 70691e3608 增加海图配置参数、重构数据推送、新增轨迹回放接口 4 年之前
  konghl 510c6be0e7 修改人员定位功能数据订阅的解析 4 年之前
  chenxr3 186e9e66f4 轨迹分析页面 4 年之前
  wangchao 71ba3d6e50 Merge remote-tracking branch 'origin/master' 4 年之前
  wangchao eb6f6af53e 修改时间工具类与轨迹分析 4 年之前
  wangchao dc4c59924a Merge remote-tracking branch 'origin/master' 4 年之前
  wangchao 1c6dc5d9cd 轨迹分析信息查询 4 年之前
  chenxr3 69f534d648 地图标记绘制多边形颜色优化 4 年之前
  konghl ea8cc62767 修改配置文件 4 年之前
  wangchao ffb3b16b49 Merge remote-tracking branch 'origin/master' 4 年之前
  wangchao 4f36bbe4f2 考勤方法的修改 4 年之前
  wangchao 4ea204d4e4 考勤查询功能详情信息 4 年之前
  wangchao 76ba12e88b Merge remote-tracking branch 'origin/master' 4 年之前
  wangchao 8088a9af4d 考勤查询功能 4 年之前
  konghl 0824340e9c 修改人员定位功能 4 年之前
  wangchao ceb2e684c3 测试批量插入 4 年之前
  wangchao a19b9e2346 合并代码 4 年之前
  wangchao d0cdba1219 Merge remote-tracking branch 'origin/master' 4 年之前
  wangchao 14d32a62c0 删除终端时删除终端绑定关系 4 年之前
  wangchao 1d834a772a 删除终端时删除终端绑定关系 4 年之前
  chenxr3 8e19767361 设备类型标识格式更改 4 年之前
  konghl b8a06cf6e6 添加人员的枚举值 4 年之前
  konghl ec04cf2f49 删除.project文件 4 年之前
  konghl 2e3c3b67ca 修改枚举位置 4 年之前
  konghl 004b6f9498 新增定位推送,修改枚举类的位置 4 年之前
  wangkang3 76ef98bf1e 代码提交 4 年之前
  wangchao 63feb0d24b 终端管理页面加ui替换 4 年之前
  wangchao e0572c53e1 关联终端,解绑终端修改,考勤管理架子编写 4 年之前
  wangchao 9ff2237cbf 关联终端,解绑终端修改 4 年之前
  wangchao 7acc72f757 关联终端,解绑终端修改 4 年之前
  wangchao 332e05b5f4 关联终端,解绑终端修改 4 年之前
  wangchao b7fe4ca37c 后台daoimpl的修改 4 年之前
  konghl a3c4950238 修改字段 4 年之前
  konghl 48cb0bbdfa 增加返回参数 4 年之前
  konghl 429b4dbfa9 修改北向接口 4 年之前
  konghl 2e0b6dcd44 增加业务常量 4 年之前
  konghl 12d7573f2e 新增功能:地图标记增删改查 4 年之前
  wangkang3 8f7b30e3be 地图标记模块接口接入 4 年之前
  chenxr3 1013865ef3 设备管理页面 4 年之前
  wangchao 97dca84162 修改设备验证 4 年之前
  wangchao 0c9930d3e3 Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc 4 年之前
  wangchao 8bd1ff2323 终端关联,终端解绑等接口 4 年之前
  wangchao d01adabd91 Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc 4 年之前
  wangchao d40c613702 修改gis接口等 4 年之前
  wangchao 35550a3e47 Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc 4 年之前
  wangchao bd86ba7a47 设备增删改查以及关联与解绑终端 4 年之前
  wangchao a8c7c1cf4d 项目配置修改以及剔除uspa 4 年之前
  wangchao c251472c3d gis获取token接口 4 年之前
  wangchao fba9354c6a Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc 4 年之前
  wangchao 5ff38a7f9b 解决跨域问题 4 年之前
  wangchao 74f666ab34 添加注释,增加轨迹文件等 4 年之前
  wangchao 5f13388aac 修改地图管理文件 4 年之前
  wangchao 41aea6126c Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc 4 年之前
  wangchao 24f1743496 按评审要求修改文件 4 年之前
  wangchao 666c0f81c2 Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc 4 年之前
  wangchao 779c6e3826 修改日志文件 4 年之前
  wangchao 0e5599165c 修改日志文件 4 年之前
  wangchao c217a49b3a 更新项目 4 年之前
  wangchao 408a2042a9 后台项目初始化 4 年之前
  wangkang3 7bbf8eb6a8 页面初始化提交 4 年之前
  liuchang 000ebd90c9 更新文件 4 年之前
  liuchang 46a262ab4b 删除 4 年之前
  liuchang d1d76df146 更新提交 4 年之前
  wanyao 1d2d95bc39 删除 4 年之前
  wanyao f74da4a0dd 删除 4 年之前
  wanyao b667fddfbc 初始化 4 年之前

+ 4 - 1
security-protection-platform/src/api/usermana/index.js

@ -66,8 +66,11 @@ const api = {
66 66
  // 审核用户照片
67 67
  auditEmployeePicture (params) {
68 68
    return $default.post('/sp/employeeManagement/auditEmployeePicture', params)
69
  },
70
  // 编辑用户信息
71
  editUserDetail(params) {
72
    return $default.post('/sp/employeeManagement/modifyEmployee', params)
69 73
  }
70
71 74
}
72 75
function nest (items, code = '-1', link = 'parentCode') {
73 76
  return items.filter(item => item[link] === code).map(item => ({ ...item, departments: nest(items, item.code) }))

+ 3 - 4
security-protection-platform/src/modules/system/devicemana/components/modal/addDeviceModal.vue

@ -23,7 +23,7 @@
23 23
      </t-form-item>
24 24
      <t-form-item label="图片上传:">
25 25
        <div style="display:flex;flex-direction:row">
26
          <t-upload ref="uploader" :format="['jpg','jpeg','png']" :show-uploaded="false" :before-upload="$_onUploadBeforeUpload" :action="action" :data="{pictureUrl:addDeviceModalForm.pictureUrl}" name="picture" multiple type="drag" style="width:180px;height:180px" @success="$_onUploadSuccess" @remove-file="$_onUploadRemoveFile" @error="$_onUploadError" @file-ext-error="$_onUploadFormatError" @file-exceeded-size="$_onUploadExceededSize">
26
          <t-upload ref="uploader" :format="['jpg','jpeg','png']" :show-uploaded="false" :before-upload="$_onUploadBeforeUpload" :action="action" :data="{pictureUrl:addDeviceModalForm.pictureUrl}" multiple type="drag" style="width:180px;height:180px" @success="$_onUploadSuccess" @remove-file="$_onUploadRemoveFile" @error="$_onUploadError" @file-ext-error="$_onUploadFormatError" @file-exceeded-size="$_onUploadExceededSize">
27 27
            <div style="width: 180px;height:180px;line-height: 180px">
28 28
              <t-icon icon="plus-outline" size="40"></t-icon>
29 29
            </div>
@ -187,10 +187,9 @@ export default {
187 187
      console.log(file)
188 188
    },
189 189
    $_onUploadSuccess (res, file) {
190
      this.imgUrl = res.data.data.toolPictureUrl
191
      this.addDeviceModalForm.pictureUrl = res.data.data.pictureUrl
190
      this.imgUrl = res.data.toolPictureUrl
191
      this.addDeviceModalForm.pictureUrl = res.data.pictureUrl
192 192
      // 因为演示用的上传服务器返回数据格式的原因,这里模拟添加 url
193
      console.log(file)
194 193
      this.uploadList.push(file)
195 194
    },
196 195
    $_onUploadRemoveFile () { },

+ 76 - 42
security-protection-platform/src/modules/usermana/components/modal/addUser.vue

@ -16,7 +16,7 @@
16 16
        </t-select>
17 17
      </t-form-item>
18 18
      <t-form-item v-if="addUserModal.apartments!==''" label="部门:" prop="organizeCode">
19
        <t-select-tree v-model="addUserModal.organizeCode" :node-data="departmentTypesList" node-key="id"></t-select-tree>
19
        <t-select-tree v-model="addUserModal.organizeCode" :node-data="departmentTypesList" node-value="code" node-key="code"></t-select-tree>
20 20
      </t-form-item>
21 21
      <t-form-item label="职务:" prop="mainJobPosition">
22 22
        <t-select v-model="addUserModal.mainJobPosition" placeholder="请选择职务" clearable>
@ -29,25 +29,28 @@
29 29
      <t-form-item label="手机:" prop="mainWirelessCall">
30 30
        <t-input v-model="addUserModal.mainWirelessCall" placeholder="请输入11位手机号"></t-input>
31 31
      </t-form-item>
32
      <t-form-item label="人脸图片:" prop="facePicture">
33
        <t-upload
34
          ref="uploader"
35
          :show-uploaded="true"
36
          :allowed-ext="['jpg','jpeg','png']"
37
          :max-size="2048"
38
          :before-upload="$_onUploadBeforeUpload"
39
          :data="{picture:'11d'}"
40
          multiple
41
          style="width:120px;height:160px;background-color:#FFFFFF;"
42
          type="drag"
43
          action="http://10.19.90.34:8018/sp/employeeManagement/uploadEmployeePicture"
44
          class="demo-upload-list"
45
        >
46
          <div class="picture-upload">
47
            <t-icon class="upload-icon" icon="plus-outline"></t-icon>
48
            <span style="color:rgba(0, 0, 0, 0.45)">上传照片</span>
49
          </div>
50
        </t-upload>
32
      <t-form-item label="人脸图片:" style="display:flex" prop="facePicture">
33
        <div style="display:flex">
34
          <t-upload
35
            ref="uploader"
36
            :show-uploaded="false"
37
            :allowed-ext="['jpg','jpeg','png']"
38
            :max-size="2048"
39
            :before-upload="$_onUploadBeforeUpload"
40
            multiple
41
            style="width:120px;height:160px;background-color:#FFFFFF;"
42
            type="drag"
43
            action="http://10.19.90.34:8018/sp/employeeManagement/uploadEmployeePicture"
44
            class="demo-upload-list"
45
            @success = "$_onUploadSuccess"
46
          >
47
            <div class="picture-upload">
48
              <t-icon class="upload-icon" icon="plus-outline"></t-icon>
49
              <span style="color:rgba(0, 0, 0, 0.45)">上传照片</span>
50
            </div>
51
          </t-upload>
52
          <img v-show="showPicture" :src="showPicture" style="width:120px;height:160px;margin-left:12px"/>
53
        </div>
51 54
        <span style="color:rgba(0, 0, 0, 0.45);font-size:12px">照片格式:jpg、png或bmp文件,且不超过2M</span>
52 55
      </t-form-item>
53 56
    </t-form>
@ -61,6 +64,7 @@
61 64
62 65
<script>
63 66
import sysapi from '@/api/usermana'
67
import formatDateTime from '@/utils/formatDateTime.js'
64 68
export default {
65 69
  props: {
66 70
    visible: {
@ -71,20 +75,27 @@ export default {
71 75
    companyList: {
72 76
      type: Array,
73 77
      default: () => []
78
    },
79
    // 回显数据列表
80
    editUserModal: {
81
      type: Object,
82
      default: () => []
74 83
    }
75 84
  },
76 85
  data() {
77 86
    // 手机号验证
78
    // const VALIDATEPASSCHECK = (rule, value, callback) => {
79
    //   if (value === '') {
80
    //     callback(new Error('请输入11位手机号'))
81
    //   } else if (value.length > 0 & value.length !== 11) {
82
    //     callback(new Error('手机号格式不正确'))
83
    //   } else {
84
    //     callback()
85
    //   }
86
    // }
87
    const VALIDATEPASSCHECK = (rule, value, callback) => {
88
      if (value === '') {
89
        callback(new Error('请输入11位手机号'))
90
      } else if (value.length > 0 & value.length !== 11) {
91
        callback(new Error('手机号需为11位'))
92
      } else {
93
        callback()
94
      }
95
    }
87 96
    return {
97
      // 按钮是否加载中
98
      loadingSubmit: false,
88 99
      // 是否为编辑状态
89 100
      isEdit: false,
90 101
      // 部门列表
@ -92,6 +103,8 @@ export default {
92 103
      // 职务列表
93 104
      uploadList: [],
94 105
      jobPoisitonList: [],
106
      // 回显图片
107
      showPicture: '',
95 108
      // 新增用户表单
96 109
      addUserModal: {
97 110
        name: '',
@ -121,10 +134,10 @@ export default {
121 134
          { required: true, message: '职务不能为空', trigger: 'change' }
122 135
        ],
123 136
        birthday: [
124
          { required: true, message: '年龄不能为空', trigger: 'blur' }
137
          { required: true, message: '年龄不能为空' }
125 138
        ],
126 139
        mainWirelessCall: [
127
          { required: true, message: '请输入11位手机号', trigger: 'blur' }
140
          { validator: VALIDATEPASSCHECK, required: true, trigger: 'blur' }
128 141
        ],
129 142
        facePicture: [
130 143
          { required: true, message: '图片不能为空', trigger: 'blur' }
@ -149,8 +162,15 @@ export default {
149 162
      this.addUserModal.organizeCode = ''
150 163
      // 查询部门列表
151 164
      this.queryCycleChildOrg(val)
165
    },
166
    editUserModal () {
167
      this.getCompanyList()
152 168
    }
153 169
  },
170
  created() {
171
    // console.log(this.editUserModal)
172
    // this.addUserModal.apartments = this.editUserModal.field4
173
  },
154 174
  mounted() {
155 175
    this.getJobPositionList()
156 176
  },
@ -166,14 +186,14 @@ export default {
166 186
            organizeCode: this.addUserModal.organizeCode, // 部门CODE
167 187
            mainWirelessCall: this.addUserModal.mainWirelessCall, // 手机号码
168 188
            mainJobPosition: this.addUserModal.mainJobPosition, // 职务
169
            field1: this.addUserModal.facePicture, // 照片标识
189
            field1: this.addUserModal.field1, // 照片标识
170 190
            field4: this.addUserModal.apartments, // 公司ID
171
            birthday: Math.round(new Date() / 1000) // 生日(时间戳)
191
            birthday: this.addUserModal.birthday // 生日(时间戳)
172 192
          }
173
          sysapi.creteEmployee({params: obj}).then(res => {
174
            console.log(res)
193
          sysapi.creteEmployee(obj).then(res => {
175 194
            if (res.data.success === true) {
176
              this.$Message.success('新增成功')
195
              this.$Message.success('提交成功')
196
              this.$refs['addUserModal'].resetFields()
177 197
            } else {
178 198
              console.log(res.data.fail.message)
179 199
              this.$Message.success(res.data.fail.message)
@ -188,6 +208,21 @@ export default {
188 208
      this.imgUrl = ''
189 209
      this.isVisibled = false
190 210
    },
211
    getCompanyList() {
212
      this.$nextTick(() => {
213
        this.addUserModal = {
214
          'name': this.editUserModal.employeeName, // 员工姓名
215
          'code': this.editUserModal.employeeCode, // 员工编号
216
          'organizeCode': this.editUserModal.organizationCode, // 部门CODE
217
          'mainWirelessCall': this.editUserModal.mainWirelessCall, // 手机号码
218
          'mainJobPosition': this.editUserModal.employeePosition, // 职务
219
          'field1': this.editUserModal.field1, // 照片标识
220
          'apartments': this.editUserModal.field4, // 公司ID
221
          'birthday': formatDateTime(new Date(this.editUserModal.birthday - 0)) // 生日(时间戳)
222
        }
223
        // this.isEdit = true
224
      })
225
    },
191 226
    // 查询职务列表
192 227
    async getJobPositionList() {
193 228
      const res = await sysapi.getJobPositionList()
@ -212,7 +247,7 @@ export default {
212 247
          if (item.pid === '-1') {
213 248
            delete item.pid
214 249
          }
215
          item.id = item.orgId
250
          // item.id = item.orgId
216 251
          data1.some((item1) => {
217 252
            if (item.pid === item1.id) {
218 253
              item.pid = item1.orgId
@ -237,7 +272,8 @@ export default {
237 272
            orgId: item.id + '',
238 273
            id: item.code,
239 274
            label: item.name,
240
            pid: item.parentCode
275
            pid: item.parentCode,
276
            code: item.code
241 277
          })
242 278
          this.nextDepartment(item.departments, arr)
243 279
        })
@ -257,11 +293,9 @@ export default {
257 293
      console.log(file)
258 294
    },
259 295
    $_onUploadSuccess (res, file) {
260
      this.imgUrl = res.data.data.toolPictureUrl
261
      this.addDeviceModalForm.pictureUrl = res.data.data.pictureUrl
262 296
      // 因为演示用的上传服务器返回数据格式的原因,这里模拟添加 url
263
      console.log(file)
264
      this.uploadList.push(file)
297
      this.showPicture = res.data.headerPictureUrl
298
      this.addUserModal.field1 = res.data.pictureUrl
265 299
    },
266 300
    $_onUploadRemoveFile () { },
267 301
    $_onUploadExceededSize () { },

+ 7 - 4
security-protection-platform/src/modules/usermana/index.vue

@ -52,7 +52,7 @@
52 52
          </t-table-column>
53 53
          <t-table-column label="操作">
54 54
            <template v-slot="{row}">
55
              <a href="javascript:;" style="color:#0089D4;" @click="editDeviceData(row.resourceToolId)">编辑</a>
55
              <a href="javascript:;" style="color:#0089D4;" @click="editDeviceData(row.id)">编辑</a>
56 56
              <a href="javascript:;" style="color:#0089D4;" @click="deleteUserData(row)">删除</a>
57 57
              <a v-if="row.field2!='5'" href="javascript:;" style="color:#0089D4;" @click="auditdata(row.id,row.companyName)">人脸审核</a>
58 58
            </template>
@ -64,7 +64,7 @@
64 64
        </t-pager>
65 65
      </div>
66 66
    </t-card>
67
    <add-user-modal :company-list="companyTypesList" :visible.sync="addDeviceModal"></add-user-modal>
67
    <add-user-modal :edit-user-modal="currentEditDevice" :company-list="companyTypesList" :visible.sync="addDeviceModal"></add-user-modal>
68 68
    <auditModal :auditshow.sync="auditshow" :auditid="auditid" :company-name="companyName" @refeshUserList="getUserList"></auditModal>
69 69
  </div>
70 70
</template>
@ -249,6 +249,7 @@ export default {
249 249
    },
250 250
    // 删除数据
251 251
    deleteUserData (row) {
252
      console.log(row)
252 253
      this.$Confirm.confirm({
253 254
        title: '正在准备删除...',
254 255
        content: '<p>确定要删除?</p><p>删除后将无法还原!</p>',
@ -307,10 +308,12 @@ export default {
307 308
    showAddDeviceModal () {
308 309
      this.addDeviceModal = true
309 310
    },
311
    // 编辑新增用户信息
310 312
    async editDeviceData (id) {
311
      const res = await sysapi.getDeviceInfo(id)
313
      const res = await sysapi.getOneEmployee({params: {employeeId: id}})
312 314
      if (res.status === 200) {
313
        this.currentEditDevice = res.data
315
        this.currentEditDevice = res.data.data
316
        console.log(this.currentEditDevice);
314 317
      } else {
315 318
        this.$Message.danger('设备数据获取失败!')
316 319
      }

+ 1 - 2
security-protection-platform/src/modules/videoSurveillance/index.vue

@ -125,7 +125,7 @@ export default {
125 125
          btn1.className = 'aidicon aidicon-piechart-outline'
126 126
          btn1.setAttribute('title', '视频回放')
127 127
          btn1.addEventListener('click', () => {
128
            this.handleReview(this.videoList[index].id)
128
            this.handleReview(this.videoList[index].resourceToolId)
129 129
          })
130 130
          item.appendChild(txt)
131 131
          item.appendChild(btn)
@ -169,7 +169,6 @@ export default {
169 169
      }
170 170
      if (res.status === 200) {
171 171
        this.replayList = res.data.data
172
        console.log(this.replayList)
173 172
      } else {
174 173
        this.$Message.danger('视频列表数据获取失败!')
175 174
      }