From 32c5fc95afbb2241d80b986e385e17ee553c258c Mon Sep 17 00:00:00 2001 From: 唐耀东 <18861537@qq.com> Date: 星期五, 13 五月 2022 22:04:32 +0800 Subject: [PATCH] 提交代码 --- src/views/construction/ipc/index.vue | 30 ++++++++++++++++++++++-------- 1 files changed, 22 insertions(+), 8 deletions(-) diff --git a/src/views/construction/ipc/index.vue b/src/views/construction/ipc/index.vue index fe7c503..82937e9 100644 --- a/src/views/construction/ipc/index.vue +++ b/src/views/construction/ipc/index.vue @@ -75,7 +75,11 @@ <el-table-column label="IP" align="center" prop="ip"/> <el-table-column label="绔彛" align="center" prop="port"/> <el-table-column label="鐧诲綍璐︽埛" align="center" prop="loginAccount"/> - <el-table-column label="NVR" align="center" prop="nvrId_dictText"/> + <el-table-column label="NVR" align="center" prop="nvrId_dictText"> + <template slot-scope="scope"> + <el-link type="primary" @click="nvrClick(scope.row)">{{scope.row.nvrId_dictText}}</el-link> + </template> + </el-table-column> <el-table-column label="閫氶亾" align="center" prop="passageway_dictText"/> <el-table-column label="瀹夎浣嶇疆" align="center" prop="buildingId_dictText"/> <el-table-column label="鎵�灞炲崟浣�" align="center" prop="organizationId_dictText"/> @@ -195,6 +199,14 @@ <el-button @click="cancel">鍙� 娑�</el-button> </div> </el-dialog> + + <!-- 鏈嶅姟鍣� --> + <Dialog title="鏈嶅姟鍣�" :visible.sync="nvrOpen" width="700px" :append-to-body="true" :destroy-on-close="true"> + <nvr-form v-if="nvrOpen" :nvrId="nvrId"></nvr-form> + <div slot="footer" class="dialog-footer"> + <el-button @click="nvrOpen = false">鍏� 闂�</el-button> + </div> + </Dialog> </div> </template> @@ -205,6 +217,7 @@ import constructionBatch from "../../components/constructionBatch"; import manufacturer from "../../components/manufacturer"; import nvr from '../../components/nvr' +import nvrForm from '../../components/nvr/form' export default { name: "Ipc", @@ -214,7 +227,8 @@ organization, constructionBatch, manufacturer, - nvr + nvr, + nvrForm }, props: { schoolId: { @@ -294,7 +308,9 @@ ], passageway: [] }, - disabled: false + disabled: false, + nvrOpen: false, + nvrId: undefined }; }, computed: { @@ -471,11 +487,9 @@ this.loading = false; }); }, - /** 瀵煎嚭鎸夐挳鎿嶄綔 */ - handleExport() { - this.download('oa/ipc/export', { - ...this.queryParams - }, `ipc_${new Date().getTime()}.xlsx`) + nvrClick(row) { + this.nvrId = row.nvrId; + this.nvrOpen = true; } } }; -- Gitblit v1.9.1