From 94d0963b91d0287a7196881e684453b29ae82f17 Mon Sep 17 00:00:00 2001 From: lukeyan <1727408482@qq.com> Date: Mon, 8 May 2023 08:44:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E8=81=94=E8=AE=BE=E5=A4=87=E8=81=94?= =?UTF-8?q?=E8=B0=832?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/correlationEquipment/index.js | 42 +- src/assets/js/eventBus.js | 3 + .../components/companyDataDialog.vue | 19 +- .../systemManagement/companyList/index.vue | 39 +- ...{addDIalog.vue => addPerceptionDialog.vue} | 90 ++-- .../components/addVideoDialog.vue | 451 ++++++++++++++++++ .../components/deriveDialog.vue | 1 + .../components/equipmentTable.vue | 254 ++++++++-- .../components/searchBox.vue | 117 ++++- .../components/uploadDialog.vue | 48 +- .../correlationEquipment/index.vue | 179 +++++-- src/views/systemManagement/index.vue | 2 +- 12 files changed, 1093 insertions(+), 152 deletions(-) create mode 100644 src/assets/js/eventBus.js rename src/views/systemManagement/correlationEquipment/components/{addDIalog.vue => addPerceptionDialog.vue} (80%) create mode 100644 src/views/systemManagement/correlationEquipment/components/addVideoDialog.vue diff --git a/src/api/correlationEquipment/index.js b/src/api/correlationEquipment/index.js index b4d2927..00a86a1 100644 --- a/src/api/correlationEquipment/index.js +++ b/src/api/correlationEquipment/index.js @@ -1,6 +1,14 @@ // 系统管理模块接口 import request from '@/utils/request' -// 字典表查询 +// 字典表查询 +export function commonDict(params) { + return request({ + url: '/common/dict/list', + method: 'get', + params + }) +} +// 企业名称树形数据 export function getAllData(params) { return request({ url: 'safety/tbAreacodeInfo/listAndVideo', @@ -8,3 +16,35 @@ export function getAllData(params) { params }) } +// 右侧视频监控设备查询List +export function getVideoList(params) { + return request({ + url: '/safety/tbDeviceVideoInfo/list', + method: 'post', + params + }) +} +// 右侧智能感知设备查询List +export function getPerceptionList(params) { + return request({ + url: '/safety/tbDevicePerceptionInfo/list', + method: 'post', + params + }) +} +// 厂家查询 +export function getCompanyList(params) { + return request({ + url: 'safety/system/enterpriseList', + method: 'get', + params + }) +} +// 新增视频监控 +export function addVideoList(params) { + return request({ + url: '/safety/tbDeviceVideoInfo/insert', + method: 'get', + params + }) +} \ No newline at end of file diff --git a/src/assets/js/eventBus.js b/src/assets/js/eventBus.js new file mode 100644 index 0000000..3e98d8c --- /dev/null +++ b/src/assets/js/eventBus.js @@ -0,0 +1,3 @@ +import Vue from 'vue' + +export default new Vue \ No newline at end of file diff --git a/src/views/systemManagement/companyList/components/companyDataDialog.vue b/src/views/systemManagement/companyList/components/companyDataDialog.vue index 880e996..7bfcfe7 100644 --- a/src/views/systemManagement/companyList/components/companyDataDialog.vue +++ b/src/views/systemManagement/companyList/components/companyDataDialog.vue @@ -227,7 +227,7 @@ @@ -294,6 +294,7 @@ export default { this.visible = true; if (num === 1) { this.dialogTitle = "新建"; + this.form = {}; } else if (num === 2) { this.dialogTitle = "查看档案"; } else if (num === 3) { @@ -372,9 +373,8 @@ export default { // 确定数据 saveFormData() { const params = this.form; - console.log('this.form',this.form); + console.log("this.form", this.form); if (this.dialogTitle === "新建") { - console.log(1111111); postCompanyList(params).then((res) => { if (res.code === 200) { this.$message.success("新建成功"); @@ -397,6 +397,9 @@ export default { } this.$emit("back"); }, + closeForm() { + this.visible = false; + } }, }; @@ -493,7 +496,6 @@ export default { .jurisdiction { background: url("~@/assets/companyFile/242112.png") no-repeat !important; background-size: 100% 100% !important; - margin-top: px; } /* 为适应上传图片表单布局把企业工商表单拆分 */ .commerceMessage_one { @@ -541,11 +543,11 @@ export default { .el-form-item { width: 100%; .el-form-item__label { - width: 15%; + width: 14.5%; } .el-form-item__content { .el-input__inner { - width: 650px; + width: 760px; } } .el-checkbox-group { @@ -567,8 +569,9 @@ export default { } .el-textarea { .el-textarea__inner { - max-height: 80px; - width: 650px; + height: 120px; + max-height: 120px; + width: 760px; border-radius: 0px; background: #3c4b4a; border: 0.5px dashed; diff --git a/src/views/systemManagement/companyList/index.vue b/src/views/systemManagement/companyList/index.vue index e71837d..e2ff6a5 100644 --- a/src/views/systemManagement/companyList/index.vue +++ b/src/views/systemManagement/companyList/index.vue @@ -33,7 +33,7 @@